Garbage collect bell-ioctl's.
This commit is contained in:
parent
8312548282
commit
de78b4c0e9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ite_cc.c,v 1.12 1996/12/20 12:49:39 leo Exp $ */
|
||||
/* $NetBSD: ite_cc.c,v 1.13 1997/07/15 06:48:05 leo Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman
|
||||
|
@ -473,9 +473,6 @@ struct proc *p;
|
|||
struct itewinsize *is;
|
||||
int error = 0;
|
||||
view_t *view = viewview(ip->grf->g_viewdev);
|
||||
#if 0 /* LWP: notyet */
|
||||
struct itebell *ib;
|
||||
#endif
|
||||
|
||||
switch (cmd) {
|
||||
case ITEIOCSWINSZ:
|
||||
|
@ -497,31 +494,6 @@ struct proc *p;
|
|||
iteioctl(ip->grf->g_itedev,TIOCSWINSZ,(caddr_t)&ws,0,p);
|
||||
}
|
||||
break;
|
||||
case ITEIOCGBELL:
|
||||
#if 0 /* LWP */
|
||||
/* XXX This won't work now */
|
||||
/* XXX Should the bell be device dependent? */
|
||||
ib = (struct itebell *)addr;
|
||||
ib->volume = bvolume;
|
||||
ib->pitch = bpitch;
|
||||
ib->msec = bmsec;
|
||||
#endif
|
||||
break;
|
||||
case ITEIOCSBELL:
|
||||
#if 0 /* LWP */
|
||||
/* XXX See above */
|
||||
ib = (struct itebell *)addr;
|
||||
/* bounds check */
|
||||
if(ib->pitch > MAXBPITCH || ib->pitch < MINBPITCH ||
|
||||
ib->volume > MAXBVOLUME || ib->msec > MAXBTIME)
|
||||
error = EINVAL;
|
||||
else {
|
||||
bvolume = ib->volume;
|
||||
bpitch = ib->pitch;
|
||||
bmsec = ib->msec;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case VIOCSCMAP:
|
||||
case VIOCGCMAP:
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ite_et.c,v 1.6 1997/07/09 14:38:02 leo Exp $ */
|
||||
/* $NetBSD: ite_et.c,v 1.7 1997/07/15 06:48:06 leo Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman.
|
||||
|
@ -414,9 +414,6 @@ struct proc *p;
|
|||
struct itewinsize *is;
|
||||
int error = 0;
|
||||
view_t *view = viewview(ip->grf->g_viewdev);
|
||||
#if 0 /* LWP: notyet */
|
||||
struct itebell *ib;
|
||||
#endif
|
||||
|
||||
switch (cmd) {
|
||||
case ITEIOCSWINSZ:
|
||||
|
@ -438,31 +435,6 @@ struct proc *p;
|
|||
iteioctl(ip->grf->g_itedev,TIOCSWINSZ,(caddr_t)&ws,0,p);
|
||||
}
|
||||
break;
|
||||
case ITEIOCGBELL:
|
||||
#if 0 /* LWP */
|
||||
/* XXX This won't work now */
|
||||
/* XXX Should the bell be device dependent? */
|
||||
ib = (struct itebell *)addr;
|
||||
ib->volume = bvolume;
|
||||
ib->pitch = bpitch;
|
||||
ib->msec = bmsec;
|
||||
#endif
|
||||
break;
|
||||
case ITEIOCSBELL:
|
||||
#if 0 /* LWP */
|
||||
/* XXX See above */
|
||||
ib = (struct itebell *)addr;
|
||||
/* bounds check */
|
||||
if(ib->pitch > MAXBPITCH || ib->pitch < MINBPITCH ||
|
||||
ib->volume > MAXBVOLUME || ib->msec > MAXBTIME)
|
||||
error = EINVAL;
|
||||
else {
|
||||
bvolume = ib->volume;
|
||||
bpitch = ib->pitch;
|
||||
bmsec = ib->msec;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case VIOCSCMAP:
|
||||
case VIOCGCMAP:
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue