libc: Add HISTORY sections to the manual pages

There are some sections which could be improved
and work to do so is on going. The work will be
covered via 'X-MFC-WITH' commits.

Obtained from:	OpenBSD
MFC after:	1 month
Differential Revision: https://reviews.freebsd.org/D34759
This commit is contained in:
Gordon Bergling 2022-05-05 18:46:32 +02:00
parent 4ac4b12699
commit 4b7f35db44
31 changed files with 263 additions and 35 deletions

View File

@ -28,7 +28,7 @@
.\" @(#)sigvec.2 8.2 (Berkeley) 4/19/94 .\" @(#)sigvec.2 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd April 19, 1994 .Dd April 2, 2022
.Dt SIGVEC 2 .Dt SIGVEC 2
.Os .Os
.Sh NAME .Sh NAME
@ -338,5 +338,14 @@ or
.Xr signal 3 , .Xr signal 3 ,
.Xr sigsetops 3 , .Xr sigsetops 3 ,
.Xr tty 4 .Xr tty 4
.Sh HISTORY
A
.Fn sigvec
system call first appeared in
.Bx 4.2 .
It was reimplemented as a wrapper around
.Xr sigaction 2
in
.Bx 4.3 Reno .
.Sh BUGS .Sh BUGS
This manual page is still confusing. This manual page is still confusing.

View File

@ -15,7 +15,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd May 30, 2016 .Dd April 2, 2022
.Dt DBM 3 .Dt DBM 3
.Os .Os
.Sh NAME .Sh NAME
@ -224,3 +224,14 @@ These functions (except
.Fn dbm_dirfno ) .Fn dbm_dirfno )
are included in the are included in the
.St -susv2 . .St -susv2 .
.Sh HISTORY
The functions
.Fn dbminit ,
.Fn fetch ,
.Fn store ,
.Fn delete ,
.Fn firstkey ,
and
.Fn nextkey
first appeared in
.At v7 .

View File

@ -28,7 +28,7 @@
.\" @(#)alarm.3 8.2 (Berkeley) 4/19/94 .\" @(#)alarm.3 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd April 19, 1994 .Dd April 2, 2022
.Dt ALARM 3 .Dt ALARM 3
.Os .Os
.Sh NAME .Sh NAME
@ -89,5 +89,11 @@ If no alarm is currently set, the return value is 0.
.Sh HISTORY .Sh HISTORY
An An
.Fn alarm .Fn alarm
function appeared in system call appeared in the Programmer's Workbench (PWB/UNIX)
and was ported to
.At v7 . .At v7 .
For
.Bx 4.1c ,
it was reimplemented as a wrapper around the
.Xr setitimer 2
system call.

View File

@ -30,7 +30,7 @@
.\" @(#)fnmatch.3 8.3 (Berkeley) 4/28/95 .\" @(#)fnmatch.3 8.3 (Berkeley) 4/28/95
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 18, 2004 .Dd April 2, 2022
.Dt FNMATCH 3 .Dt FNMATCH 3
.Os .Os
.Sh NAME .Sh NAME
@ -139,6 +139,10 @@ conform to
Collating symbol expressions, equivalence class expressions and Collating symbol expressions, equivalence class expressions and
character class expressions are not supported. character class expressions are not supported.
.Sh HISTORY .Sh HISTORY
A predecessor to
.Fn fnmatch ,
.Fn gmatch ,
first appeared in the Programmer's Workbench (PWB/UNIX).
The The
.Fn fnmatch .Fn fnmatch
function first appeared in function first appeared in

View File

@ -28,7 +28,7 @@
.\" @(#)pause.3 8.1 (Berkeley) 6/4/93 .\" @(#)pause.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 4, 1993 .Dd April 3, 2022
.Dt PAUSE 3 .Dt PAUSE 3
.Os .Os
.Sh NAME .Sh NAME
@ -77,6 +77,18 @@ The call was interrupted.
.Sh HISTORY .Sh HISTORY
A A
.Fn pause .Fn pause
syscall system call first appeared in the Programmer's Workbench (PWB/UNIX)
appeared in and was then ported to
.At v6 . .At v7 .
It was reimplemeted as a wrapper around the
.Fn sigpause
and
.Fn sigblock
system calls in
.Bx 4.2 ,
and around the
.Xr sigsuspend 2
and
.Xr sigprocmask 2
system calls in
.Bx 4.3 Reno .

View File

@ -32,7 +32,7 @@
.\" @(#)setjmp.3 8.1 (Berkeley) 6/4/93 .\" @(#)setjmp.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 4, 1993 .Dd April 2, 2022
.Dt SETJMP 3 .Dt SETJMP 3
.Os .Os
.Sh NAME .Sh NAME
@ -170,3 +170,9 @@ and
.Fn siglongjmp .Fn siglongjmp
functions conform to functions conform to
.St -p1003.1-88 . .St -p1003.1-88 .
.Sh HISTORY
The
.Fn setjmp
and
.Fn longjmp
functions first appeared in the Programmer's Workbench (PWB/UNIX).

View File

@ -28,7 +28,7 @@
.\" @(#)ctype.3 8.1 (Berkeley) 6/4/93 .\" @(#)ctype.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd March 30, 2004 .Dd April 3, 2022
.Dt CTYPE 3 .Dt CTYPE 3
.Os .Os
.Sh NAME .Sh NAME
@ -149,3 +149,18 @@ and
.Fn toascii , .Fn toascii ,
conform to conform to
.St -isoC . .St -isoC .
.Sh HISTORY
The functions
.Fn isalpha ,
.Fn isupper ,
.Fn islower ,
.Fn isdigit ,
.Fn isalnum ,
.Fn isspace ,
.Fn ispunct ,
.Fn isprint ,
.Fn iscntrl ,
and
.Fn isascii
first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)isalnum.3 8.1 (Berkeley) 6/4/93 .\" @(#)isalnum.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 17, 2005 .Dd April 2, 2022
.Dt ISALNUM 3 .Dt ISALNUM 3
.Os .Os
.Sh NAME .Sh NAME
@ -113,3 +113,8 @@ The
.Fn isalnum_l .Fn isalnum_l
function conforms to function conforms to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The
.Fn isalnum
function first appeared in
.At v7 .

View File

@ -28,7 +28,7 @@
.\" @(#)isascii.3 8.2 (Berkeley) 12/11/93 .\" @(#)isascii.3 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 6, 2002 .Dd April 2, 2022
.Dt ISASCII 3 .Dt ISASCII 3
.Os .Os
.Sh NAME .Sh NAME
@ -51,3 +51,8 @@ between 0 and octal 0177 inclusive.
.Xr ctype 3 , .Xr ctype 3 ,
.Xr iswascii 3 , .Xr iswascii 3 ,
.Xr ascii 7 .Xr ascii 7
.Sh HISTORY
The
.Fn isascii
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)iscntrl.3 8.1 (Berkeley) 6/4/93 .\" @(#)iscntrl.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 17, 2005 .Dd April 2, 2022
.Dt ISCNTRL 3 .Dt ISCNTRL 3
.Os .Os
.Sh NAME .Sh NAME
@ -101,3 +101,8 @@ The
.Fn iscntrl_l .Fn iscntrl_l
function conforms to function conforms to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The
.Fn iscntrl
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)islower.3 8.1 (Berkeley) 6/4/93 .\" @(#)islower.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 30, 2012 .Dd April 2, 2022
.Dt ISLOWER 3 .Dt ISLOWER 3
.Os .Os
.Sh NAME .Sh NAME
@ -101,3 +101,8 @@ The
.Fn islower_l .Fn islower_l
function conforms to function conforms to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The
.Fn islower
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)isprint.3 8.1 (Berkeley) 6/4/93 .\" @(#)isprint.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 17, 2005 .Dd April 2, 2022
.Dt ISPRINT 3 .Dt ISPRINT 3
.Os .Os
.Sh NAME .Sh NAME
@ -101,3 +101,8 @@ The
.Fn isprint .Fn isprint
function conforms to function conforms to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn isprint
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)ispunct.3 8.1 (Berkeley) 6/4/93 .\" @(#)ispunct.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 30, 2012 .Dd April 2, 2022
.Dt ISPUNCT 3 .Dt ISPUNCT 3
.Os .Os
.Sh NAME .Sh NAME
@ -107,3 +107,8 @@ The
.Fn ispunct_l .Fn ispunct_l
function conforms to function conforms to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The
.Fn ispunct
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)isspace.3 8.1 (Berkeley) 6/4/93 .\" @(#)isspace.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 30, 2012 .Dd April 2, 2022
.Dt ISSPACE 3 .Dt ISSPACE 3
.Os .Os
.Sh NAME .Sh NAME
@ -99,3 +99,8 @@ The
.Fn isspace_l .Fn isspace_l
function conforms to function conforms to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The
.Fn isspace
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)isupper.3 8.1 (Berkeley) 6/4/93 .\" @(#)isupper.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 17, 2005 .Dd April 2, 2022
.Dt ISUPPER 3 .Dt ISUPPER 3
.Os .Os
.Sh NAME .Sh NAME
@ -88,3 +88,8 @@ The
.Fn isupper .Fn isupper
function conforms to function conforms to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn isupper
function first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)ferror.3 8.2 (Berkeley) 4/19/94 .\" @(#)ferror.3 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd January 28, 2009 .Dd April 2, 2022
.Dt FERROR 3 .Dt FERROR 3
.Os .Os
.Sh NAME .Sh NAME
@ -129,3 +129,12 @@ and
.Fn ferror .Fn ferror
conform to conform to
.St -isoC . .St -isoC .
.Sh HISTORY
The functions
.Fn clearerr ,
.Fn feof ,
.Fn ferror ,
and
.Fn fileno
first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)fgets.3 8.1 (Berkeley) 6/4/93 .\" @(#)fgets.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd September 1, 2019 .Dd April 2, 2022
.Dt FGETS 3 .Dt FGETS 3
.Os .Os
.Sh NAME .Sh NAME
@ -147,3 +147,10 @@ K.3.7.4.1.
.Fn gets .Fn gets
has been removed from has been removed from
.St -isoC-2011 . .St -isoC-2011 .
.Sh HISTORY
The functions
.Fn fgets
and
.Fn gets
first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)fread.3 8.2 (Berkeley) 3/8/94 .\" @(#)fread.3 8.2 (Berkeley) 3/8/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd January 23, 2020 .Dd April 2, 2022
.Dt FREAD 3 .Dt FREAD 3
.Os .Os
.Sh NAME .Sh NAME
@ -124,3 +124,10 @@ and
.Fn fwrite .Fn fwrite
conform to conform to
.St -isoC . .St -isoC .
.Sh HISTORY
The functions
.Fn fread
and
.Fn fwrite
first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)fseek.3 8.1 (Berkeley) 6/4/93 .\" @(#)fseek.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd March 19, 2004 .Dd April 2, 2022
.Dt FSEEK 3 .Dt FSEEK 3
.Os .Os
.Sh NAME .Sh NAME
@ -267,3 +267,11 @@ and
.Fn ftello .Fn ftello
functions conform to functions conform to
.St -p1003.1-2001 . .St -p1003.1-2001 .
.Sh HISTORY
The functions
.Fn fseek ,
.Fn ftell ,
and
.Fn rewind
first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)scanf.3 8.2 (Berkeley) 12/11/93 .\" @(#)scanf.3 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd January 4, 2003 .Dd April 2, 2022
.Dt SCANF 3 .Dt SCANF 3
.Os .Os
.Sh NAME .Sh NAME
@ -474,6 +474,21 @@ and
.Fn vsscanf .Fn vsscanf
conform to conform to
.St -isoC-99 . .St -isoC-99 .
.Sh HISTORY
The functions
.Fn scanf ,
.Fn fscanf ,
and
.Fn sscanf
first appeared in
.At v7 ,
and
.Fn vscanf ,
.Fn vsscanf ,
and
.Fn vfscanf
in
.Bx 4.3 Reno .
.Sh BUGS .Sh BUGS
Earlier implementations of Earlier implementations of
.Nm .Nm

View File

@ -32,7 +32,7 @@
.\" @(#)abs.3 8.1 (Berkeley) 6/4/93 .\" @(#)abs.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd November 14, 2001 .Dd April 3, 2022
.Dt ABS 3 .Dt ABS 3
.Os .Os
.Sh NAME .Sh NAME
@ -71,5 +71,10 @@ The
.Fn abs .Fn abs
function conforms to function conforms to
.St -isoC-99 . .St -isoC-99 .
.Sh HISTORY
The
.Fn abs
function first appeared in
.At v6 .
.Sh BUGS .Sh BUGS
The absolute value of the most negative integer remains negative. The absolute value of the most negative integer remains negative.

View File

@ -32,7 +32,7 @@
.\" @(#)ldiv.3 8.1 (Berkeley) 6/4/93 .\" @(#)ldiv.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd November 14, 2001 .Dd April 3, 2022
.Dt LDIV 3 .Dt LDIV 3
.Os .Os
.Sh NAME .Sh NAME
@ -69,3 +69,9 @@ The
function function
conforms to conforms to
.St -isoC-99 . .St -isoC-99 .
.Sh HISTORY
An
.Fn ldiv
function with similar functionality, but a different calling convention,
first appeared in
.At v4 .

View File

@ -32,7 +32,7 @@
.\" @(#)strcat.3 8.1 (Berkeley) 6/4/93 .\" @(#)strcat.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd December 1, 2009 .Dd April 3, 2022
.Dt STRCAT 3 .Dt STRCAT 3
.Os .Os
.Sh NAME .Sh NAME
@ -107,6 +107,15 @@ and
functions functions
conform to conform to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn strcat
function first appeared in the Programmer's Workbench (PWB/UNIX)
and was ported to
.At v7 ;
.Fn strncat
first appeared in
.At v7 .
.Sh SECURITY CONSIDERATIONS .Sh SECURITY CONSIDERATIONS
The The
.Fn strcat .Fn strcat

View File

@ -32,7 +32,7 @@
.\" @(#)strcmp.3 8.1 (Berkeley) 6/4/93 .\" @(#)strcmp.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 11, 2001 .Dd April 3, 2022
.Dt STRCMP 3 .Dt STRCMP 3
.Os .Os
.Sh NAME .Sh NAME
@ -99,3 +99,12 @@ and
functions functions
conform to conform to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn strcmp
function first appeared in the Programmer's Workbench (PWB/UNIX)
and was ported to
.At v7 ;
.Fn strncmp
first appeared in
.At v7 .

View File

@ -32,7 +32,7 @@
.\" @(#)strlen.3 8.1 (Berkeley) 6/4/93 .\" @(#)strlen.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd February 28, 2009 .Dd April 3, 2022
.Dt STRLEN 3 .Dt STRLEN 3
.Os .Os
.Sh NAME .Sh NAME
@ -91,3 +91,11 @@ The
.Fn strnlen .Fn strnlen
function conforms to function conforms to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The
.Fn strlen
function first appeared in the Programmer's Workbench (PWB/UNIX)
and was ported to
.At v7 .
The
.Fn strnlen

View File

@ -30,7 +30,7 @@
.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93 .\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 7, 2021 .Dd April 3, 2022
.Dt NANOSLEEP 2 .Dt NANOSLEEP 2
.Os .Os
.Sh NAME .Sh NAME
@ -203,3 +203,20 @@ argument was valid but not supported by this implementation of
.Sh STANDARDS .Sh STANDARDS
These functions conform to These functions conform to
.St -p1003.1-2008 . .St -p1003.1-2008 .
.Sh HISTORY
The predecessor of this system call,
.Fn sleep ,
appeared in
.At v3 ,
but was removed when
.Xr alarm 3
was introduced into
.At v7 .
The
.Fn nanosleep
system call has been available since
.Nx 1.3
and was ported to
.Ox 2.1
and
.Fx 3.0 .

View File

@ -28,7 +28,7 @@
.\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91 .\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 17, 2013 .Dd April 3, 2022
.Dt COSH 3 .Dt COSH 3
.Os .Os
.Sh NAME .Sh NAME
@ -71,3 +71,8 @@ The
.Fn cosh .Fn cosh
function conforms to function conforms to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn cosh
function first appeared in
.At v7 .

View File

@ -28,7 +28,7 @@
.\" from: @(#)floor.3 6.5 (Berkeley) 4/19/91 .\" from: @(#)floor.3 6.5 (Berkeley) 4/19/91
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd January 13, 2005 .Dd April 3, 2022
.Dt FLOOR 3 .Dt FLOOR 3
.Os .Os
.Sh NAME .Sh NAME
@ -76,3 +76,8 @@ and
.Fn floorl .Fn floorl
functions conform to functions conform to
.St -isoC-99 . .St -isoC-99 .
.Sh HISTORY
A
.Fn floor
function first appeared in
.At v5 .

View File

@ -28,7 +28,7 @@
.\" from: @(#)fmod.3 5.1 (Berkeley) 5/2/91 .\" from: @(#)fmod.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 19, 2008 .Dd April 3, 2022
.Dt FMOD 3 .Dt FMOD 3
.Os .Os
.Sh NAME .Sh NAME
@ -85,3 +85,8 @@ and
.Fn fmodl .Fn fmodl
functions conform to functions conform to
.St -isoC-99 . .St -isoC-99 .
.Sh HISTORY
An
.Fn fmod
function first appeared in
.At v5 .

View File

@ -28,7 +28,7 @@
.\" from: @(#)sinh.3 6.6 (Berkeley) 4/19/91 .\" from: @(#)sinh.3 6.6 (Berkeley) 4/19/91
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 17, 2013 .Dd April 3, 2022
.Dt SINH 3 .Dt SINH 3
.Os .Os
.Sh NAME .Sh NAME
@ -71,3 +71,8 @@ The
.Fn sinh .Fn sinh
function conforms to function conforms to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn sinh
function first appeared in
.At v7 .

View File

@ -28,7 +28,7 @@
.\" from: @(#)tanh.3 5.1 (Berkeley) 5/2/91 .\" from: @(#)tanh.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 17, 2013 .Dd April 3, 2022
.Dt TANH 3 .Dt TANH 3
.Os .Os
.Sh NAME .Sh NAME
@ -80,3 +80,8 @@ The
.Fn tanh .Fn tanh
function conforms to function conforms to
.St -isoC . .St -isoC .
.Sh HISTORY
The
.Fn tanh
function first appeared in
.At v7 .