diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-01-26 22:41:05 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-01-26 22:41:05 -0500 |
| commit | 8c6d4505329f94446084ca93eae10cd796d79a8d (patch) | |
| tree | c00c6a990c81bd771ebcac72b38fd3ce2382c42e /nonstd/stubs/sys | |
new framework for building sources after gitlab migration
Diffstat (limited to 'nonstd/stubs/sys')
| -rw-r--r-- | nonstd/stubs/sys/mman.h | 13 | ||||
| -rw-r--r-- | nonstd/stubs/sys/stat.h | 0 | ||||
| -rw-r--r-- | nonstd/stubs/sys/types.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/nonstd/stubs/sys/mman.h b/nonstd/stubs/sys/mman.h new file mode 100644 index 00000000..01a201eb --- /dev/null +++ b/nonstd/stubs/sys/mman.h @@ -0,0 +1,13 @@ +#include "nonstd/types.h" + +#ifndef PROT_READ +# define PROT_READ 0x1 +#endif +#ifndef PROT_WRITE +# define PROT_WRITE 0x2 +#endif +#ifndef MAP_PRIVATE +# define MAP_PRIVATE 0x02 +#endif + +#define mmap(_a, _l, _p, _f, _d, _o) __libc.syscall(__libc.syscall_lookup("mmap"), _a, _l, _p, _f, _d, _o) diff --git a/nonstd/stubs/sys/stat.h b/nonstd/stubs/sys/stat.h new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/nonstd/stubs/sys/stat.h diff --git a/nonstd/stubs/sys/types.h b/nonstd/stubs/sys/types.h new file mode 100644 index 00000000..5fe25895 --- /dev/null +++ b/nonstd/stubs/sys/types.h @@ -0,0 +1 @@ +typedef int pid_t; |
