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-07-06 22:21:51 +0200 |
| commit | 55f32781ea611873a08f195d437fc0123919d685 (patch) | |
| tree | f0d953026bdb76fd97d079528bb5f80aa759c184 /src/libc/include/errno.h | |
| parent | 6da94b9e8be7078f0249d1c0782e1375a01f8660 (diff) | |
| download | wnix-55f32781ea611873a08f195d437fc0123919d685.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 |
