summaryrefslogtreecommitdiff
path: root/Libraries/LibC/stdlib.h
AgeCommit message (Collapse)Author
2020-08-17malloc: Keep some stats and dump them at process exit if ↵Nico Weber
LIBC_DUMP_MALLOC_STATS is set Very bare-bones and barely useful. Can go away once the perf_event-based malloc tracking is further along.
2020-08-13LibC: Some calloc() and realloc() improvements (#3108)Muhammad Zahalqa
If the space cannot be allocated, the original memory block shall remain unchanged and the function should return nullptr. Also add a function attribute and some null checks.
2020-02-05LibC: Add posix_openpt(), grantpt() and unlockpt()Andreas Kling
This makes getting a pseudoterminal pair a little bit more portable. Note that grantpt() and unlockpt() are currently no-ops, since we've already granted the pseudoterminal slave to the calling user. We also accept O_CLOEXEC to posix_openpt(), unlike some systems. :^)
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-12-26LibC: Oops x2, we can't use "bool" in stdlib.h eitherAndreas Kling
2019-12-26LibC: Oops, we can't use [[nodiscard]] when this is included from CAndreas Kling
2019-12-26LibC: Use shared functon to generate unique filenamesShannon Booth
Move some dupliated code into __generate_unique_filename()
2019-11-16LibC: Move realpath() to <stdlib.h>Andreas Kling
2019-11-16LibC: Implemented mkstemp in stdlibBrandon Scott
Implemented mkstemp method in stdlib.
2019-11-11LibC, LibM: Add functions needed to compile python3Emanuel Sprung
2019-10-13LibC: add arc4random* using new getrandom syscallCalvin Buckley
Serenity is really not production ready; I shouldn't have to warn you not to trust the RNG here. This is for compatibility with software expecting the interface. arc4random does expose an annoying flaw with the syscall I want to discuss with Kling though.
2019-10-13LibC: Add some wchar functionsCalvin Buckley
These are basically copy and pasted from the regular string version. Also add some more multi-byte/wide conversion stub. libarchive wanted these. There's a lot more, but we can add them one at a time.
2019-10-09LibC: Add a missing mbstowcs() declarationSergey Bugaev
This ensures it gets a C linkage, and so fixes the binutils build.
2019-10-03LibC: Misc additionsSergey Bugaev
2019-09-14LibC: Implement mkdtemp library functionMauri de Souza Nunes
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.