]> git.proxmox.com Git - rustc.git/blame - vendor/libc/src/unix/linux_like/linux/arch/sparc/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / libc / src / unix / linux_like / linux / arch / sparc / mod.rs
CommitLineData
3c0e092e
XL
1s! {
2 pub struct termios2 {
3 pub c_iflag: ::tcflag_t,
4 pub c_oflag: ::tcflag_t,
5 pub c_cflag: ::tcflag_t,
6 pub c_lflag: ::tcflag_t,
7 pub c_line: ::cc_t,
8 pub c_cc: [::cc_t; 19],
9 pub c_ispeed: ::speed_t,
10 pub c_ospeed: ::speed_t,
11 }
12}
13
cdc7bbd5
XL
14// arch/sparc/include/uapi/asm/socket.h
15pub const SOL_SOCKET: ::c_int = 0xffff;
16
17// Defined in unix/linux_like/mod.rs
18// pub const SO_DEBUG: ::c_int = 0x0001;
19pub const SO_PASSCRED: ::c_int = 0x0002;
20pub const SO_REUSEADDR: ::c_int = 0x0004;
21pub const SO_KEEPALIVE: ::c_int = 0x0008;
22pub const SO_DONTROUTE: ::c_int = 0x0010;
23pub const SO_BROADCAST: ::c_int = 0x0020;
24pub const SO_PEERCRED: ::c_int = 0x0040;
25pub const SO_LINGER: ::c_int = 0x0080;
26pub const SO_OOBINLINE: ::c_int = 0x0100;
27pub const SO_REUSEPORT: ::c_int = 0x0200;
28pub const SO_BSDCOMPAT: ::c_int = 0x0400;
29pub const SO_RCVLOWAT: ::c_int = 0x0800;
30pub const SO_SNDLOWAT: ::c_int = 0x1000;
31pub const SO_RCVTIMEO: ::c_int = 0x2000;
32pub const SO_SNDTIMEO: ::c_int = 0x4000;
33// pub const SO_RCVTIMEO_OLD: ::c_int = 0x2000;
34// pub const SO_SNDTIMEO_OLD: ::c_int = 0x4000;
35pub const SO_ACCEPTCONN: ::c_int = 0x8000;
36pub const SO_SNDBUF: ::c_int = 0x1001;
37pub const SO_RCVBUF: ::c_int = 0x1002;
38pub const SO_SNDBUFFORCE: ::c_int = 0x100a;
39pub const SO_RCVBUFFORCE: ::c_int = 0x100b;
40pub const SO_ERROR: ::c_int = 0x1007;
41pub const SO_TYPE: ::c_int = 0x1008;
42pub const SO_PROTOCOL: ::c_int = 0x1028;
43pub const SO_DOMAIN: ::c_int = 0x1029;
44pub const SO_NO_CHECK: ::c_int = 0x000b;
45pub const SO_PRIORITY: ::c_int = 0x000c;
46pub const SO_BINDTODEVICE: ::c_int = 0x000d;
47pub const SO_ATTACH_FILTER: ::c_int = 0x001a;
48pub const SO_DETACH_FILTER: ::c_int = 0x001b;
49pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
50pub const SO_PEERNAME: ::c_int = 0x001c;
51pub const SO_PEERSEC: ::c_int = 0x001e;
52pub const SO_PASSSEC: ::c_int = 0x001f;
53pub const SO_MARK: ::c_int = 0x0022;
54pub const SO_RXQ_OVFL: ::c_int = 0x0024;
55pub const SO_WIFI_STATUS: ::c_int = 0x0025;
56pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
57pub const SO_PEEK_OFF: ::c_int = 0x0026;
58pub const SO_NOFCS: ::c_int = 0x0027;
59pub const SO_LOCK_FILTER: ::c_int = 0x0028;
60pub const SO_SELECT_ERR_QUEUE: ::c_int = 0x0029;
61pub const SO_BUSY_POLL: ::c_int = 0x0030;
62pub const SO_MAX_PACING_RATE: ::c_int = 0x0031;
63pub const SO_BPF_EXTENSIONS: ::c_int = 0x0032;
64pub const SO_INCOMING_CPU: ::c_int = 0x0033;
65pub const SO_ATTACH_BPF: ::c_int = 0x0034;
66pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
67pub const SO_ATTACH_REUSEPORT_CBPF: ::c_int = 0x0035;
68pub const SO_ATTACH_REUSEPORT_EBPF: ::c_int = 0x0036;
69pub const SO_CNX_ADVICE: ::c_int = 0x0037;
70pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 0x0038;
71pub const SO_MEMINFO: ::c_int = 0x0039;
72pub const SO_INCOMING_NAPI_ID: ::c_int = 0x003a;
73pub const SO_COOKIE: ::c_int = 0x003b;
74pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 0x003c;
75pub const SO_PEERGROUPS: ::c_int = 0x003d;
76pub const SO_ZEROCOPY: ::c_int = 0x003e;
77pub const SO_TXTIME: ::c_int = 0x003f;
78pub const SCM_TXTIME: ::c_int = SO_TXTIME;
79pub const SO_BINDTOIFINDEX: ::c_int = 0x0041;
80pub const SO_SECURITY_AUTHENTICATION: ::c_int = 0x5001;
81pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 0x5002;
82pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 0x5004;
83pub const SO_TIMESTAMP: ::c_int = 0x001d;
84pub const SO_TIMESTAMPNS: ::c_int = 0x0021;
85pub const SO_TIMESTAMPING: ::c_int = 0x0023;
86// pub const SO_TIMESTAMP_OLD: ::c_int = 0x001d;
87// pub const SO_TIMESTAMPNS_OLD: ::c_int = 0x0021;
88// pub const SO_TIMESTAMPING_OLD: ::c_int = 0x0023;
89// pub const SO_TIMESTAMP_NEW: ::c_int = 0x0046;
90// pub const SO_TIMESTAMPNS_NEW: ::c_int = 0x0042;
91// pub const SO_TIMESTAMPING_NEW: ::c_int = 0x0043;
92// pub const SO_RCVTIMEO_NEW: ::c_int = 0x0044;
93// pub const SO_SNDTIMEO_NEW: ::c_int = 0x0045;
94// pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 0x0047;
95// pub const SO_PREFER_BUSY_POLL: ::c_int = 0x0048;
96// pub const SO_BUSY_POLL_BUDGET: ::c_int = 0x0049;
97
98// Defined in unix/linux_like/mod.rs
99// pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
100pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
101pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
3c0e092e 102
5099ac24
FG
103// Ioctl Constants
104
105pub const TCGETS: ::Ioctl = 0x40245408;
106pub const TCSETS: ::Ioctl = 0x80245409;
107pub const TCSETSW: ::Ioctl = 0x8024540a;
108pub const TCSETSF: ::Ioctl = 0x8024540b;
109pub const TCGETA: ::Ioctl = 0x40125401;
110pub const TCSETA: ::Ioctl = 0x80125402;
111pub const TCSETAW: ::Ioctl = 0x80125403;
112pub const TCSETAF: ::Ioctl = 0x80125404;
113pub const TCSBRK: ::Ioctl = 0x20005405;
114pub const TCXONC: ::Ioctl = 0x20005406;
115pub const TCFLSH: ::Ioctl = 0x20005407;
116pub const TIOCEXCL: ::Ioctl = 0x2000740d;
117pub const TIOCNXCL: ::Ioctl = 0x2000740e;
118pub const TIOCSCTTY: ::Ioctl = 0x20007484;
119pub const TIOCGPGRP: ::Ioctl = 0x40047483;
120pub const TIOCSPGRP: ::Ioctl = 0x80047482;
121pub const TIOCOUTQ: ::Ioctl = 0x40047473;
122pub const TIOCSTI: ::Ioctl = 0x80017472;
123pub const TIOCGWINSZ: ::Ioctl = 0x40087468;
124pub const TIOCSWINSZ: ::Ioctl = 0x80087467;
a2a8927a
XL
125pub const TIOCMGET: ::Ioctl = 0x4004746a;
126pub const TIOCMBIS: ::Ioctl = 0x8004746c;
127pub const TIOCMBIC: ::Ioctl = 0x8004746b;
128pub const TIOCMSET: ::Ioctl = 0x8004746d;
5099ac24
FG
129pub const TIOCGSOFTCAR: ::Ioctl = 0x40047464;
130pub const TIOCSSOFTCAR: ::Ioctl = 0x80047465;
131pub const FIONREAD: ::Ioctl = 0x4004667f;
132pub const TIOCINQ: ::Ioctl = FIONREAD;
133pub const TIOCLINUX: ::Ioctl = 0x541C;
134pub const TIOCCONS: ::Ioctl = 0x20007424;
135pub const TIOCGSERIAL: ::Ioctl = 0x541E;
136pub const TIOCSSERIAL: ::Ioctl = 0x541F;
137pub const TIOCPKT: ::Ioctl = 0x80047470;
138pub const FIONBIO: ::Ioctl = 0x8004667e;
139pub const TIOCNOTTY: ::Ioctl = 0x20007471;
140pub const TIOCSETD: ::Ioctl = 0x80047401;
141pub const TIOCGETD: ::Ioctl = 0x40047400;
142pub const TCSBRKP: ::Ioctl = 0x5425;
143pub const TIOCSBRK: ::Ioctl = 0x2000747b;
144pub const TIOCCBRK: ::Ioctl = 0x2000747a;
145pub const TIOCGSID: ::Ioctl = 0x40047485;
a2a8927a
XL
146pub const TCGETS2: ::Ioctl = 0x402c540c;
147pub const TCSETS2: ::Ioctl = 0x802c540d;
148pub const TCSETSW2: ::Ioctl = 0x802c540e;
149pub const TCSETSF2: ::Ioctl = 0x802c540f;
5099ac24
FG
150pub const TIOCGPTN: ::Ioctl = 0x40047486;
151pub const TIOCSPTLCK: ::Ioctl = 0x80047487;
152pub const TIOCGDEV: ::Ioctl = 0x40045432;
153pub const TIOCSIG: ::Ioctl = 0x80047488;
154pub const TIOCVHANGUP: ::Ioctl = 0x20005437;
155pub const TIOCGPKT: ::Ioctl = 0x40045438;
156pub const TIOCGPTLCK: ::Ioctl = 0x40045439;
157pub const TIOCGEXCL: ::Ioctl = 0x40045440;
158pub const TIOCGPTPEER: ::Ioctl = 0x20007489;
159pub const FIONCLEX: ::Ioctl = 0x20006602;
160pub const FIOCLEX: ::Ioctl = 0x20006601;
161pub const TIOCSERCONFIG: ::Ioctl = 0x5453;
162pub const TIOCSERGWILD: ::Ioctl = 0x5454;
163pub const TIOCSERSWILD: ::Ioctl = 0x5455;
164pub const TIOCGLCKTRMIOS: ::Ioctl = 0x5456;
165pub const TIOCSLCKTRMIOS: ::Ioctl = 0x5457;
166pub const TIOCSERGSTRUCT: ::Ioctl = 0x5458;
167pub const TIOCSERGETLSR: ::Ioctl = 0x5459;
168pub const TIOCSERGETMULTI: ::Ioctl = 0x545A;
169pub const TIOCSERSETMULTI: ::Ioctl = 0x545B;
170pub const TIOCMIWAIT: ::Ioctl = 0x545C;
171pub const TIOCGICOUNT: ::Ioctl = 0x545D;
172pub const TIOCSTART: ::Ioctl = 0x2000746e;
173pub const TIOCSTOP: ::Ioctl = 0x2000746f;
ee023bcb
FG
174pub const BLKIOMIN: ::Ioctl = 0x20001278;
175pub const BLKIOOPT: ::Ioctl = 0x20001279;
176pub const BLKSSZGET: ::Ioctl = 0x20001268;
177pub const BLKPBSZGET: ::Ioctl = 0x2000127B;
5099ac24
FG
178
179//pub const FIOASYNC: ::Ioctl = 0x4004667d;
180//pub const FIOQSIZE: ::Ioctl = ;
181//pub const TIOCGISO7816: ::Ioctl = 0x40285443;
182//pub const TIOCSISO7816: ::Ioctl = 0xc0285444;
183//pub const TIOCGRS485: ::Ioctl = 0x40205441;
184//pub const TIOCSRS485: ::Ioctl = 0xc0205442;
a2a8927a
XL
185
186pub const TIOCM_LE: ::c_int = 0x001;
187pub const TIOCM_DTR: ::c_int = 0x002;
188pub const TIOCM_RTS: ::c_int = 0x004;
189pub const TIOCM_ST: ::c_int = 0x008;
190pub const TIOCM_SR: ::c_int = 0x010;
191pub const TIOCM_CTS: ::c_int = 0x020;
192pub const TIOCM_CAR: ::c_int = 0x040;
193pub const TIOCM_CD: ::c_int = TIOCM_CAR;
194pub const TIOCM_RNG: ::c_int = 0x080;
195pub const TIOCM_RI: ::c_int = TIOCM_RNG;
196pub const TIOCM_DSR: ::c_int = 0x100;
197
198pub const BOTHER: ::speed_t = 0x1000;
199pub const IBSHIFT: ::tcflag_t = 16;
200
ee023bcb
FG
201// RLIMIT Constants
202
203pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
204pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
205pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
206pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
207pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
208pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
209pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 6;
210pub const RLIMIT_NPROC: ::__rlimit_resource_t = 7;
211pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
212pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
213pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
214pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
215pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
216pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
217pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
218pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
219pub const RLIM_NLIMITS: ::__rlimit_resource_t = 16;
220pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = RLIM_NLIMITS;
221
222cfg_if! {
223 if #[cfg(target_arch = "sparc64")] {
224 pub const RLIM_INFINITY: ::rlim_t = !0;
225 } else if #[cfg(target_arch = "sparc")] {
226 pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
227 }
228}