summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-12-22 10:47:04 +0000
committerEric Andersen <andersen@codepoet.org>2003-12-22 10:47:04 +0000
commit5fb172f624a5e14001fa5dfc71cb8b0d14b23149 (patch)
treeb5888257393edf4c4679cc450b97075f908f9ea6 /libc/sysdeps/linux/common/syscalls.c
parentda7d891f230b4e5490850734a81161f7b06064b9 (diff)
In unistd.h, getpgrp() is redirected to __getpgid(), but
we did not have a __getpgid(). Fix that.
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 242864c13..3c08a853a 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1477,12 +1477,14 @@ _syscall4(int, quotactl, int, cmd, const char *, special , int, id, caddr_t, add
//#define __NR_getpgid 132
#ifdef L___syscall_getpgid
#define __NR___syscall_getpgid __NR_getpgid
+#define __FAVOR_BSD
static inline
_syscall1(__kernel_pid_t, __syscall_getpgid, __kernel_pid_t, pid);
-pid_t getpgid(pid_t pid)
+pid_t __getpgid(pid_t pid)
{
return(__syscall_getpgid(pid));
}
+weak_alias(__getpgid, getpgid);
#endif
//#define __NR_fchdir 133