]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
man: Update STANDARDS and HISTORY sections
authorGuillem Jover <guillem@hadrons.org>
Sun, 19 Feb 2023 23:11:10 +0000 (00:11 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sun, 19 Feb 2023 23:29:01 +0000 (00:29 +0100)
Include BSD versions when functions were introduced. Add mention
whether these are BSD extensions.

15 files changed:
man/arc4random.3bsd
man/closefrom.3bsd
man/fparseln.3bsd
man/getpeereid.3bsd
man/humanize_number.3bsd
man/pidfile.3bsd
man/pwcache.3bsd
man/readpassphrase.3bsd
man/reallocarray.3bsd
man/setproctitle.3bsd
man/strlcpy.3bsd
man/strnstr.3bsd
man/strtonum.3bsd
man/tree.3bsd
man/wcslcpy.3bsd

index 547bd54bf224c3ca7fa3de5f2e9da5abf2071ee4..f1dc25498b179fbb4c209868925e1bc38ba19daa 100644 (file)
@@ -135,6 +135,12 @@ These functions first appeared in
 .Nx 1.6 ,
 and
 .Dx 1.0 .
+The functions
+.Fn arc4random ,
+.Fn arc4random_buf
+and
+.Fn arc4random_uniform
+appeared in glibc 2.36.
 .Pp
 The original version of this random number generator used the
 RC4 (also known as ARC4) algorithm.
index 9e1b0db8091c8a8cf84e46d2a9c88855a5edbaaa..5f930f5dcbb42f6b4d9a8bfaf02158671ac17b5f 100644 (file)
@@ -51,8 +51,17 @@ from the per-process object reference table.
 Any errors encountered while closing file descriptors are ignored.
 .Sh SEE ALSO
 .Xr close 2
+.Sh STANDARDS
+.Fn closefrom
+is a
+.Bx
+and Solaris extension.
 .Sh HISTORY
 The
 .Fn closefrom
-function first appeared in
-.Fx 8.0 .
+function first appeared in Solaris 9,
+.Ox 3.5 ,
+.Dx 1.2 ,
+.Nx 3 ,
+.Fx 8.0
+and glibc 2.26.
index ab8ad7b0c88b9bcbf3a1285db6d5f8ea961588b3..b227f0dd57c7069357db220f6c8d361c5024c84f 100644 (file)
@@ -150,4 +150,6 @@ if it runs out of memory.
 The
 .Fn fparseln
 function first appeared in
-.Nx 1.4 .
+.Nx 1.4
+and
+.Fx 4.0 .
index eafa4b48cc8be0ef7b7e76a2844c192830144321..4cc7cc617cb955f17b91eccfa624b6e08a7e7de2 100644 (file)
@@ -139,4 +139,7 @@ or the kernel returned invalid data.
 The
 .Fn getpeereid
 function appeared in
-.Fx 4.6 .
+.Fx 4.6 ,
+.Nx 5.0
+and
+.Ox 3.0 .
index 45b1d68bcb48ce6b6537ed558dd4f55e50de72b1..02ce9af220950524161b63ec301d6b4ffa99c2a2 100644 (file)
@@ -166,7 +166,9 @@ represented a number that does not fit in
 .Sh HISTORY
 .Fn humanize_number
 first appeared in
-.Nx 2.0 .
+.Nx 2.0
+and
+.Fx 5.3 .
 .Pp
 .Fn dehumanize_number
 first appeared in
index 634ac816c8b07c65ee06ceee7de8123614c0bc9c..547c5562abc45bd0a23ed676beebde806835e890 100644 (file)
@@ -292,6 +292,20 @@ Probably called not from the process which used
 .Xr open 2 ,
 .Xr daemon 3 ,
 .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
 .An -nosplit
 The
index 366c0b21647f78854680e0b4d97a4c1f42e5c913..06c54e15261dd4dd81e3c8f86ef2f58691bbd209 100644 (file)
@@ -137,7 +137,7 @@ The
 .Fn uid_from_user
 and
 .Fn gid_from_group
-functions were ported from
-.Nx
-and first appeared in
+functions first appeared in
+.Nx 1.4
+and
 .Ox 6.4 .
index 23e5e4c7da6e1e8e9e0f21769c4cd5c6400c7e79..3c9275d27dba4cfafb6f9d762a80cf95287e294c 100644 (file)
@@ -165,10 +165,12 @@ will reprint the prompt and the user may then enter a passphrase.
 The
 .Fn readpassphrase
 function is an
-.Ox
+.Bx
 extension and should not be used if portability is desired.
 .Sh HISTORY
 The
 .Fn readpassphrase
 function first appeared in
-.Ox 2.9 .
+.Ox 2.9
+and
+.Fx 4.6 .
index f4dbf2b78e0c28bd59b4652237e3a663bdd71bbc..a63de814342280ff54a38acfb577229391aa381a 100644 (file)
@@ -283,12 +283,18 @@ The
 .Fn reallocarray
 function appeared in
 .Ox 5.6 ,
+.Dx 5.5
 and glibc 2.26.
+.Pp
 The
 .Fn recallocarray
 function appeared in
-.Ox 6.1 .
+.Ox 6.1
+and
+.Dx 5.5 .
 The
 .Fn freezero
 function appeared in
-.Ox 6.2 .
+.Ox 6.2
+and
+.Dx 5.5 .
index 4a6609fd11e03a6b43b6ef0ea8b546170fbf99e4..c8aeb4bfa152b385f5b4083fc06b2c2779aba036 100644 (file)
@@ -112,6 +112,8 @@ The
 .Fn setproctitle
 function
 first appeared in
+.Nx 1.0
+and
 .Fx 2.2 .
 Other operating systems have
 similar functions.
index 19aaa75ff70cb8883e6e3da4ca77e74d4cce983e..ebc9758fb95f7bd932bdb3fb37befca2f60124f4 100644 (file)
@@ -192,4 +192,6 @@ and
 functions first appeared in
 .Ox 2.4 ,
 and made their appearance in
+.Nx 1.4.3
+and
 .Fx 3.3 .
index 44756e682e08f32a91e1afef70f110360e28677d..95e729ecd7c645fe3808ca837c8fa33c1c65561d 100644 (file)
@@ -112,3 +112,8 @@ ptr = strnstr(largestring, smallstring, 4);
 .Xr strspn 3 ,
 .Xr strtok 3 ,
 .Xr wcsstr 3
+.Sh HISTORY
+The
+.Fn strnstr
+function originated in
+.Fx .
index 44107b16e2c4741e1ba0b8cee19ec5e68f02bb0d..104178206b8d845358083491e37f332fc332bfe5 100644 (file)
@@ -141,8 +141,8 @@ The string did not consist solely of digit characters.
 .Xr strtoull 3
 .Sh STANDARDS
 .Fn strtonum
-is an
-.Ox
+is a
+.Bx
 extension.
 .Sh HISTORY
 .ds doc-operating-system-NetBSD-8.0 8.0
index 2bd4f178dd53e158933e97632ae1c122083d4365..4c9dfb60a42aa9adfa3e28ed2e7a2ffd21f49f10 100644 (file)
@@ -562,6 +562,9 @@ main(void)
 .Ed
 .Sh SEE ALSO
 .Xr queue 3bsd
+.Sh HISTORY
+The tree macros first appeared in
+.Fx 4.6 .
 .Sh NOTES
 Trying to free a tree in the following way is a common error:
 .Bd -literal -offset indent
index f7ed5a23c1790924fe8df728c4de81df16a18e7e..3a6169cb421ffd58170c4d7a4dcad6a25df56e33 100644 (file)
@@ -69,3 +69,14 @@ counterpart, such as
 and
 .Fn wcslcpy ,
 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 .