projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Research V7 development
[unix-history]
/
usr
/
src
/
cmd
/
uucp
/
ioctl.c
#include
"uucp.h"
#include <sgtty.h>
/*******
* ioctl(fn, com, ttbuf) for machines without ioctl
* int fn, com;
* struct sgttyb *ttbuf;
*
* return codes - same as stty and gtty
*/
ioctl
(
fn
,
com
,
ttbuf
)
int
fn
,
com
;
struct
sgttyb
*
ttbuf
;
{
struct
sgttyb tb
;
switch
(
com
) {
case
TIOCHPCL
:
gtty
(
fn
, &
tb
);
tb
.
sg_flags
|=
1
;
return
(
stty
(
fn
, &
tb
));
case
TIOCGETP
:
return
(
gtty
(
fn
,
ttbuf
));
case
TIOCSETP
:
return
(
stty
(
fn
,
ttbuf
));
case
TIOCEXCL
:
default
:
return
(-
1
);
}
}