void runtime·exit(int32 r) { runtime·sysvicall6(libc·exit, 1, (uintptr)r); }
int32 runtime·fcntl(int32 fd, int32 cmd, uintptr arg) { return runtime·sysvicall6(libc·fcntl, 3, (uintptr)fd, (uintptr)cmd, (uintptr)arg); }
int32 runtime·port_associate(int32 port, int32 source, uintptr object, int32 events, uintptr user) { return runtime·sysvicall6(libc·port_associate, 5, (uintptr)port, (uintptr)source, object, (uintptr)events, user); }
int32 runtime·write(int32 fd, void* buf, int32 nbyte) { return runtime·sysvicall6(libc·write, 3, (uintptr)fd, (uintptr)buf, (uintptr)nbyte); }
int32 runtime·port_dissociate(int32 port, int32 source, uintptr object) { return runtime·sysvicall6(libc·port_dissociate, 3, (uintptr)port, (uintptr)source, object); }
/* int32 */ void runtime·sigaltstack(Sigaltstack* ss, Sigaltstack* oss) { runtime·sysvicall6(libc·sigaltstack, 2, (uintptr)ss, (uintptr)oss); }
int64 runtime·sysconf(int32 name) { return runtime·sysvicall6(libc·sysconf, 1, (uintptr)name); }
int32 runtime·pthread_attr_destroy(PthreadAttr* attr) { return runtime·sysvicall6(libc·pthread_attr_destroy, 1, (uintptr)attr); }
int32 runtime·pthread_attr_init(PthreadAttr* attr) { return runtime·sysvicall6(libc·pthread_attr_init, 1, (uintptr)attr); }
int64 runtime·nanotime(void) { return runtime·sysvicall6((uintptr)runtime·nanotime1, 0); }
int32 runtime·open(int8* path, int32 oflag, int32 mode) { return runtime·sysvicall6(libc·open, 3, (uintptr)path, (uintptr)oflag, (uintptr)mode); }
void runtime·munmap(byte* addr, uintptr len) { runtime·sysvicall6(libc·munmap, 2, (uintptr)addr, (uintptr)len); }
int32 runtime·getrlimit(int32 res, Rlimit* rlp) { return runtime·sysvicall6(libc·getrlimit, 2, (uintptr)res, (uintptr)rlp); }
/* int32 */ void runtime·getcontext(Ucontext* context) { runtime·sysvicall6(libc·getcontext, 1, (uintptr)context); }
/* int32 */ void runtime·setitimer(int32 which, Itimerval* value, Itimerval* ovalue) { runtime·sysvicall6(libc·setitimer, 3, (uintptr)which, (uintptr)value, (uintptr)ovalue); }
int32 runtime·pthread_attr_setdetachstate(PthreadAttr* attr, int32 state) { return runtime·sysvicall6(libc·pthread_attr_setdetachstate, 2, (uintptr)attr, (uintptr)state); }
/* int32 */ void runtime·sigaction(int32 sig, struct Sigaction* act, struct Sigaction* oact) { runtime·sysvicall6(libc·sigaction, 3, (uintptr)sig, (uintptr)act, (uintptr)oact); }
int32 runtime·pthread_attr_setstack(PthreadAttr* attr, void* addr, uint64 size) { return runtime·sysvicall6(libc·pthread_attr_setstack, 3, (uintptr)attr, (uintptr)addr, (uintptr)size); }
/* int32 */ void runtime·sigprocmask(int32 how, Sigset* set, Sigset* oset) { runtime·sysvicall6(libc·sigprocmask, 3, (uintptr)how, (uintptr)set, (uintptr)oset); }
int32 runtime·pthread_create(Pthread* thread, PthreadAttr* attr, void(*fn)(void), void *arg) { return runtime·sysvicall6(libc·pthread_create, 4, (uintptr)thread, (uintptr)attr, (uintptr)fn, (uintptr)arg); }
void runtime·usleep(uint32 us) { runtime·sysvicall6(libc·usleep, 1, (uintptr)us); }
/* int32 */ void runtime·raise(int32 sig) { runtime·sysvicall6(libc·raise, 1, (uintptr)sig); }
void runtime·osyield(void) { runtime·sysvicall6(libc·sched_yield, 0); }
int32 runtime·sem_init(SemT* sem, int32 pshared, uint32 value) { return runtime·sysvicall6(libc·sem_init, 3, (uintptr)sem, (uintptr)pshared, (uintptr)value); }
int32 runtime·port_getn(int32 port, PortEvent *evs, uint32 max, uint32 *nget, Timespec *timeout) { return runtime·sysvicall6(libc·port_getn, 5, (uintptr)port, (uintptr)evs, (uintptr)max, (uintptr)nget, (uintptr)timeout); }
int32 runtime·sem_reltimedwait_np(SemT* sem, Timespec* timeout) { return runtime·sysvicall6(libc·sem_reltimedwait_np, 2, (uintptr)sem, (uintptr)timeout); }
int32 runtime·port_create(void) { return runtime·sysvicall6(libc·port_create, 0); }
int32 runtime·sem_wait(SemT* sem) { return runtime·sysvicall6(libc·sem_wait, 1, (uintptr)sem); }
runtime·mmap(byte* addr, uintptr len, int32 prot, int32 flags, int32 fildes, uint32 off) { return (uint8*)runtime·sysvicall6(libc·mmap, (uintptr)addr, (uintptr)len, (uintptr)prot, (uintptr)flags, (uintptr)fildes, (uintptr)off); }
int32 runtime·close(int32 fd) { return runtime·sysvicall6(libc·close, 1, (uintptr)fd); }