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 d8af6bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
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 d8af6bf

Please sign in to comment.