From 650364fa29479ad5926870f03083854cdcad3810 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 27 Jul 1999 05:10:43 +0000 Subject: [PATCH] Update. * sysdeps/unix/sysv/sysv4/setsid.c: Correct types. * sysdeps/generic/getpgrp.c: Likewise. * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise. * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise. Patch by John Tobey . --- ChangeLog | 6 ++++++ sysdeps/generic/getpgrp.c | 4 ++-- sysdeps/unix/sysv/sysv4/getpgid.c | 7 +++---- sysdeps/unix/sysv/sysv4/setpgid.c | 6 +++--- sysdeps/unix/sysv/sysv4/setsid.c | 6 +++--- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 622b0001d9d..a09a398bbde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 1999-07-26 Ulrich Drepper + * sysdeps/unix/sysv/sysv4/setsid.c: Correct types. + * sysdeps/generic/getpgrp.c: Likewise. + * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise. + * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise. + Patch by John Tobey . + * sysdeps/posix/wait3.c: Help compiling in presence of __transparent_union__. Reported by John Tobey . diff --git a/sysdeps/generic/getpgrp.c b/sysdeps/generic/getpgrp.c index 805fbfb8085..5b3b769cbe6 100644 --- a/sysdeps/generic/getpgrp.c +++ b/sysdeps/generic/getpgrp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,7 @@ #include /* Get the process group ID of the calling process. */ -int +pid_t getpgrp (void) { return __getpgid (0); diff --git a/sysdeps/unix/sysv/sysv4/getpgid.c b/sysdeps/unix/sysv/sysv4/getpgid.c index 3195e6cddd1..d2b27cb0606 100644 --- a/sysdeps/unix/sysv/sysv4/getpgid.c +++ b/sysdeps/unix/sysv/sysv4/getpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,14 +16,13 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include #include -extern int __pgrpsys __P ((int type, ...)); +extern pid_t __pgrpsys __P ((int type, ...)); /* Get the process group ID of process PID. */ -int +pid_t __getpgid (pid) pid_t pid; { diff --git a/sysdeps/unix/sysv/sysv4/setpgid.c b/sysdeps/unix/sysv/sysv4/setpgid.c index 46396322d2e..d9d3e8f306e 100644 --- a/sysdeps/unix/sysv/sysv4/setpgid.c +++ b/sysdeps/unix/sysv/sysv4/setpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,14 +19,14 @@ #include #include -extern int __pgrpsys __P ((int type, ...)); +extern int __pgrpsys __P ((pid_t type, ...)); /* Set the process group ID of the process matching PID to PGID. If PID is zero, the current process's process group ID is set. If PGID is zero, the process ID of the process is used. */ int __setpgid (pid, pgid) - int pid, pgid; /* XXX why not pid_t ? */ + pid_t pid, pgid; { return __pgrpsys (5, pid, pgid); } diff --git a/sysdeps/unix/sysv/sysv4/setsid.c b/sysdeps/unix/sysv/sysv4/setsid.c index 37998bfe031..638ab73889c 100644 --- a/sysdeps/unix/sysv/sysv4/setsid.c +++ b/sysdeps/unix/sysv/sysv4/setsid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,12 +19,12 @@ #include #include -extern int __pgrpsys __P ((int type, ...)); +extern pid_t __pgrpsys __P ((int type, ...)); /* Create a new session with the calling process as its leader. The process group IDs of the session and the calling process are set to the process ID of the calling process, which is returned. */ -int +pid_t __setsid () { return __pgrpsys (3); -- 2.47.2