2019-12-29 16:39:30 +01:00
|
|
|
#ifndef __KERNEL_UNISTD_32_H__
|
|
|
|
# define __KERNEL_UNISTD_32_H__
|
|
|
|
|
2020-03-23 15:58:48 +01:00
|
|
|
// Define the number of syscall
|
|
|
|
#define __NR_MAX 14
|
|
|
|
|
2020-01-05 09:00:43 +01:00
|
|
|
// Kernel Test
|
|
|
|
#define __NR_test_syscall 0
|
|
|
|
|
|
|
|
// Process
|
2019-12-30 16:31:03 +01:00
|
|
|
#define __NR_exit 1
|
2020-02-05 21:09:39 +01:00
|
|
|
#define __NR_fexecve 2
|
2020-01-05 09:00:43 +01:00
|
|
|
#define __NR_waitpid 3
|
2020-03-23 15:58:48 +01:00
|
|
|
#define __NR_wait 4
|
|
|
|
#define __NR_getpid 5
|
|
|
|
#define __NR_getppid 6
|
|
|
|
#define __NR_getpgid 7
|
|
|
|
#define __NR_setpgid 8
|
2020-01-05 09:00:43 +01:00
|
|
|
|
|
|
|
// VFS
|
2020-03-23 15:58:48 +01:00
|
|
|
#define __NR_read 9
|
|
|
|
#define __NR_write 10
|
|
|
|
#define __NR_open 11
|
|
|
|
#define __NR_close 12
|
|
|
|
#define __NR_lseek 13
|
2019-12-29 16:39:30 +01:00
|
|
|
|
|
|
|
#endif /*__KERNEL_UNISTD_32_H__*/
|