summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch')
-rw-r--r--meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch737
1 files changed, 0 insertions, 737 deletions
diff --git a/meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch b/meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch
deleted file mode 100644
index e23aaa790e..0000000000
--- a/meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch
+++ /dev/null
@@ -1,737 +0,0 @@
1From 9d240d05c6e6620f36e4ddbcbcb5862fb3269d9f Mon Sep 17 00:00:00 2001
2From: Ralf Anton Beier <ralf_beier@me.com>
3Date: Sun, 8 Aug 2021 11:09:17 +0200
4Subject: [PATCH 7/8] FIXUP Correct definitions to match musl - libc-0.2.93
5
6https://github.com/rust-lang/libc/pull/1994/commits/5f6a4d9745c79c81be63c708515ab116786554a3
7
8Upstream-Status: Submitted [https://github.com/rust-lang/libc/pull/2537]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
11---
12 .../linux_like/linux/musl/b64/riscv64/mod.rs | 708 ++++++++----------
13 1 file changed, 311 insertions(+), 397 deletions(-)
14
15--- a/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
16+++ b/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
17@@ -191,403 +191,8 @@ s! {
18 pub l_len: ::off64_t,
19 pub l_pid: ::pid_t,
20 }
21-
22- pub struct ip_mreqn {
23- pub imr_multiaddr: ::in_addr,
24- pub imr_address: ::in_addr,
25- pub imr_ifindex: ::c_int,
26- }
27 }
28
29-pub const POSIX_FADV_DONTNEED: ::c_int = 4;
30-pub const POSIX_FADV_NOREUSE: ::c_int = 5;
31-pub const VEOF: usize = 4;
32-pub const RTLD_DEEPBIND: ::c_int = 0x8;
33-pub const RTLD_GLOBAL: ::c_int = 0x100;
34-pub const RTLD_NOLOAD: ::c_int = 0x4;
35-pub const TIOCGSOFTCAR: ::c_ulong = 21529;
36-pub const TIOCSSOFTCAR: ::c_ulong = 21530;
37-pub const TIOCGRS485: ::c_int = 21550;
38-pub const TIOCSRS485: ::c_int = 21551;
39-pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
40-pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
41-pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
42-pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 7;
43-pub const RLIMIT_NPROC: ::__rlimit_resource_t = 6;
44-pub const O_APPEND: ::c_int = 1024;
45-pub const O_CREAT: ::c_int = 64;
46-pub const O_EXCL: ::c_int = 128;
47-pub const O_NOCTTY: ::c_int = 256;
48-pub const O_NONBLOCK: ::c_int = 2048;
49-pub const O_SYNC: ::c_int = 1052672;
50-pub const O_RSYNC: ::c_int = 1052672;
51-pub const O_DSYNC: ::c_int = 4096;
52-pub const O_FSYNC: ::c_int = 1052672;
53-pub const O_NOATIME: ::c_int = 262144;
54-pub const O_PATH: ::c_int = 2097152;
55-pub const O_TMPFILE: ::c_int = 4259840;
56-pub const MAP_GROWSDOWN: ::c_int = 256;
57-pub const EDEADLK: ::c_int = 35;
58-pub const ENAMETOOLONG: ::c_int = 36;
59-pub const ENOLCK: ::c_int = 37;
60-pub const ENOSYS: ::c_int = 38;
61-pub const ENOTEMPTY: ::c_int = 39;
62-pub const ELOOP: ::c_int = 40;
63-pub const ENOMSG: ::c_int = 42;
64-pub const EIDRM: ::c_int = 43;
65-pub const ECHRNG: ::c_int = 44;
66-pub const EL2NSYNC: ::c_int = 45;
67-pub const EL3HLT: ::c_int = 46;
68-pub const EL3RST: ::c_int = 47;
69-pub const ELNRNG: ::c_int = 48;
70-pub const EUNATCH: ::c_int = 49;
71-pub const ENOCSI: ::c_int = 50;
72-pub const EL2HLT: ::c_int = 51;
73-pub const EBADE: ::c_int = 52;
74-pub const EBADR: ::c_int = 53;
75-pub const EXFULL: ::c_int = 54;
76-pub const ENOANO: ::c_int = 55;
77-pub const EBADRQC: ::c_int = 56;
78-pub const EBADSLT: ::c_int = 57;
79-pub const EMULTIHOP: ::c_int = 72;
80-pub const EOVERFLOW: ::c_int = 75;
81-pub const ENOTUNIQ: ::c_int = 76;
82-pub const EBADFD: ::c_int = 77;
83-pub const EBADMSG: ::c_int = 74;
84-pub const EREMCHG: ::c_int = 78;
85-pub const ELIBACC: ::c_int = 79;
86-pub const ELIBBAD: ::c_int = 80;
87-pub const ELIBSCN: ::c_int = 81;
88-pub const ELIBMAX: ::c_int = 82;
89-pub const ELIBEXEC: ::c_int = 83;
90-pub const EILSEQ: ::c_int = 84;
91-pub const ERESTART: ::c_int = 85;
92-pub const ESTRPIPE: ::c_int = 86;
93-pub const EUSERS: ::c_int = 87;
94-pub const ENOTSOCK: ::c_int = 88;
95-pub const EDESTADDRREQ: ::c_int = 89;
96-pub const EMSGSIZE: ::c_int = 90;
97-pub const EPROTOTYPE: ::c_int = 91;
98-pub const ENOPROTOOPT: ::c_int = 92;
99-pub const EPROTONOSUPPORT: ::c_int = 93;
100-pub const ESOCKTNOSUPPORT: ::c_int = 94;
101-pub const EOPNOTSUPP: ::c_int = 95;
102-pub const EPFNOSUPPORT: ::c_int = 96;
103-pub const EAFNOSUPPORT: ::c_int = 97;
104-pub const EADDRINUSE: ::c_int = 98;
105-pub const EADDRNOTAVAIL: ::c_int = 99;
106-pub const ENETDOWN: ::c_int = 100;
107-pub const ENETUNREACH: ::c_int = 101;
108-pub const ENETRESET: ::c_int = 102;
109-pub const ECONNABORTED: ::c_int = 103;
110-pub const ECONNRESET: ::c_int = 104;
111-pub const ENOBUFS: ::c_int = 105;
112-pub const EISCONN: ::c_int = 106;
113-pub const ENOTCONN: ::c_int = 107;
114-pub const ESHUTDOWN: ::c_int = 108;
115-pub const ETOOMANYREFS: ::c_int = 109;
116-pub const ETIMEDOUT: ::c_int = 110;
117-pub const ECONNREFUSED: ::c_int = 111;
118-pub const EHOSTDOWN: ::c_int = 112;
119-pub const EHOSTUNREACH: ::c_int = 113;
120-pub const EALREADY: ::c_int = 114;
121-pub const EINPROGRESS: ::c_int = 115;
122-pub const ESTALE: ::c_int = 116;
123-pub const EDQUOT: ::c_int = 122;
124-pub const ENOMEDIUM: ::c_int = 123;
125-pub const EMEDIUMTYPE: ::c_int = 124;
126-pub const ECANCELED: ::c_int = 125;
127-pub const ENOKEY: ::c_int = 126;
128-pub const EKEYEXPIRED: ::c_int = 127;
129-pub const EKEYREVOKED: ::c_int = 128;
130-pub const EKEYREJECTED: ::c_int = 129;
131-pub const EOWNERDEAD: ::c_int = 130;
132-pub const ENOTRECOVERABLE: ::c_int = 131;
133-pub const EHWPOISON: ::c_int = 133;
134-pub const ERFKILL: ::c_int = 132;
135-pub const SOL_SOCKET: ::c_int = 1;
136-pub const SO_REUSEADDR: ::c_int = 2;
137-pub const SO_TYPE: ::c_int = 3;
138-pub const SO_ERROR: ::c_int = 4;
139-pub const SO_DONTROUTE: ::c_int = 5;
140-pub const SO_BROADCAST: ::c_int = 6;
141-pub const SO_SNDBUF: ::c_int = 7;
142-pub const SO_RCVBUF: ::c_int = 8;
143-pub const SO_SNDBUFFORCE: ::c_int = 32;
144-pub const SO_RCVBUFFORCE: ::c_int = 33;
145-pub const SO_KEEPALIVE: ::c_int = 9;
146-pub const SO_OOBINLINE: ::c_int = 10;
147-pub const SO_NO_CHECK: ::c_int = 11;
148-pub const SO_PRIORITY: ::c_int = 12;
149-pub const SO_LINGER: ::c_int = 13;
150-pub const SO_BSDCOMPAT: ::c_int = 14;
151-pub const SO_REUSEPORT: ::c_int = 15;
152-pub const SO_PASSCRED: ::c_int = 16;
153-pub const SO_PEERCRED: ::c_int = 17;
154-pub const SO_RCVLOWAT: ::c_int = 18;
155-pub const SO_SNDLOWAT: ::c_int = 19;
156-pub const SO_RCVTIMEO: ::c_int = 20;
157-pub const SO_SNDTIMEO: ::c_int = 21;
158-pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
159-pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
160-pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
161-pub const SO_BINDTODEVICE: ::c_int = 25;
162-pub const SO_ATTACH_FILTER: ::c_int = 26;
163-pub const SO_DETACH_FILTER: ::c_int = 27;
164-pub const SO_GET_FILTER: ::c_int = 26;
165-pub const SO_PEERNAME: ::c_int = 28;
166-pub const SO_TIMESTAMP: ::c_int = 29;
167-pub const SO_ACCEPTCONN: ::c_int = 30;
168-pub const SO_PEERSEC: ::c_int = 31;
169-pub const SO_PASSSEC: ::c_int = 34;
170-pub const SO_TIMESTAMPNS: ::c_int = 35;
171-pub const SCM_TIMESTAMPNS: ::c_int = 35;
172-pub const SO_MARK: ::c_int = 36;
173-pub const SO_PROTOCOL: ::c_int = 38;
174-pub const SO_DOMAIN: ::c_int = 39;
175-pub const SO_RXQ_OVFL: ::c_int = 40;
176-pub const SO_WIFI_STATUS: ::c_int = 41;
177-pub const SCM_WIFI_STATUS: ::c_int = 41;
178-pub const SO_PEEK_OFF: ::c_int = 42;
179-pub const SO_NOFCS: ::c_int = 43;
180-pub const SO_LOCK_FILTER: ::c_int = 44;
181-pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
182-pub const SO_BUSY_POLL: ::c_int = 46;
183-pub const SO_MAX_PACING_RATE: ::c_int = 47;
184-pub const SO_BPF_EXTENSIONS: ::c_int = 48;
185-pub const SO_INCOMING_CPU: ::c_int = 49;
186-pub const SO_ATTACH_BPF: ::c_int = 50;
187-pub const SO_DETACH_BPF: ::c_int = 27;
188-pub const SOCK_STREAM: ::c_int = 1;
189-pub const SOCK_DGRAM: ::c_int = 2;
190-pub const SA_ONSTACK: ::c_int = 134217728;
191-pub const SA_SIGINFO: ::c_int = 4;
192-pub const SA_NOCLDWAIT: ::c_int = 2;
193-pub const SIGTTIN: ::c_int = 21;
194-pub const SIGTTOU: ::c_int = 22;
195-pub const SIGXCPU: ::c_int = 24;
196-pub const SIGXFSZ: ::c_int = 25;
197-pub const SIGVTALRM: ::c_int = 26;
198-pub const SIGPROF: ::c_int = 27;
199-pub const SIGWINCH: ::c_int = 28;
200-pub const SIGCHLD: ::c_int = 17;
201-pub const SIGBUS: ::c_int = 7;
202-pub const SIGUSR1: ::c_int = 10;
203-pub const SIGUSR2: ::c_int = 12;
204-pub const SIGCONT: ::c_int = 18;
205-pub const SIGSTOP: ::c_int = 19;
206-pub const SIGTSTP: ::c_int = 20;
207-pub const SIGURG: ::c_int = 23;
208-pub const SIGIO: ::c_int = 29;
209-pub const SIGSYS: ::c_int = 31;
210-pub const SIGSTKFLT: ::c_int = 16;
211-pub const SIGPOLL: ::c_int = 29;
212-pub const SIGPWR: ::c_int = 30;
213-pub const SIG_SETMASK: ::c_int = 2;
214-pub const SIG_BLOCK: ::c_int = 0;
215-pub const SIG_UNBLOCK: ::c_int = 1;
216-pub const POLLWRNORM: ::c_short = 256;
217-pub const POLLWRBAND: ::c_short = 512;
218-pub const O_ASYNC: ::c_int = 8192;
219-pub const O_NDELAY: ::c_int = 2048;
220-pub const PTRACE_DETACH: ::c_uint = 17;
221-pub const EFD_NONBLOCK: ::c_int = 2048;
222-pub const F_GETLK: ::c_int = 5;
223-pub const F_GETOWN: ::c_int = 9;
224-pub const F_SETOWN: ::c_int = 8;
225-pub const F_SETLK: ::c_int = 6;
226-pub const F_SETLKW: ::c_int = 7;
227-pub const F_RDLCK: ::c_int = 0;
228-pub const F_WRLCK: ::c_int = 1;
229-pub const F_UNLCK: ::c_int = 2;
230-pub const F_OFD_GETLK: ::c_int = 36;
231-pub const F_OFD_SETLK: ::c_int = 37;
232-pub const F_OFD_SETLKW: ::c_int = 38;
233-pub const SFD_NONBLOCK: ::c_int = 2048;
234-pub const TCSANOW: ::c_int = 0;
235-pub const TCSADRAIN: ::c_int = 1;
236-pub const TCSAFLUSH: ::c_int = 2;
237-pub const TIOCLINUX: ::c_ulong = 21532;
238-pub const TIOCGSERIAL: ::c_ulong = 21534;
239-pub const TIOCEXCL: ::c_ulong = 21516;
240-pub const TIOCNXCL: ::c_ulong = 21517;
241-pub const TIOCSCTTY: ::c_ulong = 21518;
242-pub const TIOCSTI: ::c_ulong = 21522;
243-pub const TIOCMGET: ::c_ulong = 21525;
244-pub const TIOCMBIS: ::c_ulong = 21526;
245-pub const TIOCMBIC: ::c_ulong = 21527;
246-pub const TIOCMSET: ::c_ulong = 21528;
247-pub const TIOCCONS: ::c_ulong = 21533;
248-pub const TIOCM_ST: ::c_int = 8;
249-pub const TIOCM_SR: ::c_int = 16;
250-pub const TIOCM_CTS: ::c_int = 32;
251-pub const TIOCM_CAR: ::c_int = 64;
252-pub const TIOCM_RNG: ::c_int = 128;
253-pub const TIOCM_DSR: ::c_int = 256;
254-pub const SFD_CLOEXEC: ::c_int = 524288;
255-pub const NCCS: usize = 32;
256-pub const O_TRUNC: ::c_int = 512;
257-pub const O_CLOEXEC: ::c_int = 524288;
258-pub const EBFONT: ::c_int = 59;
259-pub const ENOSTR: ::c_int = 60;
260-pub const ENODATA: ::c_int = 61;
261-pub const ETIME: ::c_int = 62;
262-pub const ENOSR: ::c_int = 63;
263-pub const ENONET: ::c_int = 64;
264-pub const ENOPKG: ::c_int = 65;
265-pub const EREMOTE: ::c_int = 66;
266-pub const ENOLINK: ::c_int = 67;
267-pub const EADV: ::c_int = 68;
268-pub const ESRMNT: ::c_int = 69;
269-pub const ECOMM: ::c_int = 70;
270-pub const EPROTO: ::c_int = 71;
271-pub const EDOTDOT: ::c_int = 73;
272-pub const SA_NODEFER: ::c_int = 1073741824;
273-pub const SA_RESETHAND: ::c_int = -2147483648;
274-pub const SA_RESTART: ::c_int = 268435456;
275-pub const SA_NOCLDSTOP: ::c_int = 1;
276-pub const EPOLL_CLOEXEC: ::c_int = 524288;
277-pub const EFD_CLOEXEC: ::c_int = 524288;
278-pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4;
279-pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
280-pub const O_DIRECT: ::c_int = 16384;
281-pub const O_DIRECTORY: ::c_int = 65536;
282-pub const O_NOFOLLOW: ::c_int = 131072;
283-pub const MAP_HUGETLB: ::c_int = 262144;
284-pub const MAP_LOCKED: ::c_int = 8192;
285-pub const MAP_NORESERVE: ::c_int = 16384;
286-pub const MAP_ANON: ::c_int = 32;
287-pub const MAP_ANONYMOUS: ::c_int = 32;
288-pub const MAP_DENYWRITE: ::c_int = 2048;
289-pub const MAP_EXECUTABLE: ::c_int = 4096;
290-pub const MAP_POPULATE: ::c_int = 32768;
291-pub const MAP_NONBLOCK: ::c_int = 65536;
292-pub const MAP_STACK: ::c_int = 131072;
293-pub const MAP_SYNC : ::c_int = 0x080000;
294-pub const EDEADLOCK: ::c_int = 35;
295-pub const EUCLEAN: ::c_int = 117;
296-pub const ENOTNAM: ::c_int = 118;
297-pub const ENAVAIL: ::c_int = 119;
298-pub const EISNAM: ::c_int = 120;
299-pub const EREMOTEIO: ::c_int = 121;
300-pub const FIOCLEX: ::c_ulong = 21585;
301-pub const FIONCLEX: ::c_ulong = 21584;
302-pub const FIONBIO: ::c_ulong = 21537;
303-pub const MCL_CURRENT: ::c_int = 1;
304-pub const MCL_FUTURE: ::c_int = 2;
305-pub const SIGSTKSZ: ::size_t = 8192;
306-pub const MINSIGSTKSZ: ::size_t = 2048;
307-pub const CBAUD: ::tcflag_t = 4111;
308-pub const TAB1: ::tcflag_t = 2048;
309-pub const TAB2: ::tcflag_t = 4096;
310-pub const TAB3: ::tcflag_t = 6144;
311-pub const CR1: ::tcflag_t = 512;
312-pub const CR2: ::tcflag_t = 1024;
313-pub const CR3: ::tcflag_t = 1536;
314-pub const FF1: ::tcflag_t = 32768;
315-pub const BS1: ::tcflag_t = 8192;
316-pub const VT1: ::tcflag_t = 16384;
317-pub const VWERASE: usize = 14;
318-pub const VREPRINT: usize = 12;
319-pub const VSUSP: usize = 10;
320-pub const VSTART: usize = 8;
321-pub const VSTOP: usize = 9;
322-pub const VDISCARD: usize = 13;
323-pub const VTIME: usize = 5;
324-pub const IXON: ::tcflag_t = 1024;
325-pub const IXOFF: ::tcflag_t = 4096;
326-pub const ONLCR: ::tcflag_t = 4;
327-pub const CSIZE: ::tcflag_t = 48;
328-pub const CS6: ::tcflag_t = 16;
329-pub const CS7: ::tcflag_t = 32;
330-pub const CS8: ::tcflag_t = 48;
331-pub const CSTOPB: ::tcflag_t = 64;
332-pub const CREAD: ::tcflag_t = 128;
333-pub const PARENB: ::tcflag_t = 256;
334-pub const PARODD: ::tcflag_t = 512;
335-pub const HUPCL: ::tcflag_t = 1024;
336-pub const CLOCAL: ::tcflag_t = 2048;
337-pub const ECHOKE: ::tcflag_t = 2048;
338-pub const ECHOE: ::tcflag_t = 16;
339-pub const ECHOK: ::tcflag_t = 32;
340-pub const ECHONL: ::tcflag_t = 64;
341-pub const ECHOPRT: ::tcflag_t = 1024;
342-pub const ECHOCTL: ::tcflag_t = 512;
343-pub const ISIG: ::tcflag_t = 1;
344-pub const ICANON: ::tcflag_t = 2;
345-pub const PENDIN: ::tcflag_t = 16384;
346-pub const NOFLSH: ::tcflag_t = 128;
347-pub const CIBAUD: ::tcflag_t = 269418496;
348-pub const CBAUDEX: ::tcflag_t = 4096;
349-pub const VSWTC: usize = 7;
350-pub const OLCUC: ::tcflag_t = 2;
351-pub const NLDLY: ::tcflag_t = 256;
352-pub const CRDLY: ::tcflag_t = 1536;
353-pub const TABDLY: ::tcflag_t = 6144;
354-pub const BSDLY: ::tcflag_t = 8192;
355-pub const FFDLY: ::tcflag_t = 32768;
356-pub const VTDLY: ::tcflag_t = 16384;
357-pub const XTABS: ::tcflag_t = 6144;
358-pub const B0: ::speed_t = 0;
359-pub const B50: ::speed_t = 1;
360-pub const B75: ::speed_t = 2;
361-pub const B110: ::speed_t = 3;
362-pub const B134: ::speed_t = 4;
363-pub const B150: ::speed_t = 5;
364-pub const B200: ::speed_t = 6;
365-pub const B300: ::speed_t = 7;
366-pub const B600: ::speed_t = 8;
367-pub const B1200: ::speed_t = 9;
368-pub const B1800: ::speed_t = 10;
369-pub const B2400: ::speed_t = 11;
370-pub const B4800: ::speed_t = 12;
371-pub const B9600: ::speed_t = 13;
372-pub const B19200: ::speed_t = 14;
373-pub const B38400: ::speed_t = 15;
374-pub const EXTA: ::speed_t = 14;
375-pub const EXTB: ::speed_t = 15;
376-pub const B57600: ::speed_t = 4097;
377-pub const B115200: ::speed_t = 4098;
378-pub const B230400: ::speed_t = 4099;
379-pub const B460800: ::speed_t = 4100;
380-pub const B500000: ::speed_t = 4101;
381-pub const B576000: ::speed_t = 4102;
382-pub const B921600: ::speed_t = 4103;
383-pub const B1000000: ::speed_t = 4104;
384-pub const B1152000: ::speed_t = 4105;
385-pub const B1500000: ::speed_t = 4106;
386-pub const B2000000: ::speed_t = 4107;
387-pub const B2500000: ::speed_t = 4108;
388-pub const B3000000: ::speed_t = 4109;
389-pub const B3500000: ::speed_t = 4110;
390-pub const B4000000: ::speed_t = 4111;
391-pub const VEOL: usize = 11;
392-pub const VEOL2: usize = 16;
393-pub const VMIN: usize = 6;
394-pub const IEXTEN: ::tcflag_t = 32768;
395-pub const TOSTOP: ::tcflag_t = 256;
396-pub const FLUSHO: ::tcflag_t = 4096;
397-pub const EXTPROC: ::tcflag_t = 65536;
398-pub const TCGETS: ::c_ulong = 21505;
399-pub const TCSETS: ::c_ulong = 21506;
400-pub const TCSETSW: ::c_ulong = 21507;
401-pub const TCSETSF: ::c_ulong = 21508;
402-pub const TCGETA: ::c_ulong = 21509;
403-pub const TCSETA: ::c_ulong = 21510;
404-pub const TCSETAW: ::c_ulong = 21511;
405-pub const TCSETAF: ::c_ulong = 21512;
406-pub const TCSBRK: ::c_ulong = 21513;
407-pub const TCXONC: ::c_ulong = 21514;
408-pub const TCFLSH: ::c_ulong = 21515;
409-pub const TIOCINQ: ::c_ulong = 21531;
410-pub const TIOCGPGRP: ::c_ulong = 21519;
411-pub const TIOCSPGRP: ::c_ulong = 21520;
412-pub const TIOCOUTQ: ::c_ulong = 21521;
413-pub const TIOCGWINSZ: ::c_ulong = 21523;
414-pub const TIOCSWINSZ: ::c_ulong = 21524;
415-pub const FIONREAD: ::c_ulong = 21531;
416-pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
417-pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
418 pub const SYS_read: ::c_long = 63;
419 pub const SYS_write: ::c_long = 64;
420 pub const SYS_close: ::c_long = 57;
421@@ -863,5 +468,314 @@ pub const SYS_pkey_mprotect: ::c_long =
422 pub const SYS_pkey_alloc: ::c_long = 289;
423 pub const SYS_pkey_free: ::c_long = 290;
424 pub const SYS_statx: ::c_long = 291;
425-pub const SYS_pidfd_open: ::c_long = 434;
426-pub const SYS_clone3: ::c_long = 435;
427+
428+pub const O_APPEND: ::c_int = 1024;
429+pub const O_DIRECT: ::c_int = 0x4000;
430+pub const O_DIRECTORY: ::c_int = 0x10000;
431+pub const O_LARGEFILE: ::c_int = 0;
432+pub const O_NOFOLLOW: ::c_int = 0x20000;
433+pub const O_CREAT: ::c_int = 64;
434+pub const O_EXCL: ::c_int = 128;
435+pub const O_NOCTTY: ::c_int = 256;
436+pub const O_NONBLOCK: ::c_int = 2048;
437+pub const O_SYNC: ::c_int = 1052672;
438+pub const O_RSYNC: ::c_int = 1052672;
439+pub const O_DSYNC: ::c_int = 4096;
440+pub const O_ASYNC: ::c_int = 0x2000;
441+
442+pub const TIOCGRS485: ::c_int = 0x542E;
443+pub const TIOCSRS485: ::c_int = 0x542F;
444+
445+pub const SIGSTKSZ: ::size_t = 8192;
446+pub const MINSIGSTKSZ: ::size_t = 2048;
447+
448+pub const ENAMETOOLONG: ::c_int = 36;
449+pub const ENOLCK: ::c_int = 37;
450+pub const ENOSYS: ::c_int = 38;
451+pub const ENOTEMPTY: ::c_int = 39;
452+pub const ELOOP: ::c_int = 40;
453+pub const ENOMSG: ::c_int = 42;
454+pub const EIDRM: ::c_int = 43;
455+pub const ECHRNG: ::c_int = 44;
456+pub const EL2NSYNC: ::c_int = 45;
457+pub const EL3HLT: ::c_int = 46;
458+pub const EL3RST: ::c_int = 47;
459+pub const ELNRNG: ::c_int = 48;
460+pub const EUNATCH: ::c_int = 49;
461+pub const ENOCSI: ::c_int = 50;
462+pub const EL2HLT: ::c_int = 51;
463+pub const EBADE: ::c_int = 52;
464+pub const EBADR: ::c_int = 53;
465+pub const EXFULL: ::c_int = 54;
466+pub const ENOANO: ::c_int = 55;
467+pub const EBADRQC: ::c_int = 56;
468+pub const EBADSLT: ::c_int = 57;
469+pub const EMULTIHOP: ::c_int = 72;
470+pub const EOVERFLOW: ::c_int = 75;
471+pub const ENOTUNIQ: ::c_int = 76;
472+pub const EBADFD: ::c_int = 77;
473+pub const EBADMSG: ::c_int = 74;
474+pub const EREMCHG: ::c_int = 78;
475+pub const ELIBACC: ::c_int = 79;
476+pub const ELIBBAD: ::c_int = 80;
477+pub const ELIBSCN: ::c_int = 81;
478+pub const ELIBMAX: ::c_int = 82;
479+pub const ELIBEXEC: ::c_int = 83;
480+pub const EILSEQ: ::c_int = 84;
481+pub const ERESTART: ::c_int = 85;
482+pub const ESTRPIPE: ::c_int = 86;
483+pub const EUSERS: ::c_int = 87;
484+pub const ENOTSOCK: ::c_int = 88;
485+pub const EDESTADDRREQ: ::c_int = 89;
486+pub const EMSGSIZE: ::c_int = 90;
487+pub const EPROTOTYPE: ::c_int = 91;
488+pub const ENOPROTOOPT: ::c_int = 92;
489+pub const EPROTONOSUPPORT: ::c_int = 93;
490+pub const ESOCKTNOSUPPORT: ::c_int = 94;
491+pub const EOPNOTSUPP: ::c_int = 95;
492+pub const EPFNOSUPPORT: ::c_int = 96;
493+pub const EAFNOSUPPORT: ::c_int = 97;
494+pub const EADDRINUSE: ::c_int = 98;
495+pub const EADDRNOTAVAIL: ::c_int = 99;
496+pub const ENETDOWN: ::c_int = 100;
497+pub const ENETUNREACH: ::c_int = 101;
498+pub const ENETRESET: ::c_int = 102;
499+pub const ECONNABORTED: ::c_int = 103;
500+pub const ECONNRESET: ::c_int = 104;
501+pub const ENOBUFS: ::c_int = 105;
502+pub const EISCONN: ::c_int = 106;
503+pub const ENOTCONN: ::c_int = 107;
504+pub const ESHUTDOWN: ::c_int = 108;
505+pub const ETOOMANYREFS: ::c_int = 109;
506+pub const ETIMEDOUT: ::c_int = 110;
507+pub const ECONNREFUSED: ::c_int = 111;
508+pub const EHOSTDOWN: ::c_int = 112;
509+pub const EHOSTUNREACH: ::c_int = 113;
510+pub const EALREADY: ::c_int = 114;
511+pub const EINPROGRESS: ::c_int = 115;
512+pub const ESTALE: ::c_int = 116;
513+pub const EDQUOT: ::c_int = 122;
514+pub const ENOMEDIUM: ::c_int = 123;
515+pub const EMEDIUMTYPE: ::c_int = 124;
516+pub const ECANCELED: ::c_int = 125;
517+pub const ENOKEY: ::c_int = 126;
518+pub const EKEYEXPIRED: ::c_int = 127;
519+pub const EKEYREVOKED: ::c_int = 128;
520+pub const EKEYREJECTED: ::c_int = 129;
521+pub const EOWNERDEAD: ::c_int = 130;
522+pub const ENOTRECOVERABLE: ::c_int = 131;
523+pub const EHWPOISON: ::c_int = 133;
524+pub const ERFKILL: ::c_int = 132;
525+
526+pub const SA_ONSTACK: ::c_int = 0x08000000;
527+pub const SA_SIGINFO: ::c_int = 0x00000004;
528+pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
529+
530+pub const SIGCHLD: ::c_int = 17;
531+pub const SIGBUS: ::c_int = 7;
532+pub const SIGTTIN: ::c_int = 21;
533+pub const SIGTTOU: ::c_int = 22;
534+pub const SIGXCPU: ::c_int = 24;
535+pub const SIGXFSZ: ::c_int = 25;
536+pub const SIGVTALRM: ::c_int = 26;
537+pub const SIGPROF: ::c_int = 27;
538+pub const SIGWINCH: ::c_int = 28;
539+pub const SIGUSR1: ::c_int = 10;
540+pub const SIGUSR2: ::c_int = 12;
541+pub const SIGCONT: ::c_int = 18;
542+pub const SIGSTOP: ::c_int = 19;
543+pub const SIGTSTP: ::c_int = 20;
544+pub const SIGURG: ::c_int = 23;
545+pub const SIGIO: ::c_int = 29;
546+pub const SIGSYS: ::c_int = 31;
547+pub const SIGSTKFLT: ::c_int = 16;
548+pub const SIGPOLL: ::c_int = 29;
549+pub const SIGPWR: ::c_int = 30;
550+pub const SIG_SETMASK: ::c_int = 2;
551+pub const SIG_BLOCK: ::c_int = 0x000000;
552+pub const SIG_UNBLOCK: ::c_int = 0x01;
553+
554+pub const F_GETLK: ::c_int = 5;
555+pub const F_GETOWN: ::c_int = 9;
556+pub const F_SETLK: ::c_int = 6;
557+pub const F_SETLKW: ::c_int = 7;
558+pub const F_SETOWN: ::c_int = 8;
559+pub const F_OFD_GETLK: ::c_int = 36;
560+pub const F_OFD_SETLK: ::c_int = 37;
561+pub const F_OFD_SETLKW: ::c_int = 38;
562+
563+pub const VEOF: usize = 4;
564+
565+pub const POLLWRNORM: ::c_short = 0x100;
566+pub const POLLWRBAND: ::c_short = 0x200;
567+
568+pub const SOCK_STREAM: ::c_int = 1;
569+pub const SOCK_DGRAM: ::c_int = 2;
570+pub const SOL_SOCKET: ::c_int = 1;
571+pub const SO_REUSEADDR: ::c_int = 2;
572+pub const SO_TYPE: ::c_int = 3;
573+pub const SO_ERROR: ::c_int = 4;
574+pub const SO_DONTROUTE: ::c_int = 5;
575+pub const SO_BROADCAST: ::c_int = 6;
576+pub const SO_SNDBUF: ::c_int = 7;
577+pub const SO_RCVBUF: ::c_int = 8;
578+pub const SO_KEEPALIVE: ::c_int = 9;
579+pub const SO_OOBINLINE: ::c_int = 10;
580+pub const SO_NO_CHECK: ::c_int = 11;
581+pub const SO_PRIORITY: ::c_int = 12;
582+pub const SO_LINGER: ::c_int = 13;
583+pub const SO_BSDCOMPAT: ::c_int = 14;
584+pub const SO_REUSEPORT: ::c_int = 15;
585+pub const SO_ACCEPTCONN: ::c_int = 30;
586+pub const SO_SNDBUFFORCE: ::c_int = 32;
587+pub const SO_RCVBUFFORCE: ::c_int = 33;
588+pub const SO_PROTOCOL: ::c_int = 38;
589+pub const SO_DOMAIN: ::c_int = 39;
590+
591+pub const MAP_ANON: ::c_int = 0x0020;
592+pub const MAP_GROWSDOWN: ::c_int = 0x0100;
593+pub const MAP_DENYWRITE: ::c_int = 0x0800;
594+pub const MAP_EXECUTABLE: ::c_int = 0x01000;
595+pub const MAP_LOCKED: ::c_int = 0x02000;
596+pub const MAP_NORESERVE: ::c_int = 0x04000;
597+pub const MAP_POPULATE: ::c_int = 0x08000;
598+pub const MAP_NONBLOCK: ::c_int = 0x010000;
599+pub const MAP_STACK: ::c_int = 0x020000;
600+pub const MAP_HUGETLB: ::c_int = 0x040000;
601+pub const MAP_SYNC : ::c_int = 0x080000;
602+
603+pub const RLIMIT_NLIMITS: ::c_int = 15;
604+pub const TIOCINQ: ::c_int = ::FIONREAD;
605+pub const MCL_CURRENT: ::c_int = 0x0001;
606+pub const MCL_FUTURE: ::c_int = 0x0002;
607+pub const CBAUD: ::tcflag_t = 0o0010017;
608+pub const TAB1: ::c_int = 0x00000800;
609+pub const TAB2: ::c_int = 0x00001000;
610+pub const TAB3: ::c_int = 0x00001800;
611+pub const CR1: ::c_int = 0x00000200;
612+pub const CR2: ::c_int = 0x00000400;
613+pub const CR3: ::c_int = 0x00000600;
614+pub const FF1: ::c_int = 0x00008000;
615+pub const BS1: ::c_int = 0x00002000;
616+pub const VT1: ::c_int = 0x00004000;
617+pub const VWERASE: usize = 14;
618+pub const VREPRINT: usize = 12;
619+pub const VSUSP: usize = 10;
620+pub const VSTART: usize = 8;
621+pub const VSTOP: usize = 9;
622+pub const VDISCARD: usize = 13;
623+pub const VTIME: usize = 5;
624+pub const IXON: ::tcflag_t = 0x00000400;
625+pub const IXOFF: ::tcflag_t = 0x00001000;
626+pub const ONLCR: ::tcflag_t = 0x4;
627+pub const CSIZE: ::tcflag_t = 0x00000030;
628+pub const CS6: ::tcflag_t = 0x00000010;
629+pub const CS7: ::tcflag_t = 0x00000020;
630+pub const CS8: ::tcflag_t = 0x00000030;
631+pub const CSTOPB: ::tcflag_t = 0x00000040;
632+pub const CREAD: ::tcflag_t = 0x00000080;
633+pub const PARENB: ::tcflag_t = 0x00000100;
634+pub const PARODD: ::tcflag_t = 0x00000200;
635+pub const HUPCL: ::tcflag_t = 0x00000400;
636+pub const CLOCAL: ::tcflag_t = 0x00000800;
637+pub const ECHOKE: ::tcflag_t = 0x00000800;
638+pub const ECHOE: ::tcflag_t = 0x00000010;
639+pub const ECHOK: ::tcflag_t = 0x00000020;
640+pub const ECHONL: ::tcflag_t = 0x00000040;
641+pub const ECHOPRT: ::tcflag_t = 0x00000400;
642+pub const ECHOCTL: ::tcflag_t = 0x00000200;
643+pub const ISIG: ::tcflag_t = 0x00000001;
644+pub const ICANON: ::tcflag_t = 0x00000002;
645+pub const PENDIN: ::tcflag_t = 0x00004000;
646+pub const NOFLSH: ::tcflag_t = 0x00000080;
647+pub const CIBAUD: ::tcflag_t = 0o02003600000;
648+pub const CBAUDEX: ::tcflag_t = 0o010000;
649+pub const VSWTC: usize = 7;
650+pub const OLCUC: ::tcflag_t = 0o000002;
651+pub const NLDLY: ::tcflag_t = 0o000400;
652+pub const CRDLY: ::tcflag_t = 0o003000;
653+pub const TABDLY: ::tcflag_t = 0o014000;
654+pub const BSDLY: ::tcflag_t = 0o020000;
655+pub const FFDLY: ::tcflag_t = 0o100000;
656+pub const VTDLY: ::tcflag_t = 0o040000;
657+pub const XTABS: ::tcflag_t = 0o014000;
658+pub const B57600: ::speed_t = 0o010001;
659+pub const B115200: ::speed_t = 0o010002;
660+pub const B230400: ::speed_t = 0o010003;
661+pub const B460800: ::speed_t = 0o010004;
662+pub const B500000: ::speed_t = 0o010005;
663+pub const B576000: ::speed_t = 0o010006;
664+pub const B921600: ::speed_t = 0o010007;
665+pub const B1000000: ::speed_t = 0o010010;
666+pub const B1152000: ::speed_t = 0o010011;
667+pub const B1500000: ::speed_t = 0o010012;
668+pub const B2000000: ::speed_t = 0o010013;
669+pub const B2500000: ::speed_t = 0o010014;
670+pub const B3000000: ::speed_t = 0o010015;
671+pub const B3500000: ::speed_t = 0o010016;
672+pub const B4000000: ::speed_t = 0o010017;
673+
674+pub const FIOCLEX: ::c_int = 0x5451;
675+pub const FIONCLEX: ::c_int = 0x5450;
676+pub const FIONBIO: ::c_int = 0x5421;
677+pub const EDEADLK: ::c_int = 35;
678+pub const EDEADLOCK: ::c_int = EDEADLK;
679+pub const SO_PASSCRED: ::c_int = 16;
680+pub const SO_PEERCRED: ::c_int = 17;
681+pub const SO_RCVLOWAT: ::c_int = 18;
682+pub const SO_SNDLOWAT: ::c_int = 19;
683+pub const SO_RCVTIMEO: ::c_int = 20;
684+pub const SO_SNDTIMEO: ::c_int = 21;
685+pub const EXTPROC: ::tcflag_t = 0x00010000;
686+pub const VEOL: usize = 11;
687+pub const VEOL2: usize = 16;
688+pub const VMIN: usize = 6;
689+pub const IEXTEN: ::tcflag_t = 0x00008000;
690+pub const TOSTOP: ::tcflag_t = 0x00000100;
691+pub const FLUSHO: ::tcflag_t = 0x00001000;
692+pub const TCGETS: ::c_int = 0x5401;
693+pub const TCSETS: ::c_int = 0x5402;
694+pub const TCSETSW: ::c_int = 0x5403;
695+pub const TCSETSF: ::c_int = 0x5404;
696+pub const TCGETA: ::c_int = 0x5405;
697+pub const TCSETA: ::c_int = 0x5406;
698+pub const TCSETAW: ::c_int = 0x5407;
699+pub const TCSETAF: ::c_int = 0x5408;
700+pub const TCSBRK: ::c_int = 0x5409;
701+pub const TCXONC: ::c_int = 0x540A;
702+pub const TCFLSH: ::c_int = 0x540B;
703+pub const TIOCGSOFTCAR: ::c_int = 0x5419;
704+pub const TIOCSSOFTCAR: ::c_int = 0x541A;
705+pub const TIOCLINUX: ::c_int = 0x541C;
706+pub const TIOCGSERIAL: ::c_int = 0x541E;
707+pub const TIOCEXCL: ::c_int = 0x540C;
708+pub const TIOCNXCL: ::c_int = 0x540D;
709+pub const TIOCSCTTY: ::c_int = 0x540E;
710+pub const TIOCGPGRP: ::c_int = 0x540F;
711+pub const TIOCSPGRP: ::c_int = 0x5410;
712+pub const TIOCOUTQ: ::c_int = 0x5411;
713+pub const TIOCSTI: ::c_int = 0x5412;
714+pub const TIOCGWINSZ: ::c_int = 0x5413;
715+pub const TIOCSWINSZ: ::c_int = 0x5414;
716+pub const TIOCMGET: ::c_int = 0x5415;
717+pub const TIOCMBIS: ::c_int = 0x5416;
718+pub const TIOCMBIC: ::c_int = 0x5417;
719+pub const TIOCMSET: ::c_int = 0x5418;
720+pub const FIONREAD: ::c_int = 0x541B;
721+pub const TIOCCONS: ::c_int = 0x541D;
722+
723+pub const TIOCM_LE: ::c_int = 0x001;
724+pub const TIOCM_DTR: ::c_int = 0x002;
725+pub const TIOCM_RTS: ::c_int = 0x004;
726+pub const TIOCM_ST: ::c_int = 0x008;
727+pub const TIOCM_SR: ::c_int = 0x010;
728+pub const TIOCM_CTS: ::c_int = 0x020;
729+pub const TIOCM_CAR: ::c_int = 0x040;
730+pub const TIOCM_RNG: ::c_int = 0x080;
731+pub const TIOCM_DSR: ::c_int = 0x100;
732+pub const TIOCM_CD: ::c_int = TIOCM_CAR;
733+pub const TIOCM_RI: ::c_int = TIOCM_RNG;
734+
735+extern "C" {
736+ pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
737+}