mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
This commit is contained in:
@ -21,6 +21,7 @@
|
|||||||
* sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
|
* sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
|
||||||
* sysdeps/generic/getpid.c: Likewise.
|
* sysdeps/generic/getpid.c: Likewise.
|
||||||
* sysdeps/unix/syscalls.list: Add __getpid_internal alias.
|
* sysdeps/unix/syscalls.list: Add __getpid_internal alias.
|
||||||
|
* posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
|
||||||
|
|
||||||
* include/unistd.h: Declare __getpgid_internal and define
|
* include/unistd.h: Declare __getpgid_internal and define
|
||||||
__getpgid macro if not NOT_IN_libc.
|
__getpgid macro if not NOT_IN_libc.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BSD-compatible versions of getpgrp function.
|
/* BSD-compatible versions of getpgrp function.
|
||||||
Copyright (C) 1991, 92, 94, 95, 96, 97, 2000 Free Software Foundation, Inc.
|
Copyright (C) 1991,92,94,95,96,97,2000,2002 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -22,10 +22,11 @@
|
|||||||
/* Don't include unistd.h because it declares a conflicting
|
/* Don't include unistd.h because it declares a conflicting
|
||||||
prototype for the POSIX.1 `getpgrp' function. */
|
prototype for the POSIX.1 `getpgrp' function. */
|
||||||
extern pid_t __getpgid (pid_t);
|
extern pid_t __getpgid (pid_t);
|
||||||
|
extern pid_t __getpgid_internal (pid_t);
|
||||||
extern pid_t __bsd_getpgrp (pid_t);
|
extern pid_t __bsd_getpgrp (pid_t);
|
||||||
|
|
||||||
pid_t
|
pid_t
|
||||||
__bsd_getpgrp (pid_t pid)
|
__bsd_getpgrp (pid_t pid)
|
||||||
{
|
{
|
||||||
return __getpgid (pid);
|
return INTUSE(__getpgid) (pid);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user