Lines Matching refs:c_int
16 pub type mqd_t = c_int;
18 pub type nl_item = c_int;
22 pub type pthread_once_t = c_int;
23 pub type pthread_spinlock_t = c_int;
25 pub type __kernel_clockid_t = c_int;
31 pub type __s32 = c_int;
112 pub gl_flags: c_int,
186 __val: [c_int; 2],
199 pub mr_ifindex: c_int,
330 pub msgpool: c_int,
331 pub msgmap: c_int,
332 pub msgmax: c_int,
333 pub msgmnb: c_int,
334 pub msgmni: c_int,
335 pub msgssz: c_int,
336 pub msgtql: c_int,
630 pub val: [c_int; 2],
644 pub mnt_freq: c_int,
645 pub mnt_passno: c_int,
649 __allocated: c_int,
650 __used: c_int,
651 __actions: *mut c_int,
652 __pad: [c_int; 16],
661 __prio: c_int,
664 __policy: c_int,
665 __pad: [c_int; 16],
689 pub wd: c_int,
696 pub fd: c_int,
764 pub nr: c_int,
807 pub error: c_int,
828 pub ifr6_ifindex: c_int,
833 pub has_arg: c_int,
834 pub flag: *mut c_int,
835 pub val: c_int,
1230 pub fd: c_int,
1231 pub pid: c_int,
1252 pub max_adj: c_int,
1253 pub n_alarm: c_int,
1254 pub n_ext_ts: c_int,
1255 pub n_per_out: c_int,
1256 pub pps: c_int,
1257 pub n_pins: c_int,
1258 pub cross_timestamping: c_int,
1259 pub adjust_phase: c_int,
1260 pub max_phase_adj: c_int,
1261 pub rsv: [c_int; 11],
1525 pub ifru_ifindex: c_int,
1526 pub ifru_metric: c_int,
1527 pub ifru_mtu: c_int,
1549 pub ifc_len: c_int,
1554 pub flags: c_int,
1555 pub tx_type: c_int,
1556 pub rx_filter: c_int,
1800 pub can_ifindex: c_int,
2230 pub const RUSAGE_CHILDREN: c_int = -1;
2232 pub const _PC_LINK_MAX: c_int = 0;
2233 pub const _PC_MAX_CANON: c_int = 1;
2234 pub const _PC_MAX_INPUT: c_int = 2;
2235 pub const _PC_NAME_MAX: c_int = 3;
2236 pub const _PC_PATH_MAX: c_int = 4;
2237 pub const _PC_PIPE_BUF: c_int = 5;
2238 pub const _PC_CHOWN_RESTRICTED: c_int = 6;
2239 pub const _PC_NO_TRUNC: c_int = 7;
2240 pub const _PC_VDISABLE: c_int = 8;
2241 pub const _PC_SYNC_IO: c_int = 9;
2242 pub const _PC_ASYNC_IO: c_int = 10;
2243 pub const _PC_PRIO_IO: c_int = 11;
2244 pub const _PC_SOCK_MAXBUF: c_int = 12;
2245 pub const _PC_FILESIZEBITS: c_int = 13;
2246 pub const _PC_REC_INCR_XFER_SIZE: c_int = 14;
2247 pub const _PC_REC_MAX_XFER_SIZE: c_int = 15;
2248 pub const _PC_REC_MIN_XFER_SIZE: c_int = 16;
2249 pub const _PC_REC_XFER_ALIGN: c_int = 17;
2250 pub const _PC_ALLOC_SIZE_MIN: c_int = 18;
2251 pub const _PC_SYMLINK_MAX: c_int = 19;
2252 pub const _PC_2_SYMLINKS: c_int = 20;
2256 pub const _SC_ARG_MAX: c_int = 0;
2257 pub const _SC_CHILD_MAX: c_int = 1;
2258 pub const _SC_CLK_TCK: c_int = 2;
2259 pub const _SC_NGROUPS_MAX: c_int = 3;
2260 pub const _SC_OPEN_MAX: c_int = 4;
2261 pub const _SC_STREAM_MAX: c_int = 5;
2262 pub const _SC_TZNAME_MAX: c_int = 6;
2263 pub const _SC_JOB_CONTROL: c_int = 7;
2264 pub const _SC_SAVED_IDS: c_int = 8;
2265 pub const _SC_REALTIME_SIGNALS: c_int = 9;
2266 pub const _SC_PRIORITY_SCHEDULING: c_int = 10;
2267 pub const _SC_TIMERS: c_int = 11;
2268 pub const _SC_ASYNCHRONOUS_IO: c_int = 12;
2269 pub const _SC_PRIORITIZED_IO: c_int = 13;
2270 pub const _SC_SYNCHRONIZED_IO: c_int = 14;
2271 pub const _SC_FSYNC: c_int = 15;
2272 pub const _SC_MAPPED_FILES: c_int = 16;
2273 pub const _SC_MEMLOCK: c_int = 17;
2274 pub const _SC_MEMLOCK_RANGE: c_int = 18;
2275 pub const _SC_MEMORY_PROTECTION: c_int = 19;
2276 pub const _SC_MESSAGE_PASSING: c_int = 20;
2277 pub const _SC_SEMAPHORES: c_int = 21;
2278 pub const _SC_SHARED_MEMORY_OBJECTS: c_int = 22;
2279 pub const _SC_AIO_LISTIO_MAX: c_int = 23;
2280 pub const _SC_AIO_MAX: c_int = 24;
2281 pub const _SC_AIO_PRIO_DELTA_MAX: c_int = 25;
2282 pub const _SC_DELAYTIMER_MAX: c_int = 26;
2283 pub const _SC_MQ_OPEN_MAX: c_int = 27;
2284 pub const _SC_MQ_PRIO_MAX: c_int = 28;
2285 pub const _SC_VERSION: c_int = 29;
2286 pub const _SC_PAGESIZE: c_int = 30;
2287 pub const _SC_PAGE_SIZE: c_int = _SC_PAGESIZE;
2288 pub const _SC_RTSIG_MAX: c_int = 31;
2289 pub const _SC_SEM_NSEMS_MAX: c_int = 32;
2290 pub const _SC_SEM_VALUE_MAX: c_int = 33;
2291 pub const _SC_SIGQUEUE_MAX: c_int = 34;
2292 pub const _SC_TIMER_MAX: c_int = 35;
2293 pub const _SC_BC_BASE_MAX: c_int = 36;
2294 pub const _SC_BC_DIM_MAX: c_int = 37;
2295 pub const _SC_BC_SCALE_MAX: c_int = 38;
2296 pub const _SC_BC_STRING_MAX: c_int = 39;
2297 pub const _SC_COLL_WEIGHTS_MAX: c_int = 40;
2298 pub const _SC_EXPR_NEST_MAX: c_int = 42;
2299 pub const _SC_LINE_MAX: c_int = 43;
2300 pub const _SC_RE_DUP_MAX: c_int = 44;
2301 pub const _SC_2_VERSION: c_int = 46;
2302 pub const _SC_2_C_BIND: c_int = 47;
2303 pub const _SC_2_C_DEV: c_int = 48;
2304 pub const _SC_2_FORT_DEV: c_int = 49;
2305 pub const _SC_2_FORT_RUN: c_int = 50;
2306 pub const _SC_2_SW_DEV: c_int = 51;
2307 pub const _SC_2_LOCALEDEF: c_int = 52;
2308 pub const _SC_UIO_MAXIOV: c_int = 60;
2309 pub const _SC_IOV_MAX: c_int = 60;
2310 pub const _SC_THREADS: c_int = 67;
2311 pub const _SC_THREAD_SAFE_FUNCTIONS: c_int = 68;
2312 pub const _SC_GETGR_R_SIZE_MAX: c_int = 69;
2313 pub const _SC_GETPW_R_SIZE_MAX: c_int = 70;
2314 pub const _SC_LOGIN_NAME_MAX: c_int = 71;
2315 pub const _SC_TTY_NAME_MAX: c_int = 72;
2316 pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: c_int = 73;
2317 pub const _SC_THREAD_KEYS_MAX: c_int = 74;
2318 pub const _SC_THREAD_STACK_MIN: c_int = 75;
2319 pub const _SC_THREAD_THREADS_MAX: c_int = 76;
2320 pub const _SC_THREAD_ATTR_STACKADDR: c_int = 77;
2321 pub const _SC_THREAD_ATTR_STACKSIZE: c_int = 78;
2322 pub const _SC_THREAD_PRIORITY_SCHEDULING: c_int = 79;
2323 pub const _SC_THREAD_PRIO_INHERIT: c_int = 80;
2324 pub const _SC_THREAD_PRIO_PROTECT: c_int = 81;
2325 pub const _SC_THREAD_PROCESS_SHARED: c_int = 82;
2326 pub const _SC_NPROCESSORS_CONF: c_int = 83;
2327 pub const _SC_NPROCESSORS_ONLN: c_int = 84;
2328 pub const _SC_PHYS_PAGES: c_int = 85;
2329 pub const _SC_AVPHYS_PAGES: c_int = 86;
2330 pub const _SC_ATEXIT_MAX: c_int = 87;
2331 pub const _SC_PASS_MAX: c_int = 88;
2332 pub const _SC_XOPEN_VERSION: c_int = 89;
2333 pub const _SC_XOPEN_XCU_VERSION: c_int = 90;
2334 pub const _SC_XOPEN_UNIX: c_int = 91;
2335 pub const _SC_XOPEN_CRYPT: c_int = 92;
2336 pub const _SC_XOPEN_ENH_I18N: c_int = 93;
2337 pub const _SC_XOPEN_SHM: c_int = 94;
2338 pub const _SC_2_CHAR_TERM: c_int = 95;
2339 pub const _SC_2_UPE: c_int = 97;
2340 pub const _SC_XOPEN_XPG2: c_int = 98;
2341 pub const _SC_XOPEN_XPG3: c_int = 99;
2342 pub const _SC_XOPEN_XPG4: c_int = 100;
2343 pub const _SC_NZERO: c_int = 109;
2344 pub const _SC_XBS5_ILP32_OFF32: c_int = 125;
2345 pub const _SC_XBS5_ILP32_OFFBIG: c_int = 126;
2346 pub const _SC_XBS5_LP64_OFF64: c_int = 127;
2347 pub const _SC_XBS5_LPBIG_OFFBIG: c_int = 128;
2348 pub const _SC_XOPEN_LEGACY: c_int = 129;
2349 pub const _SC_XOPEN_REALTIME: c_int = 130;
2350 pub const _SC_XOPEN_REALTIME_THREADS: c_int = 131;
2351 pub const _SC_ADVISORY_INFO: c_int = 132;
2352 pub const _SC_BARRIERS: c_int = 133;
2353 pub const _SC_CLOCK_SELECTION: c_int = 137;
2354 pub const _SC_CPUTIME: c_int = 138;
2355 pub const _SC_THREAD_CPUTIME: c_int = 139;
2356 pub const _SC_MONOTONIC_CLOCK: c_int = 149;
2357 pub const _SC_READER_WRITER_LOCKS: c_int = 153;
2358 pub const _SC_SPIN_LOCKS: c_int = 154;
2359 pub const _SC_REGEXP: c_int = 155;
2360 pub const _SC_SHELL: c_int = 157;
2361 pub const _SC_SPAWN: c_int = 159;
2362 pub const _SC_SPORADIC_SERVER: c_int = 160;
2363 pub const _SC_THREAD_SPORADIC_SERVER: c_int = 161;
2364 pub const _SC_TIMEOUTS: c_int = 164;
2365 pub const _SC_TYPED_MEMORY_OBJECTS: c_int = 165;
2366 pub const _SC_2_PBS: c_int = 168;
2367 pub const _SC_2_PBS_ACCOUNTING: c_int = 169;
2368 pub const _SC_2_PBS_LOCATE: c_int = 170;
2369 pub const _SC_2_PBS_MESSAGE: c_int = 171;
2370 pub const _SC_2_PBS_TRACK: c_int = 172;
2371 pub const _SC_SYMLOOP_MAX: c_int = 173;
2372 pub const _SC_STREAMS: c_int = 174;
2373 pub const _SC_2_PBS_CHECKPOINT: c_int = 175;
2374 pub const _SC_V6_ILP32_OFF32: c_int = 176;
2375 pub const _SC_V6_ILP32_OFFBIG: c_int = 177;
2376 pub const _SC_V6_LP64_OFF64: c_int = 178;
2377 pub const _SC_V6_LPBIG_OFFBIG: c_int = 179;
2378 pub const _SC_HOST_NAME_MAX: c_int = 180;
2379 pub const _SC_TRACE: c_int = 181;
2380 pub const _SC_TRACE_EVENT_FILTER: c_int = 182;
2381 pub const _SC_TRACE_INHERIT: c_int = 183;
2382 pub const _SC_TRACE_LOG: c_int = 184;
2383 pub const _SC_IPV6: c_int = 235;
2384 pub const _SC_RAW_SOCKETS: c_int = 236;
2385 pub const _SC_V7_ILP32_OFF32: c_int = 237;
2386 pub const _SC_V7_ILP32_OFFBIG: c_int = 238;
2387 pub const _SC_V7_LP64_OFF64: c_int = 239;
2388 pub const _SC_V7_LPBIG_OFFBIG: c_int = 240;
2389 pub const _SC_SS_REPL_MAX: c_int = 241;
2390 pub const _SC_TRACE_EVENT_NAME_MAX: c_int = 242;
2391 pub const _SC_TRACE_NAME_MAX: c_int = 243;
2392 pub const _SC_TRACE_SYS_MAX: c_int = 244;
2393 pub const _SC_TRACE_USER_EVENT_MAX: c_int = 245;
2394 pub const _SC_XOPEN_STREAMS: c_int = 246;
2395 pub const _SC_THREAD_ROBUST_PRIO_INHERIT: c_int = 247;
2396 pub const _SC_THREAD_ROBUST_PRIO_PROTECT: c_int = 248;
2398 pub const _CS_PATH: c_int = 0;
2399 pub const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS: c_int = 1;
2400 pub const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS: c_int = 4;
2401 pub const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS: c_int = 5;
2402 pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS: c_int = 1116;
2403 pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS: c_int = 1117;
2404 pub const _CS_POSIX_V6_ILP32_OFF32_LIBS: c_int = 1118;
2405 pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS: c_int = 1119;
2406 pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS: c_int = 1120;
2407 pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS: c_int = 1121;
2408 pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS: c_int = 1122;
2409 pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS: c_int = 1123;
2410 pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS: c_int = 1124;
2411 pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS: c_int = 1125;
2412 pub const _CS_POSIX_V6_LP64_OFF64_LIBS: c_int = 1126;
2413 pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS: c_int = 1127;
2414 pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS: c_int = 1128;
2415 pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS: c_int = 1129;
2416 pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS: c_int = 1130;
2417 pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS: c_int = 1131;
2418 pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS: c_int = 1132;
2419 pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS: c_int = 1133;
2420 pub const _CS_POSIX_V7_ILP32_OFF32_LIBS: c_int = 1134;
2421 pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS: c_int = 1135;
2422 pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS: c_int = 1136;
2423 pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS: c_int = 1137;
2424 pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS: c_int = 1138;
2425 pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS: c_int = 1139;
2426 pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS: c_int = 1140;
2427 pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS: c_int = 1141;
2428 pub const _CS_POSIX_V7_LP64_OFF64_LIBS: c_int = 1142;
2429 pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS: c_int = 1143;
2430 pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS: c_int = 1144;
2431 pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS: c_int = 1145;
2432 pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS: c_int = 1146;
2433 pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS: c_int = 1147;
2644 pub const GLOB_ERR: c_int = 1 << 0;
2645 pub const GLOB_MARK: c_int = 1 << 1;
2646 pub const GLOB_NOSORT: c_int = 1 << 2;
2647 pub const GLOB_DOOFFS: c_int = 1 << 3;
2648 pub const GLOB_NOCHECK: c_int = 1 << 4;
2649 pub const GLOB_APPEND: c_int = 1 << 5;
2650 pub const GLOB_NOESCAPE: c_int = 1 << 6;
2652 pub const GLOB_NOSPACE: c_int = 1;
2653 pub const GLOB_ABORTED: c_int = 2;
2654 pub const GLOB_NOMATCH: c_int = 3;
2656 pub const POSIX_MADV_NORMAL: c_int = 0;
2657 pub const POSIX_MADV_RANDOM: c_int = 1;
2658 pub const POSIX_MADV_SEQUENTIAL: c_int = 2;
2659 pub const POSIX_MADV_WILLNEED: c_int = 3;
2660 pub const POSIX_SPAWN_USEVFORK: c_int = 64;
2661 pub const POSIX_SPAWN_SETSID: c_int = 128;
2667 pub const F_LOCK: c_int = 1;
2668 pub const F_TEST: c_int = 3;
2669 pub const F_TLOCK: c_int = 2;
2670 pub const F_ULOCK: c_int = 0;
2672 pub const F_SEAL_FUTURE_WRITE: c_int = 0x0010;
2673 pub const F_SEAL_EXEC: c_int = 0x0020;
2675 pub const IFF_LOWER_UP: c_int = 0x10000;
2676 pub const IFF_DORMANT: c_int = 0x20000;
2677 pub const IFF_ECHO: c_int = 0x40000;
2707 pub const RWF_HIPRI: c_int = 0x00000001;
2708 pub const RWF_DSYNC: c_int = 0x00000002;
2709 pub const RWF_SYNC: c_int = 0x00000004;
2710 pub const RWF_NOWAIT: c_int = 0x00000008;
2711 pub const RWF_APPEND: c_int = 0x00000010;
2712 pub const RWF_NOAPPEND: c_int = 0x00000020;
2713 pub const RWF_ATOMIC: c_int = 0x00000040;
2714 pub const RWF_DONTCACHE: c_int = 0x00000080;
2789 pub const SEEK_DATA: c_int = 3;
2790 pub const SEEK_HOLE: c_int = 4;
2806 pub const RTLD_NODELETE: c_int = 0x1000;
2807 pub const RTLD_NOW: c_int = 0x2;
2809 pub const AT_EACCESS: c_int = 0x200;
2812 pub const MPOL_DEFAULT: c_int = 0;
2813 pub const MPOL_PREFERRED: c_int = 1;
2814 pub const MPOL_BIND: c_int = 2;
2815 pub const MPOL_INTERLEAVE: c_int = 3;
2816 pub const MPOL_LOCAL: c_int = 4;
2817 pub const MPOL_F_NUMA_BALANCING: c_int = 1 << 13;
2818 pub const MPOL_F_RELATIVE_NODES: c_int = 1 << 14;
2819 pub const MPOL_F_STATIC_NODES: c_int = 1 << 15;
2822 pub const MEMBARRIER_CMD_QUERY: c_int = 0;
2823 pub const MEMBARRIER_CMD_GLOBAL: c_int = 1 << 0;
2824 pub const MEMBARRIER_CMD_GLOBAL_EXPEDITED: c_int = 1 << 1;
2825 pub const MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED: c_int = 1 << 2;
2826 pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED: c_int = 1 << 3;
2827 pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED: c_int = 1 << 4;
2828 pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE: c_int = 1 << 5;
2829 pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE: c_int = 1 << 6;
2830 pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ: c_int = 1 << 7;
2831 pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ: c_int = 1 << 8;
2843 pub const PTHREAD_BARRIER_SERIAL_THREAD: c_int = -1;
2845 pub const PTHREAD_MUTEX_NORMAL: c_int = 0;
2846 pub const PTHREAD_MUTEX_RECURSIVE: c_int = 1;
2847 pub const PTHREAD_MUTEX_ERRORCHECK: c_int = 2;
2848 pub const PTHREAD_MUTEX_DEFAULT: c_int = PTHREAD_MUTEX_NORMAL;
2849 pub const PTHREAD_MUTEX_STALLED: c_int = 0;
2850 pub const PTHREAD_MUTEX_ROBUST: c_int = 1;
2851 pub const PTHREAD_PRIO_NONE: c_int = 0;
2852 pub const PTHREAD_PRIO_INHERIT: c_int = 1;
2853 pub const PTHREAD_PRIO_PROTECT: c_int = 2;
2854 pub const PTHREAD_PROCESS_PRIVATE: c_int = 0;
2855 pub const PTHREAD_PROCESS_SHARED: c_int = 1;
2856 pub const PTHREAD_INHERIT_SCHED: c_int = 0;
2857 pub const PTHREAD_EXPLICIT_SCHED: c_int = 1;
2873 pub const IPPROTO_MAX: c_int = 256;
2878 pub const IPC_CREAT: c_int = 0o1000;
2879 pub const IPC_EXCL: c_int = 0o2000;
2880 pub const IPC_NOWAIT: c_int = 0o4000;
2882 pub const IPC_RMID: c_int = 0;
2883 pub const IPC_SET: c_int = 1;
2884 pub const IPC_STAT: c_int = 2;
2885 pub const IPC_INFO: c_int = 3;
2886 pub const MSG_STAT: c_int = 11;
2887 pub const MSG_INFO: c_int = 12;
2888 pub const MSG_NOTIFICATION: c_int = 0x8000;
2890 pub const MSG_NOERROR: c_int = 0o10000;
2891 pub const MSG_EXCEPT: c_int = 0o20000;
2892 pub const MSG_ZEROCOPY: c_int = 0x4000000;
2894 pub const SEM_UNDO: c_int = 0x1000;
2896 pub const GETPID: c_int = 11;
2897 pub const GETVAL: c_int = 12;
2898 pub const GETALL: c_int = 13;
2899 pub const GETNCNT: c_int = 14;
2900 pub const GETZCNT: c_int = 15;
2901 pub const SETVAL: c_int = 16;
2902 pub const SETALL: c_int = 17;
2903 pub const SEM_STAT: c_int = 18;
2904 pub const SEM_INFO: c_int = 19;
2905 pub const SEM_STAT_ANY: c_int = 20;
2907 pub const SHM_R: c_int = 0o400;
2908 pub const SHM_W: c_int = 0o200;
2910 pub const SHM_RDONLY: c_int = 0o10000;
2911 pub const SHM_RND: c_int = 0o20000;
2912 pub const SHM_REMAP: c_int = 0o40000;
2914 pub const SHM_LOCK: c_int = 11;
2915 pub const SHM_UNLOCK: c_int = 12;
2917 pub const SHM_HUGETLB: c_int = 0o4000;
2919 pub const SHM_NORESERVE: c_int = 0o10000;
2921 pub const QFMT_VFS_OLD: c_int = 1;
2922 pub const QFMT_VFS_V0: c_int = 2;
2923 pub const QFMT_VFS_V1: c_int = 4;
2925 pub const EFD_SEMAPHORE: c_int = 0x1;
2927 pub const LOG_NFACILITIES: c_int = 24;
2931 pub const RB_AUTOBOOT: c_int = 0x01234567u32 as i32;
2932 pub const RB_HALT_SYSTEM: c_int = 0xcdef0123u32 as i32;
2933 pub const RB_ENABLE_CAD: c_int = 0x89abcdefu32 as i32;
2934 pub const RB_DISABLE_CAD: c_int = 0x00000000u32 as i32;
2935 pub const RB_POWER_OFF: c_int = 0x4321fedcu32 as i32;
2936 pub const RB_SW_SUSPEND: c_int = 0xd000fce2u32 as i32;
2937 pub const RB_KEXEC: c_int = 0x45584543u32 as i32;
2939 pub const AI_PASSIVE: c_int = 0x0001;
2940 pub const AI_CANONNAME: c_int = 0x0002;
2941 pub const AI_NUMERICHOST: c_int = 0x0004;
2942 pub const AI_V4MAPPED: c_int = 0x0008;
2943 pub const AI_ALL: c_int = 0x0010;
2944 pub const AI_ADDRCONFIG: c_int = 0x0020;
2946 pub const AI_NUMERICSERV: c_int = 0x0400;
2948 pub const EAI_BADFLAGS: c_int = -1;
2949 pub const EAI_NONAME: c_int = -2;
2950 pub const EAI_AGAIN: c_int = -3;
2951 pub const EAI_FAIL: c_int = -4;
2952 pub const EAI_NODATA: c_int = -5;
2953 pub const EAI_FAMILY: c_int = -6;
2954 pub const EAI_SOCKTYPE: c_int = -7;
2955 pub const EAI_SERVICE: c_int = -8;
2956 pub const EAI_MEMORY: c_int = -10;
2957 pub const EAI_SYSTEM: c_int = -11;
2958 pub const EAI_OVERFLOW: c_int = -12;
2960 pub const NI_NUMERICHOST: c_int = 1;
2961 pub const NI_NUMERICSERV: c_int = 2;
2962 pub const NI_NOFQDN: c_int = 4;
2963 pub const NI_NAMEREQD: c_int = 8;
2964 pub const NI_DGRAM: c_int = 16;
2965 pub const NI_IDN: c_int = 32;
2973 pub const AIO_CANCELED: c_int = 0;
2974 pub const AIO_NOTCANCELED: c_int = 1;
2975 pub const AIO_ALLDONE: c_int = 2;
2976 pub const LIO_READ: c_int = 0;
2977 pub const LIO_WRITE: c_int = 1;
2978 pub const LIO_NOP: c_int = 2;
2979 pub const LIO_WAIT: c_int = 0;
2980 pub const LIO_NOWAIT: c_int = 1;
2981 pub const RUSAGE_THREAD: c_int = 1;
2982 pub const MSG_COPY: c_int = 0o40000;
2983 pub const SHM_EXEC: c_int = 0o100000;
2984 pub const IPV6_MULTICAST_ALL: c_int = 29;
2985 pub const IPV6_ROUTER_ALERT_ISOLATE: c_int = 30;
2986 pub const PACKET_MR_UNICAST: c_int = 3;
2987 pub const PTRACE_EVENT_STOP: c_int = 128;
2988 pub const UDP_SEGMENT: c_int = 103;
2989 pub const UDP_GRO: c_int = 104;
2993 pub const MREMAP_MAYMOVE: c_int = 1;
2994 pub const MREMAP_FIXED: c_int = 2;
2995 pub const MREMAP_DONTUNMAP: c_int = 4;
3007 pub const NS_GET_PID_FROM_PIDNS: Ioctl = _IOR::<c_int>(NSIO, 0x6);
3008 pub const NS_GET_TGID_FROM_PIDNS: Ioctl = _IOR::<c_int>(NSIO, 0x7);
3009 pub const NS_GET_PID_IN_PIDNS: Ioctl = _IOR::<c_int>(NSIO, 0x8);
3010 pub const NS_GET_TGID_IN_PIDNS: Ioctl = _IOR::<c_int>(NSIO, 0x9);
3047 pub const PR_SET_PDEATHSIG: c_int = 1;
3048 pub const PR_GET_PDEATHSIG: c_int = 2;
3050 pub const PR_GET_DUMPABLE: c_int = 3;
3051 pub const PR_SET_DUMPABLE: c_int = 4;
3053 pub const PR_GET_UNALIGN: c_int = 5;
3054 pub const PR_SET_UNALIGN: c_int = 6;
3055 pub const PR_UNALIGN_NOPRINT: c_int = 1;
3056 pub const PR_UNALIGN_SIGBUS: c_int = 2;
3058 pub const PR_GET_KEEPCAPS: c_int = 7;
3059 pub const PR_SET_KEEPCAPS: c_int = 8;
3061 pub const PR_GET_FPEMU: c_int = 9;
3062 pub const PR_SET_FPEMU: c_int = 10;
3063 pub const PR_FPEMU_NOPRINT: c_int = 1;
3064 pub const PR_FPEMU_SIGFPE: c_int = 2;
3066 pub const PR_GET_FPEXC: c_int = 11;
3067 pub const PR_SET_FPEXC: c_int = 12;
3068 pub const PR_FP_EXC_SW_ENABLE: c_int = 0x80;
3069 pub const PR_FP_EXC_DIV: c_int = 0x010000;
3070 pub const PR_FP_EXC_OVF: c_int = 0x020000;
3071 pub const PR_FP_EXC_UND: c_int = 0x040000;
3072 pub const PR_FP_EXC_RES: c_int = 0x080000;
3073 pub const PR_FP_EXC_INV: c_int = 0x100000;
3074 pub const PR_FP_EXC_DISABLED: c_int = 0;
3075 pub const PR_FP_EXC_NONRECOV: c_int = 1;
3076 pub const PR_FP_EXC_ASYNC: c_int = 2;
3077 pub const PR_FP_EXC_PRECISE: c_int = 3;
3079 pub const PR_GET_TIMING: c_int = 13;
3080 pub const PR_SET_TIMING: c_int = 14;
3081 pub const PR_TIMING_STATISTICAL: c_int = 0;
3082 pub const PR_TIMING_TIMESTAMP: c_int = 1;
3084 pub const PR_SET_NAME: c_int = 15;
3085 pub const PR_GET_NAME: c_int = 16;
3087 pub const PR_GET_ENDIAN: c_int = 19;
3088 pub const PR_SET_ENDIAN: c_int = 20;
3089 pub const PR_ENDIAN_BIG: c_int = 0;
3090 pub const PR_ENDIAN_LITTLE: c_int = 1;
3091 pub const PR_ENDIAN_PPC_LITTLE: c_int = 2;
3093 pub const PR_GET_SECCOMP: c_int = 21;
3094 pub const PR_SET_SECCOMP: c_int = 22;
3096 pub const PR_CAPBSET_READ: c_int = 23;
3097 pub const PR_CAPBSET_DROP: c_int = 24;
3099 pub const PR_GET_TSC: c_int = 25;
3100 pub const PR_SET_TSC: c_int = 26;
3101 pub const PR_TSC_ENABLE: c_int = 1;
3102 pub const PR_TSC_SIGSEGV: c_int = 2;
3104 pub const PR_GET_SECUREBITS: c_int = 27;
3105 pub const PR_SET_SECUREBITS: c_int = 28;
3107 pub const PR_SET_TIMERSLACK: c_int = 29;
3108 pub const PR_GET_TIMERSLACK: c_int = 30;
3110 pub const PR_TASK_PERF_EVENTS_DISABLE: c_int = 31;
3111 pub const PR_TASK_PERF_EVENTS_ENABLE: c_int = 32;
3113 pub const PR_MCE_KILL: c_int = 33;
3114 pub const PR_MCE_KILL_CLEAR: c_int = 0;
3115 pub const PR_MCE_KILL_SET: c_int = 1;
3117 pub const PR_MCE_KILL_LATE: c_int = 0;
3118 pub const PR_MCE_KILL_EARLY: c_int = 1;
3119 pub const PR_MCE_KILL_DEFAULT: c_int = 2;
3121 pub const PR_MCE_KILL_GET: c_int = 34;
3123 pub const PR_SET_MM: c_int = 35;
3124 pub const PR_SET_MM_START_CODE: c_int = 1;
3125 pub const PR_SET_MM_END_CODE: c_int = 2;
3126 pub const PR_SET_MM_START_DATA: c_int = 3;
3127 pub const PR_SET_MM_END_DATA: c_int = 4;
3128 pub const PR_SET_MM_START_STACK: c_int = 5;
3129 pub const PR_SET_MM_START_BRK: c_int = 6;
3130 pub const PR_SET_MM_BRK: c_int = 7;
3131 pub const PR_SET_MM_ARG_START: c_int = 8;
3132 pub const PR_SET_MM_ARG_END: c_int = 9;
3133 pub const PR_SET_MM_ENV_START: c_int = 10;
3134 pub const PR_SET_MM_ENV_END: c_int = 11;
3135 pub const PR_SET_MM_AUXV: c_int = 12;
3136 pub const PR_SET_MM_EXE_FILE: c_int = 13;
3137 pub const PR_SET_MM_MAP: c_int = 14;
3138 pub const PR_SET_MM_MAP_SIZE: c_int = 15;
3140 pub const PR_SET_PTRACER: c_int = 0x59616d61;
3143 pub const PR_SET_CHILD_SUBREAPER: c_int = 36;
3144 pub const PR_GET_CHILD_SUBREAPER: c_int = 37;
3146 pub const PR_SET_NO_NEW_PRIVS: c_int = 38;
3147 pub const PR_GET_NO_NEW_PRIVS: c_int = 39;
3149 pub const PR_SET_MDWE: c_int = 65;
3150 pub const PR_GET_MDWE: c_int = 66;
3154 pub const PR_GET_TID_ADDRESS: c_int = 40;
3156 pub const PR_SET_THP_DISABLE: c_int = 41;
3157 pub const PR_GET_THP_DISABLE: c_int = 42;
3159 pub const PR_MPX_ENABLE_MANAGEMENT: c_int = 43;
3160 pub const PR_MPX_DISABLE_MANAGEMENT: c_int = 44;
3162 pub const PR_SET_FP_MODE: c_int = 45;
3163 pub const PR_GET_FP_MODE: c_int = 46;
3164 pub const PR_FP_MODE_FR: c_int = 1 << 0;
3165 pub const PR_FP_MODE_FRE: c_int = 1 << 1;
3167 pub const PR_CAP_AMBIENT: c_int = 47;
3168 pub const PR_CAP_AMBIENT_IS_SET: c_int = 1;
3169 pub const PR_CAP_AMBIENT_RAISE: c_int = 2;
3170 pub const PR_CAP_AMBIENT_LOWER: c_int = 3;
3171 pub const PR_CAP_AMBIENT_CLEAR_ALL: c_int = 4;
3173 pub const PR_SET_VMA: c_int = 0x53564d41;
3174 pub const PR_SET_VMA_ANON_NAME: c_int = 0;
3176 pub const PR_SCHED_CORE: c_int = 62;
3177 pub const PR_SCHED_CORE_GET: c_int = 0;
3178 pub const PR_SCHED_CORE_CREATE: c_int = 1;
3179 pub const PR_SCHED_CORE_SHARE_TO: c_int = 2;
3180 pub const PR_SCHED_CORE_SHARE_FROM: c_int = 3;
3181 pub const PR_SCHED_CORE_MAX: c_int = 4;
3182 pub const PR_SCHED_CORE_SCOPE_THREAD: c_int = 0;
3183 pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: c_int = 1;
3184 pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: c_int = 2;
3226 pub const ITIMER_REAL: c_int = 0;
3227 pub const ITIMER_VIRTUAL: c_int = 1;
3228 pub const ITIMER_PROF: c_int = 2;
3230 pub const TFD_CLOEXEC: c_int = O_CLOEXEC;
3231 pub const TFD_NONBLOCK: c_int = O_NONBLOCK;
3232 pub const TFD_TIMER_ABSTIME: c_int = 1;
3233 pub const TFD_TIMER_CANCEL_ON_SET: c_int = 2;
3237 pub const FALLOC_FL_KEEP_SIZE: c_int = 0x01;
3238 pub const FALLOC_FL_PUNCH_HOLE: c_int = 0x02;
3239 pub const FALLOC_FL_COLLAPSE_RANGE: c_int = 0x08;
3240 pub const FALLOC_FL_ZERO_RANGE: c_int = 0x10;
3241 pub const FALLOC_FL_INSERT_RANGE: c_int = 0x20;
3242 pub const FALLOC_FL_UNSHARE_RANGE: c_int = 0x40;
3248 pub const ENOATTR: c_int = crate::ENODATA;
3250 pub const SO_ORIGINAL_DST: c_int = 80;
3252 pub const IP_RECVFRAGSIZE: c_int = 25;
3254 pub const IPV6_FLOWINFO: c_int = 11;
3255 pub const IPV6_FLOWLABEL_MGR: c_int = 32;
3256 pub const IPV6_FLOWINFO_SEND: c_int = 33;
3257 pub const IPV6_RECVFRAGSIZE: c_int = 77;
3258 pub const IPV6_FREEBIND: c_int = 78;
3259 pub const IPV6_FLOWINFO_FLOWLABEL: c_int = 0x000fffff;
3260 pub const IPV6_FLOWINFO_PRIORITY: c_int = 0x0ff00000;
3262 pub const IPV6_RTHDR_LOOSE: c_int = 0;
3263 pub const IPV6_RTHDR_STRICT: c_int = 1;
3266 pub const SK_MEMINFO_RMEM_ALLOC: c_int = 0;
3267 pub const SK_MEMINFO_RCVBUF: c_int = 1;
3268 pub const SK_MEMINFO_WMEM_ALLOC: c_int = 2;
3269 pub const SK_MEMINFO_SNDBUF: c_int = 3;
3270 pub const SK_MEMINFO_FWD_ALLOC: c_int = 4;
3271 pub const SK_MEMINFO_WMEM_QUEUED: c_int = 5;
3272 pub const SK_MEMINFO_OPTMEM: c_int = 6;
3273 pub const SK_MEMINFO_BACKLOG: c_int = 7;
3274 pub const SK_MEMINFO_DROPS: c_int = 8;
3305 pub const SKF_AD_OFF: c_int = -0x1000;
3306 pub const SKF_AD_PROTOCOL: c_int = 0;
3307 pub const SKF_AD_PKTTYPE: c_int = 4;
3308 pub const SKF_AD_IFINDEX: c_int = 8;
3309 pub const SKF_AD_NLATTR: c_int = 12;
3310 pub const SKF_AD_NLATTR_NEST: c_int = 16;
3311 pub const SKF_AD_MARK: c_int = 20;
3312 pub const SKF_AD_QUEUE: c_int = 24;
3313 pub const SKF_AD_HATYPE: c_int = 28;
3314 pub const SKF_AD_RXHASH: c_int = 32;
3315 pub const SKF_AD_CPU: c_int = 36;
3316 pub const SKF_AD_ALU_XOR_X: c_int = 40;
3317 pub const SKF_AD_VLAN_TAG: c_int = 44;
3318 pub const SKF_AD_VLAN_TAG_PRESENT: c_int = 48;
3319 pub const SKF_AD_PAY_OFFSET: c_int = 52;
3320 pub const SKF_AD_RANDOM: c_int = 56;
3321 pub const SKF_AD_VLAN_TPID: c_int = 60;
3322 pub const SKF_AD_MAX: c_int = 64;
3323 pub const SKF_NET_OFF: c_int = -0x100000;
3324 pub const SKF_LL_OFF: c_int = -0x200000;
3325 pub const BPF_NET_OFF: c_int = SKF_NET_OFF;
3326 pub const BPF_LL_OFF: c_int = SKF_LL_OFF;
3327 pub const BPF_MEMWORDS: c_int = 16;
3328 pub const BPF_MAXINSNS: c_int = 4096;
3382 pub const ETH_ALEN: c_int = 6;
3383 pub const ETH_HLEN: c_int = 14;
3384 pub const ETH_ZLEN: c_int = 60;
3385 pub const ETH_DATA_LEN: c_int = 1500;
3386 pub const ETH_FRAME_LEN: c_int = 1514;
3387 pub const ETH_FCS_LEN: c_int = 4;
3390 pub const ETH_P_LOOP: c_int = 0x0060;
3391 pub const ETH_P_PUP: c_int = 0x0200;
3392 pub const ETH_P_PUPAT: c_int = 0x0201;
3393 pub const ETH_P_IP: c_int = 0x0800;
3394 pub const ETH_P_X25: c_int = 0x0805;
3395 pub const ETH_P_ARP: c_int = 0x0806;
3396 pub const ETH_P_BPQ: c_int = 0x08FF;
3397 pub const ETH_P_IEEEPUP: c_int = 0x0a00;
3398 pub const ETH_P_IEEEPUPAT: c_int = 0x0a01;
3399 pub const ETH_P_BATMAN: c_int = 0x4305;
3400 pub const ETH_P_DEC: c_int = 0x6000;
3401 pub const ETH_P_DNA_DL: c_int = 0x6001;
3402 pub const ETH_P_DNA_RC: c_int = 0x6002;
3403 pub const ETH_P_DNA_RT: c_int = 0x6003;
3404 pub const ETH_P_LAT: c_int = 0x6004;
3405 pub const ETH_P_DIAG: c_int = 0x6005;
3406 pub const ETH_P_CUST: c_int = 0x6006;
3407 pub const ETH_P_SCA: c_int = 0x6007;
3408 pub const ETH_P_TEB: c_int = 0x6558;
3409 pub const ETH_P_RARP: c_int = 0x8035;
3410 pub const ETH_P_ATALK: c_int = 0x809B;
3411 pub const ETH_P_AARP: c_int = 0x80F3;
3412 pub const ETH_P_8021Q: c_int = 0x8100;
3413 pub const ETH_P_IPX: c_int = 0x8137;
3414 pub const ETH_P_IPV6: c_int = 0x86DD;
3415 pub const ETH_P_PAUSE: c_int = 0x8808;
3416 pub const ETH_P_SLOW: c_int = 0x8809;
3417 pub const ETH_P_WCCP: c_int = 0x883E;
3418 pub const ETH_P_MPLS_UC: c_int = 0x8847;
3419 pub const ETH_P_MPLS_MC: c_int = 0x8848;
3420 pub const ETH_P_ATMMPOA: c_int = 0x884c;
3421 pub const ETH_P_PPP_DISC: c_int = 0x8863;
3422 pub const ETH_P_PPP_SES: c_int = 0x8864;
3423 pub const ETH_P_LINK_CTL: c_int = 0x886c;
3424 pub const ETH_P_ATMFATE: c_int = 0x8884;
3425 pub const ETH_P_PAE: c_int = 0x888E;
3426 pub const ETH_P_AOE: c_int = 0x88A2;
3427 pub const ETH_P_8021AD: c_int = 0x88A8;
3428 pub const ETH_P_802_EX1: c_int = 0x88B5;
3429 pub const ETH_P_TIPC: c_int = 0x88CA;
3430 pub const ETH_P_MACSEC: c_int = 0x88E5;
3431 pub const ETH_P_8021AH: c_int = 0x88E7;
3432 pub const ETH_P_MVRP: c_int = 0x88F5;
3433 pub const ETH_P_1588: c_int = 0x88F7;
3434 pub const ETH_P_PRP: c_int = 0x88FB;
3435 pub const ETH_P_FCOE: c_int = 0x8906;
3436 pub const ETH_P_TDLS: c_int = 0x890D;
3437 pub const ETH_P_FIP: c_int = 0x8914;
3438 pub const ETH_P_80221: c_int = 0x8917;
3439 pub const ETH_P_LOOPBACK: c_int = 0x9000;
3440 pub const ETH_P_QINQ1: c_int = 0x9100;
3441 pub const ETH_P_QINQ2: c_int = 0x9200;
3442 pub const ETH_P_QINQ3: c_int = 0x9300;
3443 pub const ETH_P_EDSA: c_int = 0xDADA;
3444 pub const ETH_P_AF_IUCV: c_int = 0xFBFB;
3446 pub const ETH_P_802_3_MIN: c_int = 0x0600;
3449 pub const ETH_P_802_3: c_int = 0x0001;
3450 pub const ETH_P_AX25: c_int = 0x0002;
3451 pub const ETH_P_ALL: c_int = 0x0003;
3452 pub const ETH_P_802_2: c_int = 0x0004;
3453 pub const ETH_P_SNAP: c_int = 0x0005;
3454 pub const ETH_P_DDCMP: c_int = 0x0006;
3455 pub const ETH_P_WAN_PPP: c_int = 0x0007;
3456 pub const ETH_P_PPP_MP: c_int = 0x0008;
3457 pub const ETH_P_LOCALTALK: c_int = 0x0009;
3458 pub const ETH_P_CANFD: c_int = 0x000D;
3459 pub const ETH_P_PPPTALK: c_int = 0x0010;
3460 pub const ETH_P_TR_802_2: c_int = 0x0011;
3461 pub const ETH_P_MOBITEX: c_int = 0x0015;
3462 pub const ETH_P_CONTROL: c_int = 0x0016;
3463 pub const ETH_P_IRDA: c_int = 0x0017;
3464 pub const ETH_P_ECONET: c_int = 0x0018;
3465 pub const ETH_P_HDLC: c_int = 0x0019;
3466 pub const ETH_P_ARCNET: c_int = 0x001A;
3467 pub const ETH_P_DSA: c_int = 0x001B;
3468 pub const ETH_P_TRAILER: c_int = 0x001C;
3469 pub const ETH_P_PHONET: c_int = 0x00F5;
3470 pub const ETH_P_IEEE802154: c_int = 0x00F6;
3471 pub const ETH_P_CAIF: c_int = 0x00F7;
3474 pub const POSIX_SPAWN_RESETIDS: c_int = 0x01;
3475 pub const POSIX_SPAWN_SETPGROUP: c_int = 0x02;
3476 pub const POSIX_SPAWN_SETSIGDEF: c_int = 0x04;
3477 pub const POSIX_SPAWN_SETSIGMASK: c_int = 0x08;
3478 pub const POSIX_SPAWN_SETSCHEDPARAM: c_int = 0x10;
3479 pub const POSIX_SPAWN_SETSCHEDULER: c_int = 0x20;
3481 pub const NLMSG_NOOP: c_int = 0x1;
3482 pub const NLMSG_ERROR: c_int = 0x2;
3483 pub const NLMSG_DONE: c_int = 0x3;
3484 pub const NLMSG_OVERRUN: c_int = 0x4;
3485 pub const NLMSG_MIN_TYPE: c_int = 0x10;
3488 pub const NFNLGRP_NONE: c_int = 0;
3489 pub const NFNLGRP_CONNTRACK_NEW: c_int = 1;
3490 pub const NFNLGRP_CONNTRACK_UPDATE: c_int = 2;
3491 pub const NFNLGRP_CONNTRACK_DESTROY: c_int = 3;
3492 pub const NFNLGRP_CONNTRACK_EXP_NEW: c_int = 4;
3493 pub const NFNLGRP_CONNTRACK_EXP_UPDATE: c_int = 5;
3494 pub const NFNLGRP_CONNTRACK_EXP_DESTROY: c_int = 6;
3495 pub const NFNLGRP_NFTABLES: c_int = 7;
3496 pub const NFNLGRP_ACCT_QUOTA: c_int = 8;
3497 pub const NFNLGRP_NFTRACE: c_int = 9;
3499 pub const NFNETLINK_V0: c_int = 0;
3501 pub const NFNL_SUBSYS_NONE: c_int = 0;
3502 pub const NFNL_SUBSYS_CTNETLINK: c_int = 1;
3503 pub const NFNL_SUBSYS_CTNETLINK_EXP: c_int = 2;
3504 pub const NFNL_SUBSYS_QUEUE: c_int = 3;
3505 pub const NFNL_SUBSYS_ULOG: c_int = 4;
3506 pub const NFNL_SUBSYS_OSF: c_int = 5;
3507 pub const NFNL_SUBSYS_IPSET: c_int = 6;
3508 pub const NFNL_SUBSYS_ACCT: c_int = 7;
3509 pub const NFNL_SUBSYS_CTNETLINK_TIMEOUT: c_int = 8;
3510 pub const NFNL_SUBSYS_CTHELPER: c_int = 9;
3511 pub const NFNL_SUBSYS_NFTABLES: c_int = 10;
3512 pub const NFNL_SUBSYS_NFT_COMPAT: c_int = 11;
3513 pub const NFNL_SUBSYS_HOOK: c_int = 12;
3514 pub const NFNL_SUBSYS_COUNT: c_int = 13;
3516 pub const NFNL_MSG_BATCH_BEGIN: c_int = NLMSG_MIN_TYPE;
3517 pub const NFNL_MSG_BATCH_END: c_int = NLMSG_MIN_TYPE + 1;
3519 pub const NFNL_BATCH_UNSPEC: c_int = 0;
3520 pub const NFNL_BATCH_GENID: c_int = 1;
3523 pub const NFULNL_MSG_PACKET: c_int = 0;
3524 pub const NFULNL_MSG_CONFIG: c_int = 1;
3526 pub const NFULA_VLAN_UNSPEC: c_int = 0;
3527 pub const NFULA_VLAN_PROTO: c_int = 1;
3528 pub const NFULA_VLAN_TCI: c_int = 2;
3530 pub const NFULA_UNSPEC: c_int = 0;
3531 pub const NFULA_PACKET_HDR: c_int = 1;
3532 pub const NFULA_MARK: c_int = 2;
3533 pub const NFULA_TIMESTAMP: c_int = 3;
3534 pub const NFULA_IFINDEX_INDEV: c_int = 4;
3535 pub const NFULA_IFINDEX_OUTDEV: c_int = 5;
3536 pub const NFULA_IFINDEX_PHYSINDEV: c_int = 6;
3537 pub const NFULA_IFINDEX_PHYSOUTDEV: c_int = 7;
3538 pub const NFULA_HWADDR: c_int = 8;
3539 pub const NFULA_PAYLOAD: c_int = 9;
3540 pub const NFULA_PREFIX: c_int = 10;
3541 pub const NFULA_UID: c_int = 11;
3542 pub const NFULA_SEQ: c_int = 12;
3543 pub const NFULA_SEQ_GLOBAL: c_int = 13;
3544 pub const NFULA_GID: c_int = 14;
3545 pub const NFULA_HWTYPE: c_int = 15;
3546 pub const NFULA_HWHEADER: c_int = 16;
3547 pub const NFULA_HWLEN: c_int = 17;
3548 pub const NFULA_CT: c_int = 18;
3549 pub const NFULA_CT_INFO: c_int = 19;
3550 pub const NFULA_VLAN: c_int = 20;
3551 pub const NFULA_L2HDR: c_int = 21;
3553 pub const NFULNL_CFG_CMD_NONE: c_int = 0;
3554 pub const NFULNL_CFG_CMD_BIND: c_int = 1;
3555 pub const NFULNL_CFG_CMD_UNBIND: c_int = 2;
3556 pub const NFULNL_CFG_CMD_PF_BIND: c_int = 3;
3557 pub const NFULNL_CFG_CMD_PF_UNBIND: c_int = 4;
3559 pub const NFULA_CFG_UNSPEC: c_int = 0;
3560 pub const NFULA_CFG_CMD: c_int = 1;
3561 pub const NFULA_CFG_MODE: c_int = 2;
3562 pub const NFULA_CFG_NLBUFSIZ: c_int = 3;
3563 pub const NFULA_CFG_TIMEOUT: c_int = 4;
3564 pub const NFULA_CFG_QTHRESH: c_int = 5;
3565 pub const NFULA_CFG_FLAGS: c_int = 6;
3567 pub const NFULNL_COPY_NONE: c_int = 0x00;
3568 pub const NFULNL_COPY_META: c_int = 0x01;
3569 pub const NFULNL_COPY_PACKET: c_int = 0x02;
3571 pub const NFULNL_CFG_F_SEQ: c_int = 0x0001;
3572 pub const NFULNL_CFG_F_SEQ_GLOBAL: c_int = 0x0002;
3573 pub const NFULNL_CFG_F_CONNTRACK: c_int = 0x0004;
3576 pub const NFQNL_MSG_PACKET: c_int = 0;
3577 pub const NFQNL_MSG_VERDICT: c_int = 1;
3578 pub const NFQNL_MSG_CONFIG: c_int = 2;
3579 pub const NFQNL_MSG_VERDICT_BATCH: c_int = 3;
3581 pub const NFQA_UNSPEC: c_int = 0;
3582 pub const NFQA_PACKET_HDR: c_int = 1;
3583 pub const NFQA_VERDICT_HDR: c_int = 2;
3584 pub const NFQA_MARK: c_int = 3;
3585 pub const NFQA_TIMESTAMP: c_int = 4;
3586 pub const NFQA_IFINDEX_INDEV: c_int = 5;
3587 pub const NFQA_IFINDEX_OUTDEV: c_int = 6;
3588 pub const NFQA_IFINDEX_PHYSINDEV: c_int = 7;
3589 pub const NFQA_IFINDEX_PHYSOUTDEV: c_int = 8;
3590 pub const NFQA_HWADDR: c_int = 9;
3591 pub const NFQA_PAYLOAD: c_int = 10;
3592 pub const NFQA_CT: c_int = 11;
3593 pub const NFQA_CT_INFO: c_int = 12;
3594 pub const NFQA_CAP_LEN: c_int = 13;
3595 pub const NFQA_SKB_INFO: c_int = 14;
3596 pub const NFQA_EXP: c_int = 15;
3597 pub const NFQA_UID: c_int = 16;
3598 pub const NFQA_GID: c_int = 17;
3599 pub const NFQA_SECCTX: c_int = 18;
3600 pub const NFQA_VLAN: c_int = 19;
3601 pub const NFQA_L2HDR: c_int = 20;
3602 pub const NFQA_PRIORITY: c_int = 21;
3604 pub const NFQA_VLAN_UNSPEC: c_int = 0;
3605 pub const NFQA_VLAN_PROTO: c_int = 1;
3606 pub const NFQA_VLAN_TCI: c_int = 2;
3608 pub const NFQNL_CFG_CMD_NONE: c_int = 0;
3609 pub const NFQNL_CFG_CMD_BIND: c_int = 1;
3610 pub const NFQNL_CFG_CMD_UNBIND: c_int = 2;
3611 pub const NFQNL_CFG_CMD_PF_BIND: c_int = 3;
3612 pub const NFQNL_CFG_CMD_PF_UNBIND: c_int = 4;
3614 pub const NFQNL_COPY_NONE: c_int = 0;
3615 pub const NFQNL_COPY_META: c_int = 1;
3616 pub const NFQNL_COPY_PACKET: c_int = 2;
3618 pub const NFQA_CFG_UNSPEC: c_int = 0;
3619 pub const NFQA_CFG_CMD: c_int = 1;
3620 pub const NFQA_CFG_PARAMS: c_int = 2;
3621 pub const NFQA_CFG_QUEUE_MAXLEN: c_int = 3;
3622 pub const NFQA_CFG_MASK: c_int = 4;
3623 pub const NFQA_CFG_FLAGS: c_int = 5;
3625 pub const NFQA_CFG_F_FAIL_OPEN: c_int = 0x0001;
3626 pub const NFQA_CFG_F_CONNTRACK: c_int = 0x0002;
3627 pub const NFQA_CFG_F_GSO: c_int = 0x0004;
3628 pub const NFQA_CFG_F_UID_GID: c_int = 0x0008;
3629 pub const NFQA_CFG_F_SECCTX: c_int = 0x0010;
3630 pub const NFQA_CFG_F_MAX: c_int = 0x0020;
3632 pub const NFQA_SKB_CSUMNOTREADY: c_int = 0x0001;
3633 pub const NFQA_SKB_GSO: c_int = 0x0002;
3634 pub const NFQA_SKB_CSUM_NOTVERIFIED: c_int = 0x0004;
3638 pub const GENL_NAMSIZ: c_int = 16;
3640 pub const GENL_MIN_ID: c_int = NLMSG_MIN_TYPE;
3641 pub const GENL_MAX_ID: c_int = 1023;
3643 pub const GENL_ADMIN_PERM: c_int = 0x01;
3644 pub const GENL_CMD_CAP_DO: c_int = 0x02;
3645 pub const GENL_CMD_CAP_DUMP: c_int = 0x04;
3646 pub const GENL_CMD_CAP_HASPOL: c_int = 0x08;
3648 pub const GENL_ID_CTRL: c_int = NLMSG_MIN_TYPE;
3650 pub const CTRL_CMD_UNSPEC: c_int = 0;
3651 pub const CTRL_CMD_NEWFAMILY: c_int = 1;
3652 pub const CTRL_CMD_DELFAMILY: c_int = 2;
3653 pub const CTRL_CMD_GETFAMILY: c_int = 3;
3654 pub const CTRL_CMD_NEWOPS: c_int = 4;
3655 pub const CTRL_CMD_DELOPS: c_int = 5;
3656 pub const CTRL_CMD_GETOPS: c_int = 6;
3657 pub const CTRL_CMD_NEWMCAST_GRP: c_int = 7;
3658 pub const CTRL_CMD_DELMCAST_GRP: c_int = 8;
3659 pub const CTRL_CMD_GETMCAST_GRP: c_int = 9;
3661 pub const CTRL_ATTR_UNSPEC: c_int = 0;
3662 pub const CTRL_ATTR_FAMILY_ID: c_int = 1;
3663 pub const CTRL_ATTR_FAMILY_NAME: c_int = 2;
3664 pub const CTRL_ATTR_VERSION: c_int = 3;
3665 pub const CTRL_ATTR_HDRSIZE: c_int = 4;
3666 pub const CTRL_ATTR_MAXATTR: c_int = 5;
3667 pub const CTRL_ATTR_OPS: c_int = 6;
3668 pub const CTRL_ATTR_MCAST_GROUPS: c_int = 7;
3670 pub const CTRL_ATTR_OP_UNSPEC: c_int = 0;
3671 pub const CTRL_ATTR_OP_ID: c_int = 1;
3672 pub const CTRL_ATTR_OP_FLAGS: c_int = 2;
3674 pub const CTRL_ATTR_MCAST_GRP_UNSPEC: c_int = 0;
3675 pub const CTRL_ATTR_MCAST_GRP_NAME: c_int = 1;
3676 pub const CTRL_ATTR_MCAST_GRP_ID: c_int = 2;
3688 pub const PACKET_ADD_MEMBERSHIP: c_int = 1;
3689 pub const PACKET_DROP_MEMBERSHIP: c_int = 2;
3690 pub const PACKET_RX_RING: c_int = 5;
3691 pub const PACKET_STATISTICS: c_int = 6;
3692 pub const PACKET_AUXDATA: c_int = 8;
3693 pub const PACKET_VERSION: c_int = 10;
3694 pub const PACKET_RESERVE: c_int = 12;
3695 pub const PACKET_TX_RING: c_int = 13;
3696 pub const PACKET_LOSS: c_int = 14;
3697 pub const PACKET_TIMESTAMP: c_int = 17;
3698 pub const PACKET_FANOUT: c_int = 18;
3699 pub const PACKET_QDISC_BYPASS: c_int = 20;
3700 pub const PACKET_IGNORE_OUTGOING: c_int = 23;
3714 pub const PACKET_MR_MULTICAST: c_int = 0;
3715 pub const PACKET_MR_PROMISC: c_int = 1;
3716 pub const PACKET_MR_ALLMULTI: c_int = 2;
3752 pub const NF_DROP: c_int = 0;
3753 pub const NF_ACCEPT: c_int = 1;
3754 pub const NF_STOLEN: c_int = 2;
3755 pub const NF_QUEUE: c_int = 3;
3756 pub const NF_REPEAT: c_int = 4;
3757 pub const NF_STOP: c_int = 5;
3758 pub const NF_MAX_VERDICT: c_int = NF_STOP;
3760 pub const NF_VERDICT_MASK: c_int = 0x000000ff;
3761 pub const NF_VERDICT_FLAG_QUEUE_BYPASS: c_int = 0x00008000;
3763 pub const NF_VERDICT_QMASK: c_int = 0xffff0000;
3764 pub const NF_VERDICT_QBITS: c_int = 16;
3766 pub const NF_VERDICT_BITS: c_int = 16;
3768 pub const NF_INET_PRE_ROUTING: c_int = 0;
3769 pub const NF_INET_LOCAL_IN: c_int = 1;
3770 pub const NF_INET_FORWARD: c_int = 2;
3771 pub const NF_INET_LOCAL_OUT: c_int = 3;
3772 pub const NF_INET_POST_ROUTING: c_int = 4;
3773 pub const NF_INET_NUMHOOKS: c_int = 5;
3774 pub const NF_INET_INGRESS: c_int = NF_INET_NUMHOOKS;
3776 pub const NF_NETDEV_INGRESS: c_int = 0;
3777 pub const NF_NETDEV_EGRESS: c_int = 1;
3778 pub const NF_NETDEV_NUMHOOKS: c_int = 2;
3781 pub const NFPROTO_UNSPEC: c_int = 0;
3782 pub const NFPROTO_INET: c_int = 1;
3783 pub const NFPROTO_IPV4: c_int = 2;
3784 pub const NFPROTO_ARP: c_int = 3;
3785 pub const NFPROTO_NETDEV: c_int = 5;
3786 pub const NFPROTO_BRIDGE: c_int = 7;
3787 pub const NFPROTO_IPV6: c_int = 10;
3788 pub const NFPROTO_DECNET: c_int = 12;
3789 pub const NFPROTO_NUMPROTO: c_int = 13;
3792 pub const NF_ARP: c_int = 0;
3793 pub const NF_ARP_IN: c_int = 0;
3794 pub const NF_ARP_OUT: c_int = 1;
3795 pub const NF_ARP_FORWARD: c_int = 2;
3796 pub const NF_ARP_NUMHOOKS: c_int = 3;
3799 pub const NF_BR_PRE_ROUTING: c_int = 0;
3800 pub const NF_BR_LOCAL_IN: c_int = 1;
3801 pub const NF_BR_FORWARD: c_int = 2;
3802 pub const NF_BR_LOCAL_OUT: c_int = 3;
3803 pub const NF_BR_POST_ROUTING: c_int = 4;
3804 pub const NF_BR_BROUTING: c_int = 5;
3805 pub const NF_BR_NUMHOOKS: c_int = 6;
3807 pub const NF_BR_PRI_FIRST: c_int = crate::INT_MIN;
3808 pub const NF_BR_PRI_NAT_DST_BRIDGED: c_int = -300;
3809 pub const NF_BR_PRI_FILTER_BRIDGED: c_int = -200;
3810 pub const NF_BR_PRI_BRNF: c_int = 0;
3811 pub const NF_BR_PRI_NAT_DST_OTHER: c_int = 100;
3812 pub const NF_BR_PRI_FILTER_OTHER: c_int = 200;
3813 pub const NF_BR_PRI_NAT_SRC: c_int = 300;
3814 pub const NF_BR_PRI_LAST: c_int = crate::INT_MAX;
3817 pub const NF_IP_PRE_ROUTING: c_int = 0;
3818 pub const NF_IP_LOCAL_IN: c_int = 1;
3819 pub const NF_IP_FORWARD: c_int = 2;
3820 pub const NF_IP_LOCAL_OUT: c_int = 3;
3821 pub const NF_IP_POST_ROUTING: c_int = 4;
3822 pub const NF_IP_NUMHOOKS: c_int = 5;
3824 pub const NF_IP_PRI_FIRST: c_int = crate::INT_MIN;
3825 pub const NF_IP_PRI_RAW_BEFORE_DEFRAG: c_int = -450;
3826 pub const NF_IP_PRI_CONNTRACK_DEFRAG: c_int = -400;
3827 pub const NF_IP_PRI_RAW: c_int = -300;
3828 pub const NF_IP_PRI_SELINUX_FIRST: c_int = -225;
3829 pub const NF_IP_PRI_CONNTRACK: c_int = -200;
3830 pub const NF_IP_PRI_MANGLE: c_int = -150;
3831 pub const NF_IP_PRI_NAT_DST: c_int = -100;
3832 pub const NF_IP_PRI_FILTER: c_int = 0;
3833 pub const NF_IP_PRI_SECURITY: c_int = 50;
3834 pub const NF_IP_PRI_NAT_SRC: c_int = 100;
3835 pub const NF_IP_PRI_SELINUX_LAST: c_int = 225;
3836 pub const NF_IP_PRI_CONNTRACK_HELPER: c_int = 300;
3837 pub const NF_IP_PRI_CONNTRACK_CONFIRM: c_int = crate::INT_MAX;
3838 pub const NF_IP_PRI_LAST: c_int = crate::INT_MAX;
3841 pub const NF_IP6_PRE_ROUTING: c_int = 0;
3842 pub const NF_IP6_LOCAL_IN: c_int = 1;
3843 pub const NF_IP6_FORWARD: c_int = 2;
3844 pub const NF_IP6_LOCAL_OUT: c_int = 3;
3845 pub const NF_IP6_POST_ROUTING: c_int = 4;
3846 pub const NF_IP6_NUMHOOKS: c_int = 5;
3848 pub const NF_IP6_PRI_FIRST: c_int = crate::INT_MIN;
3849 pub const NF_IP6_PRI_RAW_BEFORE_DEFRAG: c_int = -450;
3850 pub const NF_IP6_PRI_CONNTRACK_DEFRAG: c_int = -400;
3851 pub const NF_IP6_PRI_RAW: c_int = -300;
3852 pub const NF_IP6_PRI_SELINUX_FIRST: c_int = -225;
3853 pub const NF_IP6_PRI_CONNTRACK: c_int = -200;
3854 pub const NF_IP6_PRI_MANGLE: c_int = -150;
3855 pub const NF_IP6_PRI_NAT_DST: c_int = -100;
3856 pub const NF_IP6_PRI_FILTER: c_int = 0;
3857 pub const NF_IP6_PRI_SECURITY: c_int = 50;
3858 pub const NF_IP6_PRI_NAT_SRC: c_int = 100;
3859 pub const NF_IP6_PRI_SELINUX_LAST: c_int = 225;
3860 pub const NF_IP6_PRI_CONNTRACK_HELPER: c_int = 300;
3861 pub const NF_IP6_PRI_LAST: c_int = crate::INT_MAX;
3864 pub const IP6T_SO_ORIGINAL_DST: c_int = 80;
4300 pub const NLA_ALIGNTO: c_int = 4;
4302 pub const NETLINK_ROUTE: c_int = 0;
4303 pub const NETLINK_UNUSED: c_int = 1;
4304 pub const NETLINK_USERSOCK: c_int = 2;
4305 pub const NETLINK_FIREWALL: c_int = 3;
4306 pub const NETLINK_SOCK_DIAG: c_int = 4;
4307 pub const NETLINK_NFLOG: c_int = 5;
4308 pub const NETLINK_XFRM: c_int = 6;
4309 pub const NETLINK_SELINUX: c_int = 7;
4310 pub const NETLINK_ISCSI: c_int = 8;
4311 pub const NETLINK_AUDIT: c_int = 9;
4312 pub const NETLINK_FIB_LOOKUP: c_int = 10;
4313 pub const NETLINK_CONNECTOR: c_int = 11;
4314 pub const NETLINK_NETFILTER: c_int = 12;
4315 pub const NETLINK_IP6_FW: c_int = 13;
4316 pub const NETLINK_DNRTMSG: c_int = 14;
4317 pub const NETLINK_KOBJECT_UEVENT: c_int = 15;
4318 pub const NETLINK_GENERIC: c_int = 16;
4319 pub const NETLINK_SCSITRANSPORT: c_int = 18;
4320 pub const NETLINK_ECRYPTFS: c_int = 19;
4321 pub const NETLINK_RDMA: c_int = 20;
4322 pub const NETLINK_CRYPTO: c_int = 21;
4323 pub const NETLINK_INET_DIAG: c_int = NETLINK_SOCK_DIAG;
4325 pub const NLM_F_REQUEST: c_int = 1;
4326 pub const NLM_F_MULTI: c_int = 2;
4327 pub const NLM_F_ACK: c_int = 4;
4328 pub const NLM_F_ECHO: c_int = 8;
4329 pub const NLM_F_DUMP_INTR: c_int = 16;
4330 pub const NLM_F_DUMP_FILTERED: c_int = 32;
4332 pub const NLM_F_ROOT: c_int = 0x100;
4333 pub const NLM_F_MATCH: c_int = 0x200;
4334 pub const NLM_F_ATOMIC: c_int = 0x400;
4335 pub const NLM_F_DUMP: c_int = NLM_F_ROOT | NLM_F_MATCH;
4337 pub const NLM_F_REPLACE: c_int = 0x100;
4338 pub const NLM_F_EXCL: c_int = 0x200;
4339 pub const NLM_F_CREATE: c_int = 0x400;
4340 pub const NLM_F_APPEND: c_int = 0x800;
4342 pub const NLM_F_NONREC: c_int = 0x100;
4343 pub const NLM_F_BULK: c_int = 0x200;
4345 pub const NLM_F_CAPPED: c_int = 0x100;
4346 pub const NLM_F_ACK_TLVS: c_int = 0x200;
4348 pub const NETLINK_ADD_MEMBERSHIP: c_int = 1;
4349 pub const NETLINK_DROP_MEMBERSHIP: c_int = 2;
4350 pub const NETLINK_PKTINFO: c_int = 3;
4351 pub const NETLINK_BROADCAST_ERROR: c_int = 4;
4352 pub const NETLINK_NO_ENOBUFS: c_int = 5;
4353 pub const NETLINK_RX_RING: c_int = 6;
4354 pub const NETLINK_TX_RING: c_int = 7;
4355 pub const NETLINK_LISTEN_ALL_NSID: c_int = 8;
4356 pub const NETLINK_LIST_MEMBERSHIPS: c_int = 9;
4357 pub const NETLINK_CAP_ACK: c_int = 10;
4358 pub const NETLINK_EXT_ACK: c_int = 11;
4359 pub const NETLINK_GET_STRICT_CHK: c_int = 12;
4361 pub const NLA_F_NESTED: c_int = 1 << 15;
4362 pub const NLA_F_NET_BYTEORDER: c_int = 1 << 14;
4363 pub const NLA_TYPE_MASK: c_int = !(NLA_F_NESTED | NLA_F_NET_BYTEORDER);
4494 pub const ATF_MAGIC: c_int = 0x80;
4496 pub const RTEXT_FILTER_VF: c_int = 1 << 0;
4497 pub const RTEXT_FILTER_BRVLAN: c_int = 1 << 1;
4498 pub const RTEXT_FILTER_BRVLAN_COMPRESSED: c_int = 1 << 2;
4499 pub const RTEXT_FILTER_SKIP_STATS: c_int = 1 << 3;
4500 pub const RTEXT_FILTER_MRP: c_int = 1 << 4;
4501 pub const RTEXT_FILTER_CFM_CONFIG: c_int = 1 << 5;
4502 pub const RTEXT_FILTER_CFM_STATUS: c_int = 1 << 6;
4505 pub const RTMGRP_LINK: c_int = 0x00001;
4506 pub const RTMGRP_NOTIFY: c_int = 0x00002;
4507 pub const RTMGRP_NEIGH: c_int = 0x00004;
4508 pub const RTMGRP_TC: c_int = 0x00008;
4509 pub const RTMGRP_IPV4_IFADDR: c_int = 0x00010;
4510 pub const RTMGRP_IPV4_MROUTE: c_int = 0x00020;
4511 pub const RTMGRP_IPV4_ROUTE: c_int = 0x00040;
4512 pub const RTMGRP_IPV4_RULE: c_int = 0x00080;
4513 pub const RTMGRP_IPV6_IFADDR: c_int = 0x00100;
4514 pub const RTMGRP_IPV6_MROUTE: c_int = 0x00200;
4515 pub const RTMGRP_IPV6_ROUTE: c_int = 0x00400;
4516 pub const RTMGRP_IPV6_IFINFO: c_int = 0x00800;
4517 pub const RTMGRP_DECnet_IFADDR: c_int = 0x01000;
4518 pub const RTMGRP_DECnet_ROUTE: c_int = 0x04000;
4519 pub const RTMGRP_IPV6_PREFIX: c_int = 0x20000;
4661 pub const PTP_ENABLE_PPS: Ioctl = _IOW::<c_int>(PTP_CLK_MAGIC, 4);
4671 pub const PTP_ENABLE_PPS2: Ioctl = _IOW::<c_int>(PTP_CLK_MAGIC, 13);
4685 pub const TLS_TX: c_int = 1;
4686 pub const TLS_RX: c_int = 2;
4688 pub const TLS_TX_ZEROCOPY_RO: c_int = 3;
4689 pub const TLS_RX_EXPECT_NO_PAD: c_int = 4;
4757 pub const TLS_SET_RECORD_TYPE: c_int = 1;
4758 pub const TLS_GET_RECORD_TYPE: c_int = 2;
4760 pub const SOL_TLS: c_int = 282;
4763 pub const TLS_INFO_UNSPEC: c_int = 0x00;
4764 pub const TLS_INFO_VERSION: c_int = 0x01;
4765 pub const TLS_INFO_CIPHER: c_int = 0x02;
4766 pub const TLS_INFO_TXCONF: c_int = 0x03;
4767 pub const TLS_INFO_RXCONF: c_int = 0x04;
4768 pub const TLS_INFO_ZC_RO_TX: c_int = 0x05;
4769 pub const TLS_INFO_RX_NO_PAD: c_int = 0x06;
4771 pub const TLS_CONF_BASE: c_int = 1;
4772 pub const TLS_CONF_SW: c_int = 2;
4773 pub const TLS_CONF_HW: c_int = 3;
4774 pub const TLS_CONF_HW_RECORD: c_int = 4;
4777 pub const ALG_SET_KEY: c_int = 1;
4778 pub const ALG_SET_IV: c_int = 2;
4779 pub const ALG_SET_OP: c_int = 3;
4780 pub const ALG_SET_AEAD_ASSOCLEN: c_int = 4;
4781 pub const ALG_SET_AEAD_AUTHSIZE: c_int = 5;
4782 pub const ALG_SET_DRBG_ENTROPY: c_int = 6;
4783 pub const ALG_SET_KEY_BY_KEY_SERIAL: c_int = 7;
4785 pub const ALG_OP_DECRYPT: c_int = 0;
4786 pub const ALG_OP_ENCRYPT: c_int = 1;
4789 pub const IF_OPER_UNKNOWN: c_int = 0;
4790 pub const IF_OPER_NOTPRESENT: c_int = 1;
4791 pub const IF_OPER_DOWN: c_int = 2;
4792 pub const IF_OPER_LOWERLAYERDOWN: c_int = 3;
4793 pub const IF_OPER_TESTING: c_int = 4;
4794 pub const IF_OPER_DORMANT: c_int = 5;
4795 pub const IF_OPER_UP: c_int = 6;
4797 pub const IF_LINK_MODE_DEFAULT: c_int = 0;
4798 pub const IF_LINK_MODE_DORMANT: c_int = 1;
4799 pub const IF_LINK_MODE_TESTING: c_int = 2;
4802 pub const UDP_CORK: c_int = 1;
4803 pub const UDP_ENCAP: c_int = 100;
4804 pub const UDP_NO_CHECK6_TX: c_int = 101;
4805 pub const UDP_NO_CHECK6_RX: c_int = 102;
4808 pub const MAP_SHARED_VALIDATE: c_int = 0x3;
4809 pub const MAP_DROPPABLE: c_int = 0x8;
4812 pub const MAP_FIXED_NOREPLACE: c_int = 0x100000;
4912 pub const IN_CLOEXEC: c_int = O_CLOEXEC;
4913 pub const IN_NONBLOCK: c_int = O_NONBLOCK;
4920 pub const NFT_TABLE_MAXNAMELEN: c_int = 256;
4921 pub const NFT_CHAIN_MAXNAMELEN: c_int = 256;
4922 pub const NFT_SET_MAXNAMELEN: c_int = 256;
4923 pub const NFT_OBJ_MAXNAMELEN: c_int = 256;
4924 pub const NFT_USERDATA_MAXLEN: c_int = 256;
4926 pub const NFT_REG_VERDICT: c_int = 0;
4927 pub const NFT_REG_1: c_int = 1;
4928 pub const NFT_REG_2: c_int = 2;
4929 pub const NFT_REG_3: c_int = 3;
4930 pub const NFT_REG_4: c_int = 4;
4931 pub const __NFT_REG_MAX: c_int = 5;
4932 pub const NFT_REG32_00: c_int = 8;
4933 pub const NFT_REG32_01: c_int = 9;
4934 pub const NFT_REG32_02: c_int = 10;
4935 pub const NFT_REG32_03: c_int = 11;
4936 pub const NFT_REG32_04: c_int = 12;
4937 pub const NFT_REG32_05: c_int = 13;
4938 pub const NFT_REG32_06: c_int = 14;
4939 pub const NFT_REG32_07: c_int = 15;
4940 pub const NFT_REG32_08: c_int = 16;
4941 pub const NFT_REG32_09: c_int = 17;
4942 pub const NFT_REG32_10: c_int = 18;
4943 pub const NFT_REG32_11: c_int = 19;
4944 pub const NFT_REG32_12: c_int = 20;
4945 pub const NFT_REG32_13: c_int = 21;
4946 pub const NFT_REG32_14: c_int = 22;
4947 pub const NFT_REG32_15: c_int = 23;
4949 pub const NFT_REG_SIZE: c_int = 16;
4950 pub const NFT_REG32_SIZE: c_int = 4;
4952 pub const NFT_CONTINUE: c_int = -1;
4953 pub const NFT_BREAK: c_int = -2;
4954 pub const NFT_JUMP: c_int = -3;
4955 pub const NFT_GOTO: c_int = -4;
4956 pub const NFT_RETURN: c_int = -5;
4958 pub const NFT_MSG_NEWTABLE: c_int = 0;
4959 pub const NFT_MSG_GETTABLE: c_int = 1;
4960 pub const NFT_MSG_DELTABLE: c_int = 2;
4961 pub const NFT_MSG_NEWCHAIN: c_int = 3;
4962 pub const NFT_MSG_GETCHAIN: c_int = 4;
4963 pub const NFT_MSG_DELCHAIN: c_int = 5;
4964 pub const NFT_MSG_NEWRULE: c_int = 6;
4965 pub const NFT_MSG_GETRULE: c_int = 7;
4966 pub const NFT_MSG_DELRULE: c_int = 8;
4967 pub const NFT_MSG_NEWSET: c_int = 9;
4968 pub const NFT_MSG_GETSET: c_int = 10;
4969 pub const NFT_MSG_DELSET: c_int = 11;
4970 pub const NFT_MSG_NEWSETELEM: c_int = 12;
4971 pub const NFT_MSG_GETSETELEM: c_int = 13;
4972 pub const NFT_MSG_DELSETELEM: c_int = 14;
4973 pub const NFT_MSG_NEWGEN: c_int = 15;
4974 pub const NFT_MSG_GETGEN: c_int = 16;
4975 pub const NFT_MSG_TRACE: c_int = 17;
4978 pub const NFT_MSG_NEWOBJ: c_int = 18;
4979 pub const NFT_MSG_GETOBJ: c_int = 19;
4980 pub const NFT_MSG_DELOBJ: c_int = 20;
4981 pub const NFT_MSG_GETOBJ_RESET: c_int = 21;
4984 pub const NFT_MSG_MAX: c_int = 25;
4986 pub const NFT_SET_ANONYMOUS: c_int = 0x1;
4987 pub const NFT_SET_CONSTANT: c_int = 0x2;
4988 pub const NFT_SET_INTERVAL: c_int = 0x4;
4989 pub const NFT_SET_MAP: c_int = 0x8;
4990 pub const NFT_SET_TIMEOUT: c_int = 0x10;
4991 pub const NFT_SET_EVAL: c_int = 0x20;
4993 pub const NFT_SET_POL_PERFORMANCE: c_int = 0;
4994 pub const NFT_SET_POL_MEMORY: c_int = 1;
4996 pub const NFT_SET_ELEM_INTERVAL_END: c_int = 0x1;
5003 pub const NFT_DATA_VALUE_MAXLEN: c_int = 64;
5005 pub const NFT_BYTEORDER_NTOH: c_int = 0;
5006 pub const NFT_BYTEORDER_HTON: c_int = 1;
5008 pub const NFT_CMP_EQ: c_int = 0;
5009 pub const NFT_CMP_NEQ: c_int = 1;
5010 pub const NFT_CMP_LT: c_int = 2;
5011 pub const NFT_CMP_LTE: c_int = 3;
5012 pub const NFT_CMP_GT: c_int = 4;
5013 pub const NFT_CMP_GTE: c_int = 5;
5015 pub const NFT_RANGE_EQ: c_int = 0;
5016 pub const NFT_RANGE_NEQ: c_int = 1;
5018 pub const NFT_LOOKUP_F_INV: c_int = 1 << 0;
5020 pub const NFT_DYNSET_OP_ADD: c_int = 0;
5021 pub const NFT_DYNSET_OP_UPDATE: c_int = 1;
5023 pub const NFT_DYNSET_F_INV: c_int = 1 << 0;
5025 pub const NFT_PAYLOAD_LL_HEADER: c_int = 0;
5026 pub const NFT_PAYLOAD_NETWORK_HEADER: c_int = 1;
5027 pub const NFT_PAYLOAD_TRANSPORT_HEADER: c_int = 2;
5029 pub const NFT_PAYLOAD_CSUM_NONE: c_int = 0;
5030 pub const NFT_PAYLOAD_CSUM_INET: c_int = 1;
5032 pub const NFT_META_LEN: c_int = 0;
5033 pub const NFT_META_PROTOCOL: c_int = 1;
5034 pub const NFT_META_PRIORITY: c_int = 2;
5035 pub const NFT_META_MARK: c_int = 3;
5036 pub const NFT_META_IIF: c_int = 4;
5037 pub const NFT_META_OIF: c_int = 5;
5038 pub const NFT_META_IIFNAME: c_int = 6;
5039 pub const NFT_META_OIFNAME: c_int = 7;
5040 pub const NFT_META_IIFTYPE: c_int = 8;
5041 pub const NFT_META_OIFTYPE: c_int = 9;
5042 pub const NFT_META_SKUID: c_int = 10;
5043 pub const NFT_META_SKGID: c_int = 11;
5044 pub const NFT_META_NFTRACE: c_int = 12;
5045 pub const NFT_META_RTCLASSID: c_int = 13;
5046 pub const NFT_META_SECMARK: c_int = 14;
5047 pub const NFT_META_NFPROTO: c_int = 15;
5048 pub const NFT_META_L4PROTO: c_int = 16;
5049 pub const NFT_META_BRI_IIFNAME: c_int = 17;
5050 pub const NFT_META_BRI_OIFNAME: c_int = 18;
5051 pub const NFT_META_PKTTYPE: c_int = 19;
5052 pub const NFT_META_CPU: c_int = 20;
5053 pub const NFT_META_IIFGROUP: c_int = 21;
5054 pub const NFT_META_OIFGROUP: c_int = 22;
5055 pub const NFT_META_CGROUP: c_int = 23;
5056 pub const NFT_META_PRANDOM: c_int = 24;
5058 pub const NFT_CT_STATE: c_int = 0;
5059 pub const NFT_CT_DIRECTION: c_int = 1;
5060 pub const NFT_CT_STATUS: c_int = 2;
5061 pub const NFT_CT_MARK: c_int = 3;
5062 pub const NFT_CT_SECMARK: c_int = 4;
5063 pub const NFT_CT_EXPIRATION: c_int = 5;
5064 pub const NFT_CT_HELPER: c_int = 6;
5065 pub const NFT_CT_L3PROTOCOL: c_int = 7;
5066 pub const NFT_CT_SRC: c_int = 8;
5067 pub const NFT_CT_DST: c_int = 9;
5068 pub const NFT_CT_PROTOCOL: c_int = 10;
5069 pub const NFT_CT_PROTO_SRC: c_int = 11;
5070 pub const NFT_CT_PROTO_DST: c_int = 12;
5071 pub const NFT_CT_LABELS: c_int = 13;
5072 pub const NFT_CT_PKTS: c_int = 14;
5073 pub const NFT_CT_BYTES: c_int = 15;
5074 pub const NFT_CT_AVGPKT: c_int = 16;
5075 pub const NFT_CT_ZONE: c_int = 17;
5076 pub const NFT_CT_EVENTMASK: c_int = 18;
5077 pub const NFT_CT_SRC_IP: c_int = 19;
5078 pub const NFT_CT_DST_IP: c_int = 20;
5079 pub const NFT_CT_SRC_IP6: c_int = 21;
5080 pub const NFT_CT_DST_IP6: c_int = 22;
5082 pub const NFT_LIMIT_PKTS: c_int = 0;
5083 pub const NFT_LIMIT_PKT_BYTES: c_int = 1;
5085 pub const NFT_LIMIT_F_INV: c_int = 1 << 0;
5087 pub const NFT_QUEUE_FLAG_BYPASS: c_int = 0x01;
5088 pub const NFT_QUEUE_FLAG_CPU_FANOUT: c_int = 0x02;
5089 pub const NFT_QUEUE_FLAG_MASK: c_int = 0x03;
5091 pub const NFT_QUOTA_F_INV: c_int = 1 << 0;
5093 pub const NFT_REJECT_ICMP_UNREACH: c_int = 0;
5094 pub const NFT_REJECT_TCP_RST: c_int = 1;
5095 pub const NFT_REJECT_ICMPX_UNREACH: c_int = 2;
5097 pub const NFT_REJECT_ICMPX_NO_ROUTE: c_int = 0;
5098 pub const NFT_REJECT_ICMPX_PORT_UNREACH: c_int = 1;
5099 pub const NFT_REJECT_ICMPX_HOST_UNREACH: c_int = 2;
5100 pub const NFT_REJECT_ICMPX_ADMIN_PROHIBITED: c_int = 3;
5102 pub const NFT_NAT_SNAT: c_int = 0;
5103 pub const NFT_NAT_DNAT: c_int = 1;
5105 pub const NFT_TRACETYPE_UNSPEC: c_int = 0;
5106 pub const NFT_TRACETYPE_POLICY: c_int = 1;
5107 pub const NFT_TRACETYPE_RETURN: c_int = 2;
5108 pub const NFT_TRACETYPE_RULE: c_int = 3;
5110 pub const NFT_NG_INCREMENTAL: c_int = 0;
5111 pub const NFT_NG_RANDOM: c_int = 1;
5240 pub const FAN_NOFD: c_int = -1;
5241 pub const FAN_NOPIDFD: c_int = FAN_NOFD;
5242 pub const FAN_EPIDFD: c_int = -2;
5245 pub const FUTEX_WAIT: c_int = 0;
5246 pub const FUTEX_WAKE: c_int = 1;
5247 pub const FUTEX_FD: c_int = 2;
5248 pub const FUTEX_REQUEUE: c_int = 3;
5249 pub const FUTEX_CMP_REQUEUE: c_int = 4;
5250 pub const FUTEX_WAKE_OP: c_int = 5;
5251 pub const FUTEX_LOCK_PI: c_int = 6;
5252 pub const FUTEX_UNLOCK_PI: c_int = 7;
5253 pub const FUTEX_TRYLOCK_PI: c_int = 8;
5254 pub const FUTEX_WAIT_BITSET: c_int = 9;
5255 pub const FUTEX_WAKE_BITSET: c_int = 10;
5256 pub const FUTEX_WAIT_REQUEUE_PI: c_int = 11;
5257 pub const FUTEX_CMP_REQUEUE_PI: c_int = 12;
5258 pub const FUTEX_LOCK_PI2: c_int = 13;
5260 pub const FUTEX_PRIVATE_FLAG: c_int = 128;
5261 pub const FUTEX_CLOCK_REALTIME: c_int = 256;
5262 pub const FUTEX_CMD_MASK: c_int = !(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME);
5268 pub const FUTEX_BITSET_MATCH_ANY: c_int = 0xffffffff;
5270 pub const FUTEX_OP_SET: c_int = 0;
5271 pub const FUTEX_OP_ADD: c_int = 1;
5272 pub const FUTEX_OP_OR: c_int = 2;
5273 pub const FUTEX_OP_ANDN: c_int = 3;
5274 pub const FUTEX_OP_XOR: c_int = 4;
5276 pub const FUTEX_OP_OPARG_SHIFT: c_int = 8;
5278 pub const FUTEX_OP_CMP_EQ: c_int = 0;
5279 pub const FUTEX_OP_CMP_NE: c_int = 1;
5280 pub const FUTEX_OP_CMP_LT: c_int = 2;
5281 pub const FUTEX_OP_CMP_LE: c_int = 3;
5282 pub const FUTEX_OP_CMP_GT: c_int = 4;
5283 pub const FUTEX_OP_CMP_GE: c_int = 5;
5285 pub fn FUTEX_OP(op: c_int, oparg: c_int, cmp: c_int, cmparg: c_int) -> c_int { in FUTEX_OP() argument
5290 pub const KEXEC_ON_CRASH: c_int = 0x00000001;
5291 pub const KEXEC_PRESERVE_CONTEXT: c_int = 0x00000002;
5292 pub const KEXEC_ARCH_MASK: c_int = 0xffff0000;
5293 pub const KEXEC_FILE_UNLOAD: c_int = 0x00000001;
5294 pub const KEXEC_FILE_ON_CRASH: c_int = 0x00000002;
5295 pub const KEXEC_FILE_NO_INITRAMFS: c_int = 0x00000004;
5298 pub const LINUX_REBOOT_MAGIC1: c_int = 0xfee1dead;
5299 pub const LINUX_REBOOT_MAGIC2: c_int = 672274793;
5300 pub const LINUX_REBOOT_MAGIC2A: c_int = 85072278;
5301 pub const LINUX_REBOOT_MAGIC2B: c_int = 369367448;
5302 pub const LINUX_REBOOT_MAGIC2C: c_int = 537993216;
5304 pub const LINUX_REBOOT_CMD_RESTART: c_int = 0x01234567;
5305 pub const LINUX_REBOOT_CMD_HALT: c_int = 0xCDEF0123;
5306 pub const LINUX_REBOOT_CMD_CAD_ON: c_int = 0x89ABCDEF;
5307 pub const LINUX_REBOOT_CMD_CAD_OFF: c_int = 0x00000000;
5308 pub const LINUX_REBOOT_CMD_POWER_OFF: c_int = 0x4321FEDC;
5309 pub const LINUX_REBOOT_CMD_RESTART2: c_int = 0xA1B2C3D4;
5310 pub const LINUX_REBOOT_CMD_SW_SUSPEND: c_int = 0xD000FCE2;
5311 pub const LINUX_REBOOT_CMD_KEXEC: c_int = 0x45584543;
5313 pub const REG_EXTENDED: c_int = 1;
5314 pub const REG_ICASE: c_int = 2;
5315 pub const REG_NEWLINE: c_int = 4;
5316 pub const REG_NOSUB: c_int = 8;
5318 pub const REG_NOTBOL: c_int = 1;
5319 pub const REG_NOTEOL: c_int = 2;
5321 pub const REG_ENOSYS: c_int = -1;
5322 pub const REG_NOMATCH: c_int = 1;
5323 pub const REG_BADPAT: c_int = 2;
5324 pub const REG_ECOLLATE: c_int = 3;
5325 pub const REG_ECTYPE: c_int = 4;
5326 pub const REG_EESCAPE: c_int = 5;
5327 pub const REG_ESUBREG: c_int = 6;
5328 pub const REG_EBRACK: c_int = 7;
5329 pub const REG_EPAREN: c_int = 8;
5330 pub const REG_EBRACE: c_int = 9;
5331 pub const REG_BADBR: c_int = 10;
5332 pub const REG_ERANGE: c_int = 11;
5333 pub const REG_ESPACE: c_int = 12;
5334 pub const REG_BADRPT: c_int = 13;
5345 pub const EPERM: c_int = 1;
5346 pub const ENOENT: c_int = 2;
5347 pub const ESRCH: c_int = 3;
5348 pub const EINTR: c_int = 4;
5349 pub const EIO: c_int = 5;
5350 pub const ENXIO: c_int = 6;
5351 pub const E2BIG: c_int = 7;
5352 pub const ENOEXEC: c_int = 8;
5353 pub const EBADF: c_int = 9;
5354 pub const ECHILD: c_int = 10;
5355 pub const EAGAIN: c_int = 11;
5356 pub const ENOMEM: c_int = 12;
5357 pub const EACCES: c_int = 13;
5358 pub const EFAULT: c_int = 14;
5359 pub const ENOTBLK: c_int = 15;
5360 pub const EBUSY: c_int = 16;
5361 pub const EEXIST: c_int = 17;
5362 pub const EXDEV: c_int = 18;
5363 pub const ENODEV: c_int = 19;
5364 pub const ENOTDIR: c_int = 20;
5365 pub const EISDIR: c_int = 21;
5366 pub const EINVAL: c_int = 22;
5367 pub const ENFILE: c_int = 23;
5368 pub const EMFILE: c_int = 24;
5369 pub const ENOTTY: c_int = 25;
5370 pub const ETXTBSY: c_int = 26;
5371 pub const EFBIG: c_int = 27;
5372 pub const ENOSPC: c_int = 28;
5373 pub const ESPIPE: c_int = 29;
5374 pub const EROFS: c_int = 30;
5375 pub const EMLINK: c_int = 31;
5376 pub const EPIPE: c_int = 32;
5377 pub const EDOM: c_int = 33;
5378 pub const ERANGE: c_int = 34;
5379 pub const EWOULDBLOCK: c_int = EAGAIN;
5390 pub const CAN_SFF_ID_BITS: c_int = 11;
5391 pub const CAN_EFF_ID_BITS: c_int = 29;
5392 pub const CANXL_PRIO_BITS: c_int = CAN_SFF_ID_BITS;
5394 pub const CAN_MAX_DLC: c_int = 8;
5396 pub const CANFD_MAX_DLC: c_int = 15;
5399 pub const CANFD_BRS: c_int = 0x01;
5400 pub const CANFD_ESI: c_int = 0x02;
5401 pub const CANFD_FDF: c_int = 0x04;
5403 pub const CANXL_MIN_DLC: c_int = 0;
5404 pub const CANXL_MAX_DLC: c_int = 2047;
5405 pub const CANXL_MAX_DLC_MASK: c_int = 0x07FF;
5409 pub const CANXL_XLF: c_int = 0x80;
5410 pub const CANXL_SEC: c_int = 0x01;
5422 pub const CAN_RAW: c_int = 1;
5423 pub const CAN_BCM: c_int = 2;
5424 pub const CAN_TP16: c_int = 3;
5425 pub const CAN_TP20: c_int = 4;
5426 pub const CAN_MCNET: c_int = 5;
5427 pub const CAN_ISOTP: c_int = 6;
5428 pub const CAN_J1939: c_int = 7;
5429 pub const CAN_NPROTO: c_int = 8;
5431 pub const SOL_CAN_BASE: c_int = 100;
5434 pub const CAN_RAW_FILTER_MAX: c_int = 512;
5437 pub const SOL_CAN_RAW: c_int = SOL_CAN_BASE + CAN_RAW;
5438 pub const CAN_RAW_FILTER: c_int = 1;
5439 pub const CAN_RAW_ERR_FILTER: c_int = 2;
5440 pub const CAN_RAW_LOOPBACK: c_int = 3;
5441 pub const CAN_RAW_RECV_OWN_MSGS: c_int = 4;
5442 pub const CAN_RAW_FD_FRAMES: c_int = 5;
5443 pub const CAN_RAW_JOIN_FILTERS: c_int = 6;
5444 pub const CAN_RAW_XL_FRAMES: c_int = 7;
5447 pub const SOL_CAN_J1939: c_int = SOL_CAN_BASE + CAN_J1939;
5460 pub const SO_J1939_FILTER: c_int = 1;
5461 pub const SO_J1939_PROMISC: c_int = 2;
5462 pub const SO_J1939_SEND_PRIO: c_int = 3;
5463 pub const SO_J1939_ERRQUEUE: c_int = 4;
5465 pub const SCM_J1939_DEST_ADDR: c_int = 1;
5466 pub const SCM_J1939_DEST_NAME: c_int = 2;
5467 pub const SCM_J1939_PRIO: c_int = 3;
5468 pub const SCM_J1939_ERRQUEUE: c_int = 4;
5470 pub const J1939_NLA_PAD: c_int = 0;
5471 pub const J1939_NLA_BYTES_ACKED: c_int = 1;
5472 pub const J1939_NLA_TOTAL_SIZE: c_int = 2;
5473 pub const J1939_NLA_PGN: c_int = 3;
5474 pub const J1939_NLA_SRC_NAME: c_int = 4;
5475 pub const J1939_NLA_DEST_NAME: c_int = 5;
5476 pub const J1939_NLA_SRC_ADDR: c_int = 6;
5477 pub const J1939_NLA_DEST_ADDR: c_int = 7;
5479 pub const J1939_EE_INFO_NONE: c_int = 0;
5480 pub const J1939_EE_INFO_TX_ABORT: c_int = 1;
5481 pub const J1939_EE_INFO_RX_RTS: c_int = 2;
5482 pub const J1939_EE_INFO_RX_DPO: c_int = 3;
5483 pub const J1939_EE_INFO_RX_ABORT: c_int = 4;
5485 pub const J1939_FILTER_MAX: c_int = 512;
5488 pub const SCTP_FUTURE_ASSOC: c_int = 0;
5489 pub const SCTP_CURRENT_ASSOC: c_int = 1;
5490 pub const SCTP_ALL_ASSOC: c_int = 2;
5491 pub const SCTP_RTOINFO: c_int = 0;
5492 pub const SCTP_ASSOCINFO: c_int = 1;
5493 pub const SCTP_INITMSG: c_int = 2;
5494 pub const SCTP_NODELAY: c_int = 3;
5495 pub const SCTP_AUTOCLOSE: c_int = 4;
5496 pub const SCTP_SET_PEER_PRIMARY_ADDR: c_int = 5;
5497 pub const SCTP_PRIMARY_ADDR: c_int = 6;
5498 pub const SCTP_ADAPTATION_LAYER: c_int = 7;
5499 pub const SCTP_DISABLE_FRAGMENTS: c_int = 8;
5500 pub const SCTP_PEER_ADDR_PARAMS: c_int = 9;
5501 pub const SCTP_DEFAULT_SEND_PARAM: c_int = 10;
5502 pub const SCTP_EVENTS: c_int = 11;
5503 pub const SCTP_I_WANT_MAPPED_V4_ADDR: c_int = 12;
5504 pub const SCTP_MAXSEG: c_int = 13;
5505 pub const SCTP_STATUS: c_int = 14;
5506 pub const SCTP_GET_PEER_ADDR_INFO: c_int = 15;
5507 pub const SCTP_DELAYED_ACK_TIME: c_int = 16;
5508 pub const SCTP_DELAYED_ACK: c_int = SCTP_DELAYED_ACK_TIME;
5509 pub const SCTP_DELAYED_SACK: c_int = SCTP_DELAYED_ACK_TIME;
5510 pub const SCTP_CONTEXT: c_int = 17;
5511 pub const SCTP_FRAGMENT_INTERLEAVE: c_int = 18;
5512 pub const SCTP_PARTIAL_DELIVERY_POINT: c_int = 19;
5513 pub const SCTP_MAX_BURST: c_int = 20;
5514 pub const SCTP_AUTH_CHUNK: c_int = 21;
5515 pub const SCTP_HMAC_IDENT: c_int = 22;
5516 pub const SCTP_AUTH_KEY: c_int = 23;
5517 pub const SCTP_AUTH_ACTIVE_KEY: c_int = 24;
5518 pub const SCTP_AUTH_DELETE_KEY: c_int = 25;
5519 pub const SCTP_PEER_AUTH_CHUNKS: c_int = 26;
5520 pub const SCTP_LOCAL_AUTH_CHUNKS: c_int = 27;
5521 pub const SCTP_GET_ASSOC_NUMBER: c_int = 28;
5522 pub const SCTP_GET_ASSOC_ID_LIST: c_int = 29;
5523 pub const SCTP_AUTO_ASCONF: c_int = 30;
5524 pub const SCTP_PEER_ADDR_THLDS: c_int = 31;
5525 pub const SCTP_RECVRCVINFO: c_int = 32;
5526 pub const SCTP_RECVNXTINFO: c_int = 33;
5527 pub const SCTP_DEFAULT_SNDINFO: c_int = 34;
5528 pub const SCTP_AUTH_DEACTIVATE_KEY: c_int = 35;
5529 pub const SCTP_REUSE_PORT: c_int = 36;
5530 pub const SCTP_PEER_ADDR_THLDS_V2: c_int = 37;
5531 pub const SCTP_PR_SCTP_NONE: c_int = 0x0000;
5532 pub const SCTP_PR_SCTP_TTL: c_int = 0x0010;
5533 pub const SCTP_PR_SCTP_RTX: c_int = 0x0020;
5534 pub const SCTP_PR_SCTP_PRIO: c_int = 0x0030;
5535 pub const SCTP_PR_SCTP_MAX: c_int = SCTP_PR_SCTP_PRIO;
5536 pub const SCTP_PR_SCTP_MASK: c_int = 0x0030;
5537 pub const SCTP_ENABLE_RESET_STREAM_REQ: c_int = 0x01;
5538 pub const SCTP_ENABLE_RESET_ASSOC_REQ: c_int = 0x02;
5539 pub const SCTP_ENABLE_CHANGE_ASSOC_REQ: c_int = 0x04;
5540 pub const SCTP_ENABLE_STRRESET_MASK: c_int = 0x07;
5541 pub const SCTP_STREAM_RESET_INCOMING: c_int = 0x01;
5542 pub const SCTP_STREAM_RESET_OUTGOING: c_int = 0x02;
5544 pub const SCTP_INIT: c_int = 0;
5545 pub const SCTP_SNDRCV: c_int = 1;
5546 pub const SCTP_SNDINFO: c_int = 2;
5547 pub const SCTP_RCVINFO: c_int = 3;
5548 pub const SCTP_NXTINFO: c_int = 4;
5549 pub const SCTP_PRINFO: c_int = 5;
5550 pub const SCTP_AUTHINFO: c_int = 6;
5551 pub const SCTP_DSTADDRV4: c_int = 7;
5552 pub const SCTP_DSTADDRV6: c_int = 8;
5554 pub const SCTP_UNORDERED: c_int = 1 << 0;
5555 pub const SCTP_ADDR_OVER: c_int = 1 << 1;
5556 pub const SCTP_ABORT: c_int = 1 << 2;
5557 pub const SCTP_SACK_IMMEDIATELY: c_int = 1 << 3;
5558 pub const SCTP_SENDALL: c_int = 1 << 6;
5559 pub const SCTP_PR_SCTP_ALL: c_int = 1 << 7;
5560 pub const SCTP_NOTIFICATION: c_int = MSG_NOTIFICATION;
5561 pub const SCTP_EOF: c_int = crate::MSG_FIN;
5564 pub const DCCP_SOCKOPT_PACKET_SIZE: c_int = 1;
5565 pub const DCCP_SOCKOPT_SERVICE: c_int = 2;
5566 pub const DCCP_SOCKOPT_CHANGE_L: c_int = 3;
5567 pub const DCCP_SOCKOPT_CHANGE_R: c_int = 4;
5568 pub const DCCP_SOCKOPT_GET_CUR_MPS: c_int = 5;
5569 pub const DCCP_SOCKOPT_SERVER_TIMEWAIT: c_int = 6;
5570 pub const DCCP_SOCKOPT_SEND_CSCOV: c_int = 10;
5571 pub const DCCP_SOCKOPT_RECV_CSCOV: c_int = 11;
5572 pub const DCCP_SOCKOPT_AVAILABLE_CCIDS: c_int = 12;
5573 pub const DCCP_SOCKOPT_CCID: c_int = 13;
5574 pub const DCCP_SOCKOPT_TX_CCID: c_int = 14;
5575 pub const DCCP_SOCKOPT_RX_CCID: c_int = 15;
5576 pub const DCCP_SOCKOPT_QPOLICY_ID: c_int = 16;
5577 pub const DCCP_SOCKOPT_QPOLICY_TXQLEN: c_int = 17;
5578 pub const DCCP_SOCKOPT_CCID_RX_INFO: c_int = 128;
5579 pub const DCCP_SOCKOPT_CCID_TX_INFO: c_int = 192;
5582 pub const DCCP_SERVICE_LIST_MAX_LEN: c_int = 32;
5584 pub const CTL_KERN: c_int = 1;
5585 pub const CTL_VM: c_int = 2;
5586 pub const CTL_NET: c_int = 3;
5587 pub const CTL_FS: c_int = 5;
5588 pub const CTL_DEBUG: c_int = 6;
5589 pub const CTL_DEV: c_int = 7;
5590 pub const CTL_BUS: c_int = 8;
5591 pub const CTL_ABI: c_int = 9;
5592 pub const CTL_CPU: c_int = 10;
5594 pub const CTL_BUS_ISA: c_int = 1;
5596 pub const INOTIFY_MAX_USER_INSTANCES: c_int = 1;
5597 pub const INOTIFY_MAX_USER_WATCHES: c_int = 2;
5598 pub const INOTIFY_MAX_QUEUED_EVENTS: c_int = 3;
5600 pub const KERN_OSTYPE: c_int = 1;
5601 pub const KERN_OSRELEASE: c_int = 2;
5602 pub const KERN_OSREV: c_int = 3;
5603 pub const KERN_VERSION: c_int = 4;
5604 pub const KERN_SECUREMASK: c_int = 5;
5605 pub const KERN_PROF: c_int = 6;
5606 pub const KERN_NODENAME: c_int = 7;
5607 pub const KERN_DOMAINNAME: c_int = 8;
5608 pub const KERN_PANIC: c_int = 15;
5609 pub const KERN_REALROOTDEV: c_int = 16;
5610 pub const KERN_SPARC_REBOOT: c_int = 21;
5611 pub const KERN_CTLALTDEL: c_int = 22;
5612 pub const KERN_PRINTK: c_int = 23;
5613 pub const KERN_NAMETRANS: c_int = 24;
5614 pub const KERN_PPC_HTABRECLAIM: c_int = 25;
5615 pub const KERN_PPC_ZEROPAGED: c_int = 26;
5616 pub const KERN_PPC_POWERSAVE_NAP: c_int = 27;
5617 pub const KERN_MODPROBE: c_int = 28;
5618 pub const KERN_SG_BIG_BUFF: c_int = 29;
5619 pub const KERN_ACCT: c_int = 30;
5620 pub const KERN_PPC_L2CR: c_int = 31;
5621 pub const KERN_RTSIGNR: c_int = 32;
5622 pub const KERN_RTSIGMAX: c_int = 33;
5623 pub const KERN_SHMMAX: c_int = 34;
5624 pub const KERN_MSGMAX: c_int = 35;
5625 pub const KERN_MSGMNB: c_int = 36;
5626 pub const KERN_MSGPOOL: c_int = 37;
5627 pub const KERN_SYSRQ: c_int = 38;
5628 pub const KERN_MAX_THREADS: c_int = 39;
5629 pub const KERN_RANDOM: c_int = 40;
5630 pub const KERN_SHMALL: c_int = 41;
5631 pub const KERN_MSGMNI: c_int = 42;
5632 pub const KERN_SEM: c_int = 43;
5633 pub const KERN_SPARC_STOP_A: c_int = 44;
5634 pub const KERN_SHMMNI: c_int = 45;
5635 pub const KERN_OVERFLOWUID: c_int = 46;
5636 pub const KERN_OVERFLOWGID: c_int = 47;
5637 pub const KERN_SHMPATH: c_int = 48;
5638 pub const KERN_HOTPLUG: c_int = 49;
5639 pub const KERN_IEEE_EMULATION_WARNINGS: c_int = 50;
5640 pub const KERN_S390_USER_DEBUG_LOGGING: c_int = 51;
5641 pub const KERN_CORE_USES_PID: c_int = 52;
5642 pub const KERN_TAINTED: c_int = 53;
5643 pub const KERN_CADPID: c_int = 54;
5644 pub const KERN_PIDMAX: c_int = 55;
5645 pub const KERN_CORE_PATTERN: c_int = 56;
5646 pub const KERN_PANIC_ON_OOPS: c_int = 57;
5647 pub const KERN_HPPA_PWRSW: c_int = 58;
5648 pub const KERN_HPPA_UNALIGNED: c_int = 59;
5649 pub const KERN_PRINTK_RATELIMIT: c_int = 60;
5650 pub const KERN_PRINTK_RATELIMIT_BURST: c_int = 61;
5651 pub const KERN_PTY: c_int = 62;
5652 pub const KERN_NGROUPS_MAX: c_int = 63;
5653 pub const KERN_SPARC_SCONS_PWROFF: c_int = 64;
5654 pub const KERN_HZ_TIMER: c_int = 65;
5655 pub const KERN_UNKNOWN_NMI_PANIC: c_int = 66;
5656 pub const KERN_BOOTLOADER_TYPE: c_int = 67;
5657 pub const KERN_RANDOMIZE: c_int = 68;
5658 pub const KERN_SETUID_DUMPABLE: c_int = 69;
5659 pub const KERN_SPIN_RETRY: c_int = 70;
5660 pub const KERN_ACPI_VIDEO_FLAGS: c_int = 71;
5661 pub const KERN_IA64_UNALIGNED: c_int = 72;
5662 pub const KERN_COMPAT_LOG: c_int = 73;
5663 pub const KERN_MAX_LOCK_DEPTH: c_int = 74;
5664 pub const KERN_NMI_WATCHDOG: c_int = 75;
5665 pub const KERN_PANIC_ON_NMI: c_int = 76;
5667 pub const VM_OVERCOMMIT_MEMORY: c_int = 5;
5668 pub const VM_PAGE_CLUSTER: c_int = 10;
5669 pub const VM_DIRTY_BACKGROUND: c_int = 11;
5670 pub const VM_DIRTY_RATIO: c_int = 12;
5671 pub const VM_DIRTY_WB_CS: c_int = 13;
5672 pub const VM_DIRTY_EXPIRE_CS: c_int = 14;
5673 pub const VM_NR_PDFLUSH_THREADS: c_int = 15;
5674 pub const VM_OVERCOMMIT_RATIO: c_int = 16;
5675 pub const VM_PAGEBUF: c_int = 17;
5676 pub const VM_HUGETLB_PAGES: c_int = 18;
5677 pub const VM_SWAPPINESS: c_int = 19;
5678 pub const VM_LOWMEM_RESERVE_RATIO: c_int = 20;
5679 pub const VM_MIN_FREE_KBYTES: c_int = 21;
5680 pub const VM_MAX_MAP_COUNT: c_int = 22;
5681 pub const VM_LAPTOP_MODE: c_int = 23;
5682 pub const VM_BLOCK_DUMP: c_int = 24;
5683 pub const VM_HUGETLB_GROUP: c_int = 25;
5684 pub const VM_VFS_CACHE_PRESSURE: c_int = 26;
5685 pub const VM_LEGACY_VA_LAYOUT: c_int = 27;
5686 pub const VM_SWAP_TOKEN_TIMEOUT: c_int = 28;
5687 pub const VM_DROP_PAGECACHE: c_int = 29;
5688 pub const VM_PERCPU_PAGELIST_FRACTION: c_int = 30;
5689 pub const VM_ZONE_RECLAIM_MODE: c_int = 31;
5690 pub const VM_MIN_UNMAPPED: c_int = 32;
5691 pub const VM_PANIC_ON_OOM: c_int = 33;
5692 pub const VM_VDSO_ENABLED: c_int = 34;
5693 pub const VM_MIN_SLAB: c_int = 35;
5695 pub const NET_CORE: c_int = 1;
5696 pub const NET_ETHER: c_int = 2;
5697 pub const NET_802: c_int = 3;
5698 pub const NET_UNIX: c_int = 4;
5699 pub const NET_IPV4: c_int = 5;
5700 pub const NET_IPX: c_int = 6;
5701 pub const NET_ATALK: c_int = 7;
5702 pub const NET_NETROM: c_int = 8;
5703 pub const NET_AX25: c_int = 9;
5704 pub const NET_BRIDGE: c_int = 10;
5705 pub const NET_ROSE: c_int = 11;
5706 pub const NET_IPV6: c_int = 12;
5707 pub const NET_X25: c_int = 13;
5708 pub const NET_TR: c_int = 14;
5709 pub const NET_DECNET: c_int = 15;
5710 pub const NET_ECONET: c_int = 16;
5711 pub const NET_SCTP: c_int = 17;
5712 pub const NET_LLC: c_int = 18;
5713 pub const NET_NETFILTER: c_int = 19;
5714 pub const NET_DCCP: c_int = 20;
5715 pub const NET_IRDA: c_int = 412;
5719 pub const PF_VCPU: c_int = 0x00000001;
5721 pub const PF_IDLE: c_int = 0x00000002;
5723 pub const PF_EXITING: c_int = 0x00000004;
5725 pub const PF_POSTCOREDUMP: c_int = 0x00000008;
5727 pub const PF_IO_WORKER: c_int = 0x00000010;
5729 pub const PF_WQ_WORKER: c_int = 0x00000020;
5731 pub const PF_FORKNOEXEC: c_int = 0x00000040;
5733 pub const PF_MCE_PROCESS: c_int = 0x00000080;
5735 pub const PF_SUPERPRIV: c_int = 0x00000100;
5737 pub const PF_DUMPCORE: c_int = 0x00000200;
5739 pub const PF_SIGNALED: c_int = 0x00000400;
5743 pub const PF_MEMALLOC: c_int = 0x00000800;
5745 pub const PF_NPROC_EXCEEDED: c_int = 0x00001000;
5747 pub const PF_USED_MATH: c_int = 0x00002000;
5749 pub const PF_USER_WORKER: c_int = 0x00004000;
5751 pub const PF_NOFREEZE: c_int = 0x00008000;
5753 pub const PF_KSWAPD: c_int = 0x00020000;
5757 pub const PF_MEMALLOC_NOFS: c_int = 0x00040000;
5761 pub const PF_MEMALLOC_NOIO: c_int = 0x00080000;
5764 pub const PF_LOCAL_THROTTLE: c_int = 0x00100000;
5766 pub const PF_KTHREAD: c_int = 0x00200000;
5768 pub const PF_RANDOMIZE: c_int = 0x00400000;
5770 pub const PF_NO_SETAFFINITY: c_int = 0x04000000;
5772 pub const PF_MCE_EARLY: c_int = 0x08000000;
5776 pub const PF_MEMALLOC_PIN: c_int = 0x10000000;
5778 pub const PF_BLOCK_TS: c_int = 0x20000000;
5780 pub const PF_SUSPEND_TASK: c_int = PF_SUSPEND_TASK_UINT as _;
5788 pub const CSIGNAL: c_int = 0x000000ff;
5790 pub const SCHED_NORMAL: c_int = 0;
5791 pub const SCHED_OTHER: c_int = 0;
5792 pub const SCHED_FIFO: c_int = 1;
5793 pub const SCHED_RR: c_int = 2;
5794 pub const SCHED_BATCH: c_int = 3;
5795 pub const SCHED_IDLE: c_int = 5;
5796 pub const SCHED_DEADLINE: c_int = 6;
5798 pub const SCHED_RESET_ON_FORK: c_int = 0x40000000;
5800 pub const CLONE_PIDFD: c_int = 0x1000;
5802 pub const SCHED_FLAG_RESET_ON_FORK: c_int = 0x01;
5803 pub const SCHED_FLAG_RECLAIM: c_int = 0x02;
5804 pub const SCHED_FLAG_DL_OVERRUN: c_int = 0x04;
5805 pub const SCHED_FLAG_KEEP_POLICY: c_int = 0x08;
5806 pub const SCHED_FLAG_KEEP_PARAMS: c_int = 0x10;
5807 pub const SCHED_FLAG_UTIL_CLAMP_MIN: c_int = 0x20;
5808 pub const SCHED_FLAG_UTIL_CLAMP_MAX: c_int = 0x40;
5821 pub const XDP_MMAP_OFFSETS: c_int = 1;
5822 pub const XDP_RX_RING: c_int = 2;
5823 pub const XDP_TX_RING: c_int = 3;
5824 pub const XDP_UMEM_REG: c_int = 4;
5825 pub const XDP_UMEM_FILL_RING: c_int = 5;
5826 pub const XDP_UMEM_COMPLETION_RING: c_int = 6;
5827 pub const XDP_STATISTICS: c_int = 7;
5828 pub const XDP_OPTIONS: c_int = 8;
5837 pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: crate::c_int = 48;
5851 pub const SOL_XDP: c_int = 283;
5866 pub const MOUNT_ATTR_SIZE_VER0: c_int = 32;
5869 pub const NT_PRSTATUS: c_int = 1;
5870 pub const NT_PRFPREG: c_int = 2;
5871 pub const NT_FPREGSET: c_int = 2;
5872 pub const NT_PRPSINFO: c_int = 3;
5873 pub const NT_PRXREG: c_int = 4;
5874 pub const NT_TASKSTRUCT: c_int = 4;
5875 pub const NT_PLATFORM: c_int = 5;
5876 pub const NT_AUXV: c_int = 6;
5877 pub const NT_GWINDOWS: c_int = 7;
5878 pub const NT_ASRS: c_int = 8;
5879 pub const NT_PSTATUS: c_int = 10;
5880 pub const NT_PSINFO: c_int = 13;
5881 pub const NT_PRCRED: c_int = 14;
5882 pub const NT_UTSNAME: c_int = 15;
5883 pub const NT_LWPSTATUS: c_int = 16;
5884 pub const NT_LWPSINFO: c_int = 17;
5885 pub const NT_PRFPXREG: c_int = 20;
5887 pub const SCHED_FLAG_KEEP_ALL: c_int = SCHED_FLAG_KEEP_POLICY | SCHED_FLAG_KEEP_PARAMS;
5889 pub const SCHED_FLAG_UTIL_CLAMP: c_int = SCHED_FLAG_UTIL_CLAMP_MIN | SCHED_FLAG_UTIL_CLAMP_MAX;
5891 pub const SCHED_FLAG_ALL: c_int = SCHED_FLAG_RESET_ON_FORK
5902 pub const SI_DETHREAD: c_int = -7;
5903 pub const TRAP_PERF: c_int = 6;
5906 pub fn NLA_ALIGN(len: c_int) -> c_int {
5925 pub fn CPU_ALLOC_SIZE(count: c_int) -> size_t {
5955 pub fn CPU_COUNT_S(size: usize, cpuset: &cpu_set_t) -> c_int {
5961 s as c_int
5964 pub fn CPU_COUNT(cpuset: &cpu_set_t) -> c_int {
5972 pub fn SCTP_PR_INDEX(policy: c_int) -> c_int {
5976 pub fn SCTP_PR_POLICY(policy: c_int) -> c_int {
5980 pub fn SCTP_PR_SET_POLICY(flags: &mut c_int, policy: c_int) -> () {
6105 pub {const} fn SCTP_PR_TTL_ENABLED(policy: c_int) -> bool {
6109 pub {const} fn SCTP_PR_RTX_ENABLED(policy: c_int) -> bool {
6113 pub {const} fn SCTP_PR_PRIO_ENABLED(policy: c_int) -> bool {
6124 pub fn iopl(level: c_int) -> c_int;
6125 pub fn ioperm(from: c_ulong, num: c_ulong, turn_on: c_int) -> c_int;
6134 pub fn aio_read(aiocbp: *mut aiocb) -> c_int;
6136 pub fn aio_write(aiocbp: *mut aiocb) -> c_int;
6137 pub fn aio_fsync(op: c_int, aiocbp: *mut aiocb) -> c_int;
6139 pub fn aio_error(aiocbp: *const aiocb) -> c_int;
6145 nitems: c_int,
6147 ) -> c_int;
6149 pub fn aio_cancel(fd: c_int, aiocbp: *mut aiocb) -> c_int;
6152 mode: c_int,
6154 nitems: c_int,
6156 ) -> c_int;
6166 fd: c_int,
6168 iovcnt: c_int,
6173 fd: c_int,
6175 iovcnt: c_int,
6185 flags: c_int,
6186 ) -> c_int;
6187 pub fn getloadavg(loadavg: *mut c_double, nelem: c_int) -> c_int;
6205 pub fn futimes(fd: c_int, times: *const crate::timeval) -> c_int;
6223 ) -> c_int;
6225 pub fn mq_open(name: *const c_char, oflag: c_int, ...) -> crate::mqd_t;
6226 pub fn mq_close(mqd: crate::mqd_t) -> c_int;
6227 pub fn mq_unlink(name: *const c_char) -> c_int;
6247 ) -> c_int;
6255 ) -> c_int;
6256 pub fn mq_getattr(mqd: crate::mqd_t, attr: *mut crate::mq_attr) -> c_int;
6261 ) -> c_int;
6263 pub fn pthread_mutex_consistent(mutex: *mut pthread_mutex_t) -> c_int;
6264 pub fn pthread_cancel(thread: crate::pthread_t) -> c_int;
6267 robustness: *mut c_int,
6268 ) -> c_int;
6271 robustness: c_int,
6272 ) -> c_int;
6282 pub fn strerror_r(errnum: c_int, buf: *mut c_char, buflen: size_t) -> c_int; in strerror_r() argument
6284 pub fn abs(i: c_int) -> c_int; in abs() argument
6286 pub fn rand() -> c_int; in rand()
6300 pub fn lutimes(file: *const c_char, times: *const crate::timeval) -> c_int; in lutimes() argument
6314 pub fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int; in shm_open() argument
6315 pub fn shm_unlink(name: *const c_char) -> c_int; in shm_unlink() argument
6318 pub fn shmget(key: crate::key_t, size: size_t, shmflg: c_int) -> c_int; in shmget() argument
6319 pub fn shmat(shmid: c_int, shmaddr: *const c_void, shmflg: c_int) -> *mut c_void; in shmat() argument
6320 pub fn shmdt(shmaddr: *const c_void) -> c_int; in shmdt() argument
6322 pub fn shmctl(shmid: c_int, cmd: c_int, buf: *mut crate::shmid_ds) -> c_int; in shmctl() argument
6323 pub fn ftok(pathname: *const c_char, proj_id: c_int) -> crate::key_t; in ftok()
6324 pub fn semget(key: crate::key_t, nsems: c_int, semflag: c_int) -> c_int; in semget() argument
6325 pub fn semop(semid: c_int, sops: *mut crate::sembuf, nsops: size_t) -> c_int; in semop() argument
6327 pub fn semctl(semid: c_int, semnum: c_int, cmd: c_int, ...) -> c_int; in semctl() argument
6329 pub fn msgctl(msqid: c_int, cmd: c_int, buf: *mut msqid_ds) -> c_int; in msgctl() argument
6330 pub fn msgget(key: crate::key_t, msgflg: c_int) -> c_int; in msgget() argument
6332 msqid: c_int, in msgrcv() argument
6336 msgflg: c_int, in msgrcv() argument
6338 pub fn msgsnd(msqid: c_int, msgp: *const c_void, msgsz: size_t, msgflg: c_int) -> c_int; in msgsnd() argument
6340 pub fn mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int; in mprotect() argument
6341 pub fn __errno_location() -> *mut c_int; in __errno_location()
6344 pub fn fallocate(fd: c_int, mode: c_int, offset: off_t, len: off_t) -> c_int; in fallocate() argument
6346 pub fn posix_fallocate(fd: c_int, offset: off_t, len: off_t) -> c_int; in posix_fallocate() argument
6347 pub fn readahead(fd: c_int, offset: off64_t, count: size_t) -> ssize_t; in readahead() argument
6361 filedes: c_int, in fgetxattr() argument
6371 flags: c_int, in setxattr() argument
6372 ) -> c_int; in setxattr() argument
6378 flags: c_int, in lsetxattr() argument
6379 ) -> c_int; in lsetxattr() argument
6381 filedes: c_int, in fsetxattr() argument
6385 flags: c_int, in fsetxattr() argument
6386 ) -> c_int; in fsetxattr() argument
6389 pub fn flistxattr(filedes: c_int, list: *mut c_char, size: size_t) -> ssize_t; in flistxattr() argument
6390 pub fn removexattr(path: *const c_char, name: *const c_char) -> c_int; in removexattr() argument
6391 pub fn lremovexattr(path: *const c_char, name: *const c_char) -> c_int; in lremovexattr() argument
6392 pub fn fremovexattr(filedes: c_int, name: *const c_char) -> c_int; in fremovexattr() argument
6393 pub fn signalfd(fd: c_int, mask: *const crate::sigset_t, flags: c_int) -> c_int; in signalfd() argument
6394 pub fn timerfd_create(clockid: crate::clockid_t, flags: c_int) -> c_int; in timerfd_create() argument
6396 pub fn timerfd_gettime(fd: c_int, curr_value: *mut itimerspec) -> c_int; in timerfd_gettime() argument
6399 fd: c_int, in timerfd_settime() argument
6400 flags: c_int, in timerfd_settime() argument
6403 ) -> c_int; in timerfd_settime() argument
6404 pub fn quotactl(cmd: c_int, special: *const c_char, id: c_int, data: *mut c_char) -> c_int; in quotactl() argument
6406 epfd: c_int, in epoll_pwait() argument
6408 maxevents: c_int, in epoll_pwait() argument
6409 timeout: c_int, in epoll_pwait() argument
6411 ) -> c_int; in epoll_pwait() argument
6412 pub fn dup3(oldfd: c_int, newfd: c_int, flags: c_int) -> c_int; in dup3() argument
6418 ) -> c_int; in sigtimedwait() argument
6419 pub fn sigwaitinfo(set: *const sigset_t, info: *mut siginfo_t) -> c_int; in sigwaitinfo() argument
6422 fd: c_int, in accept4() argument
6425 flg: c_int, in accept4() argument
6426 ) -> c_int; in accept4() argument
6431 ) -> c_int; in pthread_getaffinity_np() argument
6436 ) -> c_int; in pthread_setaffinity_np() argument
6437 pub fn pthread_setschedprio(native: crate::pthread_t, priority: c_int) -> c_int; in pthread_setschedprio() argument
6438 pub fn reboot(how_to: c_int) -> c_int; in reboot() argument
6439 pub fn setfsgid(gid: crate::gid_t) -> c_int; in setfsgid() argument
6440 pub fn setfsuid(uid: crate::uid_t) -> c_int; in setfsuid() argument
6443 pub fn mkfifoat(dirfd: c_int, pathname: *const c_char, mode: mode_t) -> c_int; in mkfifoat() argument
6446 pub fn sync_file_range(fd: c_int, offset: off64_t, nbytes: off64_t, flags: c_uint) -> c_int; in sync_file_range() argument
6451 flags: c_int, in mremap() argument
6462 flags: c_int, in glob() argument
6463 errfunc: Option<extern "C" fn(epath: *const c_char, errno: c_int) -> c_int>, in glob() argument
6465 ) -> c_int; in glob()
6473 pub fn posix_madvise(addr: *mut c_void, len: size_t, advice: c_int) -> c_int; in posix_madvise() argument
6478 pub fn madvise(addr: *mut c_void, len: size_t, advice: c_int) -> c_int; in madvise() argument
6480 pub fn msync(addr: *mut c_void, len: size_t, flags: c_int) -> c_int; in msync() argument
6484 prot: c_int, in remap_file_pages() argument
6486 flags: c_int, in remap_file_pages() argument
6487 ) -> c_int; in remap_file_pages() argument
6489 socket: c_int, in recvfrom() argument
6492 flags: c_int, in recvfrom() argument
6497 pub fn mkstemps(template: *mut c_char, suffixlen: c_int) -> c_int; in mkstemps() argument
6501 pub fn vhangup() -> c_int; in vhangup()
6503 pub fn syncfs(fd: c_int) -> c_int; in syncfs() argument
6509 ) -> c_int; in sched_getaffinity() argument
6514 ) -> c_int; in sched_setaffinity() argument
6515 pub fn epoll_create(size: c_int) -> c_int; in epoll_create() argument
6516 pub fn epoll_create1(flags: c_int) -> c_int; in epoll_create1() argument
6518 epfd: c_int, in epoll_wait() argument
6520 maxevents: c_int, in epoll_wait() argument
6521 timeout: c_int, in epoll_wait() argument
6522 ) -> c_int; in epoll_wait() argument
6523 pub fn epoll_ctl(epfd: c_int, op: c_int, fd: c_int, event: *mut crate::epoll_event) -> c_int; in epoll_ctl() argument
6526 policy: *mut c_int, in pthread_getschedparam() argument
6528 ) -> c_int; in pthread_getschedparam() argument
6529 pub fn unshare(flags: c_int) -> c_int; in unshare() argument
6530 pub fn umount(target: *const c_char) -> c_int; in umount() argument
6531 pub fn sched_get_priority_max(policy: c_int) -> c_int; in sched_get_priority_max() argument
6532 pub fn tee(fd_in: c_int, fd_out: c_int, len: size_t, flags: c_uint) -> ssize_t; in tee() argument
6534 pub fn settimeofday(tv: *const crate::timeval, tz: *const crate::timezone) -> c_int; in settimeofday() argument
6536 fd_in: c_int, in splice() argument
6538 fd_out: c_int, in splice() argument
6543 pub fn eventfd(init: c_uint, flags: c_int) -> c_int; in eventfd() argument
6544 pub fn eventfd_read(fd: c_int, value: *mut eventfd_t) -> c_int; in eventfd_read() argument
6545 pub fn eventfd_write(fd: c_int, value: eventfd_t) -> c_int; in eventfd_write() argument
6548 pub fn sched_rr_get_interval(pid: crate::pid_t, tp: *mut crate::timespec) -> c_int; in sched_rr_get_interval() argument
6550 pub fn sem_timedwait(sem: *mut sem_t, abstime: *const crate::timespec) -> c_int; in sem_timedwait() argument
6551 pub fn sem_getvalue(sem: *mut sem_t, sval: *mut c_int) -> c_int; in sem_getvalue() argument
6552 pub fn sched_setparam(pid: crate::pid_t, param: *const crate::sched_param) -> c_int; in sched_setparam() argument
6553 pub fn setns(fd: c_int, nstype: c_int) -> c_int; in setns() argument
6554 pub fn swapoff(path: *const c_char) -> c_int; in swapoff() argument
6555 pub fn vmsplice(fd: c_int, iov: *const crate::iovec, nr_segs: size_t, flags: c_uint) in vmsplice() argument
6563 ) -> c_int; in mount() argument
6564 pub fn personality(persona: c_ulong) -> c_int; in personality() argument
6566 pub fn prctl(option: c_int, ...) -> c_int; in prctl() argument
6567 pub fn sched_getparam(pid: crate::pid_t, param: *mut crate::sched_param) -> c_int; in sched_getparam() argument
6574 ) -> c_int; in ppoll() argument
6577 protocol: *mut c_int, in pthread_mutexattr_getprotocol() argument
6578 ) -> c_int; in pthread_mutexattr_getprotocol() argument
6579 pub fn pthread_mutexattr_setprotocol(attr: *mut pthread_mutexattr_t, protocol: c_int) -> c_int; in pthread_mutexattr_setprotocol() argument
6585 ) -> c_int; in pthread_mutex_timedlock() argument
6586 pub fn pthread_barrierattr_init(attr: *mut crate::pthread_barrierattr_t) -> c_int; in pthread_barrierattr_init() argument
6587 pub fn pthread_barrierattr_destroy(attr: *mut crate::pthread_barrierattr_t) -> c_int; in pthread_barrierattr_destroy() argument
6590 shared: *mut c_int, in pthread_barrierattr_getpshared() argument
6591 ) -> c_int; in pthread_barrierattr_getpshared() argument
6594 shared: c_int, in pthread_barrierattr_setpshared() argument
6595 ) -> c_int; in pthread_barrierattr_setpshared() argument
6600 ) -> c_int; in pthread_barrier_init() argument
6601 pub fn pthread_barrier_destroy(barrier: *mut pthread_barrier_t) -> c_int; in pthread_barrier_destroy() argument
6602 pub fn pthread_barrier_wait(barrier: *mut pthread_barrier_t) -> c_int; in pthread_barrier_wait() argument
6603 pub fn pthread_spin_init(lock: *mut crate::pthread_spinlock_t, pshared: c_int) -> c_int; in pthread_spin_init() argument
6604 pub fn pthread_spin_destroy(lock: *mut crate::pthread_spinlock_t) -> c_int; in pthread_spin_destroy() argument
6605 pub fn pthread_spin_lock(lock: *mut crate::pthread_spinlock_t) -> c_int; in pthread_spin_lock() argument
6606 pub fn pthread_spin_trylock(lock: *mut crate::pthread_spinlock_t) -> c_int; in pthread_spin_trylock() argument
6607 pub fn pthread_spin_unlock(lock: *mut crate::pthread_spinlock_t) -> c_int; in pthread_spin_unlock() argument
6609 cb: extern "C" fn(*mut c_void) -> c_int, in clone() argument
6611 flags: c_int, in clone() argument
6614 ) -> c_int; in clone() argument
6615 pub fn sched_getscheduler(pid: crate::pid_t) -> c_int; in sched_getscheduler() argument
6619 flags: c_int, in clock_nanosleep() argument
6622 ) -> c_int; in clock_nanosleep() argument
6626 ) -> c_int; in pthread_attr_getguardsize() argument
6627 pub fn pthread_attr_setguardsize(attr: *mut crate::pthread_attr_t, guardsize: size_t) -> c_int; in pthread_attr_setguardsize() argument
6630 inheritsched: *mut c_int, in pthread_attr_getinheritsched() argument
6631 ) -> c_int; in pthread_attr_getinheritsched() argument
6634 inheritsched: c_int, in pthread_attr_setinheritsched() argument
6635 ) -> c_int; in pthread_attr_setinheritsched() argument
6638 policy: *mut c_int, in pthread_attr_getschedpolicy() argument
6639 ) -> c_int; in pthread_attr_getschedpolicy() argument
6640 pub fn pthread_attr_setschedpolicy(attr: *mut crate::pthread_attr_t, policy: c_int) -> c_int; in pthread_attr_setschedpolicy() argument
6644 ) -> c_int; in pthread_attr_getschedparam() argument
6648 ) -> c_int; in pthread_attr_setschedparam() argument
6649 pub fn sethostname(name: *const c_char, len: size_t) -> c_int; in sethostname() argument
6650 pub fn sched_get_priority_min(policy: c_int) -> c_int; in sched_get_priority_min() argument
6653 pshared: *mut c_int, in pthread_condattr_getpshared() argument
6654 ) -> c_int; in pthread_condattr_getpshared() argument
6655 pub fn sysinfo(info: *mut crate::sysinfo) -> c_int; in sysinfo() argument
6656 pub fn umount2(target: *const c_char, flags: c_int) -> c_int; in umount2() argument
6659 policy: c_int, in pthread_setschedparam() argument
6661 ) -> c_int; in pthread_setschedparam() argument
6662 pub fn swapon(path: *const c_char, swapflags: c_int) -> c_int; in swapon() argument
6665 policy: c_int, in sched_setscheduler() argument
6667 ) -> c_int; in sched_setscheduler() argument
6669 pub fn sendfile(out_fd: c_int, in_fd: c_int, offset: *mut off_t, count: size_t) -> ssize_t; in sendfile() argument
6670 pub fn sigsuspend(mask: *const crate::sigset_t) -> c_int; in sigsuspend() argument
6677 ) -> c_int; in getgrgid_r() argument
6678 pub fn sigaltstack(ss: *const stack_t, oss: *mut stack_t) -> c_int; in sigaltstack() argument
6679 pub fn sem_close(sem: *mut sem_t) -> c_int; in sem_close() argument
6680 pub fn getdtablesize() -> c_int; in getdtablesize()
6687 ) -> c_int; in getgrnam_r() argument
6688 pub fn initgroups(user: *const c_char, group: crate::gid_t) -> c_int; in initgroups() argument
6689 pub fn pthread_sigmask(how: c_int, set: *const sigset_t, oldset: *mut sigset_t) -> c_int; in pthread_sigmask() argument
6690 pub fn sem_open(name: *const c_char, oflag: c_int, ...) -> *mut sem_t; in sem_open() argument
6692 pub fn pthread_kill(thread: crate::pthread_t, sig: c_int) -> c_int; in pthread_kill() argument
6693 pub fn sem_unlink(name: *const c_char) -> c_int; in sem_unlink() argument
6694 pub fn daemon(nochdir: c_int, noclose: c_int) -> c_int; in daemon() argument
6701 ) -> c_int; in getpwnam_r() argument
6708 ) -> c_int; in getpwuid_r() argument
6709 pub fn sigwait(set: *const sigset_t, sig: *mut c_int) -> c_int; in sigwait() argument
6714 ) -> c_int; in pthread_atfork() argument
6720 ngroups: *mut c_int, in getgrouplist() argument
6721 ) -> c_int; in getgrouplist() argument
6724 pshared: *mut c_int, in pthread_mutexattr_getpshared() argument
6725 ) -> c_int; in pthread_mutexattr_getpshared() argument
6727 pub fn faccessat(dirfd: c_int, pathname: *const c_char, mode: c_int, flags: c_int) -> c_int; in faccessat() argument
6733 ) -> c_int; in pthread_create() argument
6740 ) -> c_int, in dl_iterate_phdr() argument
6743 ) -> c_int; in dl_iterate_phdr()
6747 pub fn addmntent(stream: *mut crate::FILE, mnt: *const crate::mntent) -> c_int; in addmntent() argument
6748 pub fn endmntent(streamp: *mut crate::FILE) -> c_int; in endmntent() argument
6758 ) -> c_int; in posix_spawn() argument
6766 ) -> c_int; in posix_spawnp() argument
6767 pub fn posix_spawnattr_init(attr: *mut posix_spawnattr_t) -> c_int; in posix_spawnattr_init() argument
6768 pub fn posix_spawnattr_destroy(attr: *mut posix_spawnattr_t) -> c_int; in posix_spawnattr_destroy() argument
6772 ) -> c_int; in posix_spawnattr_getsigdefault() argument
6776 ) -> c_int; in posix_spawnattr_setsigdefault() argument
6780 ) -> c_int; in posix_spawnattr_getsigmask() argument
6784 ) -> c_int; in posix_spawnattr_setsigmask() argument
6785 pub fn posix_spawnattr_getflags(attr: *const posix_spawnattr_t, flags: *mut c_short) -> c_int; in posix_spawnattr_getflags() argument
6786 pub fn posix_spawnattr_setflags(attr: *mut posix_spawnattr_t, flags: c_short) -> c_int; in posix_spawnattr_setflags() argument
6790 ) -> c_int; in posix_spawnattr_getpgroup() argument
6791 pub fn posix_spawnattr_setpgroup(attr: *mut posix_spawnattr_t, flags: crate::pid_t) -> c_int; in posix_spawnattr_setpgroup() argument
6794 flags: *mut c_int, in posix_spawnattr_getschedpolicy() argument
6795 ) -> c_int; in posix_spawnattr_getschedpolicy() argument
6796 pub fn posix_spawnattr_setschedpolicy(attr: *mut posix_spawnattr_t, flags: c_int) -> c_int; in posix_spawnattr_setschedpolicy() argument
6800 ) -> c_int; in posix_spawnattr_getschedparam() argument
6804 ) -> c_int; in posix_spawnattr_setschedparam() argument
6806 pub fn posix_spawn_file_actions_init(actions: *mut posix_spawn_file_actions_t) -> c_int; in posix_spawn_file_actions_init() argument
6807 pub fn posix_spawn_file_actions_destroy(actions: *mut posix_spawn_file_actions_t) -> c_int; in posix_spawn_file_actions_destroy() argument
6810 fd: c_int, in posix_spawn_file_actions_addopen() argument
6812 oflag: c_int, in posix_spawn_file_actions_addopen() argument
6814 ) -> c_int; in posix_spawn_file_actions_addopen() argument
6817 fd: c_int, in posix_spawn_file_actions_addclose() argument
6818 ) -> c_int; in posix_spawn_file_actions_addclose() argument
6821 fd: c_int, in posix_spawn_file_actions_adddup2() argument
6822 newfd: c_int, in posix_spawn_file_actions_adddup2() argument
6823 ) -> c_int; in posix_spawn_file_actions_adddup2() argument
6830 pub fn inotify_rm_watch(fd: c_int, wd: c_int) -> c_int; in inotify_rm_watch() argument
6831 pub fn inotify_init() -> c_int; in inotify_init()
6832 pub fn inotify_init1(flags: c_int) -> c_int; in inotify_init1() argument
6833 pub fn inotify_add_watch(fd: c_int, path: *const c_char, mask: u32) -> c_int; in inotify_add_watch() argument
6834 pub fn fanotify_init(flags: c_uint, event_f_flags: c_uint) -> c_int; in fanotify_init() argument
6836 pub fn regcomp(preg: *mut crate::regex_t, pattern: *const c_char, cflags: c_int) -> c_int; in regcomp() argument
6843 eflags: c_int, in regexec() argument
6844 ) -> c_int; in regexec() argument
6847 errcode: c_int, in regerror() argument
6863 pub fn iconv_close(cd: iconv_t) -> c_int; in iconv_close() argument
6871 ) -> c_int; in timer_create() argument
6872 pub fn timer_delete(timerid: crate::timer_t) -> c_int; in timer_delete() argument
6873 pub fn timer_getoverrun(timerid: crate::timer_t) -> c_int; in timer_getoverrun() argument
6875 pub fn timer_gettime(timerid: crate::timer_t, curr_value: *mut crate::itimerspec) -> c_int; in timer_gettime() argument
6879 flags: c_int, in timer_settime() argument
6882 ) -> c_int; in timer_settime() argument
6886 pub fn pthread_getcpuclockid(thread: crate::pthread_t, clk_id: *mut crate::clockid_t) -> c_int; in pthread_getcpuclockid() argument
6893 pub fn sched_getcpu() -> c_int; in sched_getcpu()
6895 pub fn pthread_getname_np(thread: crate::pthread_t, name: *mut c_char, len: size_t) -> c_int; in pthread_getname_np() argument
6896 pub fn pthread_setname_np(thread: crate::pthread_t, name: *const c_char) -> c_int; in pthread_setname_np() argument
6898 argc: c_int, in getopt_long() argument
6902 longindex: *mut c_int, in getopt_long() argument
6903 ) -> c_int; in getopt_long() argument
6905 pub fn pthread_once(control: *mut pthread_once_t, routine: extern "C" fn()) -> c_int; in pthread_once() argument
6908 fd_in: c_int, in copy_file_range() argument
6910 fd_out: c_int, in copy_file_range() argument
6916 pub fn klogctl(syslog_type: c_int, bufp: *mut c_char, len: c_int) -> c_int; in klogctl() argument
6925 pub fn fallocate64(fd: c_int, mode: c_int, offset: off64_t, len: off64_t) -> c_int;
6926 pub fn fgetpos64(stream: *mut crate::FILE, ptr: *mut fpos64_t) -> c_int;
6933 pub fn fseeko64(stream: *mut crate::FILE, offset: off64_t, whence: c_int) -> c_int;
6934 pub fn fsetpos64(stream: *mut crate::FILE, ptr: *const fpos64_t) -> c_int;
6936 pub fn posix_fallocate64(fd: c_int, offset: off64_t, len: off64_t) -> c_int;
6938 out_fd: c_int,
6939 in_fd: c_int,