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