diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-07-06 22:11:12 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-09-08 21:10:27 +0200 |
| commit | c849930b5319373978180569506180570320e978 (patch) | |
| tree | 4c286b988540ec1156ac7fc9756f690f7dc8c4a9 /src/libc/include/errno.h | |
| parent | c8f9dbd494732c43d5b3626ba7010bf27d1f7664 (diff) | |
| download | wnix-c849930b5319373978180569506180570320e978.tar.gz | |
Setup libc skeleton
Diffstat (limited to 'src/libc/include/errno.h')
| -rw-r--r-- | src/libc/include/errno.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/libc/include/errno.h b/src/libc/include/errno.h new file mode 100644 index 0000000..0456645 --- /dev/null +++ b/src/libc/include/errno.h @@ -0,0 +1,43 @@ +#ifndef _ERRNO_H +#define _ERRNO_H + +extern int errno; + +enum +{ + OK, + EPERM, + ENOENT, + ESRCH, + EINTR, + EIO, + ENXIO, + E2BIG, + ENOEXEC, + EBADF, + ECHILD, + EAGAIN, + ENOMEM, + EACCES, + EFAULT, + ENOTBLK, + EBUSY, + EEXIST, + EXDEV, + ENODEV, + ENOTDIR, + EISDIR, + EINVAL, + ENFILE, + EMFILE, + ENOTTY, + ETXTBSY, + EFBIG, + ENOSPC, + ESPIPE, + EROFS, + EMLINK, + EPIPE, +}; + +#endif |
