@deftypefn {POSIX.1 Function} pid_t getpgrp ()
The POSIX.1 definition of @code{getpgrp} returns the process group ID of
the calling process.
-@end deftypefun
+@end deftypefn
@comment unistd.h
@comment BSD
The BSD definition of @code{getpgrp} returns the process group ID of the
process @var{pid}. You can supply a value of @code{0} for the @var{pid}
argument to get information about the calling process.
-@end deftypefun
+@end deftypefn
@comment unistd.h
@comment POSIX.1