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
//! This module is automatically generated with `syscall_gen.rs.py`,
//! which contains all syscall ID.

/// `0`: fork
pub const SYS_FORK : i64 = 0;
/// `1`: exit
pub const SYS_EXIT : i64 = 1;
/// `2`: wait
pub const SYS_WAIT : i64 = 2;
/// `3`: pipe
pub const SYS_PIPE : i64 = 3;
/// `4`: read
pub const SYS_READ : i64 = 4;
/// `5`: write
pub const SYS_WRITE : i64 = 5;
/// `6`: close
pub const SYS_CLOSE : i64 = 6;
/// `7`: kill
pub const SYS_KILL : i64 = 7;
/// `8`: exec
pub const SYS_EXEC : i64 = 8;
/// `9`: open
pub const SYS_OPEN : i64 = 9;
/// `10`: mknod
pub const SYS_MKNOD : i64 = 10;
/// `11`: unlink
pub const SYS_UNLINK : i64 = 11;
/// `12`: fstat
pub const SYS_FSTAT : i64 = 12;
/// `13`: link
pub const SYS_LINK : i64 = 13;
/// `14`: mkdir
pub const SYS_MKDIR : i64 = 14;
/// `15`: chdir
pub const SYS_CHDIR : i64 = 15;
/// `16`: dup
pub const SYS_DUP : i64 = 16;
/// `17`: getpid
pub const SYS_GETPID : i64 = 17;
/// `18`: sbrk
pub const SYS_SBRK : i64 = 18;
/// `19`: sleep
pub const SYS_SLEEP : i64 = 19;
/// `20`: uptime
pub const SYS_UPTIME : i64 = 20;