summaryrefslogtreecommitdiffstats
path: root/src/include/stdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* [legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown2015-03-021-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>
* [libc] Rewrite strtoul()Michael Brown2015-02-191-25/+3Star
| | | | | | | | | | 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>
* [libc] Add abs()Michael Brown2014-01-121-0/+4
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [base16] Generalise base16_decode() to hex_decode()Michael Brown2013-07-121-13/+1Star
| | | | | | | 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>
* [libc] Allow strtoul() to interpret negative numbersMichael Brown2012-04-171-4/+0Star
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Add strtoull()Piotr Jaroszyński2010-08-191-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>
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-181-0/+2
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* [i386] Rename __cdecl to __asmcallMichael Brown2008-11-191-1/+1
| | | | | __cdecl is a misleading name, since it currently encapsulates both cdecl and regparm(0) attributes. Rename to __asmcall.
* [libc] Add function declaration for main() in stdlib.hMichael Brown2008-10-071-0/+1
|
* use malloc attributeHolger Lubitz2007-08-201-3/+3
|
* Renamed _calloc() to zalloc(), ready to be used as a standalone function.Michael Brown2007-06-111-3/+3
|
* Split random number generation out into core/random.c, and create theMichael Brown2007-01-191-4/+44
| | | | correct prototypes for srandom(), rand() and srand().
* Add missing prerequisite includeMichael Brown2007-01-191-0/+2
|
* Don't always zero memory in malloc(). This saves around 2us on aMichael Brown2007-01-181-4/+6
| | | | full-length PKB allocation.
* Fix prototype of random() and move to stdlib.hMichael Brown2006-12-221-0/+1
|
* Added execv() and system().Michael Brown2006-12-081-0/+1
|
* Move ANSI C standard prototypes to stdlib.h; leave the gPXE-specificMichael Brown2006-12-021-0/+20
| | | | function prototypes (e.g. malloc_dma()) in malloc.h.
* Fix up prototype of strtoul() to match POSIX.Michael Brown2006-04-301-1/+1
|
* Moved strtoul prototype into stdlib.h for consistencyMichael Brown2005-04-301-0/+6