summaryrefslogtreecommitdiff
path: root/src/errno
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 13:14:01 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 13:14:01 -0500
commit253a32e2f9ff1cbb8edbe7c79834a678daebeb93 (patch)
tree599cf5baf01c6dae33a2f89989b08b7d553f7fd0 /src/errno
parent88d0b5e7ffbf0554b236dc46225846061b5f4817 (diff)
merge POSIX.1-1988/1990
Diffstat (limited to 'src/errno')
-rw-r--r--src/errno/E2BIG.c8
-rw-r--r--src/errno/EACCES.c8
-rw-r--r--src/errno/EAGAIN.c8
-rw-r--r--src/errno/EBADF.c8
-rw-r--r--src/errno/EBUSY.c8
-rw-r--r--src/errno/ECHILD.c8
-rw-r--r--src/errno/EDEADLK.c8
-rw-r--r--src/errno/EEXIST.c8
-rw-r--r--src/errno/EFAULT.c8
-rw-r--r--src/errno/EFBIG.c8
-rw-r--r--src/errno/EINTR.c8
-rw-r--r--src/errno/EINVAL.c8
-rw-r--r--src/errno/EIO.c8
-rw-r--r--src/errno/EISDIR.c8
-rw-r--r--src/errno/EMFILE.c8
-rw-r--r--src/errno/EMLINK.c8
-rw-r--r--src/errno/ENAMETOOLONG.c8
-rw-r--r--src/errno/ENFILE.c8
-rw-r--r--src/errno/ENODEV.c8
-rw-r--r--src/errno/ENOENT.c8
-rw-r--r--src/errno/ENOEXEC.c8
-rw-r--r--src/errno/ENOLCK.c8
-rw-r--r--src/errno/ENOMEM.c8
-rw-r--r--src/errno/ENOSPC.c8
-rw-r--r--src/errno/ENOSYS.c8
-rw-r--r--src/errno/ENOTDIR.c8
-rw-r--r--src/errno/ENOTEMPTY.c8
-rw-r--r--src/errno/ENOTTY.c8
-rw-r--r--src/errno/ENXIO.c8
-rw-r--r--src/errno/EPERM.c8
-rw-r--r--src/errno/EPIPE.c8
-rw-r--r--src/errno/EROFS.c8
-rw-r--r--src/errno/ESPIPE.c8
-rw-r--r--src/errno/ESRCH.c8
-rw-r--r--src/errno/EXDEV.c8
35 files changed, 280 insertions, 0 deletions
diff --git a/src/errno/E2BIG.c b/src/errno/E2BIG.c
new file mode 100644
index 00000000..0d66967f
--- /dev/null
+++ b/src/errno/E2BIG.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define E2BIG (10)
+
+/** Argument list too long **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EACCES.c b/src/errno/EACCES.c
new file mode 100644
index 00000000..f1030e9f
--- /dev/null
+++ b/src/errno/EACCES.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EACCES (11)
+
+/** Permission denied **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EAGAIN.c b/src/errno/EAGAIN.c
new file mode 100644
index 00000000..9aea1930
--- /dev/null
+++ b/src/errno/EAGAIN.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EAGAIN (12)
+
+/** Resource unavailable, try again **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EBADF.c b/src/errno/EBADF.c
new file mode 100644
index 00000000..a41c8bea
--- /dev/null
+++ b/src/errno/EBADF.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EBADF (13)
+
+/** Bad file descriptor **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EBUSY.c b/src/errno/EBUSY.c
new file mode 100644
index 00000000..5b8cfaa8
--- /dev/null
+++ b/src/errno/EBUSY.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EBUSY (14)
+
+/** Device or resource busy **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ECHILD.c b/src/errno/ECHILD.c
new file mode 100644
index 00000000..1394ae3b
--- /dev/null
+++ b/src/errno/ECHILD.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ECHILD (15)
+
+/** No child processes **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EDEADLK.c b/src/errno/EDEADLK.c
new file mode 100644
index 00000000..3cf4f59d
--- /dev/null
+++ b/src/errno/EDEADLK.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EDEADLK (16)
+
+/** Resource deadlock would occur **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EEXIST.c b/src/errno/EEXIST.c
new file mode 100644
index 00000000..a7322bf3
--- /dev/null
+++ b/src/errno/EEXIST.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EEXIST (17)
+
+/** File exists **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EFAULT.c b/src/errno/EFAULT.c
new file mode 100644
index 00000000..55268766
--- /dev/null
+++ b/src/errno/EFAULT.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EFAULT (18)
+
+/** Bad address **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EFBIG.c b/src/errno/EFBIG.c
new file mode 100644
index 00000000..5d852bfe
--- /dev/null
+++ b/src/errno/EFBIG.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EFBIG (19)
+
+/** File too large **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EINTR.c b/src/errno/EINTR.c
new file mode 100644
index 00000000..bfd966e1
--- /dev/null
+++ b/src/errno/EINTR.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EINTR (20)
+
+/** Interrupted function **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EINVAL.c b/src/errno/EINVAL.c
new file mode 100644
index 00000000..af518243
--- /dev/null
+++ b/src/errno/EINVAL.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EINVAL (21)
+
+/** Invalid argument **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EIO.c b/src/errno/EIO.c
new file mode 100644
index 00000000..b6fb981d
--- /dev/null
+++ b/src/errno/EIO.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EIO (22)
+
+/** I/O error **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EISDIR.c b/src/errno/EISDIR.c
new file mode 100644
index 00000000..fd1d9228
--- /dev/null
+++ b/src/errno/EISDIR.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EISDIR (23)
+
+/** Is a directory **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EMFILE.c b/src/errno/EMFILE.c
new file mode 100644
index 00000000..c9fb1b18
--- /dev/null
+++ b/src/errno/EMFILE.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EMFILE (24)
+
+/** File descriptor value too large **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EMLINK.c b/src/errno/EMLINK.c
new file mode 100644
index 00000000..eadac9f0
--- /dev/null
+++ b/src/errno/EMLINK.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EMLINK (25)
+
+/** Too many links **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENAMETOOLONG.c b/src/errno/ENAMETOOLONG.c
new file mode 100644
index 00000000..8632e0a0
--- /dev/null
+++ b/src/errno/ENAMETOOLONG.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENAMETOOLONG (26)
+
+/** Filename too long **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENFILE.c b/src/errno/ENFILE.c
new file mode 100644
index 00000000..58e8aeb8
--- /dev/null
+++ b/src/errno/ENFILE.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENFILE (27)
+
+/** Too many files open in system **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENODEV.c b/src/errno/ENODEV.c
new file mode 100644
index 00000000..73a61194
--- /dev/null
+++ b/src/errno/ENODEV.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENODEV (28)
+
+/** No such device **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOENT.c b/src/errno/ENOENT.c
new file mode 100644
index 00000000..13ca00b5
--- /dev/null
+++ b/src/errno/ENOENT.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOENT (29)
+
+/** No such file or directory **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOEXEC.c b/src/errno/ENOEXEC.c
new file mode 100644
index 00000000..38bab541
--- /dev/null
+++ b/src/errno/ENOEXEC.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOEXEC (30)
+
+/** Executable file format error **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOLCK.c b/src/errno/ENOLCK.c
new file mode 100644
index 00000000..8a1f34fe
--- /dev/null
+++ b/src/errno/ENOLCK.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOLCK (31)
+
+/** No locks available **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOMEM.c b/src/errno/ENOMEM.c
new file mode 100644
index 00000000..af1d283b
--- /dev/null
+++ b/src/errno/ENOMEM.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOMEM (32)
+
+/** Not enough space **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOSPC.c b/src/errno/ENOSPC.c
new file mode 100644
index 00000000..6e548bf8
--- /dev/null
+++ b/src/errno/ENOSPC.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOSPC (33)
+
+/** No space left on device **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOSYS.c b/src/errno/ENOSYS.c
new file mode 100644
index 00000000..af179b52
--- /dev/null
+++ b/src/errno/ENOSYS.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOSYS (34)
+
+/** Function not supported **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOTDIR.c b/src/errno/ENOTDIR.c
new file mode 100644
index 00000000..6efd7d28
--- /dev/null
+++ b/src/errno/ENOTDIR.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOTDIR (35)
+
+/** Not a directory or a symbolic link to a directory **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOTEMPTY.c b/src/errno/ENOTEMPTY.c
new file mode 100644
index 00000000..70fb1788
--- /dev/null
+++ b/src/errno/ENOTEMPTY.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOTEMPTY (36)
+
+/** Directory not empty **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENOTTY.c b/src/errno/ENOTTY.c
new file mode 100644
index 00000000..82742bef
--- /dev/null
+++ b/src/errno/ENOTTY.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENOTTY (37)
+
+/** Inappropriate I/O control operation **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ENXIO.c b/src/errno/ENXIO.c
new file mode 100644
index 00000000..fdc015aa
--- /dev/null
+++ b/src/errno/ENXIO.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ENXIO (38)
+
+/** No such device or address **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EPERM.c b/src/errno/EPERM.c
new file mode 100644
index 00000000..eee5363b
--- /dev/null
+++ b/src/errno/EPERM.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EPERM (39)
+
+/** Operation not permitted **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EPIPE.c b/src/errno/EPIPE.c
new file mode 100644
index 00000000..d2aa9534
--- /dev/null
+++ b/src/errno/EPIPE.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EPIPE (40)
+
+/** Broken pipe **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EROFS.c b/src/errno/EROFS.c
new file mode 100644
index 00000000..e232bfed
--- /dev/null
+++ b/src/errno/EROFS.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EROFS (41)
+
+/** Read-only file system **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ESPIPE.c b/src/errno/ESPIPE.c
new file mode 100644
index 00000000..b401cc66
--- /dev/null
+++ b/src/errno/ESPIPE.c
@@ -0,0 +1,8 @@
+#inlcude <errno.h>
+
+#define ESPIPE (42)
+
+/** Invalid seek **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/ESRCH.c b/src/errno/ESRCH.c
new file mode 100644
index 00000000..b70fe70c
--- /dev/null
+++ b/src/errno/ESRCH.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define ESRCH (43)
+
+/** No such process **/
+/*
+POSIX(1)
+*/
diff --git a/src/errno/EXDEV.c b/src/errno/EXDEV.c
new file mode 100644
index 00000000..afec7785
--- /dev/null
+++ b/src/errno/EXDEV.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+#define EXDEV (44)
+
+/** Cross-device link **/
+/*
+POSIX(1)
+*/