* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)tty_tty.c 7.3 (Berkeley) %G%
* Indirect driver for controlling tty.
* THIS IS GARBAGE: MUST SOON BE DONE WITH struct inode * IN PROC TABLE.
return ((*cdevsw
[major(u
.u_ttyd
)].d_open
)(u
.u_ttyd
, flag
));
return ((*cdevsw
[major(u
.u_ttyd
)].d_read
)(u
.u_ttyd
, uio
, flag
));
return ((*cdevsw
[major(u
.u_ttyd
)].d_write
)(u
.u_ttyd
, uio
, flag
));
syioctl(dev
, cmd
, addr
, flag
)
if (SESS_LEADER(u
.u_procp
)) {
* XXX - check posix draft
return ((*cdevsw
[major(u
.u_ttyd
)].d_ioctl
)(u
.u_ttyd
, cmd
, addr
, flag
));
return ((*cdevsw
[major(u
.u_ttyd
)].d_select
)(u
.u_ttyd
, flag
));