Skip to content

Commit 82dd53a

Browse files
committed
syscall: add more syscall numbers
1 parent b2d3b4a commit 82dd53a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

src/sys/syscall.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ mod arch {
1010

1111
pub type Syscall = c_long;
1212

13-
pub static SYSPIVOTROOT: Syscall = 155;
14-
pub static MEMFD_CREATE: Syscall = 319;
13+
pub const SOCKET: Syscall = 41;
14+
pub const CONNECT: Syscall = 42;
15+
pub const SENDMSG: Syscall = 46;
16+
pub const RECVMSG: Syscall = 47;
17+
pub const SYSPIVOTROOT: Syscall = 155;
18+
pub const MEMFD_CREATE: Syscall = 319;
1519
}
1620

1721
#[cfg(target_arch = "x86")]
@@ -20,8 +24,9 @@ mod arch {
2024

2125
pub type Syscall = c_long;
2226

23-
pub static SYSPIVOTROOT: Syscall = 217;
24-
pub static MEMFD_CREATE: Syscall = 356;
27+
pub const SOCKETCALL: Syscall = 102;
28+
pub const SYSPIVOTROOT: Syscall = 217;
29+
pub const MEMFD_CREATE: Syscall = 356;
2530
}
2631

2732
#[cfg(target_arch = "aarch64")]
@@ -40,8 +45,12 @@ mod arch {
4045

4146
pub type Syscall = c_long;
4247

43-
pub static SYSPIVOTROOT: Syscall = 218;
44-
pub static MEMFD_CREATE: Syscall = 385;
48+
pub const SYSPIVOTROOT: Syscall = 218;
49+
pub const SOCKET: Syscall = 281;
50+
pub const CONNECT: Syscall = 283;
51+
pub const SENDMSG: Syscall = 296;
52+
pub const RECVMSG: Syscall = 297;
53+
pub const MEMFD_CREATE: Syscall = 385;
4554
}
4655

4756

0 commit comments

Comments
 (0)