diff options
author | marcel <marcel@FreeBSD.org> | 1999-08-25 11:19:03 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-08-25 11:19:03 +0000 |
commit | fb2dacbbb4b1a6aca19ec6a0f0c9f3057e7fde1d (patch) | |
tree | 5ad0e54e16c816f3f37d039997a938d9cfd5b15d /sys/alpha/linux | |
parent | adfc64bd57f1536273a6c0a7290590afbc66e363 (diff) | |
download | FreeBSD-src-fb2dacbbb4b1a6aca19ec6a0f0c9f3057e7fde1d.zip FreeBSD-src-fb2dacbbb4b1a6aca19ec6a0f0c9f3057e7fde1d.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.
Diffstat (limited to 'sys/alpha/linux')
-rw-r--r-- | sys/alpha/linux/linux.h | 11 | ||||
-rw-r--r-- | sys/alpha/linux/linux_dummy.c | 37 |
2 files changed, 43 insertions, 5 deletions
diff --git a/sys/alpha/linux/linux.h b/sys/alpha/linux/linux.h index 47987f7..93fafa2 100644 --- a/sys/alpha/linux/linux.h +++ b/sys/alpha/linux/linux.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux.h,v 1.33 1999/08/14 17:28:46 marcel Exp $ + * $Id: linux.h,v 1.34 1999/08/15 17:28:39 marcel Exp $ */ #ifndef _I386_LINUX_LINUX_H_ @@ -67,6 +67,15 @@ typedef struct { linux_new_sigset_t lsa_mask; } linux_new_sigaction_t; +#define LINUX_MAX_UTSNAME 65 +struct linux_new_utsname { + char sysname[LINUX_MAX_UTSNAME]; + char nodename[LINUX_MAX_UTSNAME]; + char release[LINUX_MAX_UTSNAME]; + char version[LINUX_MAX_UTSNAME]; + char machine[LINUX_MAX_UTSNAME]; + char domainname[LINUX_MAX_UTSNAME]; +}; /* * The Linux sigcontext, pretty much a standard 386 trapframe. diff --git a/sys/alpha/linux/linux_dummy.c b/sys/alpha/linux/linux_dummy.c index 3dba686..7a3caff 100644 --- a/sys/alpha/linux/linux_dummy.c +++ b/sys/alpha/linux/linux_dummy.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_dummy.c,v 1.9 1998/12/19 02:55:33 julian Exp $ + * $Id: linux_dummy.c,v 1.10 1999/08/15 18:59:44 marcel Exp $ */ #include <sys/param.h> @@ -46,7 +46,8 @@ struct __hack static int unsupported_msg(struct proc *p, const char *fname) { - printf("Linux-emul(%ld): %s() not supported\n", (long)p->p_pid, fname); + printf("linux: syscall %s is not implemented or obsoleted (pid=%ld)\n", + fname, (long)p->p_pid); return (ENOSYS); } @@ -62,7 +63,7 @@ DUMMY(stty); DUMMY(gtty); DUMMY(ftime); DUMMY(prof); -DUMMY(phys); +DUMMY(umount2); DUMMY(lock); DUMMY(mpx); DUMMY(ulimit); @@ -73,7 +74,7 @@ DUMMY(ksyslog); DUMMY(uname); DUMMY(vhangup); DUMMY(idle); -DUMMY(vm86); +DUMMY(vm86old); DUMMY(swapoff); DUMMY(sysinfo); DUMMY(modify_ldt); @@ -84,3 +85,31 @@ DUMMY(delete_module); DUMMY(get_kernel_syms); DUMMY(quotactl); DUMMY(bdflush); +DUMMY(sysfs); +DUMMY(afs_syscall); +DUMMY(setfsuid); +DUMMY(setfsgid); +DUMMY(getsid); +DUMMY(fdatasync); +DUMMY(sysctl); +DUMMY(setresuid); +DUMMY(getresuid); +DUMMY(vm86); +DUMMY(query_module); +DUMMY(nfsservctl); +DUMMY(setresgid); +DUMMY(getresgid); +DUMMY(prctl); +DUMMY(rt_sigreturn); +DUMMY(rt_sigpending); +DUMMY(rt_sigtimedwait); +DUMMY(rt_sigqueueinfo); +DUMMY(rt_sigsuspend); +DUMMY(pread); +DUMMY(pwrite); +DUMMY(capget); +DUMMY(capset); +DUMMY(sigaltstack); +DUMMY(sendfile); +DUMMY(getpmsg); +DUMMY(putpmsg); |