summaryrefslogtreecommitdiff
path: root/src/errno/errno.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
commit7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f (patch)
tree092ab0aed1769117fd7b28b8592f6f96b0e0d5af /src/errno/errno.c
parent6acf19370e8adff79cd83b257d3f04aeaf2a59dd (diff)
merge sources into single tree
Diffstat (limited to 'src/errno/errno.c')
-rw-r--r--src/errno/errno.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/errno/errno.c b/src/errno/errno.c
new file mode 100644
index 00000000..007526b8
--- /dev/null
+++ b/src/errno/errno.c
@@ -0,0 +1,23 @@
+#include <errno.h>
+#define errno (*__errno())
+
+/** get system errors **/
+
+/***
+is a modifiable lvalue of type TYPE(int) which is used to
+indicate errors in standard library functions. It may be a macro or an
+identifier with external linkage. It is initialized to 0 at program start,
+but no function in the standard library will set it to 0. Library functions
+may set it to a non-zero value if its use is not documented in their
+description.
+***/
+
+/*
+UNSPECIFIED(Whether THIS() is declared as a macro or an identifier with external linkage (C89, C95, and C99 only))
+UNDEFINED(A macro definition of THIS() is suppressed)
+UNDEFINED(A program defines an identifier named THIS())
+*/
+
+/*
+STDC(1)
+*/