@@ -13,9 +13,9 @@ extern "C" {
13
13
#endif
14
14
15
15
int __syscall_chdir (intptr_t path );
16
- int __syscall_mknod (intptr_t path , int mode , int dev );
17
- int __syscall_chmod (intptr_t path , int mode );
18
- int __syscall_getpid (void );
16
+ int __syscall_mknod (intptr_t path , mode_t mode , dev_t dev );
17
+ int __syscall_chmod (intptr_t path , mode_t mode );
18
+ pid_t __syscall_getpid (void );
19
19
int __syscall_pause (void );
20
20
int __syscall_access (intptr_t path , int amode );
21
21
int __syscall_sync (void );
@@ -24,26 +24,26 @@ int __syscall_dup(int fd);
24
24
int __syscall_pipe (intptr_t fd );
25
25
int __syscall_acct (intptr_t filename );
26
26
int __syscall_ioctl (int fd , int request , ...);
27
- int __syscall_setpgid (int pid , int gpid );
28
- int __syscall_umask (int mask );
29
- int __syscall_getppid (void );
30
- int __syscall_getpgrp (void );
31
- int __syscall_setsid (void );
27
+ int __syscall_setpgid (pid_t pid , pid_t gpid );
28
+ mode_t __syscall_umask (mode_t mask );
29
+ pid_t __syscall_getppid (void );
30
+ pid_t __syscall_getpgrp (void );
31
+ pid_t __syscall_setsid (void );
32
32
int __syscall_getrusage (int who , intptr_t usage );
33
33
int __syscall_munmap (intptr_t addr , size_t len );
34
- int __syscall_fchmod (int fd , int mode );
35
- int __syscall_getpriority (int which , int who );
36
- int __syscall_setpriority (int which , int who , int prio );
34
+ int __syscall_fchmod (int fd , mode_t mode );
35
+ int __syscall_getpriority (int which , id_t who );
36
+ int __syscall_setpriority (int which , id_t who , int prio );
37
37
int __syscall_socketcall (int call , intptr_t args );
38
- int __syscall_wait4 (int pid , intptr_t wstatus , int options , int rusage );
38
+ pid_t __syscall_wait4 (pid_t pid , intptr_t wstatus , int options , int rusage );
39
39
int __syscall_setdomainname (intptr_t name , size_t size );
40
40
int __syscall_uname (intptr_t buf );
41
41
int __syscall_mprotect (size_t addr , size_t len , int prot );
42
- int __syscall_getpgid (int pid );
42
+ pid_t __syscall_getpgid (pid_t pid );
43
43
int __syscall_fchdir (int fd );
44
44
int __syscall__newselect (int nfds , intptr_t readfds , intptr_t writefds , intptr_t exceptfds , intptr_t timeout );
45
45
int __syscall_msync (intptr_t addr , size_t len , int flags );
46
- int __syscall_getsid (int pid );
46
+ pid_t __syscall_getsid (pid_t pid );
47
47
int __syscall_fdatasync (int fd );
48
48
int __syscall_mlock (intptr_t addr , size_t len );
49
49
int __syscall_munlock (intptr_t addr , size_t len );
@@ -58,20 +58,20 @@ int __syscall_ftruncate64(int fd, off_t length);
58
58
int __syscall_stat64 (intptr_t path , intptr_t buf );
59
59
int __syscall_lstat64 (intptr_t path , intptr_t buf );
60
60
int __syscall_fstat64 (int fd , intptr_t buf );
61
- int __syscall_getuid32 (void );
62
- int __syscall_getgid32 (void );
63
- int __syscall_geteuid32 (void );
64
- int __syscall_getegid32 (void );
65
- int __syscall_setreuid32 (int ruid , int euid );
66
- int __syscall_setregid32 (int rgid , int egid );
67
- int __syscall_getgroups32 (int size , intptr_t list );
68
- int __syscall_fchown32 (int fd , int owner , int group );
69
- int __syscall_setresuid32 (int ruid , int euid , int suid );
61
+ uid_t __syscall_getuid32 (void );
62
+ gid_t __syscall_getgid32 (void );
63
+ uid_t __syscall_geteuid32 (void );
64
+ gid_t __syscall_getegid32 (void );
65
+ int __syscall_setreuid32 (uid_t ruid , uid_t euid );
66
+ int __syscall_setregid32 (gid_t rgid , gid_t egid );
67
+ int __syscall_getgroups32 (int count , intptr_t list );
68
+ int __syscall_fchown32 (int fd , uid_t owner , gid_t group );
69
+ int __syscall_setresuid32 (uid_t ruid , uid_t euid , uid_t suid );
70
70
int __syscall_getresuid32 (intptr_t ruid , intptr_t euid , intptr_t suid );
71
- int __syscall_setresgid32 (int rgid , int egid , int sgid );
71
+ int __syscall_setresgid32 (gid_t rgid , gid_t egid , gid_t sgid );
72
72
int __syscall_getresgid32 (intptr_t rgid , intptr_t egid , intptr_t sgid );
73
- int __syscall_setuid32 (int uid );
74
- int __syscall_setgid32 (int uid );
73
+ int __syscall_setuid32 (uid_t uid );
74
+ int __syscall_setgid32 (gid_t gid );
75
75
int __syscall_mincore (intptr_t addr , size_t length , intptr_t vec );
76
76
int __syscall_madvise (intptr_t addr , size_t length , int advice );
77
77
int __syscall_getdents64 (int fd , intptr_t dirp , size_t count );
@@ -80,24 +80,24 @@ int __syscall_statfs64(intptr_t path, size_t size, intptr_t buf);
80
80
int __syscall_fstatfs64 (int fd , size_t size , intptr_t buf );
81
81
int __syscall_fadvise64 (int fd , off_t offset , off_t length , int advice );
82
82
int __syscall_openat (int dirfd , intptr_t path , int flags , ...); // mode is optional
83
- int __syscall_mkdirat (int dirfd , intptr_t path , int mode );
84
- int __syscall_mknodat (int dirfd , intptr_t path , int mode , int dev );
85
- int __syscall_fchownat (int dirfd , intptr_t path , int owner , int group , int flags );
83
+ int __syscall_mkdirat (int dirfd , intptr_t path , mode_t mode );
84
+ int __syscall_mknodat (int dirfd , intptr_t path , mode_t mode , dev_t dev );
85
+ int __syscall_fchownat (int dirfd , intptr_t path , uid_t owner , gid_t group , int flags );
86
86
int __syscall_newfstatat (int dirfd , intptr_t path , intptr_t buf , int flags );
87
87
int __syscall_unlinkat (int dirfd , intptr_t path , int flags );
88
88
int __syscall_renameat (int olddirfd , intptr_t oldpath , int newdirfd , intptr_t newpath );
89
89
int __syscall_linkat (int olddirfd , intptr_t oldpath , int newdirfd , intptr_t newpath , int flags );
90
90
int __syscall_symlinkat (intptr_t target , int newdirfd , intptr_t linkpath );
91
91
int __syscall_readlinkat (int dirfd , intptr_t path , intptr_t buf , size_t bufsize );
92
- int __syscall_fchmodat2 (int dirfd , intptr_t path , int mode , int flags );
92
+ int __syscall_fchmodat2 (int dirfd , intptr_t path , mode_t mode , int flags );
93
93
int __syscall_faccessat (int dirfd , intptr_t path , int amode , int flags );
94
94
int __syscall_pselect6 (int nfds , intptr_t readfds , intptr_t writefds , intptr_t exceptfds , intptr_t timeout , intptr_t sigmaks );
95
95
int __syscall_utimensat (int dirfd , intptr_t path , intptr_t times , int flags );
96
96
int __syscall_fallocate (int fd , int mode , off_t offset , off_t len );
97
97
int __syscall_dup3 (int fd , int suggestfd , int flags );
98
98
int __syscall_pipe2 (intptr_t fds , int flags );
99
99
int __syscall_recvmmsg (int sockfd , intptr_t msgvec , size_t vlen , int flags , ...);
100
- int __syscall_prlimit64 (int pid , int resource , intptr_t new_limit , intptr_t old_limit );
100
+ int __syscall_prlimit64 (pid_t pid , int resource , intptr_t new_limit , intptr_t old_limit );
101
101
int __syscall_sendmmsg (int sockfd , intptr_t msgvec , size_t vlen , int flags , ...);
102
102
int __syscall_socket (int domain , int type , int protocol , int dummy1 , int dummy2 , int dummy3 );
103
103
int __syscall_socketpair (int domain , int type , int protocol , intptr_t fds , int dummy , int dummy2 );
0 commit comments