From c8390a6ca33fe0d7271392e27342ae3576414fe9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 17:49:40 +0200 Subject: add intptr_t, useconds_t, NULL and STD*_FILENO to unistd.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/unistd.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index 85c34d5..f651867 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -29,9 +29,38 @@ #define __NEED_off_t /* TODO not implement */ #define __NEED_pid_t /* TODO not implement */ #define __NEED_ptrdiff_t +#define __NEED_intptr_t +#define __NEED_useconds_t /* TODO not implement */ #include +/** + * `NULL`'s canonical header is . + */ +#ifndef NULL +# define NULL ((void*)0) +#endif + + +/** + * The file descriptor for stdin. + * The file with input. + */ +#define STDIN_FILENO 0 + +/** + * The file descriptor for stdout. + * The file for output. + */ +#define STDOUT_FILENO 1 + +/** + * The file descriptor for stderr. + * The file for error messages and warnings. + */ +#define STDERR_FILENO 2 + + /** * Set the high end of the calling process's * data segment. -- cgit v1.2.3-70-g09d2