1: #ifndef lint
2: static char sccsid[] = "@(#)ioctl.c 5.2 (Berkeley) 1/22/85";
3: #endif
4:
5: #include "uucp.h"
6: #include <sgtty.h>
7:
8: /*******
9: * ioctl(fn, com, ttbuf) for machines without ioctl
10: * int fn, com;
11: * struct sgttyb *ttbuf;
12: *
13: * return codes - same as stty and gtty
14: */
15:
16: ioctl(fn, com, ttbuf)
17: register int fn, com;
18: struct sgttyb *ttbuf;
19: {
20: struct sgttyb tb;
21:
22: switch (com) {
23: case TIOCHPCL:
24: gtty(fn, &tb);
25: tb.sg_flags |= 1;
26: return(stty(fn, &tb));
27: case TIOCGETP:
28: return(gtty(fn, ttbuf));
29: case TIOCSETP:
30: return(stty(fn, ttbuf));
31: case TIOCEXCL:
32: case TIOCNXCL:
33: default:
34: return(-1);
35: }
36: }
Defined functions
ioctl
defined in line
16; used 45 times
- in /usr/src/usr.bin/uucp/acucntrl.c line
245-254(3),
290,
318
- in /usr/src/usr.bin/uucp/cico.c line
185,
233-238(2),
257-260(2),
271-273(2),
679-695(8)
- in /usr/src/usr.bin/uucp/condevs.c line
439-447(3),
455-459(2),
468
- in /usr/src/usr.bin/uucp/conn.c line
277,
537,
547-560(5),
1124,
1130-1136(4)
- in /usr/src/usr.bin/uucp/fio.c line
92,
100
- in /usr/src/usr.bin/uucp/logent.c line
231
- in /usr/src/usr.bin/uucp/setline.c line
37-40(2),
46
- in /usr/src/usr.bin/uucp/uucpd.c line
79
Defined variables
sccsid
defined in line
2;
never used