summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_ioctl.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-01 00:50:57 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-01 00:50:57 +0000
commita82c8140c72f0f55d9967dc458496992fce2292f (patch)
tree387a5aa34c61ef778d9a1b49b596ea6b459cb2b3 /sys/compat/svr4/svr4_ioctl.c
parent6edefdb68777d682eb395900b8905a95bd3cac7d (diff)
Merge of NetBSD 0722
Diffstat (limited to 'sys/compat/svr4/svr4_ioctl.c')
-rw-r--r--sys/compat/svr4/svr4_ioctl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/compat/svr4/svr4_ioctl.c b/sys/compat/svr4/svr4_ioctl.c
index 2a8eb1c0033..510c5179d24 100644
--- a/sys/compat/svr4/svr4_ioctl.c
+++ b/sys/compat/svr4/svr4_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_ioctl.c,v 1.5 1996/04/21 22:18:20 deraadt Exp $ */
+/* $OpenBSD: svr4_ioctl.c,v 1.6 1996/08/01 00:50:52 niklas Exp $ */
/* $NetBSD: svr4_ioctl.c,v 1.16 1996/04/11 12:54:41 christos Exp $ */
/*
@@ -103,8 +103,8 @@ svr4_sys_ioctl(p, v, retval)
svr4_decode_cmd(SCARG(uap, com), dir, &c, &num, &argsiz);
- printf("svr4_ioctl(%d, _IO%s(%c, %d, %d), %p);\n", SCARG(uap, fd),
- dir, c, num, argsiz, SCARG(uap, data));
+ uprintf("svr4_ioctl(%d, _IO%s(%c, %d, %d), %p);\n", SCARG(uap, fd),
+ dir, c, num, argsiz, SCARG(uap, data));
#endif
fdp = p->p_fd;
cmd = SCARG(uap, com);
@@ -117,7 +117,7 @@ svr4_sys_ioctl(p, v, retval)
return EBADF;
switch (cmd & 0xff00) {
- case SVR4_tIOC:
+ case SVR4_tIOC:
fun = svr4_ttold_ioctl;
break;
@@ -137,6 +137,10 @@ svr4_sys_ioctl(p, v, retval)
fun = svr4_sock_ioctl;
break;
+ case SVR4_XIOC:
+ /* We do not support those */
+ return EINVAL;
+
default:
DPRINTF(("Unimplemented ioctl %lx\n", cmd));
return 0; /* XXX: really ENOSYS */