From 4bdddc9cbfda2acc3da87f7565baca9307ab92f7 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Mon, 21 Aug 2006 04:26:01 +0000 Subject: Finally check in all the changes I made for NPTL library proper. --- libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c') 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 +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) -- cgit v1.2.3