summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
authorsin2015-03-14 09:38:11 +0000
committersin2015-03-14 09:38:22 +0000
commit37eb2c9c1d71c2ff21605ecaf46cdd926244d361 (patch)
tree9670721c2b0caa931efa40f00a64a3fadf6c9619 /include/poll.h
parentd12254166a55d17932ea4143fbd50fb52539ff8b (diff)
Add __artificial__ to aid in debugging
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/poll.h b/include/poll.h
index 6469acb..05228b8 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -13,7 +13,7 @@ extern "C" {
13 13
14extern int __poll_orig(struct pollfd *, nfds_t, int) 14extern int __poll_orig(struct pollfd *, nfds_t, int)
15 __asm__(__USER_LABEL_PREFIX__ "poll"); 15 __asm__(__USER_LABEL_PREFIX__ "poll");
16extern __inline __attribute__((__always_inline__,__gnu_inline__)) 16extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
17int poll(struct pollfd *fds, nfds_t nfds, int timeout) 17int poll(struct pollfd *fds, nfds_t nfds, int timeout)
18{ 18{
19 __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0); 19 __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0);
@@ -27,7 +27,7 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout)
27#undef ppoll 27#undef ppoll
28extern int __ppoll_orig(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *) 28extern int __ppoll_orig(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *)
29 __asm__(__USER_LABEL_PREFIX__ "ppoll"); 29 __asm__(__USER_LABEL_PREFIX__ "ppoll");
30extern __inline __attribute__((__always_inline__,__gnu_inline__)) 30extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
31int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *mask) 31int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *mask)
32{ 32{
33 __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0); 33 __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0);