1: #ifndef lint
2: static char sccsid[] = "@(#)ioctl.c 5.1 (Berkeley) 7/2/83";
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: default:
33: return(-1);
34: }
35: }
Defined functions
ioctl
defined in line
16; used 43 times
- in /usr/src/cmd/uucp/cico.c line
150,
161,
167,
184-187(2),
198-201(2),
444-454(5),
532,
538-547(4)
- in /usr/src/cmd/uucp/condevs.c line
588,
625-628(2),
735,
774-777(2)
- in /usr/src/cmd/uucp/conn.c line
394,
403-414(5),
663-668(2),
674,
682-689(3)
- in /usr/src/cmd/uucp/dial.c line
147-150(2),
179,
191
- in /usr/src/cmd/uucp/logent.c line
174
- in /usr/src/cmd/uucp/setline.c line
35-38(2),
45
Defined variables
sccsid
defined in line
2;
never used