Skip to content

Commit

Permalink
Revert "style: remove _MAX* place holder constants"
Browse files Browse the repository at this point in the history
This reverts commit 0f93088.

`RTAX_MAX` is used to loop over alternate internal encoding.
  • Loading branch information
tesuji committed May 21, 2024
1 parent 9d8b39c commit b6b1b11
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ RLIMIT_STACK
RLIMIT_VMEM
RLIM_INFINITY
RLIM_NLIMITS
RTAX_MAX
RTLD_NEXT
RTLD_NODELETE
RTLD_NOLOAD
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@ RLIMIT_UMTXP
RLIMIT_VMEM
RLIM_INFINITY
RLIM_NLIMITS
RTAX_MAX
RTLD_NEXT
RTLD_NODELETE
RTLD_NOLOAD
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ RLIM_INFINITY
RLIM_NLIMITS
RLIM_SAVED_CUR
RLIM_SAVED_MAX
RTAX_MAX
RTLD_NEXT
RTLD_NOLOAD
RTLD_SELF
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ RLIM_INFINITY
RLIM_NLIMITS
RLIM_SAVED_CUR
RLIM_SAVED_MAX
RTAX_MAX
RTLD_NEXT
RTLD_SELF
RUSAGE_CHILDREN
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,7 @@ pub const RTM_VERSION: ::c_int = 7;
pub const RTAX_MPLS1: ::c_int = 8;
pub const RTAX_MPLS2: ::c_int = 9;
pub const RTAX_MPLS3: ::c_int = 10;
pub const RTAX_MAX: ::c_int = 11;

const_fn! {
{const} fn _CMSG_ALIGN(n: usize) -> usize {
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4561,6 +4561,8 @@ pub const RTF_FIXEDMTU: ::c_int = 0x80000;

pub const RTM_VERSION: ::c_int = 5;

pub const RTAX_MAX: ::c_int = 8;

// sys/signal.h
pub const SIGTHR: ::c_int = 32;
pub const SIGLWP: ::c_int = SIGTHR;
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2439,6 +2439,7 @@ pub const RTM_CHGADDR: ::c_int = 0x18;
pub const RTA_TAG: ::c_int = 0x100;

pub const RTAX_TAG: ::c_int = 8;
pub const RTAX_MAX: ::c_int = 9;

cfg_if! {

Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,7 @@ pub const RTAX_BFD: ::c_int = 11;
pub const RTAX_DNS: ::c_int = 12;
pub const RTAX_STATIC: ::c_int = 13;
pub const RTAX_SEARCH: ::c_int = 14;
pub const RTAX_MAX: ::c_int = 15;

const_fn! {
{const} fn _ALIGN(p: usize) -> usize {
Expand Down

0 comments on commit b6b1b11

Please sign in to comment.