blob: 7261afc5145cacd43edba9f58dbe3b4be3b2aca9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef MELVIX_SYSCALL_H
#define MELVIX_SYSCALL_H
#include <stdint.h>
#include <interrupts/interrupts.h>
extern void idt_syscall();
void syscalls_install();
u32 sys_exit(u32 code);
u32 sys_fork(struct regs *r);
u32 sys_read(char *path, u32 offset, u32 count, u8 *buf);
u32 sys_write(char *path, u32 offset, u32 count, u8 *buf);
u32 sys_exec(char *path);
u32 sys_get_pid();
u32 sys_malloc(u32 count);
u32 sys_free(u32 ptr);
#endif
|