commit
fd963f4d79
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "libc"
|
||||
version = "0.2.63"
|
||||
version = "0.2.64"
|
||||
authors = ["The Rust Project Developers"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "README.md"
|
||||
|
@ -49,36 +49,6 @@ s! {
|
||||
__unused: [::c_uint; 2],
|
||||
}
|
||||
|
||||
pub struct statfs {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct statfs64 {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct ipc_perm {
|
||||
pub __ipc_perm_key: ::key_t,
|
||||
pub uid: ::uid_t,
|
||||
@ -92,8 +62,11 @@ s! {
|
||||
}
|
||||
}
|
||||
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
pub const O_APPEND: ::c_int = 1024;
|
||||
pub const O_DIRECT: ::c_int = 0x10000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x4000;
|
||||
pub const O_LARGEFILE: ::c_int = 0x20000;
|
||||
pub const O_NOFOLLOW: ::c_int = 0x8000;
|
||||
pub const O_CREAT: ::c_int = 64;
|
||||
pub const O_EXCL: ::c_int = 128;
|
||||
pub const O_NOCTTY: ::c_int = 256;
|
||||
@ -101,17 +74,92 @@ pub const O_NONBLOCK: ::c_int = 2048;
|
||||
pub const O_SYNC: ::c_int = 1052672;
|
||||
pub const O_RSYNC: ::c_int = 1052672;
|
||||
pub const O_DSYNC: ::c_int = 4096;
|
||||
pub const O_DIRECT: ::c_int = 0x10000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x4000;
|
||||
pub const O_LARGEFILE: ::c_int = 0x20000;
|
||||
pub const O_NOFOLLOW: ::c_int = 0x8000;
|
||||
pub const POLLWRNORM: ::c_short = 0x100;
|
||||
pub const POLLWRBAND: ::c_short = 0x200;
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
|
||||
pub const MINSIGSTKSZ: ::size_t = 6144;
|
||||
pub const SIGSTKSZ: ::size_t = 12288;
|
||||
pub const ENAMETOOLONG: ::c_int = 36;
|
||||
pub const ENOLCK: ::c_int = 37;
|
||||
pub const ENOSYS: ::c_int = 38;
|
||||
pub const ENOTEMPTY: ::c_int = 39;
|
||||
pub const ELOOP: ::c_int = 40;
|
||||
pub const ENOMSG: ::c_int = 42;
|
||||
pub const EIDRM: ::c_int = 43;
|
||||
pub const ECHRNG: ::c_int = 44;
|
||||
pub const EL2NSYNC: ::c_int = 45;
|
||||
pub const EL3HLT: ::c_int = 46;
|
||||
pub const EL3RST: ::c_int = 47;
|
||||
pub const ELNRNG: ::c_int = 48;
|
||||
pub const EUNATCH: ::c_int = 49;
|
||||
pub const ENOCSI: ::c_int = 50;
|
||||
pub const EL2HLT: ::c_int = 51;
|
||||
pub const EBADE: ::c_int = 52;
|
||||
pub const EBADR: ::c_int = 53;
|
||||
pub const EXFULL: ::c_int = 54;
|
||||
pub const ENOANO: ::c_int = 55;
|
||||
pub const EBADRQC: ::c_int = 56;
|
||||
pub const EBADSLT: ::c_int = 57;
|
||||
pub const EMULTIHOP: ::c_int = 72;
|
||||
pub const EBADMSG: ::c_int = 74;
|
||||
pub const EOVERFLOW: ::c_int = 75;
|
||||
pub const ENOTUNIQ: ::c_int = 76;
|
||||
pub const EBADFD: ::c_int = 77;
|
||||
pub const EREMCHG: ::c_int = 78;
|
||||
pub const ELIBACC: ::c_int = 79;
|
||||
pub const ELIBBAD: ::c_int = 80;
|
||||
pub const ELIBSCN: ::c_int = 81;
|
||||
pub const ELIBMAX: ::c_int = 82;
|
||||
pub const ELIBEXEC: ::c_int = 83;
|
||||
pub const EILSEQ: ::c_int = 84;
|
||||
pub const ERESTART: ::c_int = 85;
|
||||
pub const ESTRPIPE: ::c_int = 86;
|
||||
pub const EUSERS: ::c_int = 87;
|
||||
pub const ENOTSOCK: ::c_int = 88;
|
||||
pub const EDESTADDRREQ: ::c_int = 89;
|
||||
pub const EMSGSIZE: ::c_int = 90;
|
||||
pub const EPROTOTYPE: ::c_int = 91;
|
||||
pub const ENOPROTOOPT: ::c_int = 92;
|
||||
pub const EPROTONOSUPPORT: ::c_int = 93;
|
||||
pub const ESOCKTNOSUPPORT: ::c_int = 94;
|
||||
pub const EOPNOTSUPP: ::c_int = 95;
|
||||
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
|
||||
pub const EPFNOSUPPORT: ::c_int = 96;
|
||||
pub const EAFNOSUPPORT: ::c_int = 97;
|
||||
pub const EADDRINUSE: ::c_int = 98;
|
||||
pub const EADDRNOTAVAIL: ::c_int = 99;
|
||||
pub const ENETDOWN: ::c_int = 100;
|
||||
pub const ENETUNREACH: ::c_int = 101;
|
||||
pub const ENETRESET: ::c_int = 102;
|
||||
pub const ECONNABORTED: ::c_int = 103;
|
||||
pub const ECONNRESET: ::c_int = 104;
|
||||
pub const ENOBUFS: ::c_int = 105;
|
||||
pub const EISCONN: ::c_int = 106;
|
||||
pub const ENOTCONN: ::c_int = 107;
|
||||
pub const ESHUTDOWN: ::c_int = 108;
|
||||
pub const ETOOMANYREFS: ::c_int = 109;
|
||||
pub const ETIMEDOUT: ::c_int = 110;
|
||||
pub const ECONNREFUSED: ::c_int = 111;
|
||||
pub const EHOSTDOWN: ::c_int = 112;
|
||||
pub const EHOSTUNREACH: ::c_int = 113;
|
||||
pub const EALREADY: ::c_int = 114;
|
||||
pub const EINPROGRESS: ::c_int = 115;
|
||||
pub const ESTALE: ::c_int = 116;
|
||||
pub const EUCLEAN: ::c_int = 117;
|
||||
pub const ENOTNAM: ::c_int = 118;
|
||||
pub const ENAVAIL: ::c_int = 119;
|
||||
pub const EISNAM: ::c_int = 120;
|
||||
pub const EREMOTEIO: ::c_int = 121;
|
||||
pub const EDQUOT: ::c_int = 122;
|
||||
pub const ENOMEDIUM: ::c_int = 123;
|
||||
pub const EMEDIUMTYPE: ::c_int = 124;
|
||||
pub const ECANCELED: ::c_int = 125;
|
||||
pub const ENOKEY: ::c_int = 126;
|
||||
pub const EKEYEXPIRED: ::c_int = 127;
|
||||
pub const EKEYREVOKED: ::c_int = 128;
|
||||
pub const EKEYREJECTED: ::c_int = 129;
|
||||
pub const EOWNERDEAD: ::c_int = 130;
|
||||
pub const ENOTRECOVERABLE: ::c_int = 131;
|
||||
pub const ERFKILL: ::c_int = 132;
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
|
||||
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
|
||||
pub const MAP_ANON: ::c_int = 0x0020;
|
||||
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
|
||||
pub const MAP_DENYWRITE: ::c_int = 0x0800;
|
||||
@ -122,6 +170,73 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
|
||||
pub const MAP_NONBLOCK: ::c_int = 0x010000;
|
||||
pub const MAP_STACK: ::c_int = 0x020000;
|
||||
pub const MAP_HUGETLB: ::c_int = 0x040000;
|
||||
|
||||
pub const SOCK_STREAM: ::c_int = 1;
|
||||
pub const SOCK_DGRAM: ::c_int = 2;
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
pub const SO_TYPE: ::c_int = 3;
|
||||
pub const SO_ERROR: ::c_int = 4;
|
||||
pub const SO_DONTROUTE: ::c_int = 5;
|
||||
pub const SO_BROADCAST: ::c_int = 6;
|
||||
pub const SO_SNDBUF: ::c_int = 7;
|
||||
pub const SO_RCVBUF: ::c_int = 8;
|
||||
pub const SO_KEEPALIVE: ::c_int = 9;
|
||||
pub const SO_OOBINLINE: ::c_int = 10;
|
||||
pub const SO_NO_CHECK: ::c_int = 11;
|
||||
pub const SO_PRIORITY: ::c_int = 12;
|
||||
pub const SO_LINGER: ::c_int = 13;
|
||||
pub const SO_BSDCOMPAT: ::c_int = 14;
|
||||
pub const SO_REUSEPORT: ::c_int = 15;
|
||||
pub const SO_ACCEPTCONN: ::c_int = 30;
|
||||
pub const SO_SNDBUFFORCE: ::c_int = 32;
|
||||
pub const SO_RCVBUFFORCE: ::c_int = 33;
|
||||
pub const SO_PROTOCOL: ::c_int = 38;
|
||||
pub const SO_DOMAIN: ::c_int = 39;
|
||||
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
|
||||
pub const SIGCHLD: ::c_int = 17;
|
||||
pub const SIGBUS: ::c_int = 7;
|
||||
pub const SIGTTIN: ::c_int = 21;
|
||||
pub const SIGTTOU: ::c_int = 22;
|
||||
pub const SIGXCPU: ::c_int = 24;
|
||||
pub const SIGXFSZ: ::c_int = 25;
|
||||
pub const SIGVTALRM: ::c_int = 26;
|
||||
pub const SIGPROF: ::c_int = 27;
|
||||
pub const SIGWINCH: ::c_int = 28;
|
||||
pub const SIGUSR1: ::c_int = 10;
|
||||
pub const SIGUSR2: ::c_int = 12;
|
||||
pub const SIGCONT: ::c_int = 18;
|
||||
pub const SIGSTOP: ::c_int = 19;
|
||||
pub const SIGTSTP: ::c_int = 20;
|
||||
pub const SIGURG: ::c_int = 23;
|
||||
pub const SIGIO: ::c_int = 29;
|
||||
pub const SIGSYS: ::c_int = 31;
|
||||
pub const SIGSTKFLT: ::c_int = 16;
|
||||
pub const SIGPOLL: ::c_int = 29;
|
||||
pub const SIGPWR: ::c_int = 30;
|
||||
pub const SIG_SETMASK: ::c_int = 2;
|
||||
pub const SIG_BLOCK: ::c_int = 0x000000;
|
||||
pub const SIG_UNBLOCK: ::c_int = 0x01;
|
||||
|
||||
pub const F_GETLK: ::c_int = 5;
|
||||
pub const F_GETOWN: ::c_int = 9;
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
pub const F_SETOWN: ::c_int = 8;
|
||||
|
||||
pub const VEOF: usize = 4;
|
||||
|
||||
pub const POLLWRNORM: ::c_short = 0x100;
|
||||
pub const POLLWRBAND: ::c_short = 0x200;
|
||||
|
||||
pub const MINSIGSTKSZ: ::size_t = 6144;
|
||||
pub const SIGSTKSZ: ::size_t = 12288;
|
||||
|
||||
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
|
||||
pub const SYS_io_setup: ::c_long = 0;
|
||||
pub const SYS_io_destroy: ::c_long = 1;
|
||||
pub const SYS_io_submit: ::c_long = 2;
|
||||
@ -392,87 +507,6 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
|
||||
pub const SYS_pkey_alloc: ::c_long = 289;
|
||||
pub const SYS_pkey_free: ::c_long = 290;
|
||||
|
||||
pub const ENAMETOOLONG: ::c_int = 36;
|
||||
pub const ENOLCK: ::c_int = 37;
|
||||
pub const ENOSYS: ::c_int = 38;
|
||||
pub const ENOTEMPTY: ::c_int = 39;
|
||||
pub const ELOOP: ::c_int = 40;
|
||||
pub const ENOMSG: ::c_int = 42;
|
||||
pub const EIDRM: ::c_int = 43;
|
||||
pub const ECHRNG: ::c_int = 44;
|
||||
pub const EL2NSYNC: ::c_int = 45;
|
||||
pub const EL3HLT: ::c_int = 46;
|
||||
pub const EL3RST: ::c_int = 47;
|
||||
pub const ELNRNG: ::c_int = 48;
|
||||
pub const EUNATCH: ::c_int = 49;
|
||||
pub const ENOCSI: ::c_int = 50;
|
||||
pub const EL2HLT: ::c_int = 51;
|
||||
pub const EBADE: ::c_int = 52;
|
||||
pub const EBADR: ::c_int = 53;
|
||||
pub const EXFULL: ::c_int = 54;
|
||||
pub const ENOANO: ::c_int = 55;
|
||||
pub const EBADRQC: ::c_int = 56;
|
||||
pub const EBADSLT: ::c_int = 57;
|
||||
pub const EMULTIHOP: ::c_int = 72;
|
||||
pub const EBADMSG: ::c_int = 74;
|
||||
pub const EOVERFLOW: ::c_int = 75;
|
||||
pub const ENOTUNIQ: ::c_int = 76;
|
||||
pub const EBADFD: ::c_int = 77;
|
||||
pub const EREMCHG: ::c_int = 78;
|
||||
pub const ELIBACC: ::c_int = 79;
|
||||
pub const ELIBBAD: ::c_int = 80;
|
||||
pub const ELIBSCN: ::c_int = 81;
|
||||
pub const ELIBMAX: ::c_int = 82;
|
||||
pub const ELIBEXEC: ::c_int = 83;
|
||||
pub const EILSEQ: ::c_int = 84;
|
||||
pub const ERESTART: ::c_int = 85;
|
||||
pub const ESTRPIPE: ::c_int = 86;
|
||||
pub const EUSERS: ::c_int = 87;
|
||||
pub const ENOTSOCK: ::c_int = 88;
|
||||
pub const EDESTADDRREQ: ::c_int = 89;
|
||||
pub const EMSGSIZE: ::c_int = 90;
|
||||
pub const EPROTOTYPE: ::c_int = 91;
|
||||
pub const ENOPROTOOPT: ::c_int = 92;
|
||||
pub const EPROTONOSUPPORT: ::c_int = 93;
|
||||
pub const ESOCKTNOSUPPORT: ::c_int = 94;
|
||||
pub const EOPNOTSUPP: ::c_int = 95;
|
||||
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
|
||||
pub const EPFNOSUPPORT: ::c_int = 96;
|
||||
pub const EAFNOSUPPORT: ::c_int = 97;
|
||||
pub const EADDRINUSE: ::c_int = 98;
|
||||
pub const EADDRNOTAVAIL: ::c_int = 99;
|
||||
pub const ENETDOWN: ::c_int = 100;
|
||||
|
||||
pub const F_GETLK: ::c_int = 5;
|
||||
pub const F_GETOWN: ::c_int = 9;
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
pub const F_SETOWN: ::c_int = 8;
|
||||
|
||||
pub const SIGCHLD: ::c_int = 17;
|
||||
pub const SIGBUS: ::c_int = 7;
|
||||
pub const SIGTTIN: ::c_int = 21;
|
||||
pub const SIGTTOU: ::c_int = 22;
|
||||
pub const SIGXCPU: ::c_int = 24;
|
||||
pub const SIGXFSZ: ::c_int = 25;
|
||||
pub const SIGVTALRM: ::c_int = 26;
|
||||
pub const SIGPROF: ::c_int = 27;
|
||||
pub const SIGWINCH: ::c_int = 28;
|
||||
pub const SIGUSR1: ::c_int = 10;
|
||||
pub const SIGUSR2: ::c_int = 12;
|
||||
pub const SIGCONT: ::c_int = 18;
|
||||
pub const SIGSTOP: ::c_int = 19;
|
||||
pub const SIGTSTP: ::c_int = 20;
|
||||
pub const SIGURG: ::c_int = 23;
|
||||
pub const SIGIO: ::c_int = 29;
|
||||
pub const SIGSYS: ::c_int = 31;
|
||||
pub const SIGSTKFLT: ::c_int = 16;
|
||||
pub const SIGPOLL: ::c_int = 29;
|
||||
pub const SIGPWR: ::c_int = 30;
|
||||
pub const SIG_SETMASK: ::c_int = 2;
|
||||
pub const SIG_BLOCK: ::c_int = 0x000000;
|
||||
pub const SIG_UNBLOCK: ::c_int = 0x01;
|
||||
|
||||
pub const RLIMIT_NLIMITS: ::c_int = 15;
|
||||
pub const TIOCINQ: ::c_int = ::FIONREAD;
|
||||
pub const MCL_CURRENT: ::c_int = 0x0001;
|
||||
@ -549,31 +583,6 @@ pub const FIONCLEX: ::c_int = 0x5450;
|
||||
pub const FIONBIO: ::c_int = 0x5421;
|
||||
pub const EDEADLK: ::c_int = 35;
|
||||
pub const EDEADLOCK: ::c_int = EDEADLK;
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
pub const SOCK_STREAM: ::c_int = 1;
|
||||
pub const SOCK_DGRAM: ::c_int = 2;
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
pub const SO_TYPE: ::c_int = 3;
|
||||
pub const SO_ERROR: ::c_int = 4;
|
||||
pub const SO_DONTROUTE: ::c_int = 5;
|
||||
pub const SO_BROADCAST: ::c_int = 6;
|
||||
pub const SO_SNDBUF: ::c_int = 7;
|
||||
pub const SO_RCVBUF: ::c_int = 8;
|
||||
pub const SO_KEEPALIVE: ::c_int = 9;
|
||||
pub const SO_OOBINLINE: ::c_int = 10;
|
||||
pub const SO_NO_CHECK: ::c_int = 11;
|
||||
pub const SO_PRIORITY: ::c_int = 12;
|
||||
pub const SO_LINGER: ::c_int = 13;
|
||||
pub const SO_BSDCOMPAT: ::c_int = 14;
|
||||
pub const SO_REUSEPORT: ::c_int = 15;
|
||||
pub const SO_ACCEPTCONN: ::c_int = 30;
|
||||
pub const SO_SNDBUFFORCE: ::c_int = 32;
|
||||
pub const SO_RCVBUFFORCE: ::c_int = 33;
|
||||
pub const SO_PROTOCOL: ::c_int = 38;
|
||||
pub const SO_DOMAIN: ::c_int = 39;
|
||||
pub const SO_PASSCRED: ::c_int = 16;
|
||||
pub const SO_PEERCRED: ::c_int = 17;
|
||||
pub const SO_RCVLOWAT: ::c_int = 18;
|
||||
@ -581,7 +590,6 @@ pub const SO_SNDLOWAT: ::c_int = 19;
|
||||
pub const SO_RCVTIMEO: ::c_int = 20;
|
||||
pub const SO_SNDTIMEO: ::c_int = 21;
|
||||
pub const EXTPROC: ::tcflag_t = 0x00010000;
|
||||
pub const VEOF: usize = 4;
|
||||
pub const VEOL: usize = 11;
|
||||
pub const VEOL2: usize = 16;
|
||||
pub const VMIN: usize = 6;
|
||||
@ -634,8 +642,6 @@ pub const TIOCM_DSR: ::c_int = 0x100;
|
||||
pub const TIOCM_CD: ::c_int = TIOCM_CAR;
|
||||
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
|
||||
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
|
||||
extern {
|
||||
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
|
||||
}
|
||||
|
@ -523,12 +523,12 @@ pub const EOWNERDEAD: ::c_int = 165;
|
||||
pub const ENOTRECOVERABLE: ::c_int = 166;
|
||||
pub const ERFKILL: ::c_int = 167;
|
||||
|
||||
pub const MAP_NORESERVE: ::c_int = 0x400;
|
||||
pub const MAP_ANON: ::c_int = 0x800;
|
||||
pub const MAP_GROWSDOWN: ::c_int = 0x1000;
|
||||
pub const MAP_DENYWRITE: ::c_int = 0x2000;
|
||||
pub const MAP_EXECUTABLE: ::c_int = 0x4000;
|
||||
pub const MAP_LOCKED: ::c_int = 0x8000;
|
||||
pub const MAP_NORESERVE: ::c_int = 0x400;
|
||||
pub const MAP_POPULATE: ::c_int = 0x10000;
|
||||
pub const MAP_NONBLOCK: ::c_int = 0x20000;
|
||||
pub const MAP_STACK: ::c_int = 0x40000;
|
||||
|
@ -2,6 +2,21 @@ pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
|
||||
s! {
|
||||
pub struct statfs64 {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct statvfs64 {
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
@ -58,6 +73,21 @@ s! {
|
||||
__pad2: ::c_ulong,
|
||||
}
|
||||
|
||||
pub struct statfs {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct msghdr {
|
||||
pub msg_name: *mut ::c_void,
|
||||
pub msg_namelen: ::socklen_t,
|
||||
|
@ -47,36 +47,6 @@ s! {
|
||||
__reserved: [::c_long; 3],
|
||||
}
|
||||
|
||||
pub struct statfs {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct statfs64 {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct ipc_perm {
|
||||
pub __ipc_perm_key: ::key_t,
|
||||
pub uid: ::uid_t,
|
||||
@ -92,6 +62,104 @@ s! {
|
||||
|
||||
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
|
||||
pub const MAP_32BIT: ::c_int = 0x0040;
|
||||
pub const O_APPEND: ::c_int = 1024;
|
||||
pub const O_DIRECT: ::c_int = 0x20000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x4000;
|
||||
pub const O_LARGEFILE: ::c_int = 0x10000;
|
||||
pub const O_NOFOLLOW: ::c_int = 0x8000;
|
||||
pub const O_CREAT: ::c_int = 64;
|
||||
pub const O_EXCL: ::c_int = 128;
|
||||
pub const O_NOCTTY: ::c_int = 256;
|
||||
pub const O_NONBLOCK: ::c_int = 2048;
|
||||
pub const O_SYNC: ::c_int = 1052672;
|
||||
pub const O_RSYNC: ::c_int = 1052672;
|
||||
pub const O_DSYNC: ::c_int = 4096;
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
|
||||
pub const ENAMETOOLONG: ::c_int = 36;
|
||||
pub const ENOLCK: ::c_int = 37;
|
||||
pub const ENOSYS: ::c_int = 38;
|
||||
pub const ENOTEMPTY: ::c_int = 39;
|
||||
pub const ELOOP: ::c_int = 40;
|
||||
pub const ENOMSG: ::c_int = 42;
|
||||
pub const EIDRM: ::c_int = 43;
|
||||
pub const ECHRNG: ::c_int = 44;
|
||||
pub const EL2NSYNC: ::c_int = 45;
|
||||
pub const EL3HLT: ::c_int = 46;
|
||||
pub const EL3RST: ::c_int = 47;
|
||||
pub const ELNRNG: ::c_int = 48;
|
||||
pub const EUNATCH: ::c_int = 49;
|
||||
pub const ENOCSI: ::c_int = 50;
|
||||
pub const EL2HLT: ::c_int = 51;
|
||||
pub const EBADE: ::c_int = 52;
|
||||
pub const EBADR: ::c_int = 53;
|
||||
pub const EXFULL: ::c_int = 54;
|
||||
pub const ENOANO: ::c_int = 55;
|
||||
pub const EBADRQC: ::c_int = 56;
|
||||
pub const EBADSLT: ::c_int = 57;
|
||||
pub const EMULTIHOP: ::c_int = 72;
|
||||
pub const EBADMSG: ::c_int = 74;
|
||||
pub const EOVERFLOW: ::c_int = 75;
|
||||
pub const ENOTUNIQ: ::c_int = 76;
|
||||
pub const EBADFD: ::c_int = 77;
|
||||
pub const EREMCHG: ::c_int = 78;
|
||||
pub const ELIBACC: ::c_int = 79;
|
||||
pub const ELIBBAD: ::c_int = 80;
|
||||
pub const ELIBSCN: ::c_int = 81;
|
||||
pub const ELIBMAX: ::c_int = 82;
|
||||
pub const ELIBEXEC: ::c_int = 83;
|
||||
pub const EILSEQ: ::c_int = 84;
|
||||
pub const ERESTART: ::c_int = 85;
|
||||
pub const ESTRPIPE: ::c_int = 86;
|
||||
pub const EUSERS: ::c_int = 87;
|
||||
pub const ENOTSOCK: ::c_int = 88;
|
||||
pub const EDESTADDRREQ: ::c_int = 89;
|
||||
pub const EMSGSIZE: ::c_int = 90;
|
||||
pub const EPROTOTYPE: ::c_int = 91;
|
||||
pub const ENOPROTOOPT: ::c_int = 92;
|
||||
pub const EPROTONOSUPPORT: ::c_int = 93;
|
||||
pub const ESOCKTNOSUPPORT: ::c_int = 94;
|
||||
pub const EOPNOTSUPP: ::c_int = 95;
|
||||
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
|
||||
pub const EPFNOSUPPORT: ::c_int = 96;
|
||||
pub const EAFNOSUPPORT: ::c_int = 97;
|
||||
pub const EADDRINUSE: ::c_int = 98;
|
||||
pub const EADDRNOTAVAIL: ::c_int = 99;
|
||||
pub const ENETDOWN: ::c_int = 100;
|
||||
pub const ENETUNREACH: ::c_int = 101;
|
||||
pub const ENETRESET: ::c_int = 102;
|
||||
pub const ECONNABORTED: ::c_int = 103;
|
||||
pub const ECONNRESET: ::c_int = 104;
|
||||
pub const ENOBUFS: ::c_int = 105;
|
||||
pub const EISCONN: ::c_int = 106;
|
||||
pub const ENOTCONN: ::c_int = 107;
|
||||
pub const ESHUTDOWN: ::c_int = 108;
|
||||
pub const ETOOMANYREFS: ::c_int = 109;
|
||||
pub const ETIMEDOUT: ::c_int = 110;
|
||||
pub const ECONNREFUSED: ::c_int = 111;
|
||||
pub const EHOSTDOWN: ::c_int = 112;
|
||||
pub const EHOSTUNREACH: ::c_int = 113;
|
||||
pub const EALREADY: ::c_int = 114;
|
||||
pub const EINPROGRESS: ::c_int = 115;
|
||||
pub const ESTALE: ::c_int = 116;
|
||||
pub const EUCLEAN: ::c_int = 117;
|
||||
pub const ENOTNAM: ::c_int = 118;
|
||||
pub const ENAVAIL: ::c_int = 119;
|
||||
pub const EISNAM: ::c_int = 120;
|
||||
pub const EREMOTEIO: ::c_int = 121;
|
||||
pub const EDQUOT: ::c_int = 122;
|
||||
pub const ENOMEDIUM: ::c_int = 123;
|
||||
pub const EMEDIUMTYPE: ::c_int = 124;
|
||||
pub const ECANCELED: ::c_int = 125;
|
||||
pub const ENOKEY: ::c_int = 126;
|
||||
pub const EKEYEXPIRED: ::c_int = 127;
|
||||
pub const EKEYREVOKED: ::c_int = 128;
|
||||
pub const EKEYREJECTED: ::c_int = 129;
|
||||
pub const EOWNERDEAD: ::c_int = 130;
|
||||
pub const ENOTRECOVERABLE: ::c_int = 131;
|
||||
pub const ERFKILL: ::c_int = 132;
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
|
||||
pub const MAP_ANON: ::c_int = 0x0020;
|
||||
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
|
||||
pub const MAP_DENYWRITE: ::c_int = 0x0800;
|
||||
@ -102,19 +170,66 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
|
||||
pub const MAP_NONBLOCK: ::c_int = 0x010000;
|
||||
pub const MAP_STACK: ::c_int = 0x020000;
|
||||
pub const MAP_HUGETLB: ::c_int = 0x040000;
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
pub const O_APPEND: ::c_int = 1024;
|
||||
pub const O_CREAT: ::c_int = 64;
|
||||
pub const O_EXCL: ::c_int = 128;
|
||||
pub const O_NOCTTY: ::c_int = 256;
|
||||
pub const O_NONBLOCK: ::c_int = 2048;
|
||||
pub const O_SYNC: ::c_int = 1052672;
|
||||
pub const O_RSYNC: ::c_int = 1052672;
|
||||
pub const O_DSYNC: ::c_int = 4096;
|
||||
pub const O_DIRECT: ::c_int = 0x20000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x4000;
|
||||
pub const O_LARGEFILE: ::c_int = 0x10000;
|
||||
pub const O_NOFOLLOW: ::c_int = 0x8000;
|
||||
|
||||
pub const SOCK_STREAM: ::c_int = 1;
|
||||
pub const SOCK_DGRAM: ::c_int = 2;
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
pub const SO_TYPE: ::c_int = 3;
|
||||
pub const SO_ERROR: ::c_int = 4;
|
||||
pub const SO_DONTROUTE: ::c_int = 5;
|
||||
pub const SO_BROADCAST: ::c_int = 6;
|
||||
pub const SO_SNDBUF: ::c_int = 7;
|
||||
pub const SO_RCVBUF: ::c_int = 8;
|
||||
pub const SO_KEEPALIVE: ::c_int = 9;
|
||||
pub const SO_OOBINLINE: ::c_int = 10;
|
||||
pub const SO_NO_CHECK: ::c_int = 11;
|
||||
pub const SO_PRIORITY: ::c_int = 12;
|
||||
pub const SO_LINGER: ::c_int = 13;
|
||||
pub const SO_BSDCOMPAT: ::c_int = 14;
|
||||
pub const SO_REUSEPORT: ::c_int = 15;
|
||||
pub const SO_ACCEPTCONN: ::c_int = 30;
|
||||
pub const SO_SNDBUFFORCE: ::c_int = 32;
|
||||
pub const SO_RCVBUFFORCE: ::c_int = 33;
|
||||
pub const SO_PROTOCOL: ::c_int = 38;
|
||||
pub const SO_DOMAIN: ::c_int = 39;
|
||||
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
|
||||
pub const SIGCHLD: ::c_int = 17;
|
||||
pub const SIGBUS: ::c_int = 7;
|
||||
pub const SIGTTIN: ::c_int = 21;
|
||||
pub const SIGTTOU: ::c_int = 22;
|
||||
pub const SIGXCPU: ::c_int = 24;
|
||||
pub const SIGXFSZ: ::c_int = 25;
|
||||
pub const SIGVTALRM: ::c_int = 26;
|
||||
pub const SIGPROF: ::c_int = 27;
|
||||
pub const SIGWINCH: ::c_int = 28;
|
||||
pub const SIGUSR1: ::c_int = 10;
|
||||
pub const SIGUSR2: ::c_int = 12;
|
||||
pub const SIGCONT: ::c_int = 18;
|
||||
pub const SIGSTOP: ::c_int = 19;
|
||||
pub const SIGTSTP: ::c_int = 20;
|
||||
pub const SIGURG: ::c_int = 23;
|
||||
pub const SIGIO: ::c_int = 29;
|
||||
pub const SIGSYS: ::c_int = 31;
|
||||
pub const SIGSTKFLT: ::c_int = 16;
|
||||
pub const SIGPOLL: ::c_int = 29;
|
||||
pub const SIGPWR: ::c_int = 30;
|
||||
pub const SIG_SETMASK: ::c_int = 2;
|
||||
pub const SIG_BLOCK: ::c_int = 0x000000;
|
||||
pub const SIG_UNBLOCK: ::c_int = 0x01;
|
||||
|
||||
pub const F_GETLK: ::c_int = 5;
|
||||
pub const F_GETOWN: ::c_int = 9;
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
pub const F_SETOWN: ::c_int = 8;
|
||||
|
||||
pub const VEOF: usize = 4;
|
||||
|
||||
pub const POLLWRNORM: ::c_short = 0x100;
|
||||
pub const POLLWRBAND: ::c_short = 0x200;
|
||||
|
||||
@ -482,117 +597,11 @@ pub const SYS_preadv2: ::c_long = 380;
|
||||
pub const SYS_pwritev2: ::c_long = 381;
|
||||
pub const SYS_kexec_file_load: ::c_long = 382;
|
||||
|
||||
pub const ENAMETOOLONG: ::c_int = 36;
|
||||
pub const ENOLCK: ::c_int = 37;
|
||||
pub const ENOSYS: ::c_int = 38;
|
||||
pub const ENOTEMPTY: ::c_int = 39;
|
||||
pub const ELOOP: ::c_int = 40;
|
||||
pub const ENOMSG: ::c_int = 42;
|
||||
pub const EIDRM: ::c_int = 43;
|
||||
pub const ECHRNG: ::c_int = 44;
|
||||
pub const EL2NSYNC: ::c_int = 45;
|
||||
pub const EL3HLT: ::c_int = 46;
|
||||
pub const EL3RST: ::c_int = 47;
|
||||
pub const ELNRNG: ::c_int = 48;
|
||||
pub const EUNATCH: ::c_int = 49;
|
||||
pub const ENOCSI: ::c_int = 50;
|
||||
pub const EL2HLT: ::c_int = 51;
|
||||
pub const EBADE: ::c_int = 52;
|
||||
pub const EBADR: ::c_int = 53;
|
||||
pub const EXFULL: ::c_int = 54;
|
||||
pub const ENOANO: ::c_int = 55;
|
||||
pub const EBADRQC: ::c_int = 56;
|
||||
pub const EBADSLT: ::c_int = 57;
|
||||
pub const EMULTIHOP: ::c_int = 72;
|
||||
pub const EBADMSG: ::c_int = 74;
|
||||
pub const EOVERFLOW: ::c_int = 75;
|
||||
pub const ENOTUNIQ: ::c_int = 76;
|
||||
pub const EBADFD: ::c_int = 77;
|
||||
pub const EREMCHG: ::c_int = 78;
|
||||
pub const ELIBACC: ::c_int = 79;
|
||||
pub const ELIBBAD: ::c_int = 80;
|
||||
pub const ELIBSCN: ::c_int = 81;
|
||||
pub const ELIBMAX: ::c_int = 82;
|
||||
pub const ELIBEXEC: ::c_int = 83;
|
||||
pub const EILSEQ: ::c_int = 84;
|
||||
pub const ERESTART: ::c_int = 85;
|
||||
pub const ESTRPIPE: ::c_int = 86;
|
||||
pub const EUSERS: ::c_int = 87;
|
||||
pub const ENOTSOCK: ::c_int = 88;
|
||||
pub const EDESTADDRREQ: ::c_int = 89;
|
||||
pub const EMSGSIZE: ::c_int = 90;
|
||||
pub const EPROTOTYPE: ::c_int = 91;
|
||||
pub const ENOPROTOOPT: ::c_int = 92;
|
||||
pub const EPROTONOSUPPORT: ::c_int = 93;
|
||||
pub const ESOCKTNOSUPPORT: ::c_int = 94;
|
||||
pub const EOPNOTSUPP: ::c_int = 95;
|
||||
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
|
||||
pub const EPFNOSUPPORT: ::c_int = 96;
|
||||
pub const EAFNOSUPPORT: ::c_int = 97;
|
||||
pub const EADDRINUSE: ::c_int = 98;
|
||||
pub const EADDRNOTAVAIL: ::c_int = 99;
|
||||
pub const ENETDOWN: ::c_int = 100;
|
||||
|
||||
pub const F_GETLK: ::c_int = 5;
|
||||
pub const F_GETOWN: ::c_int = 9;
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
pub const F_SETOWN: ::c_int = 8;
|
||||
|
||||
pub const SIGCHLD: ::c_int = 17;
|
||||
pub const SIGBUS: ::c_int = 7;
|
||||
pub const SIGTTIN: ::c_int = 21;
|
||||
pub const SIGTTOU: ::c_int = 22;
|
||||
pub const SIGXCPU: ::c_int = 24;
|
||||
pub const SIGXFSZ: ::c_int = 25;
|
||||
pub const SIGVTALRM: ::c_int = 26;
|
||||
pub const SIGPROF: ::c_int = 27;
|
||||
pub const SIGWINCH: ::c_int = 28;
|
||||
pub const SIGUSR1: ::c_int = 10;
|
||||
pub const SIGUSR2: ::c_int = 12;
|
||||
pub const SIGCONT: ::c_int = 18;
|
||||
pub const SIGSTOP: ::c_int = 19;
|
||||
pub const SIGTSTP: ::c_int = 20;
|
||||
pub const SIGURG: ::c_int = 23;
|
||||
pub const SIGIO: ::c_int = 29;
|
||||
pub const SIGSYS: ::c_int = 31;
|
||||
pub const SIGSTKFLT: ::c_int = 16;
|
||||
pub const SIGPOLL: ::c_int = 29;
|
||||
pub const SIGPWR: ::c_int = 30;
|
||||
pub const SIG_SETMASK: ::c_int = 2;
|
||||
pub const SIG_BLOCK: ::c_int = 0x000000;
|
||||
pub const SIG_UNBLOCK: ::c_int = 0x01;
|
||||
|
||||
pub const FIOCLEX: ::c_int = 0x20006601;
|
||||
pub const FIONCLEX: ::c_int = 0x20006602;
|
||||
pub const FIONBIO: ::c_int = 0x8004667e;
|
||||
pub const EDEADLK: ::c_int = 58;
|
||||
pub const EDEADLOCK: ::c_int = EDEADLK;
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
pub const SOCK_STREAM: ::c_int = 1;
|
||||
pub const SOCK_DGRAM: ::c_int = 2;
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
pub const SO_TYPE: ::c_int = 3;
|
||||
pub const SO_ERROR: ::c_int = 4;
|
||||
pub const SO_DONTROUTE: ::c_int = 5;
|
||||
pub const SO_BROADCAST: ::c_int = 6;
|
||||
pub const SO_SNDBUF: ::c_int = 7;
|
||||
pub const SO_RCVBUF: ::c_int = 8;
|
||||
pub const SO_KEEPALIVE: ::c_int = 9;
|
||||
pub const SO_OOBINLINE: ::c_int = 10;
|
||||
pub const SO_NO_CHECK: ::c_int = 11;
|
||||
pub const SO_PRIORITY: ::c_int = 12;
|
||||
pub const SO_LINGER: ::c_int = 13;
|
||||
pub const SO_BSDCOMPAT: ::c_int = 14;
|
||||
pub const SO_REUSEPORT: ::c_int = 15;
|
||||
pub const SO_ACCEPTCONN: ::c_int = 30;
|
||||
pub const SO_SNDBUFFORCE: ::c_int = 32;
|
||||
pub const SO_RCVBUFFORCE: ::c_int = 33;
|
||||
pub const SO_PROTOCOL: ::c_int = 38;
|
||||
pub const SO_DOMAIN: ::c_int = 39;
|
||||
pub const SO_PASSCRED: ::c_int = 20;
|
||||
pub const SO_PEERCRED: ::c_int = 21;
|
||||
pub const SO_RCVLOWAT: ::c_int = 16;
|
||||
@ -600,7 +609,6 @@ pub const SO_SNDLOWAT: ::c_int = 17;
|
||||
pub const SO_RCVTIMEO: ::c_int = 18;
|
||||
pub const SO_SNDTIMEO: ::c_int = 19;
|
||||
pub const EXTPROC: ::tcflag_t = 0x10000000;
|
||||
pub const VEOF: usize = 4;
|
||||
pub const VEOL: usize = 6;
|
||||
pub const VEOL2: usize = 8;
|
||||
pub const VMIN: usize = 5;
|
||||
@ -725,8 +733,6 @@ pub const B3000000: ::speed_t = 0o00034;
|
||||
pub const B3500000: ::speed_t = 0o00035;
|
||||
pub const B4000000: ::speed_t = 0o00036;
|
||||
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
|
||||
extern {
|
||||
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
|
||||
}
|
||||
|
@ -47,36 +47,6 @@ s! {
|
||||
__reserved: [::c_long; 3],
|
||||
}
|
||||
|
||||
pub struct statfs {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct statfs64 {
|
||||
pub f_type: ::c_ulong,
|
||||
pub f_bsize: ::c_ulong,
|
||||
pub f_blocks: ::fsblkcnt_t,
|
||||
pub f_bfree: ::fsblkcnt_t,
|
||||
pub f_bavail: ::fsblkcnt_t,
|
||||
pub f_files: ::fsfilcnt_t,
|
||||
pub f_ffree: ::fsfilcnt_t,
|
||||
pub f_fsid: ::fsid_t,
|
||||
pub f_namelen: ::c_ulong,
|
||||
pub f_frsize: ::c_ulong,
|
||||
pub f_flags: ::c_ulong,
|
||||
pub f_spare: [::c_ulong; 4],
|
||||
}
|
||||
|
||||
pub struct mcontext_t {
|
||||
__private: [u64; 32],
|
||||
}
|
||||
@ -484,6 +454,57 @@ pub const SYS_pwritev2: ::c_long = 328;
|
||||
// FIXME syscalls 329-331 have been added in musl 1.16
|
||||
// See discussion https://github.com/rust-lang/libc/pull/699
|
||||
|
||||
// offsets in user_regs_structs, from sys/reg.h
|
||||
pub const R15: ::c_int = 0;
|
||||
pub const R14: ::c_int = 1;
|
||||
pub const R13: ::c_int = 2;
|
||||
pub const R12: ::c_int = 3;
|
||||
pub const RBP: ::c_int = 4;
|
||||
pub const RBX: ::c_int = 5;
|
||||
pub const R11: ::c_int = 6;
|
||||
pub const R10: ::c_int = 7;
|
||||
pub const R9: ::c_int = 8;
|
||||
pub const R8: ::c_int = 9;
|
||||
pub const RAX: ::c_int = 10;
|
||||
pub const RCX: ::c_int = 11;
|
||||
pub const RDX: ::c_int = 12;
|
||||
pub const RSI: ::c_int = 13;
|
||||
pub const RDI: ::c_int = 14;
|
||||
pub const ORIG_RAX: ::c_int = 15;
|
||||
pub const RIP: ::c_int = 16;
|
||||
pub const CS: ::c_int = 17;
|
||||
pub const EFLAGS: ::c_int = 18;
|
||||
pub const RSP: ::c_int = 19;
|
||||
pub const SS: ::c_int = 20;
|
||||
pub const FS_BASE: ::c_int = 21;
|
||||
pub const GS_BASE: ::c_int = 22;
|
||||
pub const DS: ::c_int = 23;
|
||||
pub const ES: ::c_int = 24;
|
||||
pub const FS: ::c_int = 25;
|
||||
pub const GS: ::c_int = 26;
|
||||
|
||||
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
|
||||
pub const MAP_32BIT: ::c_int = 0x0040;
|
||||
pub const O_APPEND: ::c_int = 1024;
|
||||
pub const O_DIRECT: ::c_int = 0x4000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x10000;
|
||||
pub const O_LARGEFILE: ::c_int = 0;
|
||||
pub const O_NOFOLLOW: ::c_int = 0x20000;
|
||||
pub const O_CREAT: ::c_int = 64;
|
||||
pub const O_EXCL: ::c_int = 128;
|
||||
pub const O_NOCTTY: ::c_int = 256;
|
||||
pub const O_NONBLOCK: ::c_int = 2048;
|
||||
pub const O_SYNC: ::c_int = 1052672;
|
||||
pub const O_RSYNC: ::c_int = 1052672;
|
||||
pub const O_DSYNC: ::c_int = 4096;
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
|
||||
pub const TIOCGRS485: ::c_int = 0x542E;
|
||||
pub const TIOCSRS485: ::c_int = 0x542F;
|
||||
|
||||
pub const SIGSTKSZ: ::size_t = 8192;
|
||||
pub const MINSIGSTKSZ: ::size_t = 2048;
|
||||
|
||||
pub const ENAMETOOLONG: ::c_int = 36;
|
||||
pub const ENOLCK: ::c_int = 37;
|
||||
pub const ENOSYS: ::c_int = 38;
|
||||
@ -534,69 +555,43 @@ pub const EAFNOSUPPORT: ::c_int = 97;
|
||||
pub const EADDRINUSE: ::c_int = 98;
|
||||
pub const EADDRNOTAVAIL: ::c_int = 99;
|
||||
pub const ENETDOWN: ::c_int = 100;
|
||||
pub const ENETUNREACH: ::c_int = 101;
|
||||
pub const ENETRESET: ::c_int = 102;
|
||||
pub const ECONNABORTED: ::c_int = 103;
|
||||
pub const ECONNRESET: ::c_int = 104;
|
||||
pub const ENOBUFS: ::c_int = 105;
|
||||
pub const EISCONN: ::c_int = 106;
|
||||
pub const ENOTCONN: ::c_int = 107;
|
||||
pub const ESHUTDOWN: ::c_int = 108;
|
||||
pub const ETOOMANYREFS: ::c_int = 109;
|
||||
pub const ETIMEDOUT: ::c_int = 110;
|
||||
pub const ECONNREFUSED: ::c_int = 111;
|
||||
pub const EHOSTDOWN: ::c_int = 112;
|
||||
pub const EHOSTUNREACH: ::c_int = 113;
|
||||
pub const EALREADY: ::c_int = 114;
|
||||
pub const EINPROGRESS: ::c_int = 115;
|
||||
pub const ESTALE: ::c_int = 116;
|
||||
pub const EUCLEAN: ::c_int = 117;
|
||||
pub const ENOTNAM: ::c_int = 118;
|
||||
pub const ENAVAIL: ::c_int = 119;
|
||||
pub const EISNAM: ::c_int = 120;
|
||||
pub const EREMOTEIO: ::c_int = 121;
|
||||
pub const EDQUOT: ::c_int = 122;
|
||||
pub const ENOMEDIUM: ::c_int = 123;
|
||||
pub const EMEDIUMTYPE: ::c_int = 124;
|
||||
pub const ECANCELED: ::c_int = 125;
|
||||
pub const ENOKEY: ::c_int = 126;
|
||||
pub const EKEYEXPIRED: ::c_int = 127;
|
||||
pub const EKEYREVOKED: ::c_int = 128;
|
||||
pub const EKEYREJECTED: ::c_int = 129;
|
||||
pub const EOWNERDEAD: ::c_int = 130;
|
||||
pub const ENOTRECOVERABLE: ::c_int = 131;
|
||||
pub const ERFKILL: ::c_int = 132;
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
|
||||
// offsets in user_regs_structs, from sys/reg.h
|
||||
pub const R15: ::c_int = 0;
|
||||
pub const R14: ::c_int = 1;
|
||||
pub const R13: ::c_int = 2;
|
||||
pub const R12: ::c_int = 3;
|
||||
pub const RBP: ::c_int = 4;
|
||||
pub const RBX: ::c_int = 5;
|
||||
pub const R11: ::c_int = 6;
|
||||
pub const R10: ::c_int = 7;
|
||||
pub const R9: ::c_int = 8;
|
||||
pub const R8: ::c_int = 9;
|
||||
pub const RAX: ::c_int = 10;
|
||||
pub const RCX: ::c_int = 11;
|
||||
pub const RDX: ::c_int = 12;
|
||||
pub const RSI: ::c_int = 13;
|
||||
pub const RDI: ::c_int = 14;
|
||||
pub const ORIG_RAX: ::c_int = 15;
|
||||
pub const RIP: ::c_int = 16;
|
||||
pub const CS: ::c_int = 17;
|
||||
pub const EFLAGS: ::c_int = 18;
|
||||
pub const RSP: ::c_int = 19;
|
||||
pub const SS: ::c_int = 20;
|
||||
pub const FS_BASE: ::c_int = 21;
|
||||
pub const GS_BASE: ::c_int = 22;
|
||||
pub const DS: ::c_int = 23;
|
||||
pub const ES: ::c_int = 24;
|
||||
pub const FS: ::c_int = 25;
|
||||
pub const GS: ::c_int = 26;
|
||||
|
||||
pub const F_GETLK: ::c_int = 5;
|
||||
pub const F_GETOWN: ::c_int = 9;
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
pub const F_SETOWN: ::c_int = 8;
|
||||
|
||||
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
|
||||
pub const MAP_32BIT: ::c_int = 0x0040;
|
||||
pub const MAP_ANON: ::c_int = 0x0020;
|
||||
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
|
||||
pub const MAP_DENYWRITE: ::c_int = 0x0800;
|
||||
pub const MAP_EXECUTABLE: ::c_int = 0x01000;
|
||||
pub const MAP_LOCKED: ::c_int = 0x02000;
|
||||
pub const MAP_NORESERVE: ::c_int = 0x04000;
|
||||
pub const MAP_POPULATE: ::c_int = 0x08000;
|
||||
pub const MAP_NONBLOCK: ::c_int = 0x010000;
|
||||
pub const MAP_STACK: ::c_int = 0x020000;
|
||||
pub const MAP_HUGETLB: ::c_int = 0x040000;
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
pub const O_APPEND: ::c_int = 1024;
|
||||
pub const O_CREAT: ::c_int = 64;
|
||||
pub const O_EXCL: ::c_int = 128;
|
||||
pub const O_NOCTTY: ::c_int = 256;
|
||||
pub const O_NONBLOCK: ::c_int = 2048;
|
||||
pub const O_SYNC: ::c_int = 1052672;
|
||||
pub const O_RSYNC: ::c_int = 1052672;
|
||||
pub const O_DSYNC: ::c_int = 4096;
|
||||
pub const O_DIRECT: ::c_int = 0x4000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x10000;
|
||||
pub const O_LARGEFILE: ::c_int = 0;
|
||||
pub const O_NOFOLLOW: ::c_int = 0x20000;
|
||||
pub const POLLWRNORM: ::c_short = 0x100;
|
||||
pub const POLLWRBAND: ::c_short = 0x200;
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
|
||||
pub const SIGCHLD: ::c_int = 17;
|
||||
pub const SIGBUS: ::c_int = 7;
|
||||
@ -622,11 +617,50 @@ pub const SIG_SETMASK: ::c_int = 2;
|
||||
pub const SIG_BLOCK: ::c_int = 0x000000;
|
||||
pub const SIG_UNBLOCK: ::c_int = 0x01;
|
||||
|
||||
pub const TIOCGRS485: ::c_int = 0x542E;
|
||||
pub const TIOCSRS485: ::c_int = 0x542F;
|
||||
pub const F_GETLK: ::c_int = 5;
|
||||
pub const F_GETOWN: ::c_int = 9;
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
pub const F_SETOWN: ::c_int = 8;
|
||||
|
||||
pub const SIGSTKSZ: ::size_t = 8192;
|
||||
pub const MINSIGSTKSZ: ::size_t = 2048;
|
||||
pub const VEOF: usize = 4;
|
||||
|
||||
pub const POLLWRNORM: ::c_short = 0x100;
|
||||
pub const POLLWRBAND: ::c_short = 0x200;
|
||||
|
||||
pub const SOCK_STREAM: ::c_int = 1;
|
||||
pub const SOCK_DGRAM: ::c_int = 2;
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
pub const SO_TYPE: ::c_int = 3;
|
||||
pub const SO_ERROR: ::c_int = 4;
|
||||
pub const SO_DONTROUTE: ::c_int = 5;
|
||||
pub const SO_BROADCAST: ::c_int = 6;
|
||||
pub const SO_SNDBUF: ::c_int = 7;
|
||||
pub const SO_RCVBUF: ::c_int = 8;
|
||||
pub const SO_KEEPALIVE: ::c_int = 9;
|
||||
pub const SO_OOBINLINE: ::c_int = 10;
|
||||
pub const SO_NO_CHECK: ::c_int = 11;
|
||||
pub const SO_PRIORITY: ::c_int = 12;
|
||||
pub const SO_LINGER: ::c_int = 13;
|
||||
pub const SO_BSDCOMPAT: ::c_int = 14;
|
||||
pub const SO_REUSEPORT: ::c_int = 15;
|
||||
pub const SO_ACCEPTCONN: ::c_int = 30;
|
||||
pub const SO_SNDBUFFORCE: ::c_int = 32;
|
||||
pub const SO_RCVBUFFORCE: ::c_int = 33;
|
||||
pub const SO_PROTOCOL: ::c_int = 38;
|
||||
pub const SO_DOMAIN: ::c_int = 39;
|
||||
|
||||
pub const MAP_ANON: ::c_int = 0x0020;
|
||||
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
|
||||
pub const MAP_DENYWRITE: ::c_int = 0x0800;
|
||||
pub const MAP_EXECUTABLE: ::c_int = 0x01000;
|
||||
pub const MAP_LOCKED: ::c_int = 0x02000;
|
||||
pub const MAP_NORESERVE: ::c_int = 0x04000;
|
||||
pub const MAP_POPULATE: ::c_int = 0x08000;
|
||||
pub const MAP_NONBLOCK: ::c_int = 0x010000;
|
||||
pub const MAP_STACK: ::c_int = 0x020000;
|
||||
pub const MAP_HUGETLB: ::c_int = 0x040000;
|
||||
|
||||
pub const RLIMIT_NLIMITS: ::c_int = 15;
|
||||
pub const TIOCINQ: ::c_int = ::FIONREAD;
|
||||
@ -704,31 +738,6 @@ pub const FIONCLEX: ::c_int = 0x5450;
|
||||
pub const FIONBIO: ::c_int = 0x5421;
|
||||
pub const EDEADLK: ::c_int = 35;
|
||||
pub const EDEADLOCK: ::c_int = EDEADLK;
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
pub const SOCK_STREAM: ::c_int = 1;
|
||||
pub const SOCK_DGRAM: ::c_int = 2;
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
pub const SO_TYPE: ::c_int = 3;
|
||||
pub const SO_ERROR: ::c_int = 4;
|
||||
pub const SO_DONTROUTE: ::c_int = 5;
|
||||
pub const SO_BROADCAST: ::c_int = 6;
|
||||
pub const SO_SNDBUF: ::c_int = 7;
|
||||
pub const SO_RCVBUF: ::c_int = 8;
|
||||
pub const SO_KEEPALIVE: ::c_int = 9;
|
||||
pub const SO_OOBINLINE: ::c_int = 10;
|
||||
pub const SO_NO_CHECK: ::c_int = 11;
|
||||
pub const SO_PRIORITY: ::c_int = 12;
|
||||
pub const SO_LINGER: ::c_int = 13;
|
||||
pub const SO_BSDCOMPAT: ::c_int = 14;
|
||||
pub const SO_REUSEPORT: ::c_int = 15;
|
||||
pub const SO_ACCEPTCONN: ::c_int = 30;
|
||||
pub const SO_SNDBUFFORCE: ::c_int = 32;
|
||||
pub const SO_RCVBUFFORCE: ::c_int = 33;
|
||||
pub const SO_PROTOCOL: ::c_int = 38;
|
||||
pub const SO_DOMAIN: ::c_int = 39;
|
||||
pub const SO_PASSCRED: ::c_int = 16;
|
||||
pub const SO_PEERCRED: ::c_int = 17;
|
||||
pub const SO_RCVLOWAT: ::c_int = 18;
|
||||
@ -736,7 +745,6 @@ pub const SO_SNDLOWAT: ::c_int = 19;
|
||||
pub const SO_RCVTIMEO: ::c_int = 20;
|
||||
pub const SO_SNDTIMEO: ::c_int = 21;
|
||||
pub const EXTPROC: ::tcflag_t = 0x00010000;
|
||||
pub const VEOF: usize = 4;
|
||||
pub const VEOL: usize = 11;
|
||||
pub const VEOL2: usize = 16;
|
||||
pub const VMIN: usize = 6;
|
||||
@ -786,8 +794,6 @@ pub const TIOCM_DSR: ::c_int = 0x100;
|
||||
pub const TIOCM_CD: ::c_int = TIOCM_CAR;
|
||||
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
|
||||
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
|
||||
extern {
|
||||
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user