diff options
Diffstat (limited to 'libs/libc/errno.c')
-rw-r--r-- | libs/libc/errno.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/libc/errno.c b/libs/libc/errno.c new file mode 100644 index 0000000..7204f5b --- /dev/null +++ b/libs/libc/errno.c @@ -0,0 +1,14 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#include <def.h> +#include <errno.h> +#ifdef userspace + +static u32 error = 0; + +u32 *__errno(void) +{ + return &error; +} + +#endif |