Skip to content

Commit b6b1b11

Browse files
committed
Revert "style: remove _MAX* place holder constants"
This reverts commit 0f93088. `RTAX_MAX` is used to loop over alternate internal encoding.
1 parent 9d8b39c commit b6b1b11

File tree

8 files changed

+9
-0
lines changed

8 files changed

+9
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ RLIMIT_STACK
873873
RLIMIT_VMEM
874874
RLIM_INFINITY
875875
RLIM_NLIMITS
876+
RTAX_MAX
876877
RTLD_NEXT
877878
RTLD_NODELETE
878879
RTLD_NOLOAD

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,7 @@ RLIMIT_UMTXP
11221122
RLIMIT_VMEM
11231123
RLIM_INFINITY
11241124
RLIM_NLIMITS
1125+
RTAX_MAX
11251126
RTLD_NEXT
11261127
RTLD_NODELETE
11271128
RTLD_NOLOAD

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ RLIM_INFINITY
926926
RLIM_NLIMITS
927927
RLIM_SAVED_CUR
928928
RLIM_SAVED_MAX
929+
RTAX_MAX
929930
RTLD_NEXT
930931
RTLD_NOLOAD
931932
RTLD_SELF

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ RLIM_INFINITY
764764
RLIM_NLIMITS
765765
RLIM_SAVED_CUR
766766
RLIM_SAVED_MAX
767+
RTAX_MAX
767768
RTLD_NEXT
768769
RTLD_SELF
769770
RUSAGE_CHILDREN

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ pub const RTM_VERSION: ::c_int = 7;
15331533
pub const RTAX_MPLS1: ::c_int = 8;
15341534
pub const RTAX_MPLS2: ::c_int = 9;
15351535
pub const RTAX_MPLS3: ::c_int = 10;
1536+
pub const RTAX_MAX: ::c_int = 11;
15361537

15371538
const_fn! {
15381539
{const} fn _CMSG_ALIGN(n: usize) -> usize {

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4561,6 +4561,8 @@ pub const RTF_FIXEDMTU: ::c_int = 0x80000;
45614561

45624562
pub const RTM_VERSION: ::c_int = 5;
45634563

4564+
pub const RTAX_MAX: ::c_int = 8;
4565+
45644566
// sys/signal.h
45654567
pub const SIGTHR: ::c_int = 32;
45664568
pub const SIGLWP: ::c_int = SIGTHR;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,6 +2439,7 @@ pub const RTM_CHGADDR: ::c_int = 0x18;
24392439
pub const RTA_TAG: ::c_int = 0x100;
24402440

24412441
pub const RTAX_TAG: ::c_int = 8;
2442+
pub const RTAX_MAX: ::c_int = 9;
24422443

24432444
cfg_if! {
24442445

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,6 +1962,7 @@ pub const RTAX_BFD: ::c_int = 11;
19621962
pub const RTAX_DNS: ::c_int = 12;
19631963
pub const RTAX_STATIC: ::c_int = 13;
19641964
pub const RTAX_SEARCH: ::c_int = 14;
1965+
pub const RTAX_MAX: ::c_int = 15;
19651966

19661967
const_fn! {
19671968
{const} fn _ALIGN(p: usize) -> usize {

0 commit comments

Comments
 (0)