2024-08-07 06:35:06 +02:00
|
|
|
#pragma once
|
|
|
|
|
2006-09-07 16:13:26 +02:00
|
|
|
// System call numbers
|
2024-06-15 16:55:06 +02:00
|
|
|
#define SYS_fork 1
|
|
|
|
#define SYS_exit 2
|
|
|
|
#define SYS_wait 3
|
|
|
|
#define SYS_pipe 4
|
|
|
|
#define SYS_read 5
|
|
|
|
#define SYS_kill 6
|
|
|
|
#define SYS_exec 7
|
|
|
|
#define SYS_fstat 8
|
|
|
|
#define SYS_chdir 9
|
2011-07-28 02:35:46 +02:00
|
|
|
#define SYS_dup 10
|
|
|
|
#define SYS_getpid 11
|
|
|
|
#define SYS_sbrk 12
|
|
|
|
#define SYS_sleep 13
|
|
|
|
#define SYS_uptime 14
|
|
|
|
#define SYS_open 15
|
|
|
|
#define SYS_write 16
|
|
|
|
#define SYS_mknod 17
|
|
|
|
#define SYS_unlink 18
|
|
|
|
#define SYS_link 19
|
|
|
|
#define SYS_mkdir 20
|
|
|
|
#define SYS_close 21
|
2024-08-07 06:39:09 +02:00
|
|
|
#define SYS_trace 22
|
2024-08-09 07:58:00 +02:00
|
|
|
#define SYS_halt 23
|