Home | History | Annotate | Download | only in stdlib
History log of /src/lib/libc/stdlib/strtoq.c
RevisionDateAuthorComments
 1.19  20-Aug-2008  joerg branches: 1.19.6;
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  18-Dec-2006  christos branches: 1.18.12;
remove bogus (void)&var; From Anon Ymous
 1.17  29-Nov-2005  christos WARNS=4
 1.16  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.15  08-Mar-2000  kleink No longer need internal names for strtoq() and strtouq().
 1.14  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.13  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.12  17-Aug-1999  mycroft Make some needed weak aliases.
 1.11  15-Nov-1998  christos delint
 1.10  03-Feb-1998  mycroft Nuke `register'.
 1.9  03-Feb-1998  mycroft Deal with GCC warning.
 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.12.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.19.6.2  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.19.6.1  20-Aug-2008  joerg file strtoq.c was added on branch christos-time_t on 2008-08-20 12:42:27 +0000

RSS XML Feed