From 8e0cd68ff4710c04229c8945feb145d1471e40fe Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 1 Dec 2017 22:48:20 +0000 Subject: [PATCH] Correct history for Unix 2nd Edition through 6th Edition for the system calls. Man pages are missing for v2 and v5, so any entries for those versions were inferred by new implementations of these functions in libc. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl --- lib/libc/gen/signal.3 | 6 +++++- lib/libc/sys/dup.2 | 8 +++++--- lib/libc/sys/getuid.2 | 2 +- lib/libc/sys/kill.2 | 10 +++++++--- lib/libc/sys/mknod.2 | 2 +- lib/libc/sys/pipe.2 | 2 +- lib/libc/sys/profil.2 | 4 ++-- lib/libc/sys/ptrace.2 | 4 ++-- lib/libc/sys/setuid.2 | 2 +- lib/libc/sys/sync.2 | 4 ++-- 10 files changed, 27 insertions(+), 17 deletions(-) diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3 index ad94868a6ad..4e32d8cb75e 100644 --- a/lib/libc/gen/signal.3 +++ b/lib/libc/gen/signal.3 @@ -28,7 +28,7 @@ .\" @(#)signal.3 8.3 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd June 7, 2004 +.Dd December 1, 2017 .Dt SIGNAL 3 .Os .Sh NAME @@ -263,6 +263,10 @@ or .Xr tty 4 .Sh HISTORY The +.Fn signal +function appeared in +.At v4 . +The current .Nm facility appeared in .Bx 4.0 . diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2 index ca5f4aa0026..a617ab0da9e 100644 --- a/lib/libc/sys/dup.2 +++ b/lib/libc/sys/dup.2 @@ -28,7 +28,7 @@ .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 1, 2013 +.Dd December 1, 2017 .Dt DUP 2 .Os .Sh NAME @@ -163,7 +163,9 @@ system calls are expected to conform to .Sh HISTORY The .Fn dup -and +function appeared in +.At v3 . +The .Fn dup2 -functions appeared in +function appeared in .At v7 . diff --git a/lib/libc/sys/getuid.2 b/lib/libc/sys/getuid.2 index a0d0e486569..c0b06db21af 100644 --- a/lib/libc/sys/getuid.2 +++ b/lib/libc/sys/getuid.2 @@ -88,4 +88,4 @@ function appeared in The .Fn geteuid function appeared in -.At v7 . +.At v4 . diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2 index d5e55ca51ea..c840cb81961 100644 --- a/lib/libc/sys/kill.2 +++ b/lib/libc/sys/kill.2 @@ -28,7 +28,7 @@ .\" @(#)kill.2 8.3 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd March 15, 2012 +.Dd December 1, 2017 .Dt KILL 2 .Os .Sh NAME @@ -150,7 +150,11 @@ The system call is expected to conform to .St -p1003.1-90 . .Sh HISTORY -The +A version of the .Fn kill function appeared in -.At v7 . +.At v3 . +The signal number was added to the +.Fn kill +function in +.At v4 . diff --git a/lib/libc/sys/mknod.2 b/lib/libc/sys/mknod.2 index fe26f8103d4..a673b816ae6 100644 --- a/lib/libc/sys/mknod.2 +++ b/lib/libc/sys/mknod.2 @@ -175,7 +175,7 @@ system call follows The Open Group Extended API Set 2 specification. The .Fn mknod function appeared in -.At v6 . +.At v4 . The .Fn mknodat system call appeared in diff --git a/lib/libc/sys/pipe.2 b/lib/libc/sys/pipe.2 index b55c54d9634..0bfb8cf4ffb 100644 --- a/lib/libc/sys/pipe.2 +++ b/lib/libc/sys/pipe.2 @@ -28,7 +28,7 @@ .\" @(#)pipe.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd July 20, 2016 +.Dd December 1, 2017 .Dt PIPE 2 .Os .Sh NAME diff --git a/lib/libc/sys/profil.2 b/lib/libc/sys/profil.2 index b5c7ed4f2c7..cdaa32a7f93 100644 --- a/lib/libc/sys/profil.2 +++ b/lib/libc/sys/profil.2 @@ -31,7 +31,7 @@ .\" @(#)profil.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd December 1, 2017 .Dt PROFIL 2 .Os .Sh NAME @@ -109,7 +109,7 @@ contains an invalid address. The .Fn profil function appeared in -.At v7 . +.At v6 . .Sh BUGS This routine should be named .Fn profile . diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index d1dac69e641..ed3d649253f 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -2,7 +2,7 @@ .\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $ .\" .\" This file is in the public domain. -.Dd September 14, 2017 +.Dd December 1, 2017 .Dt PTRACE 2 .Os .Sh NAME @@ -1105,4 +1105,4 @@ holds the minimum buffer size required on return. The .Fn ptrace function appeared in -.At v7 . +.At v6 . diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2 index 40e9719bfc6..691bc24976b 100644 --- a/lib/libc/sys/setuid.2 +++ b/lib/libc/sys/setuid.2 @@ -158,7 +158,7 @@ function appeared in The .Fn setgid function appeared in -.At v7 . +.At v4 . .Sh SECURITY CONSIDERATIONS Read and write permissions to files are determined upon a call to .Xr open 2 . diff --git a/lib/libc/sys/sync.2 b/lib/libc/sys/sync.2 index 068f77a634b..9e806c3ef9e 100644 --- a/lib/libc/sys/sync.2 +++ b/lib/libc/sys/sync.2 @@ -28,7 +28,7 @@ .\" @(#)sync.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd December 1, 2017 .Dt SYNC 2 .Os .Sh NAME @@ -69,7 +69,7 @@ attributes. The .Fn sync function appeared in -.At v6 . +.At v3 . .Sh BUGS The .Fn sync