DEADSOFTWARE

build-gui modified
[bbcp.git] / new / _OpenBSD_ / Lin / Mod / Ioctl.txt
1 MODULE LinIoctl ["libc.so.66.0"];
3 (*
4 A. V. Shiryaev, 2012.11
6 OpenBSD 5.2
7 32-bit
8 *)
10 CONST
11 (* /usr/include/sys/ttycom.h *)
12 TIOCM_LE* = {0}; (* line enable *)
13 TIOCM_DTR* = {1}; (* data terminal ready *)
14 TIOCM_RTS* = {2}; (* request to send *)
15 TIOCM_ST* = {3}; (* secondary transmit *)
16 TIOCM_SR* = {4}; (* secondary receive *)
17 TIOCM_CTS* = {5}; (* clear to send *)
18 TIOCM_CAR* = {6}; (* carrier detect *)
19 TIOCM_RNG* = {7}; (* ring *)
20 TIOCM_DSR* = {8}; (* data set ready *)
22 FIOCLEX* = 536897025;
23 FIONCLEX* = 536897026;
24 FIONREAD* = 1074030207;
25 FIONBIO* = -2147195266;
26 FIOASYNC* = -2147195267;
27 FIOSETOWN* = -2147195268;
28 FIOGETOWN* = 1074030203;
29 TIOCMGET* = 1074033770;
30 TIOCMSET* = -2147191699;
31 TIOCEXCL* = 536900621;
32 TIOCNXCL* = 536900622;
33 TIOCFLUSH* = -2147191792;
34 TIOCDRAIN* = 536900702;
35 TIOCOUTQ* = 1074033779;
36 TIOCSBRK* = 536900731;
37 TIOCCBRK* = 536900730;
38 TIOCSDTR* = 536900729;
39 TIOCCDTR* = 536900728;
40 TIOCMBIS* = -2147191700;
41 TIOCMBIC* = -2147191701;
43 PROCEDURE [ccall] ioctl0* ["ioctl"] (d: INTEGER; req: INTEGER): INTEGER;
44 PROCEDURE [ccall] ioctl1* ["ioctl"] (d: INTEGER; req: INTEGER; VAR arg: INTEGER): INTEGER;
46 END LinIoctl.