| //! Header: `sys/file.h` | ||
| //! | ||
| //! https://github.com/freebsd/freebsd-src/blob/main/sys/sys/file.h | ||
| use crate::prelude::*; | ||
| pub const DTYPE_NONE: c_int = 0; | ||
| pub const DTYPE_VNODE: c_int = 1; | ||
| pub const DTYPE_SOCKET: c_int = 2; | ||
| pub const DTYPE_PIPE: c_int = 3; | ||
| pub const DTYPE_FIFO: c_int = 4; | ||
| pub const DTYPE_KQUEUE: c_int = 5; | ||
| pub const DTYPE_CRYPTO: c_int = 6; | ||
| pub const DTYPE_MQUEUE: c_int = 7; | ||
| pub const DTYPE_SHM: c_int = 8; | ||
| pub const DTYPE_SEM: c_int = 9; | ||
| pub const DTYPE_PTS: c_int = 10; | ||
| pub const DTYPE_DEV: c_int = 11; | ||
| pub const DTYPE_PROCDESC: c_int = 12; | ||
| pub const DTYPE_EVENTFD: c_int = 13; | ||
| pub const DTYPE_TIMERFD: c_int = 14; | ||
| pub const DTYPE_INOTIFY: c_int = 15; | ||
| pub const DTYPE_JAILDESC: c_int = 16; | ||
| s! { | ||
| #[cfg(not(any(freebsd10, freebsd11)))] | ||
| pub struct xfile { | ||
| pub xf_size: crate::ksize_t, | ||
| pub xf_pid: crate::pid_t, | ||
| pub xf_uid: crate::uid_t, | ||
| pub xf_fd: c_int, | ||
| _xf_int_pad1: Padding<c_int>, | ||
| pub xf_file: crate::kvaddr_t, | ||
| pub xf_type: c_short, | ||
| _xf_short_pad1: Padding<c_short>, | ||
| pub xf_count: c_int, | ||
| pub xf_msgcount: c_int, | ||
| _xf_int_pad2: Padding<c_int>, | ||
| pub xf_offset: crate::off_t, | ||
| pub xf_data: crate::kvaddr_t, | ||
| pub xf_vnode: crate::kvaddr_t, | ||
| pub xf_flag: c_uint, | ||
| _xf_int_pad3: Padding<c_int>, | ||
| _xf_int64_pad: Padding<[i64; 6]>, | ||
| } | ||
| } |
| //! Directory: `sys/` | ||
| //! | ||
| //! https://github.com/freebsd/freebsd-src/tree/main/sys/sys' | ||
| pub(crate) mod file; |
| //! Header: `linux/can/netlink.h` | ||
| use crate::prelude::*; | ||
| s! { | ||
| pub struct can_bittiming { | ||
| pub bitrate: u32, | ||
| pub sample_point: u32, | ||
| pub tq: u32, | ||
| pub prop_seg: u32, | ||
| pub phase_seg1: u32, | ||
| pub phase_seg2: u32, | ||
| pub sjw: u32, | ||
| pub brp: u32, | ||
| } | ||
| pub struct can_bittiming_const { | ||
| pub name: [c_char; 16], | ||
| pub tseg1_min: u32, | ||
| pub tseg1_max: u32, | ||
| pub tseg2_min: u32, | ||
| pub tseg2_max: u32, | ||
| pub sjw_max: u32, | ||
| pub brp_min: u32, | ||
| pub brp_max: u32, | ||
| pub brp_inc: u32, | ||
| } | ||
| pub struct can_clock { | ||
| pub freq: u32, | ||
| } | ||
| pub struct can_berr_counter { | ||
| pub txerr: u16, | ||
| pub rxerr: u16, | ||
| } | ||
| pub struct can_ctrlmode { | ||
| pub mask: u32, | ||
| pub flags: u32, | ||
| } | ||
| pub struct can_device_stats { | ||
| pub bus_error: u32, | ||
| pub error_warning: u32, | ||
| pub error_passive: u32, | ||
| pub bus_off: u32, | ||
| pub arbitration_lost: u32, | ||
| pub restarts: u32, | ||
| } | ||
| } | ||
| c_enum! { | ||
| #[repr(c_uint)] | ||
| pub enum can_state { | ||
| pub CAN_STATE_ERROR_ACTIVE = 0, | ||
| pub CAN_STATE_ERROR_WARNING, | ||
| pub CAN_STATE_ERROR_PASSIVE, | ||
| pub CAN_STATE_BUS_OFF, | ||
| pub CAN_STATE_STOPPED, | ||
| pub CAN_STATE_SLEEPING, | ||
| } | ||
| } | ||
| pub const CAN_CTRLMODE_LOOPBACK: u32 = 0x01; | ||
| pub const CAN_CTRLMODE_LISTENONLY: u32 = 0x02; | ||
| pub const CAN_CTRLMODE_3_SAMPLES: u32 = 0x04; | ||
| pub const CAN_CTRLMODE_ONE_SHOT: u32 = 0x08; | ||
| pub const CAN_CTRLMODE_BERR_REPORTING: u32 = 0x10; | ||
| pub const CAN_CTRLMODE_FD: u32 = 0x20; | ||
| pub const CAN_CTRLMODE_PRESUME_ACK: u32 = 0x40; | ||
| pub const CAN_CTRLMODE_FD_NON_ISO: u32 = 0x80; | ||
| pub const CAN_CTRLMODE_CC_LEN8_DLC: u32 = 0x100; | ||
| pub const CAN_CTRLMODE_TDC_AUTO: u32 = 0x200; | ||
| pub const CAN_CTRLMODE_TDC_MANUAL: u32 = 0x400; | ||
| c_enum! { | ||
| #[repr(c_int)] | ||
| pub enum #anon { | ||
| pub IFLA_CAN_UNSPEC = 0, | ||
| pub IFLA_CAN_BITTIMING, | ||
| pub IFLA_CAN_BITTIMING_CONST, | ||
| pub IFLA_CAN_CLOCK, | ||
| pub IFLA_CAN_STATE, | ||
| pub IFLA_CAN_CTRLMODE, | ||
| pub IFLA_CAN_RESTART_MS, | ||
| pub IFLA_CAN_RESTART, | ||
| pub IFLA_CAN_BERR_COUNTER, | ||
| pub IFLA_CAN_DATA_BITTIMING, | ||
| pub IFLA_CAN_DATA_BITTIMING_CONST, | ||
| pub IFLA_CAN_TERMINATION, | ||
| pub IFLA_CAN_TERMINATION_CONST, | ||
| pub IFLA_CAN_BITRATE_CONST, | ||
| pub IFLA_CAN_DATA_BITRATE_CONST, | ||
| pub IFLA_CAN_BITRATE_MAX, | ||
| pub IFLA_CAN_TDC, | ||
| pub IFLA_CAN_CTRLMODE_EXT, | ||
| } | ||
| } | ||
| c_enum! { | ||
| #[repr(c_int)] | ||
| pub enum #anon { | ||
| pub IFLA_CAN_TDC_UNSPEC = 0, | ||
| pub IFLA_CAN_TDC_TDCV_MIN, | ||
| pub IFLA_CAN_TDC_TDCV_MAX, | ||
| pub IFLA_CAN_TDC_TDCO_MIN, | ||
| pub IFLA_CAN_TDC_TDCO_MAX, | ||
| pub IFLA_CAN_TDC_TDCF_MIN, | ||
| pub IFLA_CAN_TDC_TDCF_MAX, | ||
| pub IFLA_CAN_TDC_TDCV, | ||
| pub IFLA_CAN_TDC_TDCO, | ||
| pub IFLA_CAN_TDC_TDCF, | ||
| } | ||
| } | ||
| c_enum! { | ||
| #[repr(c_int)] | ||
| pub enum #anon { | ||
| pub IFLA_CAN_CTRLMODE_UNSPEC = 0, | ||
| pub IFLA_CAN_CTRLMODE_SUPPORTED, | ||
| } | ||
| } | ||
| pub const CAN_TERMINATION_DISABLED: u16 = 0; |
| { | ||
| "git": { | ||
| "sha1": "5660e6fc058d1c6c27788e3ea2bc7d3e79d3c22d" | ||
| "sha1": "b1fd610c7eb6026c108f318874283525871b0e77" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+1
-1
@@ -7,3 +7,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "libc" | ||
| version = "0.2.183" | ||
| version = "0.2.184" | ||
| dependencies = [ | ||
@@ -10,0 +10,0 @@ "rustc-std-workspace-core", |
+2
-2
@@ -14,5 +14,5 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| edition = "2021" | ||
| rust-version = "1.63" | ||
| rust-version = "1.65" | ||
| name = "libc" | ||
| version = "0.2.183" | ||
| version = "0.2.184" | ||
| authors = ["The Rust Project Developers"] | ||
@@ -19,0 +19,0 @@ build = "build.rs" |
+1
-1
@@ -60,3 +60,3 @@ # libc - Raw FFI bindings to platforms' system libraries | ||
| The minimum supported Rust toolchain version is currently **Rust 1.63**. | ||
| The minimum supported Rust toolchain version is currently **Rust 1.65**. | ||
@@ -63,0 +63,0 @@ Increases to the MSRV are allowed to change without a major (i.e. semver- |
+1
-0
@@ -30,2 +30,3 @@ //! libc - Raw FFI bindings to platforms' system libraries | ||
| #![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))] | ||
| // Some targets don't need `link_cfg` and emit a warning. | ||
| #![cfg_attr(feature = "rustc-dep-of-std", allow(unused_features))] | ||
@@ -32,0 +33,0 @@ // DIFF(1.0): The thread local references that raise this lint were removed in 1.0 |
@@ -27,3 +27,3 @@ //! Header: `arm/_structs.h` | ||
| pub struct __darwin_arm_neon_state64 { | ||
| pub __v: [crate::__uint128_t; 32], | ||
| pub __v: [u128; 32], | ||
| pub __fpsr: u32, | ||
@@ -30,0 +30,0 @@ pub __fpcr: u32, |
@@ -6,2 +6,3 @@ //! FreeBSD libc. | ||
| pub(crate) mod sys; | ||
| pub(crate) mod unistd; |
@@ -6,2 +6,3 @@ //! Header: `uapi/linux/can.h` | ||
| pub(crate) mod j1939; | ||
| pub(crate) mod netlink; | ||
| pub(crate) mod raw; | ||
@@ -8,0 +9,0 @@ |
+3
-0
@@ -182,2 +182,3 @@ //! This module contains the future directory structure. If possible, new definitions should | ||
| pub use linux::can::j1939::*; | ||
| pub use linux::can::netlink::*; | ||
| pub use linux::can::raw::*; | ||
@@ -214,2 +215,4 @@ pub use linux::can::*; | ||
| pub use net::if_::*; | ||
| } else if #[cfg(target_os = "freebsd")] { | ||
| pub use sys::file::*; | ||
| } | ||
@@ -216,0 +219,0 @@ } |
@@ -12,3 +12,5 @@ //! Header: `sys/time.h` | ||
| pub const CLOCK_VIRTUAL: crate::clockid_t = 1; | ||
| pub const CLOCK_PROF: crate::clockid_t = 2; | ||
| pub const CLOCK_THREAD_CPUTIME_ID: crate::clockid_t = 0x20000000; | ||
| pub const CLOCK_PROCESS_CPUTIME_ID: crate::clockid_t = 0x40000000; |
+20
-57
@@ -9,60 +9,19 @@ //! This module contains type aliases for C's platform-specific types | ||
| pub type c_schar = i8; | ||
| pub type c_uchar = u8; | ||
| pub type c_short = i16; | ||
| pub type c_ushort = u16; | ||
| // FIXME(1.0): Deprecate these aliases in a few releases, remove in 1.0. | ||
| pub use core::ffi::{ | ||
| c_char, | ||
| c_double, | ||
| c_float, | ||
| c_int, | ||
| c_long, | ||
| c_longlong, | ||
| c_schar, | ||
| c_short, | ||
| c_uchar, | ||
| c_uint, | ||
| c_ulong, | ||
| c_ulonglong, | ||
| c_ushort, | ||
| }; | ||
| pub type c_longlong = i64; | ||
| pub type c_ulonglong = u64; | ||
| pub type c_float = f32; | ||
| pub type c_double = f64; | ||
| cfg_if! { | ||
| if #[cfg(all( | ||
| not(windows), | ||
| not(target_vendor = "apple"), | ||
| not(target_os = "vita"), | ||
| any( | ||
| target_arch = "aarch64", | ||
| target_arch = "arm", | ||
| target_arch = "csky", | ||
| target_arch = "hexagon", | ||
| target_arch = "msp430", | ||
| target_arch = "powerpc", | ||
| target_arch = "powerpc64", | ||
| target_arch = "riscv32", | ||
| target_arch = "riscv64", | ||
| target_arch = "s390x", | ||
| target_arch = "xtensa", | ||
| ) | ||
| ))] { | ||
| pub type c_char = u8; | ||
| } else { | ||
| // On every other target, c_char is signed. | ||
| pub type c_char = i8; | ||
| } | ||
| } | ||
| cfg_if! { | ||
| if #[cfg(any(target_arch = "avr", target_arch = "msp430"))] { | ||
| pub type c_int = i16; | ||
| pub type c_uint = u16; | ||
| } else { | ||
| pub type c_int = i32; | ||
| pub type c_uint = u32; | ||
| } | ||
| } | ||
| cfg_if! { | ||
| if #[cfg(all(target_pointer_width = "64", not(windows)))] { | ||
| pub type c_long = i64; | ||
| pub type c_ulong = u64; | ||
| } else { | ||
| // The minimal size of `long` in the C standard is 32 bits | ||
| pub type c_long = i32; | ||
| pub type c_ulong = u32; | ||
| } | ||
| } | ||
| #[deprecated(since = "0.2.55", note = "Use i8 instead.")] | ||
@@ -88,10 +47,14 @@ pub type int8_t = i8; | ||
| /// C `__int128` (a GCC extension that's part of many ABIs) | ||
| #[deprecated(since = "0.2.184", note = "Use i128 instead.")] | ||
| pub type __int128 = i128; | ||
| /// C `unsigned __int128` (a GCC extension that's part of many ABIs) | ||
| #[deprecated(since = "0.2.184", note = "Use u128 instead.")] | ||
| pub type __uint128 = u128; | ||
| /// C __int128_t (alternate name for [__int128][]) | ||
| #[deprecated(since = "0.2.184", note = "Use i128 instead.")] | ||
| pub type __int128_t = i128; | ||
| /// C __uint128_t (alternate name for [__uint128][]) | ||
| #[deprecated(since = "0.2.184", note = "Use u128 instead.")] | ||
| pub type __uint128_t = u128; | ||
| } | ||
| } |
+5
-9
@@ -14,3 +14,3 @@ //! Platform-agnostic support types. | ||
| // lifted in the future if it becomes a problem. | ||
| #[allow(unused)] | ||
| #[allow(dead_code)] | ||
| #[repr(transparent)] | ||
@@ -27,10 +27,6 @@ #[derive(Clone, Copy)] | ||
| impl<T: Copy> Padding<T> { | ||
| /// Const constructor for uninitialized padding in const contexts. | ||
| // FIXME: Change this into zeroed() and use MaybeUninit::zeroed() | ||
| // when we depend on rustc 1.75.0. | ||
| #[allow(unused)] | ||
| pub(crate) const fn uninit() -> Self { | ||
| // We can still safely use uninit here, since padding is something | ||
| // that is not meant to be read or written anyways. | ||
| Self(MaybeUninit::uninit()) | ||
| /// Create a `Padding` initialized with the given value. | ||
| #[allow(dead_code)] | ||
| pub(crate) const fn new(val: T) -> Self { | ||
| Self(MaybeUninit::new(val)) | ||
| } | ||
@@ -37,0 +33,0 @@ } |
@@ -122,8 +122,8 @@ use crate::prelude::*; | ||
| // freebsd < 15 | ||
| #[cfg(any(freebsd11, freebsd12, freebsd13, freebsd14))] | ||
| #[cfg(any(freebsd11, freebsd12, freebsd13))] | ||
| pub mc_spare: [c_long; 4], | ||
| // freebsd >= 15 | ||
| #[cfg(not(any(freebsd11, freebsd12, freebsd13, freebsd14)))] | ||
| #[cfg(not(any(freebsd11, freebsd12, freebsd13)))] | ||
| pub mc_tlsbase: register_t, | ||
| #[cfg(not(any(freebsd11, freebsd12, freebsd13, freebsd14)))] | ||
| #[cfg(not(any(freebsd11, freebsd12, freebsd13)))] | ||
| pub mc_spare: [c_long; 3], | ||
@@ -130,0 +130,0 @@ } |
@@ -212,3 +212,3 @@ use crate::prelude::*; | ||
| attr: 0, | ||
| __reserved: Padding::uninit(), | ||
| __reserved: Padding::new([0; 12]), | ||
| }; | ||
@@ -215,0 +215,0 @@ pub const PTHREAD_STACK_MIN: size_t = 4096 * 2; |
@@ -81,3 +81,3 @@ use crate::off64_t; | ||
| pub struct user_fpsimd_struct { | ||
| pub vregs: [crate::__uint128_t; 32], | ||
| pub vregs: [u128; 32], | ||
| pub fpsr: u32, | ||
@@ -84,0 +84,0 @@ pub fpcr: u32, |
@@ -158,7 +158,7 @@ use crate::prelude::*; | ||
| value: 0, | ||
| __reserved: Padding::uninit(), | ||
| __reserved: Padding::new([0; 36]), | ||
| }; | ||
| pub const PTHREAD_COND_INITIALIZER: pthread_cond_t = pthread_cond_t { | ||
| value: 0, | ||
| __reserved: Padding::uninit(), | ||
| __reserved: Padding::new([0; 44]), | ||
| }; | ||
@@ -171,3 +171,3 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t { | ||
| attr: 0, | ||
| __reserved: Padding::uninit(), | ||
| __reserved: Padding::new([0; 36]), | ||
| }; | ||
@@ -174,0 +174,0 @@ pub const PTHREAD_STACK_MIN: size_t = 4096 * 4; |
@@ -226,3 +226,3 @@ //! AArch64-specific definitions for 64-bit linux-like values | ||
| pub struct user_fpsimd_struct { | ||
| pub vregs: [crate::__uint128_t; 32], | ||
| pub vregs: [u128; 32], | ||
| pub fpsr: c_uint, | ||
@@ -229,0 +229,0 @@ pub fpcr: c_uint, |
@@ -289,2 +289,7 @@ //! RISC-V-specific definitions for 64-bit linux-like values | ||
| } | ||
| #[repr(align(16))] | ||
| pub struct max_align_t { | ||
| priv_: [f32; 8], | ||
| } | ||
| } | ||
@@ -291,0 +296,0 @@ |
@@ -10,2 +10,3 @@ use crate::off64_t; | ||
| pub type __kernel_rwf_t = c_int; | ||
| pub type __be16 = crate::__u16; | ||
@@ -205,2 +206,3 @@ cfg_if! { | ||
| pub ret_data: crate::__u32, | ||
| reserved2: Padding<crate::__u32>, | ||
| } | ||
@@ -210,3 +212,4 @@ | ||
| pub op: crate::__u8, | ||
| pub pad: [crate::__u8; 3], | ||
| reserved: Padding<crate::__u8>, | ||
| pub flags: crate::__u16, | ||
| pub arch: crate::__u32, | ||
@@ -410,2 +413,11 @@ pub instruction_pointer: crate::__u64, | ||
| s_no_extra_traits! { | ||
| // linux/if_ether.h | ||
| #[repr(C, packed)] | ||
| pub struct ethhdr { | ||
| pub h_dest: [c_uchar; crate::ETH_ALEN as usize], | ||
| pub h_source: [c_uchar; crate::ETH_ALEN as usize], | ||
| pub h_proto: crate::__be16, | ||
| } | ||
| // Internal, for casts to access union fields | ||
@@ -412,0 +424,0 @@ struct sifields_sigchld { |
@@ -105,3 +105,3 @@ use crate::off_t; | ||
| pub struct user_fpsimd_struct { | ||
| pub vregs: [crate::__uint128_t; 32], | ||
| pub vregs: [u128; 32], | ||
| pub fpsr: u32, | ||
@@ -108,0 +108,0 @@ pub fpcr: u32, |
@@ -102,2 +102,13 @@ use crate::prelude::*; | ||
| pub const DT_UNKNOWN: u8 = 0; | ||
| pub const DT_REG: u8 = 1; | ||
| pub const DT_DIR: u8 = 2; | ||
| // Not used by esp-idf, but still defined in headers. | ||
| pub const DT_CHR: u8 = 4; | ||
| pub const DT_BLK: u8 = 6; | ||
| pub const DT_FIFO: u8 = 8; | ||
| pub const DT_LNK: u8 = 10; | ||
| pub const DT_SOCK: u8 = 12; | ||
| pub const DT_WHT: u8 = 14; | ||
| extern "C" { | ||
@@ -104,0 +115,0 @@ pub fn pthread_create( |
@@ -515,2 +515,3 @@ use crate::prelude::*; | ||
| pub const _SC_GETPW_R_SIZE_MAX: i32 = 0x25; | ||
| pub const _SC_HOST_NAME_MAX: i32 = 0x26; | ||
@@ -517,0 +518,0 @@ // signal.h |
+24
-22
@@ -356,2 +356,3 @@ use crate::prelude::*; | ||
| pub const RTLD_NOW: c_int = 0x0002; | ||
| pub const RTLD_NOLOAD: c_int = 0x0004; | ||
| pub const RTLD_GLOBAL: c_int = 0x0100; | ||
@@ -506,5 +507,3 @@ pub const RTLD_LOCAL: c_int = 0x0000; | ||
| pub const F_SETFL: c_int = 4; | ||
| // FIXME(redox): relibc { | ||
| pub const F_DUPFD_CLOEXEC: c_int = crate::F_DUPFD; | ||
| // } | ||
| pub const F_DUPFD_CLOEXEC: c_int = 1030; | ||
| pub const FD_CLOEXEC: c_int = 0x0100_0000; | ||
@@ -535,9 +534,9 @@ pub const O_RDONLY: c_int = 0x0001_0000; | ||
| // locale.h | ||
| pub const LC_ALL: c_int = 0; | ||
| pub const LC_COLLATE: c_int = 1; | ||
| pub const LC_CTYPE: c_int = 2; | ||
| pub const LC_MESSAGES: c_int = 3; | ||
| pub const LC_MONETARY: c_int = 4; | ||
| pub const LC_NUMERIC: c_int = 5; | ||
| pub const LC_TIME: c_int = 6; | ||
| pub const LC_COLLATE: c_int = 0; | ||
| pub const LC_CTYPE: c_int = 1; | ||
| pub const LC_MESSAGES: c_int = 2; | ||
| pub const LC_MONETARY: c_int = 3; | ||
| pub const LC_NUMERIC: c_int = 4; | ||
| pub const LC_TIME: c_int = 5; | ||
| pub const LC_ALL: c_int = 6; | ||
@@ -580,3 +579,5 @@ // netdb.h | ||
| pub const IPV6_ADD_MEMBERSHIP: c_int = 20; | ||
| pub const IPV6_JOIN_GROUP: c_int = 20; | ||
| pub const IPV6_DROP_MEMBERSHIP: c_int = 21; | ||
| pub const IPV6_LEAVE_GROUP: c_int = 21; | ||
| pub const IPV6_V6ONLY: c_int = 26; | ||
@@ -589,3 +590,3 @@ pub const IP_MULTICAST_IF: c_int = 32; | ||
| pub const IP_TOS: c_int = 1; | ||
| pub const IP_RECVTOS: c_int = 2; | ||
| pub const IP_RECVTOS: c_int = 13; | ||
| pub const IPPROTO_IGMP: c_int = 2; | ||
@@ -600,5 +601,6 @@ pub const IPPROTO_PUP: c_int = 12; | ||
| pub const TCP_NODELAY: c_int = 1; | ||
| // FIXME(redox): relibc { | ||
| pub const TCP_KEEPIDLE: c_int = 1; | ||
| // } | ||
| pub const TCP_MAXSEG: c_int = 2; | ||
| pub const TCP_KEEPIDLE: c_int = 4; | ||
| pub const TCP_KEEPINTVL: c_int = 5; | ||
| pub const TCP_KEEPCNT: c_int = 6; | ||
@@ -674,10 +676,10 @@ // poll.h | ||
| pub const SA_NOCLDWAIT: c_ulong = 0x0000_0002; | ||
| pub const SA_RESTORER: c_ulong = 0x0000_0004; // FIXME(redox): remove after relibc removes it | ||
| pub const SA_SIGINFO: c_ulong = 0x0200_0000; | ||
| pub const SA_ONSTACK: c_ulong = 0x0400_0000; | ||
| pub const SA_RESTART: c_ulong = 0x0800_0000; | ||
| pub const SA_NODEFER: c_ulong = 0x1000_0000; | ||
| pub const SA_RESETHAND: c_ulong = 0x2000_0000; | ||
| pub const SA_NOCLDSTOP: c_ulong = 0x4000_0000; | ||
| pub const SA_NOCLDWAIT: c_int = 0x0000_0002; | ||
| pub const SA_RESTORER: c_int = 0x0000_0004; // FIXME(redox): remove after relibc removes it | ||
| pub const SA_SIGINFO: c_int = 0x0200_0000; | ||
| pub const SA_ONSTACK: c_int = 0x0400_0000; | ||
| pub const SA_RESTART: c_int = 0x0800_0000; | ||
| pub const SA_NODEFER: c_int = 0x1000_0000; | ||
| pub const SA_RESETHAND: c_int = 0x2000_0000; | ||
| pub const SA_NOCLDSTOP: c_int = 0x4000_0000; | ||
@@ -684,0 +686,0 @@ // sys/file.h |
+139
-0
@@ -403,6 +403,145 @@ //! [wasi-libc](https://github.com/WebAssembly/wasi-libc) definitions. | ||
| pub const _SC_ARG_MAX: c_int = 0; | ||
| pub const _SC_CHILD_MAX: c_int = 1; | ||
| pub const _SC_CLK_TCK: c_int = 2; | ||
| pub const _SC_NGROUPS_MAX: c_int = 3; | ||
| pub const _SC_OPEN_MAX: c_int = 4; | ||
| pub const _SC_STREAM_MAX: c_int = 5; | ||
| pub const _SC_TZNAME_MAX: c_int = 6; | ||
| pub const _SC_JOB_CONTROL: c_int = 7; | ||
| pub const _SC_SAVED_IDS: c_int = 8; | ||
| pub const _SC_REALTIME_SIGNALS: c_int = 9; | ||
| pub const _SC_PRIORITY_SCHEDULING: c_int = 10; | ||
| pub const _SC_TIMERS: c_int = 11; | ||
| pub const _SC_ASYNCHRONOUS_IO: c_int = 12; | ||
| pub const _SC_PRIORITIZED_IO: c_int = 13; | ||
| pub const _SC_SYNCHRONIZED_IO: c_int = 14; | ||
| pub const _SC_FSYNC: c_int = 15; | ||
| pub const _SC_MAPPED_FILES: c_int = 16; | ||
| pub const _SC_MEMLOCK: c_int = 17; | ||
| pub const _SC_MEMLOCK_RANGE: c_int = 18; | ||
| pub const _SC_MEMORY_PROTECTION: c_int = 19; | ||
| pub const _SC_MESSAGE_PASSING: c_int = 20; | ||
| pub const _SC_SEMAPHORES: c_int = 21; | ||
| pub const _SC_SHARED_MEMORY_OBJECTS: c_int = 22; | ||
| pub const _SC_AIO_LISTIO_MAX: c_int = 23; | ||
| pub const _SC_AIO_MAX: c_int = 24; | ||
| pub const _SC_AIO_PRIO_DELTA_MAX: c_int = 25; | ||
| pub const _SC_DELAYTIMER_MAX: c_int = 26; | ||
| pub const _SC_MQ_OPEN_MAX: c_int = 27; | ||
| pub const _SC_MQ_PRIO_MAX: c_int = 28; | ||
| pub const _SC_VERSION: c_int = 29; | ||
| pub const _SC_PAGESIZE: c_int = 30; | ||
| pub const _SC_PAGE_SIZE: c_int = _SC_PAGESIZE; | ||
| pub const _SC_RTSIG_MAX: c_int = 31; | ||
| pub const _SC_SEM_NSEMS_MAX: c_int = 32; | ||
| pub const _SC_SEM_VALUE_MAX: c_int = 33; | ||
| pub const _SC_SIGQUEUE_MAX: c_int = 34; | ||
| pub const _SC_TIMER_MAX: c_int = 35; | ||
| pub const _SC_BC_BASE_MAX: c_int = 36; | ||
| pub const _SC_BC_DIM_MAX: c_int = 37; | ||
| pub const _SC_BC_SCALE_MAX: c_int = 38; | ||
| pub const _SC_BC_STRING_MAX: c_int = 39; | ||
| pub const _SC_COLL_WEIGHTS_MAX: c_int = 40; | ||
| pub const _SC_EXPR_NEST_MAX: c_int = 42; | ||
| pub const _SC_LINE_MAX: c_int = 43; | ||
| pub const _SC_RE_DUP_MAX: c_int = 44; | ||
| pub const _SC_2_VERSION: c_int = 46; | ||
| pub const _SC_2_C_BIND: c_int = 47; | ||
| pub const _SC_2_C_DEV: c_int = 48; | ||
| pub const _SC_2_FORT_DEV: c_int = 49; | ||
| pub const _SC_2_FORT_RUN: c_int = 50; | ||
| pub const _SC_2_SW_DEV: c_int = 51; | ||
| pub const _SC_2_LOCALEDEF: c_int = 52; | ||
| pub const _SC_UIO_MAXIOV: c_int = 60; | ||
| pub const _SC_IOV_MAX: c_int = 60; | ||
| pub const _SC_THREADS: c_int = 67; | ||
| pub const _SC_THREAD_SAFE_FUNCTIONS: c_int = 68; | ||
| pub const _SC_GETGR_R_SIZE_MAX: c_int = 69; | ||
| pub const _SC_GETPW_R_SIZE_MAX: c_int = 70; | ||
| pub const _SC_LOGIN_NAME_MAX: c_int = 71; | ||
| pub const _SC_TTY_NAME_MAX: c_int = 72; | ||
| pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: c_int = 73; | ||
| pub const _SC_THREAD_KEYS_MAX: c_int = 74; | ||
| pub const _SC_THREAD_STACK_MIN: c_int = 75; | ||
| pub const _SC_THREAD_THREADS_MAX: c_int = 76; | ||
| pub const _SC_THREAD_ATTR_STACKADDR: c_int = 77; | ||
| pub const _SC_THREAD_ATTR_STACKSIZE: c_int = 78; | ||
| pub const _SC_THREAD_PRIORITY_SCHEDULING: c_int = 79; | ||
| pub const _SC_THREAD_PRIO_INHERIT: c_int = 80; | ||
| pub const _SC_THREAD_PRIO_PROTECT: c_int = 81; | ||
| pub const _SC_THREAD_PROCESS_SHARED: c_int = 82; | ||
| pub const _SC_NPROCESSORS_CONF: c_int = 83; | ||
| pub const _SC_NPROCESSORS_ONLN: c_int = 84; | ||
| pub const _SC_PHYS_PAGES: c_int = 85; | ||
| pub const _SC_AVPHYS_PAGES: c_int = 86; | ||
| pub const _SC_ATEXIT_MAX: c_int = 87; | ||
| pub const _SC_PASS_MAX: c_int = 88; | ||
| pub const _SC_XOPEN_VERSION: c_int = 89; | ||
| pub const _SC_XOPEN_XCU_VERSION: c_int = 90; | ||
| pub const _SC_XOPEN_UNIX: c_int = 91; | ||
| pub const _SC_XOPEN_CRYPT: c_int = 92; | ||
| pub const _SC_XOPEN_ENH_I18N: c_int = 93; | ||
| pub const _SC_XOPEN_SHM: c_int = 94; | ||
| pub const _SC_2_CHAR_TERM: c_int = 95; | ||
| pub const _SC_2_UPE: c_int = 97; | ||
| pub const _SC_XOPEN_XPG2: c_int = 98; | ||
| pub const _SC_XOPEN_XPG3: c_int = 99; | ||
| pub const _SC_XOPEN_XPG4: c_int = 100; | ||
| pub const _SC_NZERO: c_int = 109; | ||
| pub const _SC_XBS5_ILP32_OFF32: c_int = 125; | ||
| pub const _SC_XBS5_ILP32_OFFBIG: c_int = 126; | ||
| pub const _SC_XBS5_LP64_OFF64: c_int = 127; | ||
| pub const _SC_XBS5_LPBIG_OFFBIG: c_int = 128; | ||
| pub const _SC_XOPEN_LEGACY: c_int = 129; | ||
| pub const _SC_XOPEN_REALTIME: c_int = 130; | ||
| pub const _SC_XOPEN_REALTIME_THREADS: c_int = 131; | ||
| pub const _SC_ADVISORY_INFO: c_int = 132; | ||
| pub const _SC_BARRIERS: c_int = 133; | ||
| pub const _SC_CLOCK_SELECTION: c_int = 137; | ||
| pub const _SC_CPUTIME: c_int = 138; | ||
| pub const _SC_THREAD_CPUTIME: c_int = 139; | ||
| pub const _SC_MONOTONIC_CLOCK: c_int = 149; | ||
| pub const _SC_READER_WRITER_LOCKS: c_int = 153; | ||
| pub const _SC_SPIN_LOCKS: c_int = 154; | ||
| pub const _SC_REGEXP: c_int = 155; | ||
| pub const _SC_SHELL: c_int = 157; | ||
| pub const _SC_SPAWN: c_int = 159; | ||
| pub const _SC_SPORADIC_SERVER: c_int = 160; | ||
| pub const _SC_THREAD_SPORADIC_SERVER: c_int = 161; | ||
| pub const _SC_TIMEOUTS: c_int = 164; | ||
| pub const _SC_TYPED_MEMORY_OBJECTS: c_int = 165; | ||
| pub const _SC_2_PBS: c_int = 168; | ||
| pub const _SC_2_PBS_ACCOUNTING: c_int = 169; | ||
| pub const _SC_2_PBS_LOCATE: c_int = 170; | ||
| pub const _SC_2_PBS_MESSAGE: c_int = 171; | ||
| pub const _SC_2_PBS_TRACK: c_int = 172; | ||
| pub const _SC_SYMLOOP_MAX: c_int = 173; | ||
| pub const _SC_STREAMS: c_int = 174; | ||
| pub const _SC_2_PBS_CHECKPOINT: c_int = 175; | ||
| pub const _SC_V6_ILP32_OFF32: c_int = 176; | ||
| pub const _SC_V6_ILP32_OFFBIG: c_int = 177; | ||
| pub const _SC_V6_LP64_OFF64: c_int = 178; | ||
| pub const _SC_V6_LPBIG_OFFBIG: c_int = 179; | ||
| pub const _SC_HOST_NAME_MAX: c_int = 180; | ||
| pub const _SC_TRACE: c_int = 181; | ||
| pub const _SC_TRACE_EVENT_FILTER: c_int = 182; | ||
| pub const _SC_TRACE_INHERIT: c_int = 183; | ||
| pub const _SC_TRACE_LOG: c_int = 184; | ||
| pub const _SC_IPV6: c_int = 235; | ||
| pub const _SC_RAW_SOCKETS: c_int = 236; | ||
| pub const _SC_V7_ILP32_OFF32: c_int = 237; | ||
| pub const _SC_V7_ILP32_OFFBIG: c_int = 238; | ||
| pub const _SC_V7_LP64_OFF64: c_int = 239; | ||
| pub const _SC_V7_LPBIG_OFFBIG: c_int = 240; | ||
| pub const _SC_SS_REPL_MAX: c_int = 241; | ||
| pub const _SC_TRACE_EVENT_NAME_MAX: c_int = 242; | ||
| pub const _SC_TRACE_NAME_MAX: c_int = 243; | ||
| pub const _SC_TRACE_SYS_MAX: c_int = 244; | ||
| pub const _SC_TRACE_USER_EVENT_MAX: c_int = 245; | ||
| pub const _SC_XOPEN_STREAMS: c_int = 246; | ||
| pub const _SC_THREAD_ROBUST_PRIO_INHERIT: c_int = 247; | ||
| pub const _SC_THREAD_ROBUST_PRIO_PROTECT: c_int = 248; | ||
| pub const _SC_MINSIGSTKSZ: c_int = 249; | ||
| pub const _SC_SIGSTKSZ: c_int = 250; | ||
@@ -409,0 +548,0 @@ // FIXME(msrv): `addr_of!(EXTERN_STATIC)` is now safe; remove `unsafe` when MSRV >= 1.82 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display