summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/getpid.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 04:24:56 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 04:24:56 +0000
commitd23db60e59260308a17ed65907f55d631c8d03c5 (patch)
tree7c830d0de954ca6f92e96eaf08b262fdc352f8ce /libc/sysdeps/linux/common/getpid.c
parent821e7539de6922c96e2a4fc5baa11fdc335072c9 (diff)
downloaduClibc-alpine-d23db60e59260308a17ed65907f55d631c8d03c5.tar.bz2
uClibc-alpine-d23db60e59260308a17ed65907f55d631c8d03c5.tar.xz
Finish up merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/common/getpid.c')
-rw-r--r--libc/sysdeps/linux/common/getpid.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/getpid.c b/libc/sysdeps/linux/common/getpid.c
index a4e07d97c..6a6a9e129 100644
--- a/libc/sysdeps/linux/common/getpid.c
+++ b/libc/sysdeps/linux/common/getpid.c
@@ -11,9 +11,10 @@
#include <unistd.h>
#if defined (__alpha__)
-#define __NR_getpid __NR_getxpid
+#define __NR___getpid __NR_getxpid
#endif
-#define __NR___libc_getpid __NR_getpid
-_syscall0(pid_t, __libc_getpid);
-weak_alias(__libc_getpid, getpid);
-weak_alias(__libc_getpid, __getpid);
+#define __NR___getpid __NR_getpid
+attribute_hidden _syscall0(pid_t, __getpid);
+strong_alias(__getpid, getpid)
+/* not used in libpthread */
+/* weak_alias(__getpid, __libc_getpid) */