magnetic tape support

Submitted by: Clem Cole <clemc@mro.dec.com>
This commit is contained in:
Andrew Gallatin 2000-07-13 20:04:21 +00:00
parent cc72822764
commit 73acacf4ca

View File

@ -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);
}