Skip to content

Commit 985ea40

Browse files
committed
Added #[doc(hidden)] to AF_MAX, PF_MAX, others.
1 parent fa19626 commit 985ea40

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ pub const AF_BLUETOOTH: ::c_int = 36;
365365
pub const AF_IEEE80211: ::c_int = 37;
366366
pub const AF_INET_SDP: ::c_int = 40;
367367
pub const AF_INET6_SDP: ::c_int = 42;
368+
#[doc(hidden)]
368369
pub const AF_MAX: ::c_int = 42;
369370

370371
pub const PF_SLOW: ::c_int = AF_SLOW;
@@ -374,6 +375,7 @@ pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH;
374375
pub const PF_IEEE80211: ::c_int = AF_IEEE80211;
375376
pub const PF_INET_SDP: ::c_int = AF_INET_SDP;
376377
pub const PF_INET6_SDP: ::c_int = AF_INET6_SDP;
378+
#[doc(hidden)]
377379
pub const PF_MAX: ::c_int = AF_MAX;
378380

379381
pub const NET_RT_DUMP: ::c_int = 1;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,18 @@ pub const AF_BLUETOOTH: ::c_int = 32;
177177
pub const AF_MPLS: ::c_int = 33;
178178
pub const pseudo_AF_PFLOW: ::c_int = 34;
179179
pub const pseudo_AF_PIPEX: ::c_int = 35;
180+
#[doc(hidden)]
180181
pub const AF_MAX: ::c_int = 36;
181182

183+
#[doc(hidden)]
182184
pub const NET_MAXID: ::c_int = AF_MAX;
183185
pub const NET_RT_DUMP: ::c_int = 1;
184186
pub const NET_RT_FLAGS: ::c_int = 2;
185187
pub const NET_RT_IFLIST: ::c_int = 3;
186188
pub const NET_RT_STATS: ::c_int = 4;
187189
pub const NET_RT_TABLE: ::c_int = 5;
188190
pub const NET_RT_IFNAMES: ::c_int = 6;
191+
#[doc(hidden)]
189192
pub const NET_RT_MAXID: ::c_int = 7;
190193

191194
pub const IPV6_JOIN_GROUP: ::c_int = 12;
@@ -201,6 +204,7 @@ pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH;
201204
pub const PF_MPLS: ::c_int = AF_MPLS;
202205
pub const PF_PFLOW: ::c_int = pseudo_AF_PFLOW;
203206
pub const PF_PIPEX: ::c_int = pseudo_AF_PIPEX;
207+
#[doc(hidden)]
204208
pub const PF_MAX: ::c_int = AF_MAX;
205209

206210
pub const SCM_TIMESTAMP: ::c_int = 0x04;

src/unix/notbsd/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ pub const SOL_ATALK: ::c_int = 258;
430430
pub const SOL_NETROM: ::c_int = 259;
431431
pub const SOL_ROSE: ::c_int = 260;
432432

433+
#[doc(hidden)]
433434
pub const AF_MAX: ::c_int = 39;
435+
#[doc(hidden)]
434436
pub const PF_MAX: ::c_int = AF_MAX;
435437

436438
pub const SO_REUSEADDR: ::c_int = 2;

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,13 @@ pub const AF_IB: ::c_int = 27;
467467
pub const AF_MPLS: ::c_int = 28;
468468
pub const AF_NFC: ::c_int = 39;
469469
pub const AF_VSOCK: ::c_int = 40;
470+
#[doc(hidden)]
470471
pub const AF_MAX: ::c_int = 42;
471472
pub const PF_IB: ::c_int = AF_IB;
472473
pub const PF_MPLS: ::c_int = AF_MPLS;
473474
pub const PF_NFC: ::c_int = AF_NFC;
474475
pub const PF_VSOCK: ::c_int = AF_VSOCK;
476+
#[doc(hidden)]
475477
pub const PF_MAX: ::c_int = AF_MAX;
476478

477479
// System V IPC

0 commit comments

Comments
 (0)