summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_dummy.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-08-25 11:19:03 +0000
committermarcel <marcel@FreeBSD.org>1999-08-25 11:19:03 +0000
commitfb2dacbbb4b1a6aca19ec6a0f0c9f3057e7fde1d (patch)
tree5ad0e54e16c816f3f37d039997a938d9cfd5b15d /sys/i386/linux/linux_dummy.c
parentadfc64bd57f1536273a6c0a7290590afbc66e363 (diff)
downloadFreeBSD-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/i386/linux/linux_dummy.c')
-rw-r--r--sys/i386/linux/linux_dummy.c37
1 files changed, 33 insertions, 4 deletions
diff --git a/sys/i386/linux/linux_dummy.c b/sys/i386/linux/linux_dummy.c
index 3dba686..7a3caff 100644
--- a/sys/i386/linux/linux_dummy.c
+++ b/sys/i386/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);
OpenPOWER on IntegriCloud