History log of /netbsd-src/lib/libc/stdlib/strtol.c (Results 1 – 18 of 18)
Revision Date Author Comments
# 245e0863 20-Aug-2008 joerg <joerg@NetBSD.org>

Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into one
version for signed and one version for unsigned data types.

Add a check for supported bases and set errno (userland) or panic
(

Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into one
version for signed and one version for unsigned data types.

Add a check for supported bases and set errno (userland) or panic
(kernel, libsa) otherwise.

Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore
versions as strong alias.

Obtained from DragonFly, based on the wide char version from Citrus.
Reviewed by christos@

show more ...


# 03256c6e 29-Nov-2005 christos <christos@NetBSD.org>

WARNS=4


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 33edc15a 15-Nov-1998 christos <christos@NetBSD.org>

delint


# a0326f2e 03-Feb-1998 mycroft <mycroft@NetBSD.org>

Nuke `register'.


# 5f8a6c06 30-Jan-1998 perry <perry@NetBSD.org>

update to lite-2


# bd906777 13-Jul-1997 christos <christos@NetBSD.org>

Add local.h for local prototypes.
Fix namespace issues for strtoq and strtouq
Fix gcc warnings.
Fix RCSID's


# 83481cc8 20-Jul-1996 jtc <jtc@NetBSD.org>

Changing type of "c" to unsigned did not fix the problem --- a signed
char is sign extended before it is assigned to an unsigned int. This
fix, which has been tested with a different testcase, adds

Changing type of "c" to unsigned did not fix the problem --- a signed
char is sign extended before it is assigned to an unsigned int. This
fix, which has been tested with a different testcase, adds explicit
casts to unsigned char before the value of a character is copied.

show more ...


# 24de9e4a 11-Jul-1996 jtc <jtc@NetBSD.org>

The argument to isfoo() must be representable as an unsigned char, so
type of "c" has been changed to unsigned. This change allows these
functions will work with strings with their 8th bit set.


# 6dda330e 28-Dec-1995 thorpej <thorpej@NetBSD.org>

New-style RCS ids.


# 9b626569 21-Dec-1995 mycroft <mycroft@NetBSD.org>

Rearrange to avoid sign problems with GCC.


# e0c0c474 20-Dec-1995 mycroft <mycroft@NetBSD.org>

Minor cleanup.


# 9c20f740 26-Aug-1993 jtc <jtc@NetBSD.org>

Declare rcsid strings so they are stored in text segment.


# 647b2510 25-Aug-1993 jtc <jtc@NetBSD.org>

Add cast to silence compiler warning.


# e9d867ef 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


# 61f28255 21-Mar-1993 cgd <cgd@NetBSD.org>

initial import of 386bsd-0.1 sources