From 48af48b99ebae209d1be449a8f026698177380c9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 30 Nov 2023 08:41:42 -0800 Subject: [PATCH] Move mempolicy.h to its own module. (#99) After regenerating all the generated files, I noticed that mempolicy.h was pulling in the errno codes for all architectures, so I think it's best for it to be in its own module. --- Cargo.toml | 1 + gen/modules/general.h | 1 - gen/modules/mempolicy.h | 2 + src/aarch64/general.rs | 171 ------------------- src/aarch64/mempolicy.rs | 173 ++++++++++++++++++++ src/arm/general.rs | 171 ------------------- src/arm/mempolicy.rs | 173 ++++++++++++++++++++ src/csky/general.rs | 171 ------------------- src/csky/mempolicy.rs | 173 ++++++++++++++++++++ src/lib.rs | 72 ++++++++ src/loongarch64/general.rs | 171 ------------------- src/loongarch64/mempolicy.rs | 173 ++++++++++++++++++++ src/mips/general.rs | 308 +++++++++++++++-------------------- src/mips/mempolicy.rs | 175 ++++++++++++++++++++ src/mips32r6/general.rs | 308 +++++++++++++++-------------------- src/mips32r6/mempolicy.rs | 175 ++++++++++++++++++++ src/mips64/general.rs | 308 +++++++++++++++-------------------- src/mips64/mempolicy.rs | 175 ++++++++++++++++++++ src/mips64r6/general.rs | 308 +++++++++++++++-------------------- src/mips64r6/mempolicy.rs | 175 ++++++++++++++++++++ src/powerpc/general.rs | 171 ------------------- src/powerpc/mempolicy.rs | 173 ++++++++++++++++++++ src/powerpc64/general.rs | 171 ------------------- src/powerpc64/mempolicy.rs | 173 ++++++++++++++++++++ src/riscv32/general.rs | 171 ------------------- src/riscv32/mempolicy.rs | 173 ++++++++++++++++++++ src/riscv64/general.rs | 171 ------------------- src/riscv64/mempolicy.rs | 173 ++++++++++++++++++++ src/s390x/general.rs | 171 ------------------- src/s390x/mempolicy.rs | 173 ++++++++++++++++++++ src/sparc/general.rs | 173 -------------------- src/sparc/mempolicy.rs | 175 ++++++++++++++++++++ src/sparc64/general.rs | 173 -------------------- src/sparc64/mempolicy.rs | 175 ++++++++++++++++++++ src/x32/general.rs | 171 ------------------- src/x32/mempolicy.rs | 173 ++++++++++++++++++++ src/x86/general.rs | 171 ------------------- src/x86/mempolicy.rs | 173 ++++++++++++++++++++ src/x86_64/general.rs | 171 ------------------- src/x86_64/mempolicy.rs | 173 ++++++++++++++++++++ 40 files changed, 3741 insertions(+), 3091 deletions(-) create mode 100644 gen/modules/mempolicy.h create mode 100644 src/aarch64/mempolicy.rs create mode 100644 src/arm/mempolicy.rs create mode 100644 src/csky/mempolicy.rs create mode 100644 src/loongarch64/mempolicy.rs create mode 100644 src/mips/mempolicy.rs create mode 100644 src/mips32r6/mempolicy.rs create mode 100644 src/mips64/mempolicy.rs create mode 100644 src/mips64r6/mempolicy.rs create mode 100644 src/powerpc/mempolicy.rs create mode 100644 src/powerpc64/mempolicy.rs create mode 100644 src/riscv32/mempolicy.rs create mode 100644 src/riscv64/mempolicy.rs create mode 100644 src/s390x/mempolicy.rs create mode 100644 src/sparc/mempolicy.rs create mode 100644 src/sparc64/mempolicy.rs create mode 100644 src/x32/mempolicy.rs create mode 100644 src/x86/mempolicy.rs create mode 100644 src/x86_64/mempolicy.rs diff --git a/Cargo.toml b/Cargo.toml index 3ac3ea16..fb43cc96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,6 +31,7 @@ general = [] if_ether = [] io_uring = [] ioctl = [] +mempolicy = [] net = [] netlink = [] prctl = [] diff --git a/gen/modules/general.h b/gen/modules/general.h index 0aca8f46..0a73416f 100644 --- a/gen/modules/general.h +++ b/gen/modules/general.h @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/gen/modules/mempolicy.h b/gen/modules/mempolicy.h new file mode 100644 index 00000000..d79883b6 --- /dev/null +++ b/gen/modules/mempolicy.h @@ -0,0 +1,2 @@ +#include "support.h" +#include diff --git a/src/aarch64/general.rs b/src/aarch64/general.rs index 94d0f4c3..7dc18427 100644 --- a/src/aarch64/general.rs +++ b/src/aarch64/general.rs @@ -1455,158 +1455,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2680,13 +2528,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2703,18 +2544,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/aarch64/mempolicy.rs b/src/aarch64/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/aarch64/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/arm/general.rs b/src/arm/general.rs index ff12564f..11cc8a0b 100644 --- a/src/arm/general.rs +++ b/src/arm/general.rs @@ -1488,158 +1488,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2806,13 +2654,6 @@ pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; pub const _NSIG: u32 = 64; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2829,18 +2670,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/arm/mempolicy.rs b/src/arm/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/arm/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/csky/general.rs b/src/csky/general.rs index 8972d917..17c33af6 100644 --- a/src/csky/general.rs +++ b/src/csky/general.rs @@ -1479,158 +1479,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2721,13 +2569,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2744,18 +2585,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/csky/mempolicy.rs b/src/csky/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/csky/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/lib.rs b/src/lib.rs index 663b7c4b..5dcd8f00 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -210,6 +210,10 @@ pub mod io_uring; #[cfg(target_arch = "arm")] #[path = "arm/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "arm")] +#[path = "arm/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "arm")] #[path = "arm/net.rs"] @@ -250,6 +254,10 @@ pub mod io_uring; #[cfg(target_arch = "aarch64")] #[path = "aarch64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "aarch64")] #[path = "aarch64/net.rs"] @@ -290,6 +298,10 @@ pub mod io_uring; #[cfg(target_arch = "csky")] #[path = "csky/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "csky")] +#[path = "csky/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "csky")] #[path = "csky/net.rs"] @@ -330,6 +342,10 @@ pub mod io_uring; #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/net.rs"] @@ -370,6 +386,10 @@ pub mod io_uring; #[cfg(target_arch = "mips")] #[path = "mips/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips")] +#[path = "mips/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "mips")] #[path = "mips/net.rs"] @@ -410,6 +430,10 @@ pub mod io_uring; #[cfg(target_arch = "mips64")] #[path = "mips64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "mips64")] #[path = "mips64/net.rs"] @@ -450,6 +474,10 @@ pub mod io_uring; #[cfg(target_arch = "mips32r6")] #[path = "mips32r6/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "mips32r6")] #[path = "mips32r6/net.rs"] @@ -490,6 +518,10 @@ pub mod io_uring; #[cfg(target_arch = "mips64r6")] #[path = "mips64r6/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "mips64r6")] #[path = "mips64r6/net.rs"] @@ -530,6 +562,10 @@ pub mod io_uring; #[cfg(target_arch = "powerpc")] #[path = "powerpc/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "powerpc")] #[path = "powerpc/net.rs"] @@ -570,6 +606,10 @@ pub mod io_uring; #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/net.rs"] @@ -610,6 +650,10 @@ pub mod io_uring; #[cfg(target_arch = "riscv32")] #[path = "riscv32/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "riscv32")] #[path = "riscv32/net.rs"] @@ -650,6 +694,10 @@ pub mod io_uring; #[cfg(target_arch = "riscv64")] #[path = "riscv64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "riscv64")] #[path = "riscv64/net.rs"] @@ -690,6 +738,10 @@ pub mod io_uring; #[cfg(target_arch = "s390x")] #[path = "s390x/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "s390x")] #[path = "s390x/net.rs"] @@ -730,6 +782,10 @@ pub mod io_uring; #[cfg(target_arch = "sparc")] #[path = "sparc/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "sparc")] #[path = "sparc/net.rs"] @@ -770,6 +826,10 @@ pub mod io_uring; #[cfg(target_arch = "sparc64")] #[path = "sparc64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "sparc64")] #[path = "sparc64/net.rs"] @@ -810,6 +870,10 @@ pub mod io_uring; #[cfg(target_arch = "x86")] #[path = "x86/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "x86")] +#[path = "x86/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(target_arch = "x86")] #[path = "x86/net.rs"] @@ -850,6 +914,10 @@ pub mod io_uring; #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/net.rs"] @@ -890,6 +958,10 @@ pub mod io_uring; #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "mempolicy")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/mempolicy.rs"] +pub mod mempolicy; #[cfg(feature = "net")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/net.rs"] diff --git a/src/loongarch64/general.rs b/src/loongarch64/general.rs index e94faf77..686d05bb 100644 --- a/src/loongarch64/general.rs +++ b/src/loongarch64/general.rs @@ -1453,158 +1453,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2665,13 +2513,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2688,18 +2529,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/loongarch64/mempolicy.rs b/src/loongarch64/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/loongarch64/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/mips/general.rs b/src/mips/general.rs index 341915ef..3ddd6613 100644 --- a/src/mips/general.rs +++ b/src/mips/general.rs @@ -1506,160 +1506,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2076,6 +1922,141 @@ pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; pub const STATX_ATTR_VERITY: u32 = 1048576; pub const STATX_ATTR_DAX: u32 = 2097152; +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; pub const IGNPAR: u32 = 4; @@ -2842,13 +2823,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2865,18 +2839,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/mips/mempolicy.rs b/src/mips/mempolicy.rs new file mode 100644 index 00000000..2a726675 --- /dev/null +++ b/src/mips/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/mips32r6/general.rs b/src/mips32r6/general.rs index 341915ef..3ddd6613 100644 --- a/src/mips32r6/general.rs +++ b/src/mips32r6/general.rs @@ -1506,160 +1506,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2076,6 +1922,141 @@ pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; pub const STATX_ATTR_VERITY: u32 = 1048576; pub const STATX_ATTR_DAX: u32 = 2097152; +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; pub const IGNPAR: u32 = 4; @@ -2842,13 +2823,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2865,18 +2839,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/mips32r6/mempolicy.rs b/src/mips32r6/mempolicy.rs new file mode 100644 index 00000000..2a726675 --- /dev/null +++ b/src/mips32r6/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/mips64/general.rs b/src/mips64/general.rs index b68b6550..e6bca15b 100644 --- a/src/mips64/general.rs +++ b/src/mips64/general.rs @@ -1493,160 +1493,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2063,6 +1909,141 @@ pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; pub const STATX_ATTR_VERITY: u32 = 1048576; pub const STATX_ATTR_DAX: u32 = 2097152; +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; pub const IGNPAR: u32 = 4; @@ -2759,13 +2740,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2782,18 +2756,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/mips64/mempolicy.rs b/src/mips64/mempolicy.rs new file mode 100644 index 00000000..2a726675 --- /dev/null +++ b/src/mips64/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/mips64r6/general.rs b/src/mips64r6/general.rs index b68b6550..e6bca15b 100644 --- a/src/mips64r6/general.rs +++ b/src/mips64r6/general.rs @@ -1493,160 +1493,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2063,6 +1909,141 @@ pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; pub const STATX_ATTR_VERITY: u32 = 1048576; pub const STATX_ATTR_DAX: u32 = 2097152; +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; pub const IGNPAR: u32 = 4; @@ -2759,13 +2740,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2782,18 +2756,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/mips64r6/mempolicy.rs b/src/mips64r6/mempolicy.rs new file mode 100644 index 00000000..2a726675 --- /dev/null +++ b/src/mips64r6/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const ENOMSG: u32 = 35; +pub const EIDRM: u32 = 36; +pub const ECHRNG: u32 = 37; +pub const EL2NSYNC: u32 = 38; +pub const EL3HLT: u32 = 39; +pub const EL3RST: u32 = 40; +pub const ELNRNG: u32 = 41; +pub const EUNATCH: u32 = 42; +pub const ENOCSI: u32 = 43; +pub const EL2HLT: u32 = 44; +pub const EDEADLK: u32 = 45; +pub const ENOLCK: u32 = 46; +pub const EBADE: u32 = 50; +pub const EBADR: u32 = 51; +pub const EXFULL: u32 = 52; +pub const ENOANO: u32 = 53; +pub const EBADRQC: u32 = 54; +pub const EBADSLT: u32 = 55; +pub const EDEADLOCK: u32 = 56; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EDOTDOT: u32 = 73; +pub const EMULTIHOP: u32 = 74; +pub const EBADMSG: u32 = 77; +pub const ENAMETOOLONG: u32 = 78; +pub const EOVERFLOW: u32 = 79; +pub const ENOTUNIQ: u32 = 80; +pub const EBADFD: u32 = 81; +pub const EREMCHG: u32 = 82; +pub const ELIBACC: u32 = 83; +pub const ELIBBAD: u32 = 84; +pub const ELIBSCN: u32 = 85; +pub const ELIBMAX: u32 = 86; +pub const ELIBEXEC: u32 = 87; +pub const EILSEQ: u32 = 88; +pub const ENOSYS: u32 = 89; +pub const ELOOP: u32 = 90; +pub const ERESTART: u32 = 91; +pub const ESTRPIPE: u32 = 92; +pub const ENOTEMPTY: u32 = 93; +pub const EUSERS: u32 = 94; +pub const ENOTSOCK: u32 = 95; +pub const EDESTADDRREQ: u32 = 96; +pub const EMSGSIZE: u32 = 97; +pub const EPROTOTYPE: u32 = 98; +pub const ENOPROTOOPT: u32 = 99; +pub const EPROTONOSUPPORT: u32 = 120; +pub const ESOCKTNOSUPPORT: u32 = 121; +pub const EOPNOTSUPP: u32 = 122; +pub const EPFNOSUPPORT: u32 = 123; +pub const EAFNOSUPPORT: u32 = 124; +pub const EADDRINUSE: u32 = 125; +pub const EADDRNOTAVAIL: u32 = 126; +pub const ENETDOWN: u32 = 127; +pub const ENETUNREACH: u32 = 128; +pub const ENETRESET: u32 = 129; +pub const ECONNABORTED: u32 = 130; +pub const ECONNRESET: u32 = 131; +pub const ENOBUFS: u32 = 132; +pub const EISCONN: u32 = 133; +pub const ENOTCONN: u32 = 134; +pub const EUCLEAN: u32 = 135; +pub const ENOTNAM: u32 = 137; +pub const ENAVAIL: u32 = 138; +pub const EISNAM: u32 = 139; +pub const EREMOTEIO: u32 = 140; +pub const EINIT: u32 = 141; +pub const EREMDEV: u32 = 142; +pub const ESHUTDOWN: u32 = 143; +pub const ETOOMANYREFS: u32 = 144; +pub const ETIMEDOUT: u32 = 145; +pub const ECONNREFUSED: u32 = 146; +pub const EHOSTDOWN: u32 = 147; +pub const EHOSTUNREACH: u32 = 148; +pub const EWOULDBLOCK: u32 = 11; +pub const EALREADY: u32 = 149; +pub const EINPROGRESS: u32 = 150; +pub const ESTALE: u32 = 151; +pub const ECANCELED: u32 = 158; +pub const ENOMEDIUM: u32 = 159; +pub const EMEDIUMTYPE: u32 = 160; +pub const ENOKEY: u32 = 161; +pub const EKEYEXPIRED: u32 = 162; +pub const EKEYREVOKED: u32 = 163; +pub const EKEYREJECTED: u32 = 164; +pub const EOWNERDEAD: u32 = 165; +pub const ENOTRECOVERABLE: u32 = 166; +pub const ERFKILL: u32 = 167; +pub const EHWPOISON: u32 = 168; +pub const EDQUOT: u32 = 1133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/powerpc/general.rs b/src/powerpc/general.rs index 33399778..b9be6849 100644 --- a/src/powerpc/general.rs +++ b/src/powerpc/general.rs @@ -1546,158 +1546,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2898,13 +2746,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2921,18 +2762,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/powerpc/mempolicy.rs b/src/powerpc/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/powerpc/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/powerpc64/general.rs b/src/powerpc64/general.rs index 694ca42d..5be30ce0 100644 --- a/src/powerpc64/general.rs +++ b/src/powerpc64/general.rs @@ -1523,158 +1523,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2845,13 +2693,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2868,18 +2709,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/powerpc64/mempolicy.rs b/src/powerpc64/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/powerpc64/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/riscv32/general.rs b/src/riscv32/general.rs index 50dc3062..2384ac2e 100644 --- a/src/riscv32/general.rs +++ b/src/riscv32/general.rs @@ -1488,158 +1488,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2696,13 +2544,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2719,18 +2560,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/riscv32/mempolicy.rs b/src/riscv32/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/riscv32/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/riscv64/general.rs b/src/riscv64/general.rs index a86c77b1..ca01dc80 100644 --- a/src/riscv64/general.rs +++ b/src/riscv64/general.rs @@ -1461,158 +1461,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2681,13 +2529,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2704,18 +2545,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/riscv64/mempolicy.rs b/src/riscv64/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/riscv64/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/s390x/general.rs b/src/s390x/general.rs index 6265d279..b24f7922 100644 --- a/src/s390x/general.rs +++ b/src/s390x/general.rs @@ -1452,158 +1452,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2722,13 +2570,6 @@ pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; pub const _NSIG: u32 = 64; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2745,18 +2586,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/s390x/mempolicy.rs b/src/s390x/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/s390x/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/sparc/general.rs b/src/sparc/general.rs index f4788e33..24c14470 100644 --- a/src/sparc/general.rs +++ b/src/sparc/general.rs @@ -1498,160 +1498,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EWOULDBLOCK: u32 = 11; -pub const EINPROGRESS: u32 = 36; -pub const EALREADY: u32 = 37; -pub const ENOTSOCK: u32 = 38; -pub const EDESTADDRREQ: u32 = 39; -pub const EMSGSIZE: u32 = 40; -pub const EPROTOTYPE: u32 = 41; -pub const ENOPROTOOPT: u32 = 42; -pub const EPROTONOSUPPORT: u32 = 43; -pub const ESOCKTNOSUPPORT: u32 = 44; -pub const EOPNOTSUPP: u32 = 45; -pub const EPFNOSUPPORT: u32 = 46; -pub const EAFNOSUPPORT: u32 = 47; -pub const EADDRINUSE: u32 = 48; -pub const EADDRNOTAVAIL: u32 = 49; -pub const ENETDOWN: u32 = 50; -pub const ENETUNREACH: u32 = 51; -pub const ENETRESET: u32 = 52; -pub const ECONNABORTED: u32 = 53; -pub const ECONNRESET: u32 = 54; -pub const ENOBUFS: u32 = 55; -pub const EISCONN: u32 = 56; -pub const ENOTCONN: u32 = 57; -pub const ESHUTDOWN: u32 = 58; -pub const ETOOMANYREFS: u32 = 59; -pub const ETIMEDOUT: u32 = 60; -pub const ECONNREFUSED: u32 = 61; -pub const ELOOP: u32 = 62; -pub const ENAMETOOLONG: u32 = 63; -pub const EHOSTDOWN: u32 = 64; -pub const EHOSTUNREACH: u32 = 65; -pub const ENOTEMPTY: u32 = 66; -pub const EPROCLIM: u32 = 67; -pub const EUSERS: u32 = 68; -pub const EDQUOT: u32 = 69; -pub const ESTALE: u32 = 70; -pub const EREMOTE: u32 = 71; -pub const ENOSTR: u32 = 72; -pub const ETIME: u32 = 73; -pub const ENOSR: u32 = 74; -pub const ENOMSG: u32 = 75; -pub const EBADMSG: u32 = 76; -pub const EIDRM: u32 = 77; -pub const EDEADLK: u32 = 78; -pub const ENOLCK: u32 = 79; -pub const ENONET: u32 = 80; -pub const ERREMOTE: u32 = 81; -pub const ENOLINK: u32 = 82; -pub const EADV: u32 = 83; -pub const ESRMNT: u32 = 84; -pub const ECOMM: u32 = 85; -pub const EPROTO: u32 = 86; -pub const EMULTIHOP: u32 = 87; -pub const EDOTDOT: u32 = 88; -pub const EREMCHG: u32 = 89; -pub const ENOSYS: u32 = 90; -pub const ESTRPIPE: u32 = 91; -pub const EOVERFLOW: u32 = 92; -pub const EBADFD: u32 = 93; -pub const ECHRNG: u32 = 94; -pub const EL2NSYNC: u32 = 95; -pub const EL3HLT: u32 = 96; -pub const EL3RST: u32 = 97; -pub const ELNRNG: u32 = 98; -pub const EUNATCH: u32 = 99; -pub const ENOCSI: u32 = 100; -pub const EL2HLT: u32 = 101; -pub const EBADE: u32 = 102; -pub const EBADR: u32 = 103; -pub const EXFULL: u32 = 104; -pub const ENOANO: u32 = 105; -pub const EBADRQC: u32 = 106; -pub const EBADSLT: u32 = 107; -pub const EDEADLOCK: u32 = 108; -pub const EBFONT: u32 = 109; -pub const ELIBEXEC: u32 = 110; -pub const ENODATA: u32 = 111; -pub const ELIBBAD: u32 = 112; -pub const ENOPKG: u32 = 113; -pub const ELIBACC: u32 = 114; -pub const ENOTUNIQ: u32 = 115; -pub const ERESTART: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EILSEQ: u32 = 122; -pub const ELIBMAX: u32 = 123; -pub const ELIBSCN: u32 = 124; -pub const ENOMEDIUM: u32 = 125; -pub const EMEDIUMTYPE: u32 = 126; -pub const ECANCELED: u32 = 127; -pub const ENOKEY: u32 = 128; -pub const EKEYEXPIRED: u32 = 129; -pub const EKEYREVOKED: u32 = 130; -pub const EKEYREJECTED: u32 = 131; -pub const EOWNERDEAD: u32 = 132; -pub const ENOTRECOVERABLE: u32 = 133; -pub const ERFKILL: u32 = 134; -pub const EHWPOISON: u32 = 135; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2859,13 +2705,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2882,18 +2721,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/sparc/mempolicy.rs b/src/sparc/mempolicy.rs new file mode 100644 index 00000000..ac4c9bf8 --- /dev/null +++ b/src/sparc/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EWOULDBLOCK: u32 = 11; +pub const EINPROGRESS: u32 = 36; +pub const EALREADY: u32 = 37; +pub const ENOTSOCK: u32 = 38; +pub const EDESTADDRREQ: u32 = 39; +pub const EMSGSIZE: u32 = 40; +pub const EPROTOTYPE: u32 = 41; +pub const ENOPROTOOPT: u32 = 42; +pub const EPROTONOSUPPORT: u32 = 43; +pub const ESOCKTNOSUPPORT: u32 = 44; +pub const EOPNOTSUPP: u32 = 45; +pub const EPFNOSUPPORT: u32 = 46; +pub const EAFNOSUPPORT: u32 = 47; +pub const EADDRINUSE: u32 = 48; +pub const EADDRNOTAVAIL: u32 = 49; +pub const ENETDOWN: u32 = 50; +pub const ENETUNREACH: u32 = 51; +pub const ENETRESET: u32 = 52; +pub const ECONNABORTED: u32 = 53; +pub const ECONNRESET: u32 = 54; +pub const ENOBUFS: u32 = 55; +pub const EISCONN: u32 = 56; +pub const ENOTCONN: u32 = 57; +pub const ESHUTDOWN: u32 = 58; +pub const ETOOMANYREFS: u32 = 59; +pub const ETIMEDOUT: u32 = 60; +pub const ECONNREFUSED: u32 = 61; +pub const ELOOP: u32 = 62; +pub const ENAMETOOLONG: u32 = 63; +pub const EHOSTDOWN: u32 = 64; +pub const EHOSTUNREACH: u32 = 65; +pub const ENOTEMPTY: u32 = 66; +pub const EPROCLIM: u32 = 67; +pub const EUSERS: u32 = 68; +pub const EDQUOT: u32 = 69; +pub const ESTALE: u32 = 70; +pub const EREMOTE: u32 = 71; +pub const ENOSTR: u32 = 72; +pub const ETIME: u32 = 73; +pub const ENOSR: u32 = 74; +pub const ENOMSG: u32 = 75; +pub const EBADMSG: u32 = 76; +pub const EIDRM: u32 = 77; +pub const EDEADLK: u32 = 78; +pub const ENOLCK: u32 = 79; +pub const ENONET: u32 = 80; +pub const ERREMOTE: u32 = 81; +pub const ENOLINK: u32 = 82; +pub const EADV: u32 = 83; +pub const ESRMNT: u32 = 84; +pub const ECOMM: u32 = 85; +pub const EPROTO: u32 = 86; +pub const EMULTIHOP: u32 = 87; +pub const EDOTDOT: u32 = 88; +pub const EREMCHG: u32 = 89; +pub const ENOSYS: u32 = 90; +pub const ESTRPIPE: u32 = 91; +pub const EOVERFLOW: u32 = 92; +pub const EBADFD: u32 = 93; +pub const ECHRNG: u32 = 94; +pub const EL2NSYNC: u32 = 95; +pub const EL3HLT: u32 = 96; +pub const EL3RST: u32 = 97; +pub const ELNRNG: u32 = 98; +pub const EUNATCH: u32 = 99; +pub const ENOCSI: u32 = 100; +pub const EL2HLT: u32 = 101; +pub const EBADE: u32 = 102; +pub const EBADR: u32 = 103; +pub const EXFULL: u32 = 104; +pub const ENOANO: u32 = 105; +pub const EBADRQC: u32 = 106; +pub const EBADSLT: u32 = 107; +pub const EDEADLOCK: u32 = 108; +pub const EBFONT: u32 = 109; +pub const ELIBEXEC: u32 = 110; +pub const ENODATA: u32 = 111; +pub const ELIBBAD: u32 = 112; +pub const ENOPKG: u32 = 113; +pub const ELIBACC: u32 = 114; +pub const ENOTUNIQ: u32 = 115; +pub const ERESTART: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EILSEQ: u32 = 122; +pub const ELIBMAX: u32 = 123; +pub const ELIBSCN: u32 = 124; +pub const ENOMEDIUM: u32 = 125; +pub const EMEDIUMTYPE: u32 = 126; +pub const ECANCELED: u32 = 127; +pub const ENOKEY: u32 = 128; +pub const EKEYEXPIRED: u32 = 129; +pub const EKEYREVOKED: u32 = 130; +pub const EKEYREJECTED: u32 = 131; +pub const EOWNERDEAD: u32 = 132; +pub const ENOTRECOVERABLE: u32 = 133; +pub const ERFKILL: u32 = 134; +pub const EHWPOISON: u32 = 135; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/sparc64/general.rs b/src/sparc64/general.rs index df8c09fb..3965c8a6 100644 --- a/src/sparc64/general.rs +++ b/src/sparc64/general.rs @@ -1490,160 +1490,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EWOULDBLOCK: u32 = 11; -pub const EINPROGRESS: u32 = 36; -pub const EALREADY: u32 = 37; -pub const ENOTSOCK: u32 = 38; -pub const EDESTADDRREQ: u32 = 39; -pub const EMSGSIZE: u32 = 40; -pub const EPROTOTYPE: u32 = 41; -pub const ENOPROTOOPT: u32 = 42; -pub const EPROTONOSUPPORT: u32 = 43; -pub const ESOCKTNOSUPPORT: u32 = 44; -pub const EOPNOTSUPP: u32 = 45; -pub const EPFNOSUPPORT: u32 = 46; -pub const EAFNOSUPPORT: u32 = 47; -pub const EADDRINUSE: u32 = 48; -pub const EADDRNOTAVAIL: u32 = 49; -pub const ENETDOWN: u32 = 50; -pub const ENETUNREACH: u32 = 51; -pub const ENETRESET: u32 = 52; -pub const ECONNABORTED: u32 = 53; -pub const ECONNRESET: u32 = 54; -pub const ENOBUFS: u32 = 55; -pub const EISCONN: u32 = 56; -pub const ENOTCONN: u32 = 57; -pub const ESHUTDOWN: u32 = 58; -pub const ETOOMANYREFS: u32 = 59; -pub const ETIMEDOUT: u32 = 60; -pub const ECONNREFUSED: u32 = 61; -pub const ELOOP: u32 = 62; -pub const ENAMETOOLONG: u32 = 63; -pub const EHOSTDOWN: u32 = 64; -pub const EHOSTUNREACH: u32 = 65; -pub const ENOTEMPTY: u32 = 66; -pub const EPROCLIM: u32 = 67; -pub const EUSERS: u32 = 68; -pub const EDQUOT: u32 = 69; -pub const ESTALE: u32 = 70; -pub const EREMOTE: u32 = 71; -pub const ENOSTR: u32 = 72; -pub const ETIME: u32 = 73; -pub const ENOSR: u32 = 74; -pub const ENOMSG: u32 = 75; -pub const EBADMSG: u32 = 76; -pub const EIDRM: u32 = 77; -pub const EDEADLK: u32 = 78; -pub const ENOLCK: u32 = 79; -pub const ENONET: u32 = 80; -pub const ERREMOTE: u32 = 81; -pub const ENOLINK: u32 = 82; -pub const EADV: u32 = 83; -pub const ESRMNT: u32 = 84; -pub const ECOMM: u32 = 85; -pub const EPROTO: u32 = 86; -pub const EMULTIHOP: u32 = 87; -pub const EDOTDOT: u32 = 88; -pub const EREMCHG: u32 = 89; -pub const ENOSYS: u32 = 90; -pub const ESTRPIPE: u32 = 91; -pub const EOVERFLOW: u32 = 92; -pub const EBADFD: u32 = 93; -pub const ECHRNG: u32 = 94; -pub const EL2NSYNC: u32 = 95; -pub const EL3HLT: u32 = 96; -pub const EL3RST: u32 = 97; -pub const ELNRNG: u32 = 98; -pub const EUNATCH: u32 = 99; -pub const ENOCSI: u32 = 100; -pub const EL2HLT: u32 = 101; -pub const EBADE: u32 = 102; -pub const EBADR: u32 = 103; -pub const EXFULL: u32 = 104; -pub const ENOANO: u32 = 105; -pub const EBADRQC: u32 = 106; -pub const EBADSLT: u32 = 107; -pub const EDEADLOCK: u32 = 108; -pub const EBFONT: u32 = 109; -pub const ELIBEXEC: u32 = 110; -pub const ENODATA: u32 = 111; -pub const ELIBBAD: u32 = 112; -pub const ENOPKG: u32 = 113; -pub const ELIBACC: u32 = 114; -pub const ENOTUNIQ: u32 = 115; -pub const ERESTART: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EILSEQ: u32 = 122; -pub const ELIBMAX: u32 = 123; -pub const ELIBSCN: u32 = 124; -pub const ENOMEDIUM: u32 = 125; -pub const EMEDIUMTYPE: u32 = 126; -pub const ECANCELED: u32 = 127; -pub const ENOKEY: u32 = 128; -pub const EKEYEXPIRED: u32 = 129; -pub const EKEYREVOKED: u32 = 130; -pub const EKEYREJECTED: u32 = 131; -pub const EOWNERDEAD: u32 = 132; -pub const ENOTRECOVERABLE: u32 = 133; -pub const ERFKILL: u32 = 134; -pub const EHWPOISON: u32 = 135; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -2813,13 +2659,6 @@ pub const SPLICE_F_MOVE: u32 = 1; pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2836,18 +2675,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/sparc64/mempolicy.rs b/src/sparc64/mempolicy.rs new file mode 100644 index 00000000..ac4c9bf8 --- /dev/null +++ b/src/sparc64/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EWOULDBLOCK: u32 = 11; +pub const EINPROGRESS: u32 = 36; +pub const EALREADY: u32 = 37; +pub const ENOTSOCK: u32 = 38; +pub const EDESTADDRREQ: u32 = 39; +pub const EMSGSIZE: u32 = 40; +pub const EPROTOTYPE: u32 = 41; +pub const ENOPROTOOPT: u32 = 42; +pub const EPROTONOSUPPORT: u32 = 43; +pub const ESOCKTNOSUPPORT: u32 = 44; +pub const EOPNOTSUPP: u32 = 45; +pub const EPFNOSUPPORT: u32 = 46; +pub const EAFNOSUPPORT: u32 = 47; +pub const EADDRINUSE: u32 = 48; +pub const EADDRNOTAVAIL: u32 = 49; +pub const ENETDOWN: u32 = 50; +pub const ENETUNREACH: u32 = 51; +pub const ENETRESET: u32 = 52; +pub const ECONNABORTED: u32 = 53; +pub const ECONNRESET: u32 = 54; +pub const ENOBUFS: u32 = 55; +pub const EISCONN: u32 = 56; +pub const ENOTCONN: u32 = 57; +pub const ESHUTDOWN: u32 = 58; +pub const ETOOMANYREFS: u32 = 59; +pub const ETIMEDOUT: u32 = 60; +pub const ECONNREFUSED: u32 = 61; +pub const ELOOP: u32 = 62; +pub const ENAMETOOLONG: u32 = 63; +pub const EHOSTDOWN: u32 = 64; +pub const EHOSTUNREACH: u32 = 65; +pub const ENOTEMPTY: u32 = 66; +pub const EPROCLIM: u32 = 67; +pub const EUSERS: u32 = 68; +pub const EDQUOT: u32 = 69; +pub const ESTALE: u32 = 70; +pub const EREMOTE: u32 = 71; +pub const ENOSTR: u32 = 72; +pub const ETIME: u32 = 73; +pub const ENOSR: u32 = 74; +pub const ENOMSG: u32 = 75; +pub const EBADMSG: u32 = 76; +pub const EIDRM: u32 = 77; +pub const EDEADLK: u32 = 78; +pub const ENOLCK: u32 = 79; +pub const ENONET: u32 = 80; +pub const ERREMOTE: u32 = 81; +pub const ENOLINK: u32 = 82; +pub const EADV: u32 = 83; +pub const ESRMNT: u32 = 84; +pub const ECOMM: u32 = 85; +pub const EPROTO: u32 = 86; +pub const EMULTIHOP: u32 = 87; +pub const EDOTDOT: u32 = 88; +pub const EREMCHG: u32 = 89; +pub const ENOSYS: u32 = 90; +pub const ESTRPIPE: u32 = 91; +pub const EOVERFLOW: u32 = 92; +pub const EBADFD: u32 = 93; +pub const ECHRNG: u32 = 94; +pub const EL2NSYNC: u32 = 95; +pub const EL3HLT: u32 = 96; +pub const EL3RST: u32 = 97; +pub const ELNRNG: u32 = 98; +pub const EUNATCH: u32 = 99; +pub const ENOCSI: u32 = 100; +pub const EL2HLT: u32 = 101; +pub const EBADE: u32 = 102; +pub const EBADR: u32 = 103; +pub const EXFULL: u32 = 104; +pub const ENOANO: u32 = 105; +pub const EBADRQC: u32 = 106; +pub const EBADSLT: u32 = 107; +pub const EDEADLOCK: u32 = 108; +pub const EBFONT: u32 = 109; +pub const ELIBEXEC: u32 = 110; +pub const ENODATA: u32 = 111; +pub const ELIBBAD: u32 = 112; +pub const ENOPKG: u32 = 113; +pub const ELIBACC: u32 = 114; +pub const ENOTUNIQ: u32 = 115; +pub const ERESTART: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EILSEQ: u32 = 122; +pub const ELIBMAX: u32 = 123; +pub const ELIBSCN: u32 = 124; +pub const ENOMEDIUM: u32 = 125; +pub const EMEDIUMTYPE: u32 = 126; +pub const ECANCELED: u32 = 127; +pub const ENOKEY: u32 = 128; +pub const EKEYEXPIRED: u32 = 129; +pub const EKEYREVOKED: u32 = 130; +pub const EKEYREJECTED: u32 = 131; +pub const EOWNERDEAD: u32 = 132; +pub const ENOTRECOVERABLE: u32 = 133; +pub const ERFKILL: u32 = 134; +pub const EHWPOISON: u32 = 135; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/x32/general.rs b/src/x32/general.rs index d6f1aaf5..9eb61288 100644 --- a/src/x32/general.rs +++ b/src/x32/general.rs @@ -1468,158 +1468,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const MAP_32BIT: u32 = 64; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2724,13 +2572,6 @@ pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; pub const _NSIG: u32 = 64; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2747,18 +2588,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/x32/mempolicy.rs b/src/x32/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/x32/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/x86/general.rs b/src/x86/general.rs index de3ba05c..17b34b1a 100644 --- a/src/x86/general.rs +++ b/src/x86/general.rs @@ -1491,158 +1491,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const MAP_32BIT: u32 = 64; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2837,13 +2685,6 @@ pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; pub const _NSIG: u32 = 64; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2860,18 +2701,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/x86/mempolicy.rs b/src/x86/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/x86/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +} diff --git a/src/x86_64/general.rs b/src/x86_64/general.rs index 6ef45217..6c6fbe41 100644 --- a/src/x86_64/general.rs +++ b/src/x86_64/general.rs @@ -1463,158 +1463,6 @@ pub const UDF_SUPER_MAGIC: u32 = 352400198; pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const MPOL_F_STATIC_NODES: u32 = 32768; -pub const MPOL_F_RELATIVE_NODES: u32 = 16384; -pub const MPOL_F_NUMA_BALANCING: u32 = 8192; -pub const MPOL_MODE_FLAGS: u32 = 57344; -pub const MPOL_F_NODE: u32 = 1; -pub const MPOL_F_ADDR: u32 = 2; -pub const MPOL_F_MEMS_ALLOWED: u32 = 4; -pub const MPOL_MF_STRICT: u32 = 1; -pub const MPOL_MF_MOVE: u32 = 2; -pub const MPOL_MF_MOVE_ALL: u32 = 4; -pub const MPOL_MF_LAZY: u32 = 8; -pub const MPOL_MF_INTERNAL: u32 = 16; -pub const MPOL_MF_VALID: u32 = 7; -pub const MPOL_F_SHARED: u32 = 1; -pub const MPOL_F_MOF: u32 = 8; -pub const MPOL_F_MORON: u32 = 16; -pub const RECLAIM_ZONE: u32 = 1; -pub const RECLAIM_WRITE: u32 = 2; -pub const RECLAIM_UNMAP: u32 = 4; pub const MAP_32BIT: u32 = 64; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -2730,13 +2578,6 @@ pub const SPLICE_F_NONBLOCK: u32 = 2; pub const SPLICE_F_MORE: u32 = 4; pub const SPLICE_F_GIFT: u32 = 8; pub const _NSIG: u32 = 64; -pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; -pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; -pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; -pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; -pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; -pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; -pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2753,18 +2594,6 @@ FSCONFIG_CMD_RECONFIGURE = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -MPOL_DEFAULT = 0, -MPOL_PREFERRED = 1, -MPOL_BIND = 2, -MPOL_INTERLEAVE = 3, -MPOL_LOCAL = 4, -MPOL_PREFERRED_MANY = 5, -MPOL_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum membarrier_cmd { MEMBARRIER_CMD_QUERY = 0, MEMBARRIER_CMD_GLOBAL = 1, diff --git a/src/x86_64/mempolicy.rs b/src/x86_64/mempolicy.rs new file mode 100644 index 00000000..cf474ae6 --- /dev/null +++ b/src/x86_64/mempolicy.rs @@ -0,0 +1,173 @@ +/* automatically generated by rust-bindgen 0.66.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_MAX = 6, +}