]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 27 Jul 1999 05:10:43 +0000 (05:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 27 Jul 1999 05:10:43 +0000 (05:10 +0000)
* 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 <jtobey@banta-im.com>.

ChangeLog
sysdeps/generic/getpgrp.c
sysdeps/unix/sysv/sysv4/getpgid.c
sysdeps/unix/sysv/sysv4/setpgid.c
sysdeps/unix/sysv/sysv4/setsid.c

index 622b0001d9d46488a875d922321fbb28c77a1497..a09a398bbdeaaf2e9ceea8e2e42852a00a72736e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1999-07-26  Ulrich Drepper  <drepper@cygnus.com>
 
+       * 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 <jtobey@banta-im.com>.
+
        * sysdeps/posix/wait3.c: Help compiling in presence of
        __transparent_union__.  Reported by John Tobey <jtobey@banta-im.com>.
 
index 805fbfb8085c0aa3a4e2d7d2a3fcdf86c9359d74..5b3b769cbe6d4e2b476d4e5ab9123f07476c2a24 100644 (file)
@@ -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 <unistd.h>
 
 /* Get the process group ID of the calling process.  */
-int
+pid_t
 getpgrp (void)
 {
   return __getpgid (0);
index 3195e6cddd15818d1f7bba725d5add569016332c..d2b27cb0606460c60cda3bf8872a5950a0bc8b30 100644 (file)
@@ -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
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#include <errno.h>
 #include <unistd.h>
 #include <sys/types.h>
 
-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;
 {
index 46396322d2e151156c8c6ba98bed46d443c760e3..d9d3e8f306ebca1c4a708a19683a2ca3a9f10040 100644 (file)
@@ -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
 #include <errno.h>
 #include <unistd.h>
 
-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);
 }
index 37998bfe031e2ca7d90bb8ec97b1de2086b92979..638ab73889c4cab9bb4f4db37f4bada1774741e2 100644 (file)
@@ -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
 #include <errno.h>
 #include <unistd.h>
 
-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);