get rid of pthreads
[ginge.git] / loader / syscalls.h
... / ...
CommitLineData
1#include <stdlib.h>
2
3struct timespec;
4
5void sys_cacheflush(const void *start_addr, const void *end_addr);
6
7long g_syscall(long number, ...);
8
9// arg6 is func ptr, for convenience
10long g_clone(unsigned long flags, void *child_stack, ...);
11
12int g_syscall_error(long kret);
13
14// raw - no errno handling
15long g_open_raw(const char *pathname, int flags, ...);
16long g_read_raw(int fd, void *buf, size_t count);
17long g_write_raw(int fd, const void *buf, size_t count);
18long g_futex_raw(int *uaddr, int op, int val,
19 const struct timespec *timeout);
20long g_nanosleep_raw(const struct timespec *req, struct timespec *rem);
21long g_clock_gettime_raw(int clk_id, const struct timespec *tp);
22long g_rt_sigprocmask_raw(int how, const void *set, void *oldset,
23 size_t sigsetsize);