summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2009-09-04 07:44:58 +0000
committerdes <des@FreeBSD.org>2009-09-04 07:44:58 +0000
commitb1eaddb48f126d396ca9322eb8846384ec61160d (patch)
tree51c356bd3a6c4de8ada759b48205b5e805cdb915 /lib
parent46887be63efa70f0f71d3dad54bce4df1977b17b (diff)
downloadFreeBSD-src-b1eaddb48f126d396ca9322eb8846384ec61160d.zip
FreeBSD-src-b1eaddb48f126d396ca9322eb8846384ec61160d.tar.gz
Let the armchair generals handle this one.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/ctype.39
-rw-r--r--lib/libc/locale/digittoint.311
-rw-r--r--lib/libc/locale/isalnum.311
-rw-r--r--lib/libc/locale/isalpha.311
-rw-r--r--lib/libc/locale/isascii.311
-rw-r--r--lib/libc/locale/isblank.311
-rw-r--r--lib/libc/locale/iscntrl.311
-rw-r--r--lib/libc/locale/isdigit.311
-rw-r--r--lib/libc/locale/isgraph.311
-rw-r--r--lib/libc/locale/isideogram.311
-rw-r--r--lib/libc/locale/islower.311
-rw-r--r--lib/libc/locale/isphonogram.311
-rw-r--r--lib/libc/locale/isprint.311
-rw-r--r--lib/libc/locale/ispunct.311
-rw-r--r--lib/libc/locale/isrune.311
-rw-r--r--lib/libc/locale/isspace.311
-rw-r--r--lib/libc/locale/isspecial.311
-rw-r--r--lib/libc/locale/isupper.311
-rw-r--r--lib/libc/locale/isxdigit.311
-rw-r--r--lib/libc/locale/toascii.311
-rw-r--r--lib/libc/locale/tolower.311
-rw-r--r--lib/libc/locale/toupper.311
22 files changed, 22 insertions, 218 deletions
diff --git a/lib/libc/locale/ctype.3 b/lib/libc/locale/ctype.3
index 9d4ee5e..fdc1358 100644
--- a/lib/libc/locale/ctype.3
+++ b/lib/libc/locale/ctype.3
@@ -28,7 +28,7 @@
.\" @(#)ctype.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd March 30, 2004
.Dt CTYPE 3
.Os
.Sh NAME
@@ -111,13 +111,6 @@ They are available as macros, defined in the include file
.In ctype.h ,
or as true functions in the C library.
See the specific manual pages for more information.
-.Pp
-.Em NOTE :
-if the value passed to one of these functions is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh SEE ALSO
.Xr digittoint 3 ,
.Xr isalnum 3 ,
diff --git a/lib/libc/locale/digittoint.3 b/lib/libc/locale/digittoint.3
index c7e2ac1..372e00f 100644
--- a/lib/libc/locale/digittoint.3
+++ b/lib/libc/locale/digittoint.3
@@ -28,7 +28,7 @@
.\" @(#)digittoint.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd April 6, 2001
.Dt DIGITTOINT 3
.Os
.Sh NAME
@@ -46,15 +46,6 @@ The
function converts a numeric character to its corresponding integer value.
The character can be any decimal digit or hexadecimal digit.
With hexadecimal characters, the case of the values does not matter.
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn digittoint
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn digittoint
diff --git a/lib/libc/locale/isalnum.3 b/lib/libc/locale/isalnum.3
index 335ca9c..624a6e2 100644
--- a/lib/libc/locale/isalnum.3
+++ b/lib/libc/locale/isalnum.3
@@ -32,7 +32,7 @@
.\" @(#)isalnum.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISALNUM 3
.Os
.Sh NAME
@@ -75,15 +75,6 @@ In the ASCII character set, this includes the following characters
.It "\&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x''"
.It "\&171\ ``y'' \t172\ ``z''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isalnum
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isalnum
diff --git a/lib/libc/locale/isalpha.3 b/lib/libc/locale/isalpha.3
index 5a2680e..0bd3cda 100644
--- a/lib/libc/locale/isalpha.3
+++ b/lib/libc/locale/isalpha.3
@@ -32,7 +32,7 @@
.\" @(#)isalpha.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISALPHA 3
.Os
.Sh NAME
@@ -73,15 +73,6 @@ In the ASCII character set, this includes the following characters
.It "\&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x''"
.It "\&171\ ``y'' \t172\ ``z''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isalpha
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isalpha
diff --git a/lib/libc/locale/isascii.3 b/lib/libc/locale/isascii.3
index 294c5be..f7e1325 100644
--- a/lib/libc/locale/isascii.3
+++ b/lib/libc/locale/isascii.3
@@ -28,7 +28,7 @@
.\" @(#)isascii.3 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd October 6, 2002
.Dt ISASCII 3
.Os
.Sh NAME
@@ -47,15 +47,6 @@ function tests for an
.Tn ASCII
character, which is any character
between 0 and octal 0177 inclusive.
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isascii
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh SEE ALSO
.Xr ctype 3 ,
.Xr iswascii 3 ,
diff --git a/lib/libc/locale/isblank.3 b/lib/libc/locale/isblank.3
index e983b15..4cc6bbb 100644
--- a/lib/libc/locale/isblank.3
+++ b/lib/libc/locale/isblank.3
@@ -28,7 +28,7 @@
.\" @(#)isblank.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISBLANK 3
.Os
.Sh NAME
@@ -57,15 +57,6 @@ The value of the argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isblank
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isblank
diff --git a/lib/libc/locale/iscntrl.3 b/lib/libc/locale/iscntrl.3
index c9e220b..a67e6a4 100644
--- a/lib/libc/locale/iscntrl.3
+++ b/lib/libc/locale/iscntrl.3
@@ -32,7 +32,7 @@
.\" @(#)iscntrl.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISCNTRL 3
.Os
.Sh NAME
@@ -65,15 +65,6 @@ In the ASCII character set, this includes the following characters
.It "\&031\ EM \t032\ SUB \t033\ ESC \t034\ FS \t035\ GS"
.It "\&036\ RS \t037\ US \t177\ DEL"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn iscntrl
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn iscntrl
diff --git a/lib/libc/locale/isdigit.3 b/lib/libc/locale/isdigit.3
index 019629f..53b1986 100644
--- a/lib/libc/locale/isdigit.3
+++ b/lib/libc/locale/isdigit.3
@@ -32,7 +32,7 @@
.\" @(#)isdigit.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd May 4, 2007
.Dt ISDIGIT 3
.Os
.Sh NAME
@@ -68,15 +68,6 @@ The value of the argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isdigit
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isdigit
diff --git a/lib/libc/locale/isgraph.3 b/lib/libc/locale/isgraph.3
index 00c0dc8..4ba78e3 100644
--- a/lib/libc/locale/isgraph.3
+++ b/lib/libc/locale/isgraph.3
@@ -32,7 +32,7 @@
.\" @(#)isgraph.3 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISGRAPH 3
.Os
.Sh NAME
@@ -80,15 +80,6 @@ In the ASCII character set, this includes the following characters
.It "\&166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y'' \t172\ ``z''"
.It "\&173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isgraph
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isgraph
diff --git a/lib/libc/locale/isideogram.3 b/lib/libc/locale/isideogram.3
index 7f1f756..cbaa625 100644
--- a/lib/libc/locale/isideogram.3
+++ b/lib/libc/locale/isideogram.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd March 30, 2004
.Dt ISIDEOGRAM 3
.Os
.Sh NAME
@@ -41,15 +41,6 @@
The
.Fn isideogram
function tests for an ideographic character.
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isideogram
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isideogram
diff --git a/lib/libc/locale/islower.3 b/lib/libc/locale/islower.3
index 5884815..d72e7cf 100644
--- a/lib/libc/locale/islower.3
+++ b/lib/libc/locale/islower.3
@@ -32,7 +32,7 @@
.\" @(#)islower.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISLOWER 3
.Os
.Sh NAME
@@ -64,15 +64,6 @@ In the ASCII character set, this includes the following characters
.It "\&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y''"
.It "\&172\ ``z''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn islower
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn islower
diff --git a/lib/libc/locale/isphonogram.3 b/lib/libc/locale/isphonogram.3
index 22a9ce7..b0d82c4 100644
--- a/lib/libc/locale/isphonogram.3
+++ b/lib/libc/locale/isphonogram.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd March 30, 2004
.Dt ISPHONOGRAM 3
.Os
.Sh NAME
@@ -41,15 +41,6 @@
The
.Fn isphonogram
function tests for a phonographic character.
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isphonogram
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isphonogram
diff --git a/lib/libc/locale/isprint.3 b/lib/libc/locale/isprint.3
index b90f79a..f340850 100644
--- a/lib/libc/locale/isprint.3
+++ b/lib/libc/locale/isprint.3
@@ -32,7 +32,7 @@
.\" @(#)isprint.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISPRINT 3
.Os
.Sh NAME
@@ -78,15 +78,6 @@ In the ASCII character set, this includes the following characters
.It "\&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y''"
.It "\&172\ ``z'' \t173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isprint
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isprint
diff --git a/lib/libc/locale/ispunct.3 b/lib/libc/locale/ispunct.3
index fe1c0e3..aa02461 100644
--- a/lib/libc/locale/ispunct.3
+++ b/lib/libc/locale/ispunct.3
@@ -32,7 +32,7 @@
.\" @(#)ispunct.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISPUNCT 3
.Os
.Sh NAME
@@ -70,15 +70,6 @@ In the ASCII character set, this includes the following characters
.It "\&136\ ``^'' \t137\ ``_'' \t140\ ```'' \t173\ ``{'' \t174\ ``|''"
.It "\&175\ ``}'' \t176\ ``~''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn ispunct
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn ispunct
diff --git a/lib/libc/locale/isrune.3 b/lib/libc/locale/isrune.3
index 7f26a83..424c367 100644
--- a/lib/libc/locale/isrune.3
+++ b/lib/libc/locale/isrune.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd March 30, 2004
.Dt ISRUNE 3
.Os
.Sh NAME
@@ -46,15 +46,6 @@ In the
.Tn ASCII
character set, this is equivalent to
.Fn isascii .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isrune
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isrune
diff --git a/lib/libc/locale/isspace.3 b/lib/libc/locale/isspace.3
index f11ad8e..f1e08d6 100644
--- a/lib/libc/locale/isspace.3
+++ b/lib/libc/locale/isspace.3
@@ -32,7 +32,7 @@
.\" @(#)isspace.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISSPACE 3
.Os
.Sh NAME
@@ -61,15 +61,6 @@ The value of the argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isspace
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isspace
diff --git a/lib/libc/locale/isspecial.3 b/lib/libc/locale/isspecial.3
index 990cad3..de361d2 100644
--- a/lib/libc/locale/isspecial.3
+++ b/lib/libc/locale/isspecial.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd March 30, 2004
.Dt ISSPECIAL 3
.Os
.Sh NAME
@@ -41,15 +41,6 @@
The
.Fn isspecial
function tests for a special character.
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isspecial
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isspecial
diff --git a/lib/libc/locale/isupper.3 b/lib/libc/locale/isupper.3
index 9d25ad6..6aeb5ac 100644
--- a/lib/libc/locale/isupper.3
+++ b/lib/libc/locale/isupper.3
@@ -32,7 +32,7 @@
.\" @(#)isupper.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISUPPER 3
.Os
.Sh NAME
@@ -64,15 +64,6 @@ In the ASCII character set, this includes the following characters
.It "\&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y''"
.It "\&132\ ``Z''"
.El
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isupper
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isupper
diff --git a/lib/libc/locale/isxdigit.3 b/lib/libc/locale/isxdigit.3
index 5925b73..1fb54bf 100644
--- a/lib/libc/locale/isxdigit.3
+++ b/lib/libc/locale/isxdigit.3
@@ -32,7 +32,7 @@
.\" @(#)isxdigit.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt ISXDIGIT 3
.Os
.Sh NAME
@@ -71,15 +71,6 @@ The value of the argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn isxdigit
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn isxdigit
diff --git a/lib/libc/locale/toascii.3 b/lib/libc/locale/toascii.3
index 584aa68..97243cb 100644
--- a/lib/libc/locale/toascii.3
+++ b/lib/libc/locale/toascii.3
@@ -28,7 +28,7 @@
.\" @(#)toascii.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd June 4, 1993
.Dt TOASCII 3
.Os
.Sh NAME
@@ -45,15 +45,6 @@ The
.Fn toascii
function strips all but the low 7 bits from a letter,
including parity or other marker bits.
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn toascii
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
The
.Fn toascii
diff --git a/lib/libc/locale/tolower.3 b/lib/libc/locale/tolower.3
index f70651a..fce37fd 100644
--- a/lib/libc/locale/tolower.3
+++ b/lib/libc/locale/tolower.3
@@ -32,7 +32,7 @@
.\" @(#)tolower.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt TOLOWER 3
.Os
.Sh NAME
@@ -53,15 +53,6 @@ The argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn tolower
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
If the argument is an upper-case letter, the
.Fn tolower
diff --git a/lib/libc/locale/toupper.3 b/lib/libc/locale/toupper.3
index e6ed8cc..3a3c7f8 100644
--- a/lib/libc/locale/toupper.3
+++ b/lib/libc/locale/toupper.3
@@ -32,7 +32,7 @@
.\" @(#)toupper.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2009
+.Dd July 17, 2005
.Dt TOUPPER 3
.Os
.Sh NAME
@@ -53,15 +53,6 @@ The argument must be representable as an
.Vt "unsigned char"
or the value of
.Dv EOF .
-.Pp
-.Em NOTE :
-if the value passed to the
-.Fn toupper
-function is a
-.Vt signed char ,
-as is usually the case, it must be cast to an
-.Vt unsigned char
-to avoid sign-extension errors.
.Sh RETURN VALUES
If the argument is a lower-case letter, the
.Fn toupper
OpenPOWER on IntegriCloud