diff options
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 |
