diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-08-21 04:26:01 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-08-21 04:26:01 +0000 |
commit | 4bdddc9cbfda2acc3da87f7565baca9307ab92f7 (patch) | |
tree | ddbbc7e72d72bf78d80f000163011d0c36a07aea /libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c | |
parent | c1a6053c890d37c25fce66ffc65a4ede77093ee0 (diff) | |
download | uClibc-alpine-4bdddc9cbfda2acc3da87f7565baca9307ab92f7.tar.bz2 uClibc-alpine-4bdddc9cbfda2acc3da87f7565baca9307ab92f7.tar.xz |
Finally check in all the changes I made for NPTL library proper.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c b/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c index e39f63229..9a4f51c9d 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c @@ -22,11 +22,11 @@ #include <sysdep.h> +extern __typeof(getpid) __getpid; #ifndef NOT_IN_libc -static inline __attribute__((always_inline)) pid_t really_getpid (pid_t oldval); +static __always_inline pid_t really_getpid (pid_t oldval); -static inline __attribute__((always_inline)) pid_t -really_getpid (pid_t oldval) +static __always_inline pid_t really_getpid (pid_t oldval) { if (__builtin_expect (oldval == 0, 1)) { @@ -46,8 +46,7 @@ really_getpid (pid_t oldval) } #endif -pid_t attribute_hidden -__getpid (void) +pid_t __getpid (void) { #ifdef NOT_IN_libc INTERNAL_SYSCALL_DECL (err); @@ -59,5 +58,6 @@ __getpid (void) #endif return result; } - -weak_alias (__getpid, getpid) +libc_hidden_proto(getpid) +weak_alias(__getpid, getpid) +libc_hidden_weak(getpid) |