Skip to content

Commit

Permalink
Add some missing errno functions
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Dec 6, 2024
1 parent 6d55d3f commit 8ad4ab4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/libc.a
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ int atoi(const char *str) __fromfile("libc/stdlib/atoi.c");
void _Exit(int status) __fromfile("libc/stdlib/_Exit.c");
void exit(int status) __fromfile("libc/stdlib/exit.c");

/* libc/stdlib/errno.c */
int _geterror() __fromfile("libc/stdlib/errno.c");
int *_geterrnoptr() __fromfile("libc/stdlib/errno.c");
int _seterror(int err) __fromfile("libc/stdlib/errno.c");

/* libc/stdlib/malloc.c */
void *malloc(size_t size) __fromfile("libc/stdlib/malloc.c");
void *calloc(size_t n, size_t size) __fromfile("libc/stdlib/malloc.c");
Expand Down

0 comments on commit 8ad4ab4

Please sign in to comment.