about summary refs log tree commit diff stats
path: root/tools/iso/kernel.soso/syscalltable.h
blob: 61ff5e42a5a86d7ba0cd6175a497be22892d7004 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef SYSCALLTABLE_H
#define SYSCALLTABLE_H

//This file will also be included by C library.
enum {
    SYS_open,  // 0
    SYS_close,  // 1
    SYS_read,  // 2
    SYS_write,  // 3
    SYS_lseek,  // 4
    SYS_stat,  // 5
    SYS_fstat,  // 6
    SYS_ioctl,  // 7
    SYS_exit,  // 8
    SYS_sbrk,  // 9
    SYS_fork,  // 10
    SYS_getpid,  // 11

    //non-posix
    SYS_execute,  // 12
    SYS_execve,  // 13
    SYS_wait,  // 14
    SYS_kill,  // 15
    SYS_mount,  // 16
    SYS_unmount,  // 17
    SYS_mkdir,  // 18
    SYS_rmdir,  // 19
    SYS_getdents,  // 20
    SYS_getWorkingDirectory,  // 21
    SYS_setWorkingDirectory,  // 22
    SYS_managePipe,  // 23
    SYS_readDir,  // 24
    SYS_getUptimeMilliseconds,  // 25
    SYS_sleepMilliseconds,  // 26
    SYS_executeOnTTY,  // 27
    SYS_manageMessage,  // 28
    SYS_UNUSED,  // 29

    SYS_mmap,  // 30
    SYS_munmap,  // 31
    SYS_shm_open,  // 32
    SYS_shm_unlink,  // 33
    SYS_ftruncate,  // 34
    SYS_posix_openpt,  // 35
    SYS_ptsname_r,  // 36

    SYSCALL_COUNT  // 37
};

#endif // SYSCALLTABLE_H