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_ALLOC 8
|
|
|
|
#define SYS_REALLOC 9
|
|
|
|
#define SYS_FREE 10
|
|
|
|
#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_SETENVP 20
|
|
|
|
#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-05-26 22:21:07 +03:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif
|