Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc



Module Name:    basesrc
Committed By:   itohy
Date:           Fri Jul  7 08:03:41 UTC 2000

Modified Files:
        basesrc/lib/libc/gen: disklabel.c getttyent.c getusershell.c
        basesrc/lib/libc/net: base64.c getaddrinfo.c gethnamaddr.c hesiod.c
            inet_net_pton.c inet_network.c rcmd.c res_debug.c res_init.c
            res_query.c
        basesrc/lib/libc/regex: regcomp.c
        basesrc/lib/libc/time: strptime.c

Log Message:
Passing "char" values to ctype(3) functions is problematic.
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.

The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems.  On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems.  However, we leave the isascii()
untouched for now, so as not to change the current behavior.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 basesrc/lib/libc/gen/disklabel.c
cvs rdiff -r1.17 -r1.18 basesrc/lib/libc/gen/getttyent.c
cvs rdiff -r1.20 -r1.21 basesrc/lib/libc/gen/getusershell.c
cvs rdiff -r1.6 -r1.7 basesrc/lib/libc/net/base64.c
cvs rdiff -r1.43 -r1.44 basesrc/lib/libc/net/getaddrinfo.c \
    basesrc/lib/libc/net/rcmd.c
cvs rdiff -r1.34 -r1.35 basesrc/lib/libc/net/gethnamaddr.c \
    basesrc/lib/libc/net/res_init.c
cvs rdiff -r1.13 -r1.14 basesrc/lib/libc/net/hesiod.c \
    basesrc/lib/libc/net/inet_net_pton.c
cvs rdiff -r1.12 -r1.13 basesrc/lib/libc/net/inet_network.c
cvs rdiff -r1.26 -r1.27 basesrc/lib/libc/net/res_debug.c
cvs rdiff -r1.29 -r1.30 basesrc/lib/libc/net/res_query.c
cvs rdiff -r1.16 -r1.17 basesrc/lib/libc/regex/regcomp.c
cvs rdiff -r1.19 -r1.20 basesrc/lib/libc/time/strptime.c

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




Home | Main Index | Thread Index | Old Index