2023-05-26 22:21:07 +03:00
|
|
|
#ifndef _SYS_SYSCALL_H
|
|
|
|
#define _SYS_SYSCALL_H 1
|
2023-04-12 17:53:02 +03:00
|
|
|
|
2023-05-26 22:21:07 +03:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
#define SYS_EXIT 1
|
|
|
|
#define SYS_READ 2
|
|
|
|
#define SYS_WRITE 3
|
|
|
|
#define SYS_TERMID 4
|
|
|
|
#define SYS_CLOSE 5
|
|
|
|
#define SYS_OPEN 6
|
2023-06-11 03:27:56 +03:00
|
|
|
#define SYS_OPENAT 7
|
|
|
|
#define SYS_SEEK 11
|
|
|
|
#define SYS_TELL 12
|
|
|
|
#define SYS_GET_TERMIOS 13
|
|
|
|
#define SYS_SET_TERMIOS 14
|
|
|
|
#define SYS_FORK 15
|
|
|
|
#define SYS_EXEC 16
|
|
|
|
#define SYS_SLEEP 17
|
|
|
|
#define SYS_WAIT 18
|
|
|
|
#define SYS_FSTAT 19
|
|
|
|
#define SYS_READ_DIR_ENTRIES 21
|
2023-06-11 22:15:35 +03:00
|
|
|
#define SYS_SET_UID 22
|
|
|
|
#define SYS_SET_GID 23
|
|
|
|
#define SYS_SET_EUID 24
|
|
|
|
#define SYS_SET_EGID 25
|
|
|
|
#define SYS_SET_REUID 26
|
|
|
|
#define SYS_SET_REGID 27
|
2023-06-11 22:27:53 +03:00
|
|
|
#define SYS_GET_UID 28
|
|
|
|
#define SYS_GET_GID 29
|
|
|
|
#define SYS_GET_EUID 30
|
|
|
|
#define SYS_GET_EGID 31
|
2023-06-12 01:24:46 +03:00
|
|
|
#define SYS_GET_PWD 32
|
|
|
|
#define SYS_SET_PWD 33
|
2023-07-06 00:38:29 +03:00
|
|
|
#define SYS_CLOCK_GETTIME 34
|
2023-07-06 22:16:26 +03:00
|
|
|
#define SYS_PIPE 35
|
2023-08-17 12:03:29 +03:00
|
|
|
#define SYS_DUP 36
|
|
|
|
#define SYS_DUP2 37
|
|
|
|
#define SYS_KILL 39
|
|
|
|
#define SYS_SIGNAL 40
|
|
|
|
#define SYS_TCSETPGRP 42
|
|
|
|
#define SYS_GET_PID 43
|
2023-08-22 14:53:12 +03:00
|
|
|
#define SYS_GET_PGID 44
|
|
|
|
#define SYS_SET_PGID 45
|
2023-09-04 12:57:09 +03:00
|
|
|
#define SYS_FCNTL 46
|
2023-09-04 12:58:25 +03:00
|
|
|
#define SYS_NANOSLEEP 47
|
2023-09-08 11:46:53 +03:00
|
|
|
#define SYS_FSTATAT 48
|
|
|
|
#define SYS_STAT 49 // stat/lstat
|
2023-09-11 01:26:27 +03:00
|
|
|
#define SYS_SYNC 50
|
2023-09-22 15:41:05 +03:00
|
|
|
#define SYS_MMAP 51
|
|
|
|
#define SYS_MUNMAP 52
|
2023-09-27 15:44:05 +03:00
|
|
|
#define SYS_TTY_CTRL 53
|
2023-09-28 12:36:47 +03:00
|
|
|
#define SYS_POWEROFF 54
|
2023-10-25 02:35:37 +03:00
|
|
|
#define SYS_CHMOD 55
|
2023-10-25 19:45:18 +03:00
|
|
|
#define SYS_CREATE 56 // creat, mkfifo
|
|
|
|
#define SYS_CREATE_DIR 57 // mkdir
|
2023-10-25 21:45:04 +03:00
|
|
|
#define SYS_UNLINK 58
|
2023-11-11 23:16:52 +02:00
|
|
|
#define SYS_READLINK 59
|
|
|
|
#define SYS_READLINKAT 60
|
2023-11-22 22:44:06 +02:00
|
|
|
#define SYS_MSYNC 61
|
2023-11-28 23:47:30 +02:00
|
|
|
#define SYS_PREAD 62
|
2023-05-26 22:21:07 +03:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif
|