History log of /freebsd/lib/libc/stdlib/strtoll.c (Results 26 – 50 of 59)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# b9004c11 28-Nov-2001 Bill Fenner <fenner@FreeBSD.org>

Base 36 is allowed.


# 649ffc6d 28-Nov-2001 Andrey A. Chernov <ache@FreeBSD.org>

Put back base > 35 check. If someone dislike it, plese discuss it with
standards group first.


# 7e302fc7 28-Nov-2001 Andrey A. Chernov <ache@FreeBSD.org>

Understand national (non-ASCII) digits now
Allow bases >=36 again
Misc cleanup


# 2505b3ed 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

Portability fix: use unsigned cast to guaranteed positive part of expression
in case {L}LONG_MAX > abs({L}LONG_MIN). Non-functional change - we don't
have any such platforms.


# f8ade0e6 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

Remove rcsids and unneded include


# f4fc08f3 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

'acc' is not initialized in one hypotetical case, fix it


# 4e6b1570 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

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 sam

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.
-----------------------------------------------------

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0
# 4c0440cb 27-Feb-2001 David E. O'Brien <obrien@FreeBSD.org>

Impliment the ISO-C99 strto[u]ll()
and rewrite strto[u]q() in terms of it.


Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs, release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6, release/2.2.5_cvs
# a89989b2 24-Aug-1997 Steve Price <steve@FreeBSD.org>

Get rid of integer overflow warning.

PR: misc/3575
Submitted by: Bruce Evans <bde@zeta.org.au>


Revision tags: release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1, release/2.1.5_cvs
# 51295a4d 12-Jul-1996 Jordan K. Hubbard <jkh@FreeBSD.org>

General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>


Revision tags: release/2.1.0_cvs
# e7241b8f 02-Aug-1995 Andrey A. Chernov <ache@FreeBSD.org>

Similar changes like in strtol, all this family is VERY broken
in 8bit environment (isalpha at the end of digits)


Revision tags: release/2.0.5_cvs, release/2.0, release/1.1.5.1_cvs
# 58f0484f 27-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Lib Sources


Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0
# c879ae35 09-Jan-2007 Warner Losh <imp@FreeBSD.org>

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0
# db0e25ee 21-Jan-2005 Andrey A. Chernov <ache@FreeBSD.org>

Whitespace/style tweaking of prev. commit.

Noted by: bde


Revision tags: release/4.11.0_cvs, release/4.11.0
# 2571c7f7 21-Jan-2005 Andrey A. Chernov <ache@FreeBSD.org>

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, fo

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

show more ...


Revision tags: release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs
# 58d38e25 06-Sep-2002 Tim J. Robbins <tjr@FreeBSD.org>

Style: One space between "restrict" qualifier and "*".


# 5618f724 15-Aug-2002 Robert Drehmel <robert@FreeBSD.org>

- 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 defini

- 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.

show more ...


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 333fc21e 22-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Fix the style of the SCM ID's.
I believe have made all of libc .c's as consistent as possible.


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# f34b139c 07-Dec-2001 Andrey A. Chernov <ache@FreeBSD.org>

Return 'c' back to signed due to potential comparison problems
Use simpler test for valid ranges

Submitted by: bde


# 4bd71a3c 02-Dec-2001 Andrey A. Chernov <ache@FreeBSD.org>

Make it works for non ASCII compatible encodings too.
The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous


# 2209d8a2 29-Nov-2001 Andrey A. Chernov <ache@FreeBSD.org>

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 dig

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.

show more ...


# 87c25490 28-Nov-2001 Andrey A. Chernov <ache@FreeBSD.org>

Don't ever assume that isdigit() is always subset of isxdigit()


# b9004c11 28-Nov-2001 Bill Fenner <fenner@FreeBSD.org>

Base 36 is allowed.


# 649ffc6d 28-Nov-2001 Andrey A. Chernov <ache@FreeBSD.org>

Put back base > 35 check. If someone dislike it, plese discuss it with
standards group first.


# 7e302fc7 28-Nov-2001 Andrey A. Chernov <ache@FreeBSD.org>

Understand national (non-ASCII) digits now
Allow bases >=36 again
Misc cleanup


123