/
constant_32.m4
59 lines (56 loc) · 1.83 KB
/
constant_32.m4
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
51
52
53
54
55
56
57
58
59
_C{ ------------------------------------------------------------ }
_C{ syscalls are copied from }
_C{https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_32.tbl
}
_C{ ------------------------------------------------------------ }
_C{ https://github.com/torvalds/linux/tree/master/arch/x86/entry/syscalls}
_C{ you may benefit from the program stealconstant }
_C{ https://github.com/albertvanderhorst/stealconstant }
SEEK_SET EQU 0x0
SEEK_CUR EQU 0x1
TCGETS EQU 0x5401
TCSETS EQU 0x5402
ECHO EQU 0x8
EAGAIN EQU 0xb
EINTR EQU 0x4
EPIPE EQU 0x20
VMIN EQU 0x6
VTIME EQU 0x5
ICANON EQU 0x2
O_RDWR EQU 0x2
O_RDONLY EQU 0x0
O_WRONLY EQU 0x1
O_CREAT EQU 0x40
O_NONBLOCK EQU 0x800
CLONE_VM EQU 0x100
SIZE_TERMIO EQU 0x3c
_C{ Numbers of system calls. See "Linux kernel Internals" Appendix A. }
_C{ By M.Beck, H. Boehme e.a. Addison Wesley. }
_C{ The system calls themselves are extensively documented in chapter }
_C{ 2 of the man pages, e.g. "man 2 exit"}
exit EQU 0x1
open EQU 0x5
close EQU 0x6
creat EQU 0x8
unlink EQU 0xa
chdir EQU 0xc
read EQU 0x3
select EQU 0x52
_newselect EQU 0x8e
write EQU 0x4
ioctl EQU 0x36
ioperm EQU 0x65
iopl EQU 0x6e
lseek EQU 0x13
execve EQU 0xb
fork EQU 0x2
waitpid EQU 0x7
pipe EQU 0x2a
clone EQU 0x78
kill EQU 0x25
signal EQU 0x30
time EQU 0xd
__NR_times EQU 0x2b
_C{ ------------------------------------------------------------ }
_C{ End of constants stolen from C. }
_C{ ------------------------------------------------------------ }