summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-08-25 11:17:36 +0000
committermarcel <marcel@FreeBSD.org>1999-08-25 11:17:36 +0000
commitadfc64bd57f1536273a6c0a7290590afbc66e363 (patch)
tree6b54159de186d05847558234d9f1921e6c19e67a /sys/alpha
parent1c5673261356a602ee742adacec962e5cf89d068 (diff)
downloadFreeBSD-src-adfc64bd57f1536273a6c0a7290590afbc66e363.zip
FreeBSD-src-adfc64bd57f1536273a6c0a7290590afbc66e363.tar.gz
Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we always
know if and when an unimplemented or obsoleted syscall is being used. Make the message more end-user friendly. And as long as we're here, rename some unimplemeted syscalls (linux_phys -> linux_umount2, linux_vm86 -> linux_vm86old, linux_new_vm86 -> linux_vm86). Change prototype for linux_newuname from `struct linux_newuname_t *' into `struct linux_new_utsname *'. This change is reflected in linux.h and linux_misc.c. Lastly, make line-continuation and indentation more uniform.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/linux/syscalls.master173
1 files changed, 87 insertions, 86 deletions
diff --git a/sys/alpha/linux/syscalls.master b/sys/alpha/linux/syscalls.master
index ea86a28..369ee6f 100644
--- a/sys/alpha/linux/syscalls.master
+++ b/sys/alpha/linux/syscalls.master
@@ -1,4 +1,4 @@
- $Id: syscalls.master,v 1.21 1999/08/15 17:25:56 marcel Exp $
+ $Id: syscalls.master,v 1.22 1999/08/16 11:47:21 marcel Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
; System call name/number master file (or rather, slave, from LINUX).
@@ -38,11 +38,13 @@
4 NOPROTO LINUX { int write(int fd, char *buf, u_int nbyte); }
5 STD LINUX { int linux_open(char *path, int flags, int mode); }
6 NOPROTO LINUX { int close(int fd); }
-7 STD LINUX { int linux_waitpid(int pid, int *status, int options);}
+7 STD LINUX { int linux_waitpid(int pid, int *status, \
+ int options); }
8 STD LINUX { int linux_creat(char *path, int mode); }
9 STD LINUX { int linux_link(char *path, char *to); }
10 STD LINUX { int linux_unlink(char *path); }
-11 STD LINUX { int linux_execve(char *path, char **argp, char **envp); }
+11 STD LINUX { int linux_execve(char *path, char **argp, \
+ char **envp); }
12 STD LINUX { int linux_chdir(char *path); }
13 STD LINUX { int linux_time(linux_time_t *tm); }
14 STD LINUX { int linux_mknod(char *path, int mode, int dev); }
@@ -61,7 +63,8 @@
27 STD LINUX { int linux_alarm(unsigned int secs); }
28 STD LINUX { int linux_fstat(int fd, struct ostat *up); }
29 STD LINUX { int linux_pause(void); }
-30 STD LINUX { int linux_utime(char *fname, struct linux_utimbuf *times); }
+30 STD LINUX { int linux_utime(char *fname, \
+ struct linux_utimbuf *times); }
31 STD LINUX { int linux_stty(void); }
32 STD LINUX { int linux_gtty(void); }
33 STD LINUX { int linux_access(char *path, int flags); }
@@ -83,14 +86,14 @@
49 NOPROTO LINUX { int geteuid(void); }
50 NOPROTO LINUX { int getegid(void); }
51 NOPROTO LINUX { int acct(char *path); }
-52 STD LINUX { int linux_phys(void); }
+52 STD LINUX { int linux_umount2(void); }
53 STD LINUX { int linux_lock(void); }
54 STD LINUX { int linux_ioctl(int fd, u_long cmd, int arg); }
55 STD LINUX { int linux_fcntl(int fd, int cmd, int arg); }
56 STD LINUX { int linux_mpx(void); }
57 NOPROTO LINUX { int setpgid(int pid, int pgid); }
58 STD LINUX { int linux_ulimit(void); }
-59 STD LINUX { int linux_olduname(struct linux_oldold_utsname *up); }
+59 STD LINUX { int linux_olduname(void); }
60 NOPROTO LINUX { int umask(int newmask); }
61 NOPROTO LINUX { int chroot(char *path); }
62 STD LINUX { int linux_ustat(void); }
@@ -99,40 +102,40 @@
65 NOPROTO LINUX { int getpgrp(void); }
66 NOPROTO LINUX { int setsid(void); }
67 STD LINUX { int linux_sigaction(int sig, \
- struct linux_sigaction *nsa, \
- struct linux_sigaction *osa); }
+ struct linux_sigaction *nsa, \
+ struct linux_sigaction *osa); }
68 STD LINUX { int linux_siggetmask(void); }
69 STD LINUX { int linux_sigsetmask(linux_sigset_t mask); }
70 NOPROTO LINUX { int setreuid(int ruid, int euid); }
71 NOPROTO LINUX { int setregid(int rgid, int egid); }
72 STD LINUX { int linux_sigsuspend(int restart, \
- linux_sigset_t oldmask, linux_sigset_t mask); }
+ linux_sigset_t oldmask, linux_sigset_t mask); }
73 STD LINUX { int linux_sigpending(linux_sigset_t *mask); }
-74 NOPROTO LINUX { int osethostname(char *hostname, \
- u_int len);}
+74 NOPROTO LINUX { int osethostname(char *hostname, u_int len); }
75 STD LINUX { int linux_setrlimit(u_int resource, \
- struct ogetrlimit *rlim); }
+ struct ogetrlimit *rlim); }
76 STD LINUX { int linux_getrlimit(u_int resource, \
- struct ogetrlimit *rlim); }
+ struct ogetrlimit *rlim); }
77 NOPROTO LINUX { int getrusage(int who, struct rusage *rusage); }
78 NOPROTO LINUX { int gettimeofday(struct timeval *tp, \
- struct timezone *tzp); }
+ struct timezone *tzp); }
79 NOPROTO LINUX { int settimeofday(struct timeval *tp, \
- struct timezone *tzp); }
+ struct timezone *tzp); }
80 STD LINUX { int linux_getgroups(u_int gidsetsize, \
- linux_gid_t *gidset); }
+ linux_gid_t *gidset); }
81 STD LINUX { int linux_setgroups(u_int gidsetsize, \
- linux_gid_t *gidset); }
+ linux_gid_t *gidset); }
82 STD LINUX { int linux_select(struct linux_select_argv *ptr); }
83 STD LINUX { int linux_symlink(char *path, char *to); }
84 NOPROTO LINUX { int ostat(char *path, struct ostat *up); }
85 STD LINUX { int linux_readlink(char *name, char *buf, \
- int count); }
+ int count); }
86 STD LINUX { int linux_uselib(char *library); }
87 NOPROTO LINUX { int swapon(char *name); }
88 NOPROTO LINUX { int reboot(int opt); }
-89 STD LINUX { int linux_readdir(int fd, struct linux_dirent *dent, \
- unsigned int count); }
+89 STD LINUX { int linux_readdir(int fd, \
+ struct linux_dirent *dent, \
+ unsigned int count); }
90 STD LINUX { int linux_mmap(struct linux_mmap_argv *ptr); }
91 NOPROTO LINUX { int munmap(caddr_t addr, int len); }
92 STD LINUX { int linux_truncate(char *path, long length); }
@@ -142,47 +145,48 @@
96 NOPROTO LINUX { int getpriority(int which, int who); }
97 NOPROTO LINUX { int setpriority(int which, int who, int prio); }
98 NOPROTO LINUX { int profil(caddr_t samples, u_int size, \
- u_int offset, u_int scale); }
+ u_int offset, u_int scale); }
99 STD LINUX { int linux_statfs(char *path, \
- struct linux_statfs_buf *buf); }
+ struct linux_statfs_buf *buf); }
100 STD LINUX { int linux_fstatfs(int fd, \
- struct linux_statfs_buf *buf); }
+ struct linux_statfs_buf *buf); }
101 STD LINUX { int linux_ioperm(unsigned int lo, \
- unsigned int hi, int val); }
+ unsigned int hi, int val); }
102 STD LINUX { int linux_socketcall(int what, void *args); }
103 STD LINUX { int linux_ksyslog(int what); }
104 STD LINUX { int linux_setitimer(u_int which, \
- struct itimerval *itv, struct itimerval *oitv); }
+ struct itimerval *itv, \
+ struct itimerval *oitv); }
105 STD LINUX { int linux_getitimer(u_int which, \
- struct itimerval *itv); }
+ struct itimerval *itv); }
106 STD LINUX { int linux_newstat(char *path, \
- struct linux_newstat *buf); }
+ struct linux_newstat *buf); }
107 STD LINUX { int linux_newlstat(char *path, \
- struct linux_newstat *buf); }
-108 STD LINUX { int linux_newfstat(int fd, struct linux_newstat *buf); }
-109 STD LINUX { int linux_uname(struct linux_old_utsname *up); }
+ struct linux_newstat *buf); }
+108 STD LINUX { int linux_newfstat(int fd, \
+ struct linux_newstat *buf); }
+109 STD LINUX { int linux_uname(void); }
110 STD LINUX { int linux_iopl(int level); }
111 STD LINUX { int linux_vhangup(void); }
112 STD LINUX { int linux_idle(void); }
-113 STD LINUX { int linux_vm86(void); }
+113 STD LINUX { int linux_vm86old(void); }
114 STD LINUX { int linux_wait4(int pid, int *status, \
- int options, struct rusage *rusage); }
+ int options, struct rusage *rusage); }
115 STD LINUX { int linux_swapoff(void); }
116 STD LINUX { int linux_sysinfo(void); }
-117 STD LINUX { int linux_ipc(int what, int arg1, int arg2, int arg3, \
- caddr_t ptr); }
+117 STD LINUX { int linux_ipc(int what, int arg1, int arg2, \
+ int arg3, caddr_t ptr); }
118 NOPROTO LINUX { int fsync(int fd); }
119 STD LINUX { int linux_sigreturn(struct linux_sigcontext *scp); }
120 STD LINUX { int linux_clone(int flags, void *stack); }
-121 NOPROTO LINUX { int setdomainname(char *name, \
- int len); }
-122 STD LINUX { int linux_newuname(struct linux_newuname_t *buf); }
+121 NOPROTO LINUX { int setdomainname(char *name, int len); }
+122 STD LINUX { int linux_newuname(struct linux_new_utsname *buf); }
123 STD LINUX { int linux_modify_ldt(int func, void *ptr, \
- size_t bytecount); }
+ size_t bytecount); }
124 STD LINUX { int linux_adjtimex(void); }
125 NOPROTO LINUX { int mprotect(caddr_t addr, int len, int prot); }
126 STD LINUX { int linux_sigprocmask(int how, \
- linux_sigset_t *mask, linux_sigset_t *omask); }
+ linux_sigset_t *mask, linux_sigset_t *omask); }
127 STD LINUX { int linux_create_module(void); }
128 STD LINUX { int linux_init_module(void); }
129 STD LINUX { int linux_delete_module(void); }
@@ -191,64 +195,61 @@
132 STD LINUX { int linux_getpgid(int pid); }
133 NOPROTO LINUX { int fchdir(int fd); }
134 STD LINUX { int linux_bdflush(void); }
-135 UNIMPL LINUX sysfs
+135 STD LINUX { int linux_sysfs(int option, u_long arg1, \
+ u_long arg2); }
136 STD LINUX { int linux_personality(int per); }
-137 UNIMPL LINUX afs_syscall
-138 UNIMPL LINUX setfsuid
-139 UNIMPL LINUX getfsuid
+137 STD LINUX { int linux_afs_syscall(void); }
+138 STD LINUX { int linux_setfsuid(linux_uid_t uid); }
+139 STD LINUX { int linux_setfsgid(linux_gid_t gid); }
140 STD LINUX { int linux_llseek(int fd, u_int32_t ohigh, \
- u_int32_t olow, caddr_t res, int whence); }
+ u_int32_t olow, caddr_t res, int whence); }
141 STD LINUX { int linux_getdents(int fd, void *dent, \
- unsigned count); }
+ unsigned count); }
142 STD LINUX { int linux_newselect(int nfds, fd_set *readfds, \
- fd_set *writefds, fd_set *exceptfds, \
- struct timeval *timeout); }
+ fd_set *writefds, fd_set *exceptfds, \
+ struct timeval *timeout); }
143 NOPROTO LINUX { int flock(int fd, int how); }
144 STD LINUX { int linux_msync(caddr_t addr, int len, int fl); }
145 NOPROTO LINUX { int readv(int fd, struct iovec *iovp, \
u_int iovcnt); }
146 NOPROTO LINUX { int writev(int fd, struct iovec *iovp, \
u_int iovcnt); }
-
-; Turn on getsid after checking that it matches.
-
-147 UNIMPL LINUX getsid
-148 UNIMPL LINUX fdatasync
-149 UNIMPL LINUX _sysctl
-
+147 STD LINUX { int linux_getsid(linux_pid_t pid); }
+148 STD LINUX { int linux_fdatasync(int fd); }
+149 STD LINUX { int linux_sysctl(void); }
150 NOPROTO BSD { int mlock(const void *addr, size_t len); }
151 NOPROTO BSD { int munlock(const void *addr, size_t len); }
152 NOPROTO BSD { int mlockall(int how); }
153 NOPROTO BSD { int munlockall(void); }
-
-154 NOPROTO POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); }
-155 NOPROTO POSIX { int sched_getparam (pid_t pid, struct sched_param *param); }
-
+154 NOPROTO POSIX { int sched_setparam (pid_t pid, \
+ const struct sched_param *param); }
+155 NOPROTO POSIX { int sched_getparam (pid_t pid, \
+ struct sched_param *param); }
156 STD POSIX { int linux_sched_setscheduler(pid_t pid, int policy, \
const struct sched_param *param); }
157 STD POSIX { int linux_sched_getscheduler(pid_t pid); }
-
158 NOPROTO POSIX { int sched_yield (void); }
159 NOPROTO POSIX { int sched_get_priority_max (int policy); }
160 NOPROTO POSIX { int sched_get_priority_min (int policy); }
-161 NOPROTO POSIX { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
-
+161 NOPROTO POSIX { int sched_rr_get_interval (pid_t pid, \
+ struct timespec *interval); }
162 NOPROTO POSIX { int nanosleep(const struct timespec *rqtp, \
- struct timespec *rmtp); }
-
+ struct timespec *rmtp); }
163 STD LINUX { int linux_mremap(caddr_t addr, int old_len, \
- int new_len, int flags); }
-164 UNIMPL LINUX setresuid
-165 UNIMPL LINUX getresuid
-166 UNIMPL LINUX new_vm86
-167 UNIMPL LINUX query_module
+ int new_len, int flags); }
+164 STD LINUX { int linux_setresuid(linux_uid_t ruid, \
+ linux_uid_t euid, linux_uid_t suid); }
+165 STD LINUX { int linux_getresuid(linux_uid_t *ruid, \
+ linux_uid_t *euid, linux_uid_t *suid); }
+166 STD LINUX { int linux_vm86(void); }
+167 STD LINUX { int linux_query_module(void); }
168 NOPROTO LINUX { int poll(struct pollfd*, unsigned int nfds, \
- long timeout); }
-169 UNIMPL LINUX nfsservctl
-170 UNIMPL LINUX setresgid
-171 UNIMPL LINUX getresgid
-172 UNIMPL LINUX prctl
-173 UNIMPL LINUX rt_sigreturn
+ long timeout); }
+169 STD LINUX { int linux_nfsservctl(void); }
+170 STD LINUX { int linux_setresgid(void); }
+171 STD LINUX { int linux_getresgid(void); }
+172 STD LINUX { int linux_prctl(void); }
+173 STD LINUX { int linux_rt_sigreturn(void); }
174 STD LINUX { int linux_rt_sigaction(int sig, \
struct linux_new_sigaction *act, \
struct linux_new_sigaction *oact, \
@@ -257,18 +258,18 @@
struct linux_new_sigset *mask, \
struct linux_new_sigset *omask, \
size_t sigsetsize); }
-176 UNIMPL LINUX rt_sigpending
-177 UNIMPL LINUX rt_sigtimedwait
-178 UNIMPL LINUX rt_sigqueueinfo
-179 UNIMPL LINUX rt_sigsuspend
-180 UNIMPL LINUX pread
-181 UNIMPL LINUX pwrite
+176 STD LINUX { int linux_rt_sigpending(void); }
+177 STD LINUX { int linux_rt_sigtimedwait(void); }
+178 STD LINUX { int linux_rt_sigqueueinfo(void); }
+179 STD LINUX { int linux_rt_sigsuspend(void); }
+180 STD LINUX { int linux_pread(void); }
+181 STD LINUX { int linux_pwrite(void); }
182 STD LINUX { int linux_chown(char *path, int uid, int gid); }
183 STD LINUX { int linux_getcwd(char *buf, unsigned long bufsize); }
-184 UNIMPL LINUX capget
-185 UNIMPL LINUX capset
-186 UNIMPL LINUX sigaltstack
-187 UNIMPL LINUX sendfile
-188 UNIMPL LINUX getpmsg
-189 UNIMPL LINUX putpmsg
+184 STD LINUX { int linux_capget(void); }
+185 STD LINUX { int linux_capset(void); }
+186 STD LINUX { int linux_sigaltstack(void); }
+187 STD LINUX { int linux_sendfile(void); }
+188 STD LINUX { int linux_getpmsg(void); }
+189 STD LINUX { int linux_putpmsg(void); }
190 STD LINUX { int linux_vfork(void); }
OpenPOWER on IntegriCloud