getpid() appeared (undocumented) in v5. Between v6 and v7 there is an
extra return value for the parent process ID.
getppid() did not appear in v7, it appeared in 32v libc. But getppid()
predates 32v. It seems to have been in earlier USG releases such as
Generic 3 (PG-1C300 Issue 3) as the MERT Release 0 manual references it.
getppid() didn't become a system call until 4.3BSD-Reno
omit most of these details and just mention v5 and 32v
with and ok schwarze@
-.\" $OpenBSD: getpid.2,v 1.13 2015/09/10 17:55:21 schwarze Exp $
+.\" $OpenBSD: getpid.2,v 1.14 2022/12/30 23:12:12 jsg Exp $
.\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\"
.\" @(#)getpid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 10 2015 $
+.Dd $Mdocdate: December 30 2022 $
.Dt GETPID 2
.Os
.Sh NAME
.Fn getppid
conform to
.St -p1003.1-2008 .
+.Sh HISTORY
+The
+.Fn getpid
+system call first appeared in
+.At v5 .
+The
+.Fn getppid
+function appeared in
+.At 32v .