summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.h
blob: c010a619f2fc7b65e097e7f4c7c5588ac4e02692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// note: this file gets included in both kernel and userland
#pragma once
#include <stddef.h>

enum {
	// idc about stable syscall numbers just yet
	_SYSCALL_EXIT,
	_SYSCALL_FORK,

	_SYSCALL_DEBUGLOG
};

_Noreturn void _syscall_exit(const char *msg, size_t len);
int _syscall_fork();
int _syscall_debuglog(const char *msg, size_t len);