ref: d9f166d27405597b2267a203d0e9ae660a963334
parent: 4fc08c89c81450f1f30e0b58e2579cd4425cee62
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Mar 8 01:54:18 EST 2017
[libc] Add syscall.h This is the set of needed syscalls that system has to supply.
--- /dev/null
+++ b/libc/src/syscall.h
@@ -1,0 +1,11 @@
+/* See LICENSE file for copyright and license details. */
+
+extern void *_brk(void *addr);
+extern int _open(char *path, int flags, int perm);
+extern int _close(int fd);
+extern int _read(int fd, void *buf, size_t n);
+extern int _write(int fd, void *buf, size_t n);
+extern int _lseek(int fd, long off, int whence);
+extern void _Exit(int status);
+extern int raise(int sig);
+extern void (*signal(int sig, void (*func)(int)))(int);