From 73acacf4ca1c7bbc84b34f9524eb5c733104294a Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Thu, 13 Jul 2000 20:04:21 +0000 Subject: [PATCH] magnetic tape support Submitted by: Clem Cole --- sys/alpha/osf1/osf1_ioctl.c | 41 ++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/sys/alpha/osf1/osf1_ioctl.c b/sys/alpha/osf1/osf1_ioctl.c index 217b2b76796a..98d23d6d887a 100644 --- a/sys/alpha/osf1/osf1_ioctl.c +++ b/sys/alpha/osf1/osf1_ioctl.c @@ -62,6 +62,8 @@ int osf1_ioctl_t __P((struct proc *p, struct ioctl_args *nuap, int cmd, int dir, int len)); int osf1_ioctl_f __P((struct proc *p, struct ioctl_args *nuap, int cmd, int dir, int len)); +int osf1_ioctl_m __P((struct proc *p, struct ioctl_args *nuap, + int cmd, int dir, int len)); int osf1_ioctl(p, uap) @@ -125,6 +127,8 @@ osf1_ioctl(p, uap) return osf1_ioctl_t(p, &a, cmd, dir, len); case 'f': return osf1_ioctl_f(p, &a, cmd, dir, len); + case 'm': + return osf1_ioctl_m(p, &a, cmd, dir, len); case 'S': /* * XXX SVR4 Streams IOCTLs are all unimpl. @@ -288,7 +292,7 @@ osf1_ioctl_t(p, uap, cmd, dir, len) case 111: /* OSF/1 TIOCSTOP */ case 118: /* OSF/1 TIOCGPGRP */ case 119: /* OSF/1 TIOCGPGRP */ - /* same as in NetBSD */ + /* same as in FreeBSD */ break; @@ -306,6 +310,10 @@ osf1_ioctl_t(p, uap, cmd, dir, len) return retval; } +/* + * file locking ioctl's + */ + int osf1_ioctl_f(p, uap, cmd, dir, len) struct proc *p; @@ -337,3 +345,34 @@ osf1_ioctl_f(p, uap, cmd, dir, len) return ioctl(p, uap); } + +/* + * mag tape ioctl's + */ + +int +osf1_ioctl_m(p, uap, cmd, dir, len) + struct proc *p; + struct ioctl_args /* { + syscallarg(int) fd; + syscallarg(int) com; + syscallarg(caddr_t) data; + } */ *uap; + int cmd; + int dir; + int len; +{ + + switch (cmd) { + case 1: /* OSF/1 MTIOCTOP (XXX) */ + case 2: /* OSF/1 MTIOCGET (XXX) */ + /* same as in FreeBSD */ + break; + + default: + printf("osf1_ioctl_m: cmd = %d\n", cmd); + return (ENOTTY); + } + + return ioctl(p, uap); +}