1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

Add sys_nerr and sys_errlist.

Also keep the canonical errno list in LibC for now. The kernel gets it
from there. This makes building 3rd party code easier.

..also fix broken strchr().
This commit is contained in:
Andreas Kling 2018-11-06 14:13:16 +01:00
parent b2d23f83ab
commit 8d1f8b2518
3 changed files with 24 additions and 87 deletions

View file

@ -1,7 +1,7 @@
#pragma once
#include <sys/cdefs.h>
#include <Kernel/errno.h>
#include <errno_numbers.h>
#define __RETURN_WITH_ERRNO(rc, good_ret, bad_ret) \
do { \
@ -16,7 +16,8 @@
__BEGIN_DECLS
extern const char* sys_errlist[];
extern int sys_nerr;
extern int errno;
__END_DECLS