summaryrefslogtreecommitdiff
path: root/src/user/lib/stdlib.c
blob: 068635bc87d8227c6cd8bf3b40614bcdfe1fda75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <camellia/syscalls.h>
#include <unistd.h>

int errno = 0;

int fork(void) {
	return _syscall_fork(0, NULL);
}

int close(handle_t h) {
	return _syscall_close(h);
}

_Noreturn void exit(int c) {
	_syscall_exit(c);
}