man: Update STANDARDS and HISTORY sections

Include BSD versions when functions were introduced. Add mention
whether these are BSD extensions.
This commit is contained in:
Guillem Jover 2023-02-20 00:11:10 +01:00
parent 7b4ebd6521
commit 59a21c7fb8
15 changed files with 81 additions and 14 deletions

View File

@ -135,6 +135,12 @@ These functions first appeared in
.Nx 1.6 , .Nx 1.6 ,
and and
.Dx 1.0 . .Dx 1.0 .
The functions
.Fn arc4random ,
.Fn arc4random_buf
and
.Fn arc4random_uniform
appeared in glibc 2.36.
.Pp .Pp
The original version of this random number generator used the The original version of this random number generator used the
RC4 (also known as ARC4) algorithm. RC4 (also known as ARC4) algorithm.

View File

@ -51,8 +51,17 @@ from the per-process object reference table.
Any errors encountered while closing file descriptors are ignored. Any errors encountered while closing file descriptors are ignored.
.Sh SEE ALSO .Sh SEE ALSO
.Xr close 2 .Xr close 2
.Sh STANDARDS
.Fn closefrom
is a
.Bx
and Solaris extension.
.Sh HISTORY .Sh HISTORY
The The
.Fn closefrom .Fn closefrom
function first appeared in function first appeared in Solaris 9,
.Fx 8.0 . .Ox 3.5 ,
.Dx 1.2 ,
.Nx 3 ,
.Fx 8.0
and glibc 2.26.

View File

@ -150,4 +150,6 @@ if it runs out of memory.
The The
.Fn fparseln .Fn fparseln
function first appeared in function first appeared in
.Nx 1.4 . .Nx 1.4
and
.Fx 4.0 .

View File

@ -139,4 +139,7 @@ or the kernel returned invalid data.
The The
.Fn getpeereid .Fn getpeereid
function appeared in function appeared in
.Fx 4.6 . .Fx 4.6 ,
.Nx 5.0
and
.Ox 3.0 .

View File

@ -166,7 +166,9 @@ represented a number that does not fit in
.Sh HISTORY .Sh HISTORY
.Fn humanize_number .Fn humanize_number
first appeared in first appeared in
.Nx 2.0 . .Nx 2.0
and
.Fx 5.3 .
.Pp .Pp
.Fn dehumanize_number .Fn dehumanize_number
first appeared in first appeared in

View File

@ -292,6 +292,20 @@ Probably called not from the process which used
.Xr open 2 , .Xr open 2 ,
.Xr daemon 3 , .Xr daemon 3 ,
.Xr flopen 3bsd .Xr flopen 3bsd
.Sh HISTORY
The functions
.Fn pidfile_open ,
.Fn pidfile_write ,
.Fn pidfile_close
and
.Fn pidfile_remove
first appeared in
.Fx 5.5 .
.Pp
The function
.Fn pidfile_fileno
first appeared in
.Fx 10.0 .
.Sh AUTHORS .Sh AUTHORS
.An -nosplit .An -nosplit
The The

View File

@ -137,7 +137,7 @@ The
.Fn uid_from_user .Fn uid_from_user
and and
.Fn gid_from_group .Fn gid_from_group
functions were ported from functions first appeared in
.Nx .Nx 1.4
and first appeared in and
.Ox 6.4 . .Ox 6.4 .

View File

@ -165,10 +165,12 @@ will reprint the prompt and the user may then enter a passphrase.
The The
.Fn readpassphrase .Fn readpassphrase
function is an function is an
.Ox .Bx
extension and should not be used if portability is desired. extension and should not be used if portability is desired.
.Sh HISTORY .Sh HISTORY
The The
.Fn readpassphrase .Fn readpassphrase
function first appeared in function first appeared in
.Ox 2.9 . .Ox 2.9
and
.Fx 4.6 .

View File

@ -283,12 +283,18 @@ The
.Fn reallocarray .Fn reallocarray
function appeared in function appeared in
.Ox 5.6 , .Ox 5.6 ,
.Dx 5.5
and glibc 2.26. and glibc 2.26.
.Pp
The The
.Fn recallocarray .Fn recallocarray
function appeared in function appeared in
.Ox 6.1 . .Ox 6.1
and
.Dx 5.5 .
The The
.Fn freezero .Fn freezero
function appeared in function appeared in
.Ox 6.2 . .Ox 6.2
and
.Dx 5.5 .

View File

@ -112,6 +112,8 @@ The
.Fn setproctitle .Fn setproctitle
function function
first appeared in first appeared in
.Nx 1.0
and
.Fx 2.2 . .Fx 2.2 .
Other operating systems have Other operating systems have
similar functions. similar functions.

View File

@ -192,4 +192,6 @@ and
functions first appeared in functions first appeared in
.Ox 2.4 , .Ox 2.4 ,
and made their appearance in and made their appearance in
.Nx 1.4.3
and
.Fx 3.3 . .Fx 3.3 .

View File

@ -112,3 +112,8 @@ ptr = strnstr(largestring, smallstring, 4);
.Xr strspn 3 , .Xr strspn 3 ,
.Xr strtok 3 , .Xr strtok 3 ,
.Xr wcsstr 3 .Xr wcsstr 3
.Sh HISTORY
The
.Fn strnstr
function originated in
.Fx .

View File

@ -141,8 +141,8 @@ The string did not consist solely of digit characters.
.Xr strtoull 3 .Xr strtoull 3
.Sh STANDARDS .Sh STANDARDS
.Fn strtonum .Fn strtonum
is an is a
.Ox .Bx
extension. extension.
.Sh HISTORY .Sh HISTORY
.ds doc-operating-system-NetBSD-8.0 8.0 .ds doc-operating-system-NetBSD-8.0 8.0

View File

@ -562,6 +562,9 @@ main(void)
.Ed .Ed
.Sh SEE ALSO .Sh SEE ALSO
.Xr queue 3bsd .Xr queue 3bsd
.Sh HISTORY
The tree macros first appeared in
.Fx 4.6 .
.Sh NOTES .Sh NOTES
Trying to free a tree in the following way is a common error: Trying to free a tree in the following way is a common error:
.Bd -literal -offset indent .Bd -literal -offset indent

View File

@ -69,3 +69,14 @@ counterpart, such as
and and
.Fn wcslcpy , .Fn wcslcpy ,
which are BSD extensions. which are BSD extensions.
.Sh HISTORY
The
.Fn wcslcpy
and
.Fn wcslcat
functions first appeared in
.Ox 3.8 ,
.Nx 1.6 ,
.Fx 5.0
and
.Dx 2.1.1 .