aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 17:42:46 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 17:42:46 +0200
commit3ef26113aa47415d606e1ae5648d56271c8aa837 (patch)
treea02eb596b61526c887dff9837d80bcb47e4c0c5e /include/stdlib.h
parentadd ffs functions (diff)
downloadslibc-3ef26113aa47415d606e1ae5648d56271c8aa837.tar.gz
slibc-3ef26113aa47415d606e1ae5648d56271c8aa837.tar.bz2
slibc-3ef26113aa47415d606e1ae5648d56271c8aa837.tar.xz
add EXIT_SUCCESS and EXIT_FAILURE
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index c02e094..f24fbf3 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -35,13 +35,26 @@
/**
- * `NULL`'s canonical header is <stddef.h>
+ * `NULL`'s canonical header is <stddef.h>.
*/
#ifndef NULL
# define NULL ((void*)0)
#endif
+/**
+ * The value a process shall exit with upon
+ * success completion.
+ */
+#define EXIT_SUCCESS 0
+
+/**
+ * A standard value a process can exit with
+ * if it terminates because of failure.
+ */
+#define EXIT_FAILURE 1
+
+
#endif