Home | History | Annotate | Download | only in stdlib
History log of /src/lib/libc/stdlib/strtouq.c
RevisionDateAuthorComments
 1.20  26-Aug-2008  drochner branches: 1.20.6;
fix range of strtouq(), from Henning Petersen per PR lib/39399
 1.19  20-Aug-2008  joerg 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@
 1.18  29-Nov-2005  christos branches: 1.18.20;
WARNS=4
 1.17  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.16  16-May-2000  is Workaround no longer needed, now that the compiler is fixed.
 1.15  02-May-2000  is Add the (void)&acc; hack from strtouq.c to strtoull.c. This works around
an arm32 compiler bug. Change the comment in strtouq.c to reflect the current
usage of the hack.
 1.14  08-Mar-2000  kleink No longer need internal names for strtoq() and strtouq().
 1.13  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.12  16-Sep-1999  lukem * 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
 1.11  17-Aug-1999  mycroft Make some needed weak aliases.
 1.10  15-Nov-1998  christos delint
 1.9  03-Feb-1998  mycroft Nuke `register', deal with GCC warnings.
 1.8  30-Jan-1998  perry update to lite-2
 1.7  13-Jul-1997  christos Add local.h for local prototypes.
Fix namespace issues for strtoq and strtouq
Fix gcc warnings.
Fix RCSID's
 1.6  20-Jul-1996  jtc branches: 1.6.2;
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 casts to
signed chars which results in proper behavior.
 1.5  11-Jul-1996  jtc 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.
 1.4  21-Dec-1995  mycroft branches: 1.4.4;
Rearrange to avoid sign problems with GCC.
 1.3  20-Dec-1995  mycroft Minor cleanup.
 1.2  04-Jan-1994  mycroft branches: 1.2.4;
Fix two compiler warnings.
 1.1  03-Jan-1994  jtc branches: 1.1.1;
Integrate strtoq() and strtouq() from bsd-sources on uunet.
 1.1.1.1  30-Jan-1998  perry import lite-2
 1.2.4.2  02-May-1995  jtc #include "namespace.h"
 1.2.4.1  17-Feb-1995  jtc Make namespace safe by including "namespace.h" and defining a weak
references. The scanf() family of functions uses strto{,u}q to
convert pointers and quad ints.
 1.4.4.2  20-Jul-1996  jtc Pulled up from rev 1.6
 1.4.4.1  11-Jul-1996  jtc Pulled up from rev 1.5
 1.6.2.1  16-Sep-1996  jtc snapshot namespace cleanup
 1.18.20.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.20.6.2  26-Aug-2008  drochner fix range of strtouq(), from Henning Petersen per PR lib/39399
 1.20.6.1  26-Aug-2008  drochner file strtouq.c was added on branch christos-time_t on 2008-08-26 12:21:25 +0000

RSS XML Feed