Bug#196251: setpgrp() doesn't work as expected
Package: libc6-dev
Version: 2.3.1-17
Severity: normal
The Glibc docs say:
- Function: int setpgrp (pid_t PID, pid_t PGID)
This is the BSD Unix name for `setpgid'. Both functions do exactly
the same thing.
but that isn't true, see the following test case:
$ cat test.c
#include <sys/types.h>
#include <unistd.h>
main ()
{
setpgid (0, 0);
setpgrp (0, 0);
}
$ gcc test.c -o /dev/null
test.c: In function `main':
test.c:6: error: too many arguments to function `setpgrp'
I've found this when i hit the kludges in Xfree86 sources to workaround it,
in the style of:
#if defined(__linux__) || defined(__GNU__)
#define setpgrp setpgid
#endif
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aragorn 2.2.22 #1 dl nov 25 21:59:43 CET 2002 i686
Locale: LANG=ca_ES.ISO-8859-1, LC_CTYPE=ca_ES.ISO-8859-1
Versions of packages libc6-dev depends on:
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
-- no debconf information
Reply to: