diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-02 13:12:59 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-02 13:12:59 -0500 |
| commit | aa2c7727b1ee7b3747681f6b78f9ef0d36beb749 (patch) | |
| tree | 2d637999ffbf3661fa5ef2e6e93bf40bff13672f /nonstd/stubs/unistd.h | |
| parent | a4bd7a9c848d024ecb9c2bd9af0facaec728ba30 (diff) | |
trim old nonstd
Diffstat (limited to 'nonstd/stubs/unistd.h')
| -rw-r--r-- | nonstd/stubs/unistd.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/nonstd/stubs/unistd.h b/nonstd/stubs/unistd.h deleted file mode 100644 index 8e16c2e8..00000000 --- a/nonstd/stubs/unistd.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef __UNISTD_H__ -#define __UNISTD_H__ - -#include <stddef.h> -#include "nonstd/syscall.h" - -#define open(path, mode, flags) __libc.syscall(__libc.syscall_lookup("open"), path, mode, flags) -#define close(fd) __libc.syscall(__libc.syscall_lookup("close"), fd) -#define write(fd, buf, nbyte) __libc.syscall(__libc.syscall_lookup("write"), fd, buf, nbyte) -#define read(fd, buf, nbyte) __libc.syscall(__libc.syscall_lookup("read"), fd, buf, nbyte) -#define kill(pid, sig) __libc.syscall(__libc.syscall_lookup("kill"), pid, sig) -#define getpid() __libc.syscall(__libc.syscall_lookup("getpid")) -#define _exit(status) __libc.syscall(__libc.syscall_lookup("exit"), status) - -#endif |
