[hackers] [scc] [libc] Add syscall.h || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 8 Mar 2017 14:51:13 +0100 (CET)

commit 364b30425621daa66c1c5f29ced30ff973e9ea34
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Mar 8 06:54:18 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Mar 8 14:49:14 2017 +0100

    [libc] Add syscall.h
    This is the set of needed syscalls that system has to supply.

diff --git a/libc/src/syscall.h b/libc/src/syscall.h
new file mode 100644
index 0000000..70ba362
--- /dev/null
+++ b/libc/src/syscall.h
_AT_@ -0,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);
Received on Wed Mar 08 2017 - 14:51:13 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 08 2017 - 15:00:25 CET