diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-24 08:34:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-24 08:34:31 +0000 |
commit | 694525ec2e1ba8cd93affc352dfd149ace4fa016 (patch) | |
tree | 522d2b1dd3d1fe84dce467355851bc5794165c0f /libc/sysdeps/linux/common | |
parent | ae549acff0899cbec32bd2a1353a99ea26d6bc00 (diff) |
- tidy up inline:
ldso and syscalls are __always_inline (the latter would need more cleanup)
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/__syscall_fcntl.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/getcwd.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/getdents.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/getrlimit.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/ioctl.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/ppoll.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/setrlimit.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/sigprocmask.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/sysctl.c | 2 |
9 files changed, 13 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c index 697abd0d4..a3fb74fa3 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl.c @@ -21,7 +21,7 @@ libc_hidden_proto(__libc_fcntl64) #endif #define __NR___syscall_fcntl __NR_fcntl -static inline +static __always_inline _syscall3(int, __syscall_fcntl, int, fd, int, cmd, long, arg) int __libc_fcntl(int fd, int cmd, ...) diff --git a/libc/sysdeps/linux/common/getcwd.c b/libc/sysdeps/linux/common/getcwd.c index f8fa3968b..ddeb483d6 100644 --- a/libc/sysdeps/linux/common/getcwd.c +++ b/libc/sysdeps/linux/common/getcwd.c @@ -30,7 +30,7 @@ libc_hidden_proto(stat) #ifdef __NR_getcwd # define __NR___syscall_getcwd __NR_getcwd -static inline +static __always_inline _syscall2(int, __syscall_getcwd, char *, buf, unsigned long, size) #else @@ -144,7 +144,7 @@ oops: return 0; } -static inline +static __always_inline int __syscall_getcwd(char * buf, unsigned long size) { int len; diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index 97c6d8b06..cff87e55c 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -39,7 +39,7 @@ struct kernel_dirent ssize_t __getdents (int fd, char *buf, size_t nbytes) attribute_hidden; #define __NR___syscall_getdents __NR_getdents -static inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count); +static __always_inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count); #ifdef __ASSUME_GETDENTS32_D_TYPE ssize_t __getdents (int fd, char *buf, size_t nbytes) diff --git a/libc/sysdeps/linux/common/getrlimit.c b/libc/sysdeps/linux/common/getrlimit.c index ec62b2e45..40b3c7368 100644 --- a/libc/sysdeps/linux/common/getrlimit.c +++ b/libc/sysdeps/linux/common/getrlimit.c @@ -21,7 +21,7 @@ libc_hidden_proto(getrlimit) /* just call ugetrlimit() */ # define __NR___syscall_ugetrlimit __NR_ugetrlimit -static inline +static __always_inline _syscall2(int, __syscall_ugetrlimit, enum __rlimit_resource, resource, struct rlimit *, rlim) int getrlimit(__rlimit_resource_t resource, struct rlimit *rlimits) @@ -39,7 +39,7 @@ _syscall2(int, getrlimit, __rlimit_resource_t, resource, /* we have to handle old style getrlimit() */ # define __NR___syscall_getrlimit __NR_getrlimit -static inline +static __always_inline _syscall2(int, __syscall_getrlimit, int, resource, struct rlimit *, rlim) int getrlimit(__rlimit_resource_t resource, struct rlimit *rlimits) diff --git a/libc/sysdeps/linux/common/ioctl.c b/libc/sysdeps/linux/common/ioctl.c index 4792409d4..51f83a372 100644 --- a/libc/sysdeps/linux/common/ioctl.c +++ b/libc/sysdeps/linux/common/ioctl.c @@ -14,7 +14,7 @@ libc_hidden_proto(ioctl) #define __NR___syscall_ioctl __NR_ioctl -static inline +static __always_inline _syscall3(int, __syscall_ioctl, int, fd, int, request, void *, arg) int ioctl(int fd, unsigned long int request, ...) diff --git a/libc/sysdeps/linux/common/ppoll.c b/libc/sysdeps/linux/common/ppoll.c index 8b12e612f..a203c0c55 100644 --- a/libc/sysdeps/linux/common/ppoll.c +++ b/libc/sysdeps/linux/common/ppoll.c @@ -25,7 +25,7 @@ libc_hidden_proto(ppoll) # define __NR___libc_ppoll __NR_ppoll -static inline +static __always_inline _syscall4(int, __libc_ppoll, struct pollfd *, fds, nfds_t, nfds, const struct timespec *, timeout, const __sigset_t *, sigmask) diff --git a/libc/sysdeps/linux/common/setrlimit.c b/libc/sysdeps/linux/common/setrlimit.c index 9a344a121..3811cd7d4 100644 --- a/libc/sysdeps/linux/common/setrlimit.c +++ b/libc/sysdeps/linux/common/setrlimit.c @@ -21,7 +21,7 @@ libc_hidden_proto(setrlimit) /* just call usetrlimit() */ # define __NR___syscall_usetrlimit __NR_usetrlimit -static inline +static __always_inline _syscall2(int, __syscall_usetrlimit, enum __rlimit_resource, resource, const struct rlimit *, rlim) int setrlimit(__rlimit_resource_t resource, struct rlimit *rlimits) @@ -39,7 +39,7 @@ _syscall2(int, setrlimit, __rlimit_resource_t, resource, /* we have to handle old style setrlimit() */ # define __NR___syscall_setrlimit __NR_setrlimit -static inline +static __always_inline _syscall2(int, __syscall_setrlimit, int, resource, const struct rlimit *, rlim) int setrlimit(__rlimit_resource_t resource, const struct rlimit *rlimits) diff --git a/libc/sysdeps/linux/common/sigprocmask.c b/libc/sysdeps/linux/common/sigprocmask.c index a9d59e602..7da17bc77 100644 --- a/libc/sysdeps/linux/common/sigprocmask.c +++ b/libc/sysdeps/linux/common/sigprocmask.c @@ -19,7 +19,7 @@ libc_hidden_proto(sigprocmask) #ifdef __NR_rt_sigprocmask # define __NR___rt_sigprocmask __NR_rt_sigprocmask -static inline +static __always_inline _syscall4(int, __rt_sigprocmask, int, how, const sigset_t *, set, sigset_t *, oldset, size_t, size) @@ -46,7 +46,7 @@ int sigprocmask(int how, const sigset_t * set, sigset_t * oldset) #else # define __NR___syscall_sigprocmask __NR_sigprocmask -static inline +static __always_inline _syscall3(int, __syscall_sigprocmask, int, how, const sigset_t *, set, sigset_t *, oldset) diff --git a/libc/sysdeps/linux/common/sysctl.c b/libc/sysdeps/linux/common/sysctl.c index 1ba23c9c9..11d53cd8e 100644 --- a/libc/sysdeps/linux/common/sysctl.c +++ b/libc/sysdeps/linux/common/sysctl.c @@ -24,7 +24,7 @@ struct __sysctl_args { unsigned long __unused[4]; }; -static inline +static __always_inline _syscall1(int, _sysctl, struct __sysctl_args *, args) int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, |