Files
nt-lite/code/kernel/syscall_nr.h
T
2026-04-30 23:52:46 +02:00

38 lines
1.2 KiB
C

#pragma once
// syscall_nr.h - system call numbers
// Shared between kernel (ke_syscall.c) and user mode (syscall.dll).
// Keep in sync with the dispatch table in ke_syscall.c.
#define SYS_EXIT_THREAD 0
#define SYS_EXIT_PROCESS 1
#define SYS_SPAWN 2
#define SYS_SLEEP 3
#define SYS_YIELD 4
#define SYS_ALLOC 5
#define SYS_FREE 6
#define SYS_CREATE_THREAD 7
#define SYS_OPEN_HANDLE 8
#define SYS_CLOSE_HANDLE 9
#define SYS_DBG_PRINT 10
#define SYS_MUTEX_CREATE 11
#define SYS_MUTEX_ACQUIRE 12
#define SYS_MUTEX_RELEASE 13
#define SYS_SEM_CREATE 14
#define SYS_SEM_WAIT 15
#define SYS_SEM_SIGNAL 16
#define SYS_EVENT_CREATE 17
#define SYS_EVENT_SET 18
#define SYS_EVENT_WAIT 19
#define SYS_QUEUE_CREATE 20
#define SYS_QUEUE_SEND 21
#define SYS_QUEUE_RECV 22
#define SYS_SCREEN_BLIT 23
#define SYS_GET_TICK 24
#define SYS_OPEN 25
#define SYS_READ 26
#define SYS_FCLOSE 27
#define SYS_FSEEK 28
#define SYS_FSIZE 29
#define SYS_MAX 30