From: Andreas Schulz <ats@g386bsd.first.gmd.de>
authorNate Willams <nate@FreeBSD.org>
Thu, 5 Aug 1993 18:53:35 +0000 (18:53 +0000)
committerNate Willams <nate@FreeBSD.org>
Thu, 5 Aug 1993 18:53:35 +0000 (18:53 +0000)
1) getpgrp used inconsistently. The kernel module is changed to
the new POSIX getpgrp without a parameter. But sys/kern/init_sysent.c
and also sys/kern/syscalls.master lists it with one parameter, and the
man page under src/lib/libc/sys/getpgrp.2 is also the old one. The include
file src/include/unistd.h looks like the new definition.

(Brought in man page from NetBSD, which had been updated to reflect this
change)

lib/libc/sys/getpgrp.2

index fe04ee2..64a15de 100644 (file)
 .Nm getpgrp
 .Nd get process group
 .Sh SYNOPSIS
 .Nm getpgrp
 .Nd get process group
 .Sh SYNOPSIS
+.Fd #include <unistd.h>
 .Ft pid_t
 .Ft pid_t
-.Fn getpgrp "int pid"
+.Fn getpgrp "void"
 .Sh DESCRIPTION
 .Sh DESCRIPTION
-The process group of the specified process is returned by
+The process group of the current process is returned by
 .Fn getpgrp .
 .Fn getpgrp .
-If
-.Fa pid
-is zero, the call applies to the current process.
 .Pp
 Process groups are used for distribution of signals, and
 by terminals to arbitrate requests for their input: processes
 .Pp
 Process groups are used for distribution of signals, and
 by terminals to arbitrate requests for their input: processes
@@ -75,3 +73,16 @@ The
 .Nm
 function call appeared in
 .Bx 4.0 .
 .Nm
 function call appeared in
 .Bx 4.0 .
+.Sh STANDARDS
+The
+.Fn getpgrp
+function conforms to IEEE Std 1003.1-1988
+.Pq Dq Tn POSIX .
+.Sh COMPATABILITY
+This version of
+.Fn getpgrp
+differs from past Berkeley versions by not taking a
+.Fa "pid_t pid"
+argument.
+This incompatibility is required by
+.St -p1003.1-88 .