freebsd-src/lib/libc
Andrey A. Chernov 4e6b157062 Locale *is* used in strto*l*(), at least for isspace(), so remove
'locale not used' statement from comments and BUGS section of manpage.

strtol(): fix non-portable 'cutoff' calculation using the same method as
in strtoll().

Cleanup 'cutoff' calculation, remove unneded casts. Misc. cleanup to
make all functions looks the same.

Implement EINVAL reaction per POSIX, document it in manpage, corresponding
POSIX example quotes here:

------------------------------------------------
If the subject sequence is empty or does not have the expected form, no
conversion is performed; the value of str is stored in the object pointed
to by endptr, provided that endptr is not a null pointer.

If no conversion could be performed, 0 shall be returned and errno may be
set to [EINVAL].

[EINVAL] The value of base is not supported.

Since 0, {LONG_MIN} or {LLONG_MIN}, and {LONG_MAX} or {LLONG_MAX} are
returned on error and are also valid returns on success, an application
wishing to check for error situations should set errno to 0, then call
strtol( ) or strtoll ( ), then check errno.
-----------------------------------------------------
2001-09-04 16:39:11 +00:00
..
alpha Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
amd64 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
compat-43 Use ``.Rv -std'' wherever possible. 2001-08-31 09:57:38 +00:00
db Mark some functions as __printflike() and/or taking const char * arguments 2001-08-20 12:53:36 +00:00
gen Use ``.Rv -std'' wherever possible. 2001-08-31 09:57:38 +00:00
gmon Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
i386 Use ``.Rv -std'' wherever possible. 2001-08-31 09:57:38 +00:00
ia64 Implement _setjmp()/_longjmp(). 2001-09-04 08:27:39 +00:00
include Fixed namespace pollution related to `warn' in libc (but not in other 2001-08-29 13:52:27 +00:00
locale mdoc(7) police: 2001-08-07 15:48:51 +00:00
mips
mipseb
mipsel
net Add manpage for inet_net_ntop(3) and inet_net_pton(3). 2001-08-31 10:54:44 +00:00
nls Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
posix1e o Sync up prototypes for cap_size() and cap_copy_ext() with 2001-09-02 23:13:49 +00:00
quad $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
regex mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
rpc Fixed namespace pollution related to `warn' in libc (but not in other 2001-08-29 13:52:27 +00:00
stdio When __SOPT is cleared, clear __SOFF too. 2001-09-03 02:35:10 +00:00
stdlib Locale *is* used in strto*l*(), at least for isspace(), so remove 2001-09-04 16:39:11 +00:00
stdtime mdoc(7) police: 2001-08-07 15:48:51 +00:00
string o Various mdoc fixes. 2001-08-09 17:10:48 +00:00
sys This does not describe sched_{get,set}scheduler. 2001-09-03 17:55:08 +00:00
xdr Fix a comment within a comment warning due to a missing "*/". 2001-04-10 03:47:40 +00:00
yp Changed the clnt_perror string in yp_all because it was saying the 2001-05-23 15:37:10 +00:00
Makefile Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-( 2001-08-13 21:48:44 +00:00
Makefile.inc Activate build of posix1e extensions in libc and libc_r that have been 2001-04-04 18:17:28 +00:00