summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib')
-rw-r--r--src/lib/libc/stdlib/atof.36
-rw-r--r--src/lib/libc/stdlib/atoi.36
-rw-r--r--src/lib/libc/stdlib/atol.36
-rw-r--r--src/lib/libc/stdlib/atoll.36
-rw-r--r--src/lib/libc/stdlib/div.36
-rw-r--r--src/lib/libc/stdlib/getopt_long.36
-rw-r--r--src/lib/libc/stdlib/imaxdiv.38
-rw-r--r--src/lib/libc/stdlib/ldiv.38
-rw-r--r--src/lib/libc/stdlib/lldiv.38
-rw-r--r--src/lib/libc/stdlib/strtod.310
-rw-r--r--src/lib/libc/stdlib/strtonum.38
11 files changed, 39 insertions, 39 deletions
diff --git a/src/lib/libc/stdlib/atof.3 b/src/lib/libc/stdlib/atof.3
index 183f22d358..7d1f09d1a4 100644
--- a/src/lib/libc/stdlib/atof.3
+++ b/src/lib/libc/stdlib/atof.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atof.3,v 1.9 2019/01/16 12:55:49 schwarze Exp $ 32.\" $OpenBSD: atof.3,v 1.10 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: January 16 2019 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOF 3 35.Dt ATOF 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li double 50.Vt double
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/atoi.3 b/src/lib/libc/stdlib/atoi.3
index 0cd90ccffb..92d8de93a6 100644
--- a/src/lib/libc/stdlib/atoi.3
+++ b/src/lib/libc/stdlib/atoi.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atoi.3,v 1.12 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atoi.3,v 1.13 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOI 3 35.Dt ATOI 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li integer 50.Vt integer
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/atol.3 b/src/lib/libc/stdlib/atol.3
index c80f61f754..f67ca7da6c 100644
--- a/src/lib/libc/stdlib/atol.3
+++ b/src/lib/libc/stdlib/atol.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atol.3,v 1.10 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atol.3,v 1.11 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOL 3 35.Dt ATOL 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li long integer 50.Vt long integer
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/atoll.3 b/src/lib/libc/stdlib/atoll.3
index 0cf8e40f8e..c2b606dda9 100644
--- a/src/lib/libc/stdlib/atoll.3
+++ b/src/lib/libc/stdlib/atoll.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atoll.3,v 1.8 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atoll.3,v 1.9 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOLL 3 35.Dt ATOLL 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li long long integer 50.Vt long long integer
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/div.3 b/src/lib/libc/stdlib/div.3
index 421400a294..b4b42ba8ec 100644
--- a/src/lib/libc/stdlib/div.3
+++ b/src/lib/libc/stdlib/div.3
@@ -27,9 +27,9 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.\" $OpenBSD: div.3,v 1.12 2016/08/14 23:18:03 guenther Exp $ 30.\" $OpenBSD: div.3,v 1.13 2022/09/11 06:38:11 jmc Exp $
31.\" 31.\"
32.Dd $Mdocdate: August 14 2016 $ 32.Dd $Mdocdate: September 11 2022 $
33.Dt DIV 3 33.Dt DIV 3
34.Os 34.Os
35.Sh NAME 35.Sh NAME
@@ -47,7 +47,7 @@ function computes the value
47and returns the quotient and remainder in a structure named 47and returns the quotient and remainder in a structure named
48.Fa div_t 48.Fa div_t
49that contains two 49that contains two
50.Li int 50.Vt int
51members named 51members named
52.Fa quot 52.Fa quot
53and 53and
diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3
index 9f99a353e8..88594cbf9c 100644
--- a/src/lib/libc/stdlib/getopt_long.3
+++ b/src/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getopt_long.3,v 1.24 2022/01/06 18:58:24 jmc Exp $ 1.\" $OpenBSD: getopt_long.3,v 1.25 2022/09/11 06:38:11 jmc Exp $
2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ 2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 1988, 1991, 1993 4.\" Copyright (c) 1988, 1991, 1993
@@ -30,7 +30,7 @@
30.\" 30.\"
31.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 31.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95
32.\" 32.\"
33.Dd $Mdocdate: January 6 2022 $ 33.Dd $Mdocdate: September 11 2022 $
34.Dt GETOPT_LONG 3 34.Dt GETOPT_LONG 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -197,7 +197,7 @@ the single-character option is returned.
197If the 197If the
198.Fa flag 198.Fa flag
199field in 199field in
200.Li struct option 200.Vt struct option
201is 201is
202.Dv NULL , 202.Dv NULL ,
203.Fn getopt_long 203.Fn getopt_long
diff --git a/src/lib/libc/stdlib/imaxdiv.3 b/src/lib/libc/stdlib/imaxdiv.3
index 0d4f765373..70168acb30 100644
--- a/src/lib/libc/stdlib/imaxdiv.3
+++ b/src/lib/libc/stdlib/imaxdiv.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: imaxdiv.3,v 1.7 2016/08/14 23:18:03 guenther Exp $ 32.\" $OpenBSD: imaxdiv.3,v 1.8 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 14 2016 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt IMAXDIV 3 35.Dt IMAXDIV 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,9 +47,9 @@ The
47function computes the value 47function computes the value
48.Fa num Ns / Ns Fa denom 48.Fa num Ns / Ns Fa denom
49and returns the quotient and remainder in a structure named 49and returns the quotient and remainder in a structure named
50.Li imaxdiv_t 50.Vt imaxdiv_t
51that contains two 51that contains two
52.Li intmax_t 52.Vt intmax_t
53members named 53members named
54.Fa quot 54.Fa quot
55and 55and
diff --git a/src/lib/libc/stdlib/ldiv.3 b/src/lib/libc/stdlib/ldiv.3
index 1fa6f38c45..c7ddc85ac5 100644
--- a/src/lib/libc/stdlib/ldiv.3
+++ b/src/lib/libc/stdlib/ldiv.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: ldiv.3,v 1.13 2016/08/14 23:18:03 guenther Exp $ 32.\" $OpenBSD: ldiv.3,v 1.14 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 14 2016 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt LDIV 3 35.Dt LDIV 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,9 +47,9 @@ The
47function computes the value 47function computes the value
48.Fa num Ns / Ns Fa denom 48.Fa num Ns / Ns Fa denom
49and returns the quotient and remainder in a structure named 49and returns the quotient and remainder in a structure named
50.Li ldiv_t 50.Vt ldiv_t
51that contains two 51that contains two
52.Li long integer 52.Vt long integer
53members named 53members named
54.Fa quot 54.Fa quot
55and 55and
diff --git a/src/lib/libc/stdlib/lldiv.3 b/src/lib/libc/stdlib/lldiv.3
index 526da8d0c4..539d7b5179 100644
--- a/src/lib/libc/stdlib/lldiv.3
+++ b/src/lib/libc/stdlib/lldiv.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: lldiv.3,v 1.8 2017/08/01 14:57:02 schwarze Exp $ 32.\" $OpenBSD: lldiv.3,v 1.9 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 1 2017 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt LLDIV 3 35.Dt LLDIV 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -50,9 +50,9 @@ The
50function computes the value 50function computes the value
51.Fa num Ns / Ns Fa denom 51.Fa num Ns / Ns Fa denom
52and returns the quotient and remainder in a structure named 52and returns the quotient and remainder in a structure named
53.Li lldiv_t 53.Vt lldiv_t
54that contains two 54that contains two
55.Li long long integer 55.Vt long long integer
56members named 56members named
57.Fa quot 57.Fa quot
58and 58and
diff --git a/src/lib/libc/stdlib/strtod.3 b/src/lib/libc/stdlib/strtod.3
index 0561f3615d..ad8f28a02f 100644
--- a/src/lib/libc/stdlib/strtod.3
+++ b/src/lib/libc/stdlib/strtod.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strtod.3,v 1.22 2019/01/16 12:55:49 schwarze Exp $ 32.\" $OpenBSD: strtod.3,v 1.23 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: January 16 2019 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt STRTOD 3 35.Dt STRTOD 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -55,21 +55,21 @@ The
55function converts the initial portion of the string pointed to by 55function converts the initial portion of the string pointed to by
56.Fa nptr 56.Fa nptr
57to 57to
58.Li double 58.Vt double
59representation. 59representation.
60The 60The
61.Fn strtof 61.Fn strtof
62function converts the initial portion of the string pointed to by 62function converts the initial portion of the string pointed to by
63.Fa nptr 63.Fa nptr
64to 64to
65.Li float 65.Vt float
66representation. 66representation.
67The 67The
68.Fn strtold 68.Fn strtold
69function converts the initial portion of the string pointed to by 69function converts the initial portion of the string pointed to by
70.Fa nptr 70.Fa nptr
71to 71to
72.Li long double 72.Vt long double
73representation. 73representation.
74.Pp 74.Pp
75The expected form of the string is an optional plus 75The expected form of the string is an optional plus
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3
index 43df0edc78..87a3ccd588 100644
--- a/src/lib/libc/stdlib/strtonum.3
+++ b/src/lib/libc/stdlib/strtonum.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strtonum.3,v 1.18 2016/02/07 20:50:24 mmcc Exp $ 1.\" $OpenBSD: strtonum.3,v 1.19 2022/09/11 06:38:11 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 2004 Ted Unangst 3.\" Copyright (c) 2004 Ted Unangst
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: February 7 2016 $ 17.Dd $Mdocdate: September 11 2022 $
18.Dt STRTONUM 3 18.Dt STRTONUM 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -35,7 +35,7 @@ The
35function converts the string in 35function converts the string in
36.Fa nptr 36.Fa nptr
37to a 37to a
38.Li long long 38.Vt long long
39value. 39value.
40The 40The
41.Fn strtonum 41.Fn strtonum
@@ -56,7 +56,7 @@ or
56sign. 56sign.
57.Pp 57.Pp
58The remainder of the string is converted to a 58The remainder of the string is converted to a
59.Li long long 59.Vt long long
60value according to base 10. 60value according to base 10.
61.Pp 61.Pp
62The value obtained is then checked against the provided 62The value obtained is then checked against the provided