Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/solid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ pub const LC_MONETARY: c_int = 3;
pub const LC_NUMERIC: c_int = 4;
pub const LC_TIME: c_int = 5;
pub const LC_MESSAGES: c_int = 6;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const _LC_LAST: c_int = 7;

pub const EPERM: c_int = 1;
Expand Down
5 changes: 4 additions & 1 deletion src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ pub const EOWNERDEAD: c_int = 94;
pub const EPROTO: c_int = 95;

/// This symbols is prone to change across releases upstream.
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const ELAST: c_int = 95;

pub const F_DUPFD_CLOEXEC: c_int = 10;
Expand Down Expand Up @@ -1739,7 +1739,10 @@ pub const LC_NUMERIC_MASK: c_int = 1 << crate::LC_NUMERIC;
pub const LC_TIME_MASK: c_int = 1 << crate::LC_TIME;
pub const LC_MESSAGES_MASK: c_int = 1 << crate::LC_MESSAGES;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
const _LC_LAST: c_int = 7;

pub const LC_ALL_MASK: c_int = (1 << _LC_LAST) - 2;

pub const LC_GLOBAL_LOCALE: crate::locale_t = -1isize as crate::locale_t;
Expand Down
9 changes: 9 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,9 @@ pub const NF_BR_PRI_BRNF: c_int = 0;
pub const NF_BR_PRI_NAT_DST_OTHER: c_int = 100;
pub const NF_BR_PRI_FILTER_OTHER: c_int = 200;
pub const NF_BR_PRI_NAT_SRC: c_int = 300;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const NF_BR_PRI_LAST: c_int = crate::INT_MAX;

// linux/netfilter_ipv4.h
Expand All @@ -1961,6 +1964,9 @@ pub const NF_IP_PRI_NAT_SRC: c_int = 100;
pub const NF_IP_PRI_SELINUX_LAST: c_int = 225;
pub const NF_IP_PRI_CONNTRACK_HELPER: c_int = 300;
pub const NF_IP_PRI_CONNTRACK_CONFIRM: c_int = crate::INT_MAX;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const NF_IP_PRI_LAST: c_int = crate::INT_MAX;

// linux/netfilter_ipv6.h
Expand All @@ -1984,6 +1990,9 @@ pub const NF_IP6_PRI_SECURITY: c_int = 50;
pub const NF_IP6_PRI_NAT_SRC: c_int = 100;
pub const NF_IP6_PRI_SELINUX_LAST: c_int = 225;
pub const NF_IP6_PRI_CONNTRACK_HELPER: c_int = 300;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const NF_IP6_PRI_LAST: c_int = crate::INT_MAX;

// linux/netfilter_ipv6/ip6_tables.h
Expand Down
15 changes: 15 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,9 @@ pub const NF_BR_PRI_BRNF: c_int = 0;
pub const NF_BR_PRI_NAT_DST_OTHER: c_int = 100;
pub const NF_BR_PRI_FILTER_OTHER: c_int = 200;
pub const NF_BR_PRI_NAT_SRC: c_int = 300;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const NF_BR_PRI_LAST: c_int = crate::INT_MAX;

// linux/netfilter_ipv4.h
Expand All @@ -1929,6 +1932,9 @@ pub const NF_IP_PRI_NAT_SRC: c_int = 100;
pub const NF_IP_PRI_SELINUX_LAST: c_int = 225;
pub const NF_IP_PRI_CONNTRACK_HELPER: c_int = 300;
pub const NF_IP_PRI_CONNTRACK_CONFIRM: c_int = crate::INT_MAX;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const NF_IP_PRI_LAST: c_int = crate::INT_MAX;

// linux/netfilter_ipv6.h
Expand All @@ -1952,6 +1958,9 @@ pub const NF_IP6_PRI_SECURITY: c_int = 50;
pub const NF_IP6_PRI_NAT_SRC: c_int = 100;
pub const NF_IP6_PRI_SELINUX_LAST: c_int = 225;
pub const NF_IP6_PRI_CONNTRACK_HELPER: c_int = 300;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const NF_IP6_PRI_LAST: c_int = crate::INT_MAX;

// linux/netfilter_ipv6/ip6_tables.h
Expand Down Expand Up @@ -2029,9 +2038,15 @@ pub const SIOCGIWENCODEEXT: c_ulong = 0x8B35;
pub const SIOCSIWPMKSA: c_ulong = 0x8B36;

pub const SIOCIWFIRSTPRIV: c_ulong = 0x8BE0;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const SIOCIWLASTPRIV: c_ulong = 0x8BFF;

pub const SIOCIWFIRST: c_ulong = 0x8B00;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const SIOCIWLAST: c_ulong = SIOCIWLASTPRIV;

pub const IWEVTXDROP: c_ulong = 0x8C00;
Expand Down
2 changes: 2 additions & 0 deletions src/unix/solarish/illumos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ pub const LOCK_EX: c_int = 2;
pub const LOCK_NB: c_int = 4;
pub const LOCK_UN: c_int = 8;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const _PC_LAST: c_int = 101;

pub const _CS_PATH: c_int = 65;
Expand Down
2 changes: 2 additions & 0 deletions src/unix/solarish/solaris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ pub const F_DUPFD_CLOFORK: c_int = 49;
pub const F_DUP2FD_CLOEXEC: c_int = 48;
pub const F_DUP2FD_CLOFORK: c_int = 50;

/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate#usage-guidelines) for details.
pub const _PC_LAST: c_int = 102;

pub const PRIV_PROC_SENSITIVE: c_uint = 0x0008;
Expand Down