#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
247001 |
|
19-Feb-2013 |
kientzle |
Fix includes for use in libstand.
|
#
246931 |
|
17-Feb-2013 |
kientzle |
Add strtoul() to libstand by copying from libc and clipping out locale code.
|
#
227753 |
|
20-Nov-2011 |
theraven |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
|
#
165903 |
|
08-Jan-2007 |
imp |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
#
140577 |
|
21-Jan-2005 |
ache |
Whitespace/style tweaking of prev. commit.
Noted by: bde
|
#
140536 |
|
20-Jan-2005 |
ache |
POSIX says that 0[xX] prefix is _optional_ even in base 16 case, make it really so.
"If the value of base is 16, the characters 0x or 0X may optionally precede the sequence of letters and digits, following the sign if present."
Found by: joerg
|
#
103012 |
|
06-Sep-2002 |
tjr |
Style: One space between "restrict" qualifier and "*".
|
#
101912 |
|
15-Aug-2002 |
robert |
- Add the 'restrict' qualifier to the function prototypes and definitions of the functions that convert strings to numbers and are defined by IEEE Std 1003-1.2001. - Use ANSI-C function definitions for all of the functions mentioned above plus strtouq and strtoq. - Update the prototypes in the manual pages.
|
#
92986 |
|
22-Mar-2002 |
obrien |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
#
87494 |
|
07-Dec-2001 |
ache |
Return 'c' back to signed due to potential comparison problems Use simpler test for valid ranges
Submitted by: bde
|
#
87196 |
|
02-Dec-2001 |
ache |
Make it works for non ASCII compatible encodings too. The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
|
#
87078 |
|
29-Nov-2001 |
ache |
Back out national digits support, POSIX explicetely disallows it:
The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding.
The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15.
|
#
87042 |
|
28-Nov-2001 |
ache |
Don't ever assume that isdigit() is always subset of isxdigit()
|
#
87023 |
|
28-Nov-2001 |
fenner |
Base 36 is allowed.
|
#
87020 |
|
28-Nov-2001 |
ache |
Put back base > 35 check. If someone dislike it, plese discuss it with standards group first.
|
#
87016 |
|
27-Nov-2001 |
ache |
Understand national (non-ASCII) digits now Allow bases >=36 again Misc cleanup
|
#
82995 |
|
04-Sep-2001 |
ache |
Remove rcsids and unneded include
|
#
82982 |
|
04-Sep-2001 |
ache |
'acc' is not initialized in one hypotetical case, fix it
|
#
82975 |
|
04-Sep-2001 |
ache |
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. -----------------------------------------------------
|
#
17141 |
|
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
9845 |
|
01-Aug-1995 |
ache |
Similar changes like in strtol, all this family is VERY broken in 8bit environment (isalpha at the end of digits)
|
#
1574 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|
#
1573 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Lib Sources
|