Move compat/linux/syscalls.master to i386. Add a few syscalls while I'm here.
This commit is contained in:
parent
358521eba1
commit
14b1e271b5
@ -1,8 +1,8 @@
|
||||
$NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft Exp $
|
||||
$NetBSD: syscalls.master,v 1.26 1998/10/01 02:03:17 erh Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
; NetBSD COMPAT_LINUX system call name/number "master" file.
|
||||
; NetBSD i386 COMPAT_LINUX system call name/number "master" file.
|
||||
; (See syscalls.conf to see what it is processed into.)
|
||||
;
|
||||
; Fields: number type [type-dependent ...]
|
||||
@ -16,6 +16,8 @@
|
||||
; UNIMPL unimplemented, not included in system
|
||||
; NODEF included, but don't define the syscall number
|
||||
; NOARGS included, but don't define the syscall args structure
|
||||
; INDIR included, but don't define the syscall args structure
|
||||
; and allow it to be "really" varargs.
|
||||
;
|
||||
; The compat options are defined in the syscalls.conf file, and the
|
||||
; compat option name is prefixed to the syscall name. Other than
|
||||
@ -39,9 +41,10 @@
|
||||
|
||||
#include <compat/linux/linux_types.h>
|
||||
#include <compat/linux/linux_signal.h>
|
||||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_siginfo.h>
|
||||
#include <compat/linux/i386/linux_syscallargs.h>
|
||||
|
||||
#include <machine/linux_machdep.h>
|
||||
#include <compat/linux/linux_machdep.h>
|
||||
|
||||
0 NOARGS { int sys_nosys(void); } syscall
|
||||
1 NOARGS { int sys_exit(int rval); }
|
||||
@ -61,7 +64,8 @@
|
||||
13 STD { int linux_sys_time(linux_time_t *t); }
|
||||
14 STD { int linux_sys_mknod(char *path, int mode, int dev); }
|
||||
15 STD { int linux_sys_chmod(char *path, int mode); }
|
||||
16 STD { int linux_sys_chown(char *path, int uid, int gid); }
|
||||
16 STD { int linux_sys_lchown(char *path, int uid, int gid); }
|
||||
;17 - no longer in linux source.
|
||||
17 STD { int linux_sys_break(char *nsize); }
|
||||
18 OBSOL ostat
|
||||
19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
|
||||
@ -78,11 +82,11 @@
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
30 STD { int linux_sys_utime(char *path, \
|
||||
struct linux_utimbuf *times); }
|
||||
31 UNIMPL stty
|
||||
32 UNIMPL gtty
|
||||
31 OBSOL stty
|
||||
32 OBSOL gtty
|
||||
33 STD { int linux_sys_access(char *path, int flags); }
|
||||
34 STD { int linux_sys_nice(int incr); }
|
||||
35 UNIMPL ftime
|
||||
35 OBSOL ftime
|
||||
36 NOARGS { int sys_sync(void); }
|
||||
37 STD { int linux_sys_kill(int pid, int signum); }
|
||||
38 STD { int linux_sys_rename(char *from, char *to); }
|
||||
@ -91,7 +95,7 @@
|
||||
41 NOARGS { int sys_dup(u_int fd); }
|
||||
42 STD { int linux_sys_pipe(int *pfds); }
|
||||
43 STD { int linux_sys_times(struct times *tms); }
|
||||
44 UNIMPL prof
|
||||
44 OBSOL prof
|
||||
45 STD { int linux_sys_brk(char *nsize); }
|
||||
46 NOARGS { int sys_setgid(gid_t gid); }
|
||||
47 NOARGS { gid_t sys_getgid(void); }
|
||||
@ -100,14 +104,14 @@
|
||||
49 NOARGS { uid_t sys_geteuid(void); }
|
||||
50 NOARGS { gid_t sys_getegid(void); }
|
||||
51 NOARGS { int sys_acct(char *path); }
|
||||
52 UNIMPL phys
|
||||
53 UNIMPL lock
|
||||
52 OBSOL phys
|
||||
53 OBSOL lock
|
||||
54 STD { int linux_sys_ioctl(int fd, u_long com, \
|
||||
caddr_t data); }
|
||||
55 STD { int linux_sys_fcntl(int fd, int cmd, void *arg); }
|
||||
56 UNIMPL mpx
|
||||
56 OBSOL mpx
|
||||
57 NOARGS { int sys_setpgid(int pid, int pgid); }
|
||||
58 UNIMPL ulimit
|
||||
58 OBSOL ulimit
|
||||
59 STD { int linux_sys_oldolduname(struct linux_oldold_utsname *up); }
|
||||
60 NOARGS { int sys_umask(int newmask); }
|
||||
61 NOARGS { int sys_chroot(char *path); }
|
||||
@ -117,16 +121,15 @@
|
||||
65 NOARGS { int sys_getpgrp(void); }
|
||||
66 NOARGS { int sys_setsid(void); }
|
||||
67 STD { int linux_sys_sigaction(int signum, \
|
||||
const struct linux_sigaction *nsa, \
|
||||
struct linux_sigaction *osa); }
|
||||
const struct linux_old_sigaction *nsa, \
|
||||
struct linux_old_sigaction *osa); }
|
||||
68 STD { int linux_sys_siggetmask(void); }
|
||||
69 STD { int linux_sys_sigsetmask(linux_sigset_t mask); }
|
||||
69 STD { int linux_sys_sigsetmask(linux_old_sigset_t mask); }
|
||||
70 STD { int linux_sys_setreuid(int ruid, int euid); }
|
||||
71 STD { int linux_sys_setregid(int rgid, int egid); }
|
||||
72 STD { int linux_sys_sigsuspend(caddr_t restart, \
|
||||
int oldmask, int mask); }
|
||||
73 STD { int linux_sys_sigpending( \
|
||||
linux_sigset_t *set); }
|
||||
73 STD { int linux_sys_sigpending(linux_old_sigset_t *set); }
|
||||
74 NOARGS { int compat_43_sys_sethostname(char *hostname, \
|
||||
u_int len);}
|
||||
75 NOARGS { int compat_43_sys_setrlimit(u_int which, \
|
||||
@ -140,7 +143,7 @@
|
||||
struct timezone *tzp); }
|
||||
80 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
81 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
82 STD { int linux_sys_oldselect(struct linux_select *lsp); }
|
||||
82 STD { int linux_sys_oldselect(struct linux_oldselect *lsp); }
|
||||
83 STD { int linux_sys_symlink(char *path, char *to); }
|
||||
84 NOARGS { int compat_43_sys_lstat(char *path, \
|
||||
struct stat43 *up); } oolstat
|
||||
@ -151,7 +154,7 @@
|
||||
88 NOARGS { int sys_reboot(int opt); }
|
||||
89 STD { int linux_sys_readdir(int fd, caddr_t dent, \
|
||||
unsigned int count); }
|
||||
90 STD { int linux_sys_mmap(struct linux_mmap *lmp); }
|
||||
90 STD { int linux_sys_old_mmap(struct linux_oldmmap *lmp); }
|
||||
91 NOARGS { int sys_munmap(caddr_t addr, int len); }
|
||||
92 STD { int linux_sys_truncate(char *path, long length); }
|
||||
93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
|
||||
@ -165,14 +168,10 @@
|
||||
struct linux_statfs *sp); }
|
||||
100 STD { int linux_sys_fstatfs(int fd, \
|
||||
struct linux_statfs *sp); }
|
||||
#ifdef __i386__
|
||||
101 STD { int linux_sys_ioperm(unsigned int lo, \
|
||||
unsigned int hi, int val); }
|
||||
#else
|
||||
101 UNIMPL ioperm
|
||||
#endif
|
||||
102 STD { int linux_sys_socketcall(int what, void *args); }
|
||||
103 UNIMPL klog
|
||||
103 UNIMPL syslog
|
||||
104 NOARGS { int sys_setitimer(u_int which, \
|
||||
struct itimerval *itv, struct itimerval *oitv); }
|
||||
105 NOARGS { int sys_getitimer(u_int which, \
|
||||
@ -183,14 +182,10 @@
|
||||
struct linux_stat *sp); }
|
||||
108 STD { int linux_sys_fstat(int fd, struct linux_stat *sp); }
|
||||
109 STD { int linux_sys_olduname(struct linux_old_utsname *up); }
|
||||
#ifdef __i386__
|
||||
110 STD { int linux_sys_iopl(int level); }
|
||||
#else
|
||||
110 UNIMPL iopl
|
||||
#endif
|
||||
111 UNIMPL vhangup
|
||||
112 UNIMPL idle
|
||||
113 UNIMPL vm86
|
||||
113 UNIMPL vm86old
|
||||
114 STD { int linux_sys_wait4(int pid, int *status, \
|
||||
int options, struct rusage *rusage); }
|
||||
115 UNIMPL swapoff
|
||||
@ -203,17 +198,13 @@
|
||||
121 NOARGS { int compat_09_sys_setdomainname(char *name, \
|
||||
int len); }
|
||||
122 STD { int linux_sys_uname(struct linux_utsname *up); }
|
||||
#ifdef __i386__
|
||||
123 STD { int linux_sys_modify_ldt(int func, void *ptr, \
|
||||
size_t bytecount); }
|
||||
#else
|
||||
123 UNIMPL modify_ldt
|
||||
#endif
|
||||
124 UNIMPL adjtimex
|
||||
125 NOARGS { int sys_mprotect(caddr_t addr, int len, int prot); }
|
||||
126 STD { int linux_sys_sigprocmask(int how, \
|
||||
const linux_sigset_t *set, \
|
||||
linux_sigset_t *oset); }
|
||||
const linux_old_sigset_t *set, \
|
||||
linux_old_sigset_t *oset); }
|
||||
127 UNIMPL create_module
|
||||
128 UNIMPL init_module
|
||||
129 UNIMPL delete_module
|
||||
@ -229,8 +220,8 @@
|
||||
139 UNIMPL getfsuid
|
||||
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, void *dirent, \
|
||||
unsigned count); }
|
||||
141 STD { int linux_sys_getdents(int fd, \
|
||||
struct linux_dirent *dent, unsigned int count); }
|
||||
142 STD { int linux_sys_select(int nfds, fd_set *readfds, \
|
||||
fd_set *writefds, fd_set *exceptfds, \
|
||||
struct timeval *timeout); }
|
||||
@ -259,3 +250,37 @@
|
||||
struct timespec *rmtp); }
|
||||
163 STD { void *linux_sys_mremap(void *old_address, \
|
||||
size_t old_size, size_t new_size, u_long flags); }
|
||||
164 UNIMPL setresuid
|
||||
165 UNIMPL getresuid
|
||||
166 UNIMPL vm86
|
||||
167 UNIMPL query_module
|
||||
168 UNIMPL poll
|
||||
169 UNIMPL nfsservctl
|
||||
170 UNIMPL setresgid
|
||||
171 UNIMPL setresgid
|
||||
172 UNIMPL prctl
|
||||
173 STD { int linux_sys_rt_sigreturn( \
|
||||
struct linux_rt_sigframe *sfp); }
|
||||
174 STD { int linux_sys_rt_sigaction(int signum, \
|
||||
const struct linux_sigaction *nsa, \
|
||||
struct linux_sigaction *osa, \
|
||||
size_t sigsetsize); }
|
||||
175 STD { int linux_sys_rt_sigprocmask(int how, \
|
||||
const linux_sigset_t *set, \
|
||||
linux_sigset_t *oset, \
|
||||
size_t sigsetsize); }
|
||||
176 STD { int linux_sys_rt_sigpending( \
|
||||
linux_sigset_t *set, \
|
||||
size_t sigsetsize); }
|
||||
177 UNIMPL rt_sigtimedwait
|
||||
; XXX XAX int here? sigset_t here? siginfo_t
|
||||
178 STD { int linux_sys_rt_queueinfo(int pid, int signum, \
|
||||
void *uinfo); }
|
||||
179 STD { int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
|
||||
size_t sigsetsize); }
|
||||
180 UNIMPL pread
|
||||
181 UNIMPL pwrite
|
||||
182 STD { int linux_sys_chown(char *path, int uid, int gid); }
|
||||
183 UNIMPL getcwd
|
||||
184 UNIMPL capget
|
||||
185 UNIMPL capset
|
||||
|
@ -1,8 +1,8 @@
|
||||
$NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft Exp $
|
||||
$NetBSD: syscalls.master,v 1.26 1998/10/01 02:03:17 erh Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
; NetBSD COMPAT_LINUX system call name/number "master" file.
|
||||
; NetBSD i386 COMPAT_LINUX system call name/number "master" file.
|
||||
; (See syscalls.conf to see what it is processed into.)
|
||||
;
|
||||
; Fields: number type [type-dependent ...]
|
||||
@ -16,6 +16,8 @@
|
||||
; UNIMPL unimplemented, not included in system
|
||||
; NODEF included, but don't define the syscall number
|
||||
; NOARGS included, but don't define the syscall args structure
|
||||
; INDIR included, but don't define the syscall args structure
|
||||
; and allow it to be "really" varargs.
|
||||
;
|
||||
; The compat options are defined in the syscalls.conf file, and the
|
||||
; compat option name is prefixed to the syscall name. Other than
|
||||
@ -39,9 +41,10 @@
|
||||
|
||||
#include <compat/linux/linux_types.h>
|
||||
#include <compat/linux/linux_signal.h>
|
||||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_siginfo.h>
|
||||
#include <compat/linux/i386/linux_syscallargs.h>
|
||||
|
||||
#include <machine/linux_machdep.h>
|
||||
#include <compat/linux/linux_machdep.h>
|
||||
|
||||
0 NOARGS { int sys_nosys(void); } syscall
|
||||
1 NOARGS { int sys_exit(int rval); }
|
||||
@ -61,7 +64,8 @@
|
||||
13 STD { int linux_sys_time(linux_time_t *t); }
|
||||
14 STD { int linux_sys_mknod(char *path, int mode, int dev); }
|
||||
15 STD { int linux_sys_chmod(char *path, int mode); }
|
||||
16 STD { int linux_sys_chown(char *path, int uid, int gid); }
|
||||
16 STD { int linux_sys_lchown(char *path, int uid, int gid); }
|
||||
;17 - no longer in linux source.
|
||||
17 STD { int linux_sys_break(char *nsize); }
|
||||
18 OBSOL ostat
|
||||
19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
|
||||
@ -78,11 +82,11 @@
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
30 STD { int linux_sys_utime(char *path, \
|
||||
struct linux_utimbuf *times); }
|
||||
31 UNIMPL stty
|
||||
32 UNIMPL gtty
|
||||
31 OBSOL stty
|
||||
32 OBSOL gtty
|
||||
33 STD { int linux_sys_access(char *path, int flags); }
|
||||
34 STD { int linux_sys_nice(int incr); }
|
||||
35 UNIMPL ftime
|
||||
35 OBSOL ftime
|
||||
36 NOARGS { int sys_sync(void); }
|
||||
37 STD { int linux_sys_kill(int pid, int signum); }
|
||||
38 STD { int linux_sys_rename(char *from, char *to); }
|
||||
@ -91,7 +95,7 @@
|
||||
41 NOARGS { int sys_dup(u_int fd); }
|
||||
42 STD { int linux_sys_pipe(int *pfds); }
|
||||
43 STD { int linux_sys_times(struct times *tms); }
|
||||
44 UNIMPL prof
|
||||
44 OBSOL prof
|
||||
45 STD { int linux_sys_brk(char *nsize); }
|
||||
46 NOARGS { int sys_setgid(gid_t gid); }
|
||||
47 NOARGS { gid_t sys_getgid(void); }
|
||||
@ -100,14 +104,14 @@
|
||||
49 NOARGS { uid_t sys_geteuid(void); }
|
||||
50 NOARGS { gid_t sys_getegid(void); }
|
||||
51 NOARGS { int sys_acct(char *path); }
|
||||
52 UNIMPL phys
|
||||
53 UNIMPL lock
|
||||
52 OBSOL phys
|
||||
53 OBSOL lock
|
||||
54 STD { int linux_sys_ioctl(int fd, u_long com, \
|
||||
caddr_t data); }
|
||||
55 STD { int linux_sys_fcntl(int fd, int cmd, void *arg); }
|
||||
56 UNIMPL mpx
|
||||
56 OBSOL mpx
|
||||
57 NOARGS { int sys_setpgid(int pid, int pgid); }
|
||||
58 UNIMPL ulimit
|
||||
58 OBSOL ulimit
|
||||
59 STD { int linux_sys_oldolduname(struct linux_oldold_utsname *up); }
|
||||
60 NOARGS { int sys_umask(int newmask); }
|
||||
61 NOARGS { int sys_chroot(char *path); }
|
||||
@ -117,16 +121,15 @@
|
||||
65 NOARGS { int sys_getpgrp(void); }
|
||||
66 NOARGS { int sys_setsid(void); }
|
||||
67 STD { int linux_sys_sigaction(int signum, \
|
||||
const struct linux_sigaction *nsa, \
|
||||
struct linux_sigaction *osa); }
|
||||
const struct linux_old_sigaction *nsa, \
|
||||
struct linux_old_sigaction *osa); }
|
||||
68 STD { int linux_sys_siggetmask(void); }
|
||||
69 STD { int linux_sys_sigsetmask(linux_sigset_t mask); }
|
||||
69 STD { int linux_sys_sigsetmask(linux_old_sigset_t mask); }
|
||||
70 STD { int linux_sys_setreuid(int ruid, int euid); }
|
||||
71 STD { int linux_sys_setregid(int rgid, int egid); }
|
||||
72 STD { int linux_sys_sigsuspend(caddr_t restart, \
|
||||
int oldmask, int mask); }
|
||||
73 STD { int linux_sys_sigpending( \
|
||||
linux_sigset_t *set); }
|
||||
73 STD { int linux_sys_sigpending(linux_old_sigset_t *set); }
|
||||
74 NOARGS { int compat_43_sys_sethostname(char *hostname, \
|
||||
u_int len);}
|
||||
75 NOARGS { int compat_43_sys_setrlimit(u_int which, \
|
||||
@ -140,7 +143,7 @@
|
||||
struct timezone *tzp); }
|
||||
80 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
81 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
82 STD { int linux_sys_oldselect(struct linux_select *lsp); }
|
||||
82 STD { int linux_sys_oldselect(struct linux_oldselect *lsp); }
|
||||
83 STD { int linux_sys_symlink(char *path, char *to); }
|
||||
84 NOARGS { int compat_43_sys_lstat(char *path, \
|
||||
struct stat43 *up); } oolstat
|
||||
@ -151,7 +154,7 @@
|
||||
88 NOARGS { int sys_reboot(int opt); }
|
||||
89 STD { int linux_sys_readdir(int fd, caddr_t dent, \
|
||||
unsigned int count); }
|
||||
90 STD { int linux_sys_mmap(struct linux_mmap *lmp); }
|
||||
90 STD { int linux_sys_old_mmap(struct linux_oldmmap *lmp); }
|
||||
91 NOARGS { int sys_munmap(caddr_t addr, int len); }
|
||||
92 STD { int linux_sys_truncate(char *path, long length); }
|
||||
93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
|
||||
@ -165,14 +168,10 @@
|
||||
struct linux_statfs *sp); }
|
||||
100 STD { int linux_sys_fstatfs(int fd, \
|
||||
struct linux_statfs *sp); }
|
||||
#ifdef __i386__
|
||||
101 STD { int linux_sys_ioperm(unsigned int lo, \
|
||||
unsigned int hi, int val); }
|
||||
#else
|
||||
101 UNIMPL ioperm
|
||||
#endif
|
||||
102 STD { int linux_sys_socketcall(int what, void *args); }
|
||||
103 UNIMPL klog
|
||||
103 UNIMPL syslog
|
||||
104 NOARGS { int sys_setitimer(u_int which, \
|
||||
struct itimerval *itv, struct itimerval *oitv); }
|
||||
105 NOARGS { int sys_getitimer(u_int which, \
|
||||
@ -183,14 +182,10 @@
|
||||
struct linux_stat *sp); }
|
||||
108 STD { int linux_sys_fstat(int fd, struct linux_stat *sp); }
|
||||
109 STD { int linux_sys_olduname(struct linux_old_utsname *up); }
|
||||
#ifdef __i386__
|
||||
110 STD { int linux_sys_iopl(int level); }
|
||||
#else
|
||||
110 UNIMPL iopl
|
||||
#endif
|
||||
111 UNIMPL vhangup
|
||||
112 UNIMPL idle
|
||||
113 UNIMPL vm86
|
||||
113 UNIMPL vm86old
|
||||
114 STD { int linux_sys_wait4(int pid, int *status, \
|
||||
int options, struct rusage *rusage); }
|
||||
115 UNIMPL swapoff
|
||||
@ -203,17 +198,13 @@
|
||||
121 NOARGS { int compat_09_sys_setdomainname(char *name, \
|
||||
int len); }
|
||||
122 STD { int linux_sys_uname(struct linux_utsname *up); }
|
||||
#ifdef __i386__
|
||||
123 STD { int linux_sys_modify_ldt(int func, void *ptr, \
|
||||
size_t bytecount); }
|
||||
#else
|
||||
123 UNIMPL modify_ldt
|
||||
#endif
|
||||
124 UNIMPL adjtimex
|
||||
125 NOARGS { int sys_mprotect(caddr_t addr, int len, int prot); }
|
||||
126 STD { int linux_sys_sigprocmask(int how, \
|
||||
const linux_sigset_t *set, \
|
||||
linux_sigset_t *oset); }
|
||||
const linux_old_sigset_t *set, \
|
||||
linux_old_sigset_t *oset); }
|
||||
127 UNIMPL create_module
|
||||
128 UNIMPL init_module
|
||||
129 UNIMPL delete_module
|
||||
@ -229,8 +220,8 @@
|
||||
139 UNIMPL getfsuid
|
||||
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, void *dirent, \
|
||||
unsigned count); }
|
||||
141 STD { int linux_sys_getdents(int fd, \
|
||||
struct linux_dirent *dent, unsigned int count); }
|
||||
142 STD { int linux_sys_select(int nfds, fd_set *readfds, \
|
||||
fd_set *writefds, fd_set *exceptfds, \
|
||||
struct timeval *timeout); }
|
||||
@ -259,3 +250,37 @@
|
||||
struct timespec *rmtp); }
|
||||
163 STD { void *linux_sys_mremap(void *old_address, \
|
||||
size_t old_size, size_t new_size, u_long flags); }
|
||||
164 UNIMPL setresuid
|
||||
165 UNIMPL getresuid
|
||||
166 UNIMPL vm86
|
||||
167 UNIMPL query_module
|
||||
168 UNIMPL poll
|
||||
169 UNIMPL nfsservctl
|
||||
170 UNIMPL setresgid
|
||||
171 UNIMPL setresgid
|
||||
172 UNIMPL prctl
|
||||
173 STD { int linux_sys_rt_sigreturn( \
|
||||
struct linux_rt_sigframe *sfp); }
|
||||
174 STD { int linux_sys_rt_sigaction(int signum, \
|
||||
const struct linux_sigaction *nsa, \
|
||||
struct linux_sigaction *osa, \
|
||||
size_t sigsetsize); }
|
||||
175 STD { int linux_sys_rt_sigprocmask(int how, \
|
||||
const linux_sigset_t *set, \
|
||||
linux_sigset_t *oset, \
|
||||
size_t sigsetsize); }
|
||||
176 STD { int linux_sys_rt_sigpending( \
|
||||
linux_sigset_t *set, \
|
||||
size_t sigsetsize); }
|
||||
177 UNIMPL rt_sigtimedwait
|
||||
; XXX XAX int here? sigset_t here? siginfo_t
|
||||
178 STD { int linux_sys_rt_queueinfo(int pid, int signum, \
|
||||
void *uinfo); }
|
||||
179 STD { int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
|
||||
size_t sigsetsize); }
|
||||
180 UNIMPL pread
|
||||
181 UNIMPL pwrite
|
||||
182 STD { int linux_sys_chown(char *path, int uid, int gid); }
|
||||
183 UNIMPL getcwd
|
||||
184 UNIMPL capget
|
||||
185 UNIMPL capset
|
||||
|
@ -1,261 +0,0 @@
|
||||
$NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
; NetBSD COMPAT_LINUX system call name/number "master" file.
|
||||
; (See syscalls.conf to see what it is processed into.)
|
||||
;
|
||||
; Fields: number type [type-dependent ...]
|
||||
; number system call number, must be in order
|
||||
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
|
||||
; the compatibility options defined in syscalls.conf.
|
||||
;
|
||||
; types:
|
||||
; STD always included
|
||||
; OBSOL obsolete, not included in system
|
||||
; UNIMPL unimplemented, not included in system
|
||||
; NODEF included, but don't define the syscall number
|
||||
; NOARGS included, but don't define the syscall args structure
|
||||
;
|
||||
; The compat options are defined in the syscalls.conf file, and the
|
||||
; compat option name is prefixed to the syscall name. Other than
|
||||
; that, they're like NODEF (for 'compat' options), or STD (for
|
||||
; 'libcompat' options).
|
||||
;
|
||||
; The type-dependent arguments are as follows:
|
||||
; For STD, NODEF, NOARGS, and compat syscalls:
|
||||
; { pseudo-proto } [alias]
|
||||
; For other syscalls:
|
||||
; [comment]
|
||||
;
|
||||
; #ifdef's, etc. may be included, and are copied to the output files.
|
||||
; #include's are copied to the syscall names and switch definition files only.
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/syscallargs.h>
|
||||
|
||||
#include <compat/linux/linux_types.h>
|
||||
#include <compat/linux/linux_signal.h>
|
||||
#include <compat/linux/linux_syscallargs.h>
|
||||
|
||||
#include <machine/linux_machdep.h>
|
||||
|
||||
0 NOARGS { int sys_nosys(void); } syscall
|
||||
1 NOARGS { int sys_exit(int rval); }
|
||||
2 NOARGS { int sys_fork(void); }
|
||||
3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
|
||||
4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
|
||||
5 STD { int linux_sys_open(char *path, int flags, int mode); }
|
||||
6 NOARGS { int sys_close(int fd); }
|
||||
7 STD { int linux_sys_waitpid(int pid, int *status, \
|
||||
int options);}
|
||||
8 STD { int linux_sys_creat(char *path, int mode); }
|
||||
9 NOARGS { int sys_link(char *path, char *link); }
|
||||
10 STD { int linux_sys_unlink(char *path); }
|
||||
11 STD { int linux_sys_execve(char *path, char **argp, \
|
||||
char **envp); }
|
||||
12 STD { int linux_sys_chdir(char *path); }
|
||||
13 STD { int linux_sys_time(linux_time_t *t); }
|
||||
14 STD { int linux_sys_mknod(char *path, int mode, int dev); }
|
||||
15 STD { int linux_sys_chmod(char *path, int mode); }
|
||||
16 STD { int linux_sys_chown(char *path, int uid, int gid); }
|
||||
17 STD { int linux_sys_break(char *nsize); }
|
||||
18 OBSOL ostat
|
||||
19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
|
||||
int whence); }
|
||||
20 NOARGS { pid_t sys_getpid(void); }
|
||||
21 UNIMPL mount
|
||||
22 UNIMPL umount
|
||||
23 NOARGS { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS { uid_t sys_getuid(void); }
|
||||
25 UNIMPL stime
|
||||
26 UNIMPL ptrace
|
||||
27 STD { int linux_sys_alarm(unsigned int secs); }
|
||||
28 OBSOL ofstat
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
30 STD { int linux_sys_utime(char *path, \
|
||||
struct linux_utimbuf *times); }
|
||||
31 UNIMPL stty
|
||||
32 UNIMPL gtty
|
||||
33 STD { int linux_sys_access(char *path, int flags); }
|
||||
34 STD { int linux_sys_nice(int incr); }
|
||||
35 UNIMPL ftime
|
||||
36 NOARGS { int sys_sync(void); }
|
||||
37 STD { int linux_sys_kill(int pid, int signum); }
|
||||
38 STD { int linux_sys_rename(char *from, char *to); }
|
||||
39 STD { int linux_sys_mkdir(char *path, int mode); }
|
||||
40 STD { int linux_sys_rmdir(char *path); }
|
||||
41 NOARGS { int sys_dup(u_int fd); }
|
||||
42 STD { int linux_sys_pipe(int *pfds); }
|
||||
43 STD { int linux_sys_times(struct times *tms); }
|
||||
44 UNIMPL prof
|
||||
45 STD { int linux_sys_brk(char *nsize); }
|
||||
46 NOARGS { int sys_setgid(gid_t gid); }
|
||||
47 NOARGS { gid_t sys_getgid(void); }
|
||||
48 STD { int linux_sys_signal(int sig, \
|
||||
linux_handler_t handler); }
|
||||
49 NOARGS { uid_t sys_geteuid(void); }
|
||||
50 NOARGS { gid_t sys_getegid(void); }
|
||||
51 NOARGS { int sys_acct(char *path); }
|
||||
52 UNIMPL phys
|
||||
53 UNIMPL lock
|
||||
54 STD { int linux_sys_ioctl(int fd, u_long com, \
|
||||
caddr_t data); }
|
||||
55 STD { int linux_sys_fcntl(int fd, int cmd, void *arg); }
|
||||
56 UNIMPL mpx
|
||||
57 NOARGS { int sys_setpgid(int pid, int pgid); }
|
||||
58 UNIMPL ulimit
|
||||
59 STD { int linux_sys_oldolduname(struct linux_oldold_utsname *up); }
|
||||
60 NOARGS { int sys_umask(int newmask); }
|
||||
61 NOARGS { int sys_chroot(char *path); }
|
||||
62 UNIMPL ustat
|
||||
63 NOARGS { int sys_dup2(u_int from, u_int to); }
|
||||
64 NOARGS { pid_t sys_getppid(void); }
|
||||
65 NOARGS { int sys_getpgrp(void); }
|
||||
66 NOARGS { int sys_setsid(void); }
|
||||
67 STD { int linux_sys_sigaction(int signum, \
|
||||
const struct linux_sigaction *nsa, \
|
||||
struct linux_sigaction *osa); }
|
||||
68 STD { int linux_sys_siggetmask(void); }
|
||||
69 STD { int linux_sys_sigsetmask(linux_sigset_t mask); }
|
||||
70 STD { int linux_sys_setreuid(int ruid, int euid); }
|
||||
71 STD { int linux_sys_setregid(int rgid, int egid); }
|
||||
72 STD { int linux_sys_sigsuspend(caddr_t restart, \
|
||||
int oldmask, int mask); }
|
||||
73 STD { int linux_sys_sigpending( \
|
||||
linux_sigset_t *set); }
|
||||
74 NOARGS { int compat_43_sys_sethostname(char *hostname, \
|
||||
u_int len);}
|
||||
75 NOARGS { int compat_43_sys_setrlimit(u_int which, \
|
||||
struct orlimit *rlp); }
|
||||
76 NOARGS { int compat_43_sys_getrlimit(u_int which, \
|
||||
struct orlimit *rlp); }
|
||||
77 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
|
||||
78 NOARGS { int sys_gettimeofday(struct timeval *tp, \
|
||||
struct timezone *tzp); }
|
||||
79 NOARGS { int sys_settimeofday(struct timeval *tp, \
|
||||
struct timezone *tzp); }
|
||||
80 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
81 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
|
||||
82 STD { int linux_sys_oldselect(struct linux_select *lsp); }
|
||||
83 STD { int linux_sys_symlink(char *path, char *to); }
|
||||
84 NOARGS { int compat_43_sys_lstat(char *path, \
|
||||
struct stat43 *up); } oolstat
|
||||
85 STD { int linux_sys_readlink(char *name, char *buf, \
|
||||
int count); }
|
||||
86 STD { int linux_sys_uselib(char *path); }
|
||||
87 NOARGS { int compat_12_sys_swapon(char *name); }
|
||||
88 NOARGS { int sys_reboot(int opt); }
|
||||
89 STD { int linux_sys_readdir(int fd, caddr_t dent, \
|
||||
unsigned int count); }
|
||||
90 STD { int linux_sys_mmap(struct linux_mmap *lmp); }
|
||||
91 NOARGS { int sys_munmap(caddr_t addr, int len); }
|
||||
92 STD { int linux_sys_truncate(char *path, long length); }
|
||||
93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
|
||||
94 NOARGS { int sys_fchmod(int fd, int mode); }
|
||||
95 STD { int linux_sys_fchown(int fd, int uid, int gid); }
|
||||
96 NOARGS { int sys_getpriority(int which, int who); }
|
||||
97 NOARGS { int sys_setpriority(int which, int who, int prio); }
|
||||
98 NOARGS { int sys_profil(caddr_t samples, u_int size, \
|
||||
u_int offset, u_int scale); }
|
||||
99 STD { int linux_sys_statfs(char *path, \
|
||||
struct linux_statfs *sp); }
|
||||
100 STD { int linux_sys_fstatfs(int fd, \
|
||||
struct linux_statfs *sp); }
|
||||
#ifdef __i386__
|
||||
101 STD { int linux_sys_ioperm(unsigned int lo, \
|
||||
unsigned int hi, int val); }
|
||||
#else
|
||||
101 UNIMPL ioperm
|
||||
#endif
|
||||
102 STD { int linux_sys_socketcall(int what, void *args); }
|
||||
103 UNIMPL klog
|
||||
104 NOARGS { int sys_setitimer(u_int which, \
|
||||
struct itimerval *itv, struct itimerval *oitv); }
|
||||
105 NOARGS { int sys_getitimer(u_int which, \
|
||||
struct itimerval *itv); }
|
||||
106 STD { int linux_sys_stat(char *path, \
|
||||
struct linux_stat *sp); }
|
||||
107 STD { int linux_sys_lstat(char *path, \
|
||||
struct linux_stat *sp); }
|
||||
108 STD { int linux_sys_fstat(int fd, struct linux_stat *sp); }
|
||||
109 STD { int linux_sys_olduname(struct linux_old_utsname *up); }
|
||||
#ifdef __i386__
|
||||
110 STD { int linux_sys_iopl(int level); }
|
||||
#else
|
||||
110 UNIMPL iopl
|
||||
#endif
|
||||
111 UNIMPL vhangup
|
||||
112 UNIMPL idle
|
||||
113 UNIMPL vm86
|
||||
114 STD { int linux_sys_wait4(int pid, int *status, \
|
||||
int options, struct rusage *rusage); }
|
||||
115 UNIMPL swapoff
|
||||
116 UNIMPL sysinfo
|
||||
117 STD { int linux_sys_ipc(int what, int a1, int a2, int a3, \
|
||||
caddr_t ptr); }
|
||||
118 NOARGS { int sys_fsync(int fd); }
|
||||
119 STD { int linux_sys_sigreturn(struct linux_sigcontext *scp); }
|
||||
120 UNIMPL clone
|
||||
121 NOARGS { int compat_09_sys_setdomainname(char *name, \
|
||||
int len); }
|
||||
122 STD { int linux_sys_uname(struct linux_utsname *up); }
|
||||
#ifdef __i386__
|
||||
123 STD { int linux_sys_modify_ldt(int func, void *ptr, \
|
||||
size_t bytecount); }
|
||||
#else
|
||||
123 UNIMPL modify_ldt
|
||||
#endif
|
||||
124 UNIMPL adjtimex
|
||||
125 NOARGS { int sys_mprotect(caddr_t addr, int len, int prot); }
|
||||
126 STD { int linux_sys_sigprocmask(int how, \
|
||||
const linux_sigset_t *set, \
|
||||
linux_sigset_t *oset); }
|
||||
127 UNIMPL create_module
|
||||
128 UNIMPL init_module
|
||||
129 UNIMPL delete_module
|
||||
130 UNIMPL get_kernel_syms
|
||||
131 UNIMPL quotactl
|
||||
132 STD { int linux_sys_getpgid(int pid); }
|
||||
133 NOARGS { int sys_fchdir(int fd); }
|
||||
134 UNIMPL bdflush
|
||||
135 UNIMPL sysfs
|
||||
136 STD { int linux_sys_personality(int per); }
|
||||
137 UNIMPL afs_syscall
|
||||
138 UNIMPL setfsuid
|
||||
139 UNIMPL getfsuid
|
||||
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, void *dirent, \
|
||||
unsigned count); }
|
||||
142 STD { int linux_sys_select(int nfds, fd_set *readfds, \
|
||||
fd_set *writefds, fd_set *exceptfds, \
|
||||
struct timeval *timeout); }
|
||||
143 NOARGS { int sys_flock(int fd, int how); }
|
||||
144 STD { int linux_sys_msync(caddr_t addr, int len, int fl); }
|
||||
145 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
|
||||
u_int iovcnt); }
|
||||
146 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
|
||||
u_int iovcnt); }
|
||||
147 NOARGS { pid_t sys_getsid(pid_t pid); }
|
||||
148 STD { int linux_sys_fdatasync(int fd); }
|
||||
149 STD { int linux_sys___sysctl(struct linux___sysctl *lsp); }
|
||||
150 NOARGS { int sys_mlock(caddr_t addr, size_t len); }
|
||||
151 NOARGS { int sys_munlock(caddr_t addr, size_t len); }
|
||||
152 UNIMPL mlockall
|
||||
153 UNIMPL munlockall
|
||||
154 UNIMPL sched_setparam
|
||||
155 UNIMPL sched_getparam
|
||||
156 UNIMPL sched_setscheduler
|
||||
157 UNIMPL sched_getscheduler
|
||||
158 UNIMPL sched_yield
|
||||
159 UNIMPL sched_get_priority_max
|
||||
160 UNIMPL sched_get_priority_min
|
||||
161 UNIMPL sched_rr_get_interval
|
||||
162 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
|
||||
struct timespec *rmtp); }
|
||||
163 STD { void *linux_sys_mremap(void *old_address, \
|
||||
size_t old_size, size_t new_size, u_long flags); }
|
Loading…
Reference in New Issue
Block a user