Subject: CVS commit: src/lib/libc/gen
To: None <source-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: source-changes
Date: 10/05/2006 22:34:52
Module Name:	src
Committed By:	rillig
Date:		Thu Oct  5 22:34:52 UTC 2006

Modified Files:
	src/lib/libc/gen: isalnum.3 isalpha.3 isblank.3 iscntrl.3 isdigit.3
	    isgraph.3 islower.3 isprint.3 ispunct.3 isspace.3 isupper.3
	    isxdigit.3 tolower.3 toupper.3

Log Message:
Fixed the wording of the <ctype.h> character classification functions by
always using "function" instead of "macro".

Changed "undefined result" into "undefined behavior" for argument values
outside the valid range. Since the character table is allocated via
malloc(), it _may_ happen that it starts at a page boundary, so that
negative values for the argument result in a segmentation fault. In that
case, there is no result at all.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 src/lib/libc/gen/isalnum.3
cvs rdiff -r1.11 -r1.12 src/lib/libc/gen/isalpha.3 src/lib/libc/gen/isdigit.3 \
    src/lib/libc/gen/isgraph.3 src/lib/libc/gen/islower.3 \
    src/lib/libc/gen/isspace.3 src/lib/libc/gen/isupper.3 \
    src/lib/libc/gen/tolower.3
cvs rdiff -r1.10 -r1.11 src/lib/libc/gen/isblank.3 src/lib/libc/gen/iscntrl.3 \
    src/lib/libc/gen/isprint.3 src/lib/libc/gen/ispunct.3 \
    src/lib/libc/gen/isxdigit.3
cvs rdiff -r1.14 -r1.15 src/lib/libc/gen/toupper.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.