aboutsummaryrefslogtreecommitdiff
path: root/src/include/stdlib.h
AgeCommit message (Collapse)AuthorFilesLines
2015-03-02[legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown1-1/+1
These files cannot be automatically relicensed by util/relicense.pl since they either contain unusual but trivial contributions (such as the addition of __nonnull function attributes), or contain lines dating back to the initial git revision (and so require manual knowledge of the code's origin). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-02-19[libc] Rewrite strtoul()Michael Brown1-25/+3
The implementation of strtoul() has a partially unknown provenance. Rewrite this code to avoid potential licensing uncertainty. Since we now use -ffunction-sections, there is no need to place strtoull() in a separate file from strtoul(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-01-12[libc] Add abs()Michael Brown1-0/+4
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-07-12[base16] Generalise base16_decode() to hex_decode()Michael Brown1-13/+1
Provide a generic hex_decode() routine which can be shared between the Base16 code and the "hex" and "hexhyp" settings parsers. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-04-17[libc] Allow strtoul() to interpret negative numbersMichael Brown1-4/+0
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-08-19[libc] Add strtoull()Piotr Jaroszyński1-0/+40
Don't implement strtoul() on top of strtoull() as strtoull() is much bigger and only used on linux currently. Instead refactor most of the logic out of strtoul() into static inlines and reuse that. Also put it in a separate object so it won't get linked in. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2009-05-18[legal] Add a selection of FILE_LICENCE declarationsMichael Brown1-0/+2
Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
2008-11-19[i386] Rename __cdecl to __asmcallMichael Brown1-1/+1
__cdecl is a misleading name, since it currently encapsulates both cdecl and regparm(0) attributes. Rename to __asmcall.
2008-10-07[libc] Add function declaration for main() in stdlib.hMichael Brown1-0/+1
2007-08-20use malloc attributeHolger Lubitz1-3/+3
2007-06-11Renamed _calloc() to zalloc(), ready to be used as a standalone function.Michael Brown1-3/+3
2007-01-19Split random number generation out into core/random.c, and create theMichael Brown1-4/+44
correct prototypes for srandom(), rand() and srand().
2007-01-19Add missing prerequisite includeMichael Brown1-0/+2
2007-01-18Don't always zero memory in malloc(). This saves around 2us on aMichael Brown1-4/+6
full-length PKB allocation.
2006-12-22Fix prototype of random() and move to stdlib.hMichael Brown1-0/+1
2006-12-08Added execv() and system().Michael Brown1-0/+1
2006-12-02Move ANSI C standard prototypes to stdlib.h; leave the gPXE-specificMichael Brown1-0/+20
function prototypes (e.g. malloc_dma()) in malloc.h.
2006-04-30Fix up prototype of strtoul() to match POSIX.Michael Brown1-1/+1
2005-04-30Moved strtoul prototype into stdlib.h for consistencyMichael Brown1-0/+6