From 4970e2473e45378ed803aeadf62c16d1f4a8d51b Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 30 Dec 2022 23:12:12 +0000 Subject: [PATCH] add history for getpid(2) and getppid(2) 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@ --- lib/libc/sys/getpid.2 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2 index 90f76fcd129..3207348d44c 100644 --- a/lib/libc/sys/getpid.2 +++ b/lib/libc/sys/getpid.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" .\" @(#)getpid.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: September 10 2015 $ +.Dd $Mdocdate: December 30 2022 $ .Dt GETPID 2 .Os .Sh NAME @@ -65,3 +65,12 @@ and .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 . -- 2.20.1