- Pass ioctl file descriptor explicitly.

- some 'T' ioctl's are for streams, call the stream function in the default case
This commit is contained in:
christos 1996-04-11 12:53:48 +00:00
parent 4a0b33e910
commit 3b309224fd

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_termios.c,v 1.8 1996/03/30 22:38:23 christos Exp $ */ /* $NetBSD: svr4_termios.c,v 1.9 1996/04/11 12:53:48 christos Exp $ */
/* /*
* Copyright (c) 1994 Christos Zoulas * Copyright (c) 1994 Christos Zoulas
@ -433,12 +433,13 @@ svr4_termios_to_termio(ts, t)
} }
int int
svr4_termioctl(fp, cmd, data, p, retval) svr4_term_ioctl(fp, p, retval, fd, cmd, data)
struct file *fp; struct file *fp;
u_long cmd;
caddr_t data;
struct proc *p; struct proc *p;
register_t *retval; register_t *retval;
int fd;
u_long cmd;
caddr_t data;
{ {
struct termios bt; struct termios bt;
struct svr4_termios st; struct svr4_termios st;
@ -561,7 +562,6 @@ svr4_termioctl(fp, cmd, data, p, retval)
} }
default: default:
DPRINTF(("Unknown svr4 termios %lx\n", cmd)); return svr4_stream_ti_ioctl(fp, p, retval, fd, cmd, data);
return ENOSYS;
} }
} }