diff options
author | bors <bors@rust-lang.org> | 2021-10-20 23:38:20 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-10-20 23:38:20 +0000 |
commit | f6084a70c5951531993836f0ff752a757ea131f8 (patch) | |
tree | 5d520c4b48392d51aa62aa7e1b3fccf80a5e2032 /src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs | |
parent | 7638a12303f2b0f559a2a0dbd3f1a230d9a2bae9 (diff) | |
parent | 3418986eac5ed4b61ce4711dc6bb9bc5fb25c53b (diff) | |
download | rust-libc-f6084a70c5951531993836f0ff752a757ea131f8.tar.gz |
Auto merge of #2465 - asomers:fbsd-consts, r=JohnTitor
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.rs | 24 |
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 944f620fc3..fffeec8600 100644 --- a/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs @@ -213,32 +213,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; pub const KF_TYPE_EVENTFD: ::c_int = 13; |