summaryrefslogtreecommitdiff
path: root/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-10-17 16:38:02 -0600
committerAlan Somers <asomers@gmail.com>2021-10-20 16:09:01 -0600
commit3418986eac5ed4b61ce4711dc6bb9bc5fb25c53b (patch)
tree801b47a5fabb82d558eacb14b8293575bf5a3c64 /src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
parent255d84ddaca0c5fbb8e1e830e02164ac5423ad38 (diff)
downloadrust-libc-3418986eac5ed4b61ce4711dc6bb9bc5fb25c53b.tar.gz
Properly expose more constants on FreeBSD
The freebsd12 and freebsd13 modules should only be used for symbols that _change_ in those versions, not for newly added symbols. Mostly they should be used for versioned ELF symbols. It does no harm to publish ordinary constants in the base FreeBSD module even if they weren't defined in the lowest supported version of FreeBSD, but it does make it much easier for consumers to use them.
Diffstat (limited to 'src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs')
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
index 93ef2a2ad4..03b624fe80 100644
--- a/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
@@ -201,32 +201,8 @@ cfg_if! {
}
}
-pub const F_ADD_SEALS: ::c_int = 19;
-pub const F_GET_SEALS: ::c_int = 20;
-pub const F_SEAL_SEAL: ::c_int = 0x0001;
-pub const F_SEAL_SHRINK: ::c_int = 0x0002;
-pub const F_SEAL_GROW: ::c_int = 0x0004;
-pub const F_SEAL_WRITE: ::c_int = 0x0008;
-
-pub const GRND_NONBLOCK: ::c_uint = 0x1;
-pub const GRND_RANDOM: ::c_uint = 0x2;
-
pub const RAND_MAX: ::c_int = 0x7fff_ffff;
-
-pub const SO_DOMAIN: ::c_int = 0x1019;
-
-pub const EINTEGRITY: ::c_int = 97;
pub const ELAST: ::c_int = 97;
-pub const GRND_INSECURE: ::c_uint = 0x4;
-
-pub const PROC_ASLR_CTL: ::c_int = 13;
-pub const PROC_ASLR_STATUS: ::c_int = 14;
-pub const PROC_PROTMAX_CTL: ::c_int = 15;
-pub const PROC_PROTMAX_STATUS: ::c_int = 16;
-pub const PROC_PROCCTL_MD_MIN: ::c_int = 0x10000000;
-
-pub const LOCAL_CREDS_PERSISTENT: ::c_int = 3;
-pub const SCM_CREDS2: ::c_int = 0x08;
f! {
pub fn SOCKCRED2SIZE(ngrps: usize) -> usize {