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)
.Nm getpgrp
.Nd get process group
.Sh SYNOPSIS
.Nm getpgrp
.Nd get process group
.Sh SYNOPSIS
-The process group of the specified process is returned by
+The process group of the current process is returned by
-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
.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 .