Add all uid and gid calls, and do the right thing for the older 16 bit
ones.
This commit is contained in:
parent
7ec49a1f35
commit
11156e7e47
@ -1,4 +1,4 @@
|
||||
$NetBSD: syscalls.master,v 1.51 2000/12/18 14:36:35 fvdl Exp $
|
||||
$NetBSD: syscalls.master,v 1.52 2000/12/27 22:02:41 fvdl Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
@ -83,8 +83,8 @@
|
||||
20 NOARGS { pid_t sys_getpid(void); }
|
||||
21 UNIMPL mount
|
||||
22 UNIMPL umount
|
||||
23 STD { int linux_sys_setuid16(uid_t uid); }
|
||||
24 STD { uid_t linux_sys_getuid16(void); }
|
||||
23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS linux_getuid16 { uid_t sys_getuid(void); }
|
||||
25 STD { int linux_sys_stime(linux_time_t *t); }
|
||||
26 STD { int linux_sys_ptrace(int request, int pid, \
|
||||
int addr, int data); }
|
||||
@ -109,12 +109,12 @@
|
||||
43 STD { int linux_sys_times(struct times *tms); }
|
||||
44 OBSOL prof
|
||||
45 STD { int linux_sys_brk(char *nsize); }
|
||||
46 STD { int linux_sys_setgid16(gid_t gid); }
|
||||
47 STD { gid_t linux_sys_getgid16(void); }
|
||||
46 NOARGS linux_setgid16 { int sys_setgid(gid_t gid); }
|
||||
47 NOARGS linux_getgid16 { gid_t sys_getgid(void); }
|
||||
48 STD { int linux_sys_signal(int signum, \
|
||||
linux_handler_t handler); }
|
||||
49 NOARGS { uid_t linux_sys_geteuid16(void); }
|
||||
50 NOARGS { gid_t linux_sys_getegid16(void); }
|
||||
49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); }
|
||||
50 NOARGS linux_getegid16 { gid_t sys_getegid(void); }
|
||||
51 NOARGS { int sys_acct(char *path); }
|
||||
52 OBSOL phys
|
||||
53 OBSOL lock
|
||||
@ -153,9 +153,8 @@
|
||||
struct timezone *tzp); }
|
||||
79 NOARGS { int sys_settimeofday(struct timeval *tp, \
|
||||
struct timezone *tzp); }
|
||||
; XXX these work with 32 bit gids -- older Linux calls used 16.
|
||||
80 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
81 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
80 STD { int linux_sys_getgroups16(int gidsetsize, linux_gid_t *gidset); }
|
||||
81 STD { int linux_sys_setgroups16(int gidsetsize, linux_gid_t *gidset); }
|
||||
82 STD { int linux_sys_oldselect(struct linux_oldselect *lsp); }
|
||||
83 STD { int linux_sys_symlink(const char *path, \
|
||||
const char *to); }
|
||||
@ -232,8 +231,8 @@
|
||||
135 UNIMPL sysfs
|
||||
136 STD { int linux_sys_personality(int per); }
|
||||
137 UNIMPL afs_syscall
|
||||
138 STD { int linux_sys_setfsuid(uid_t uid); }
|
||||
139 NOARGS { int linux_sys_getfsuid(void); }
|
||||
138 NOARGS linux_setfsuid16 { int linux_sys_setfsuid(uid_t uid); }
|
||||
139 NOARGS linux_getfsuid16 { int linux_sys_getfsuid(void); }
|
||||
140 STD { int linux_sys_llseek(int fd, u_int32_t ohigh, \
|
||||
u_int32_t olow, caddr_t res, int whence); }
|
||||
141 STD { int linux_sys_getdents(int fd, \
|
||||
@ -269,19 +268,19 @@
|
||||
struct timespec *rmtp); }
|
||||
163 STD { void *linux_sys_mremap(void *old_address, \
|
||||
size_t old_size, size_t new_size, u_long flags); }
|
||||
164 STD { int linux_sys_setresuid(uid_t ruid, uid_t euid, \
|
||||
164 STD { int linux_sys_setresuid16(uid_t ruid, uid_t euid, \
|
||||
uid_t suid); }
|
||||
165 STD { int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
|
||||
uid_t *suid); }
|
||||
165 NOARGS linux_getresuid16 { int linux_sys_getresuid( \
|
||||
uid_t *ruid, uid_t *euid, uid_t *suid); }
|
||||
166 UNIMPL vm86
|
||||
167 UNIMPL query_module
|
||||
168 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
|
||||
int timeout); }
|
||||
169 UNIMPL nfsservctl
|
||||
170 STD { int linux_sys_setresgid(gid_t rgid, gid_t egid, \
|
||||
170 STD { int linux_sys_setresgid16(gid_t rgid, gid_t egid, \
|
||||
gid_t sgid); }
|
||||
171 STD { int linux_sys_getresgid(gid_t *rgid, gid_t *egid, \
|
||||
gid_t *sgid); }
|
||||
171 NOARGS linux_getresgid16 { int linux_sys_getresgid( \
|
||||
gid_t *rgid, gid_t *egid, gid_t *sgid); }
|
||||
172 UNIMPL prctl
|
||||
173 STD { int linux_sys_rt_sigreturn( \
|
||||
struct linux_rt_sigframe *sfp); }
|
||||
@ -322,14 +321,14 @@
|
||||
192 UNIMPL mmap2
|
||||
193 STD { int linux_sys_truncate64(const char *path, \
|
||||
off_t length); }
|
||||
194 NOARGS ftruncate64 { int sys_ftruncate(int fd, off_t length); }
|
||||
194 NOARGS linux_ftruncate64 { int sys_ftruncate(int fd, off_t length); }
|
||||
195 STD { int linux_sys_stat64(const char *path, \
|
||||
struct linux_stat64 *sp); }
|
||||
196 STD { int linux_sys_lstat64(const char *path, \
|
||||
struct linux_stat64 *sp); }
|
||||
197 STD { int linux_sys_fstat64(int fd, \
|
||||
struct linux_stat64 *sp); }
|
||||
198 NOARGS { int sys___posix_lchown(const char *path, uid_t uid, \
|
||||
198 STD { int linux_sys_lchown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
199 NOARGS { uid_t sys_getuid(void); }
|
||||
200 NOARGS { gid_t sys_getgid(void); }
|
||||
@ -337,18 +336,22 @@
|
||||
202 NOARGS { gid_t sys_getegid(void); }
|
||||
203 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
|
||||
204 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
|
||||
205 UNIMPL getgroups
|
||||
206 UNIMPL setgroups
|
||||
205 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
206 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
207 NOARGS { int sys___posix_fchown(int fd, uid_t uid, \
|
||||
gid_t gid); }
|
||||
208 UNIMPL setresuid
|
||||
209 UNIMPL getresuid
|
||||
210 UNIMPL setresgid
|
||||
211 UNIMPL getresgid
|
||||
212 NOARGS { int sys___posix_chown(const char *path, uid_t uid, \
|
||||
208 STD { int linux_sys_setresuid(uid_t ruid, uid_t euid, \
|
||||
uid_t suid); }
|
||||
209 STD { int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
|
||||
uid_t *suid); }
|
||||
210 STD { int linux_sys_setresgid(gid_t rgid, gid_t egid, \
|
||||
gid_t sgid); }
|
||||
211 STD { int linux_sys_getresgid(gid_t *rgid, gid_t *egid, \
|
||||
gid_t *sgid); }
|
||||
212 STD { int linux_sys_chown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
213 NOARGS { int sys_setuid(uid_t uid); }
|
||||
214 NOARGS { int sys_setgid(gid_t gid); }
|
||||
215 UNIMPL setfsuid
|
||||
216 UNIMPL setfsgid
|
||||
215 STD { int linux_sys_setfsuid(uid_t uid); }
|
||||
216 NOARGS { int linux_sys_getfsuid(void); }
|
||||
217 UNIMPL pivot_root
|
||||
|
Loading…
Reference in New Issue
Block a user