diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-10-17 00:00:24 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-10-17 00:00:24 -0500 |
commit | e6d308d586eec3b0a6e0cce8b18df173b6807494 (patch) | |
tree | e4b07fadd7cbb9bb5a8c24c2a5105d95ec8dde8b | |
parent | 20e529595b2dd991072c6fa1cca606b508f5ed1b (diff) | |
download | rust-libc-e6d308d586eec3b0a6e0cce8b18df173b6807494.tar.gz |
Deprecate XU_NGROUPS on DragonFly
This constant was only ever defined on FreeBSD.
https://github.com/freebsd/freebsd-src/blob/a7d137fcbcac7182d4fcdc97a46b10edc5c7041d/sys/sys/ucred.h
https://github.com/DragonFlyBSD/DragonFlyBSD/blob/c2e500ae4c06466901674883b4593bd9c249cdc1/sys/sys/ucred.h
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/mod.rs | 3 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 4b99038784..fa4f2d590f 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -715,6 +715,9 @@ pub const RLIMIT_POSIXLOCKS: ::c_int = 11; #[deprecated(since = "0.2.64", note = "Not stable across OS versions")] pub const RLIM_NLIMITS: ::rlim_t = 12; +#[deprecated(since = "0.2.105", note = "Only exists on FreeBSD, not DragonFly BSD")] +pub const XU_NGROUPS: ::c_int = 16; + pub const Q_GETQUOTA: ::c_int = 0x300; pub const Q_SETQUOTA: ::c_int = 0x400; diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 12030ff6c2..1f34b1abf6 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -640,6 +640,8 @@ pub const NI_NUMERICSERV: ::c_int = 0x00000008; pub const NI_DGRAM: ::c_int = 0x00000010; pub const NI_NUMERICSCOPE: ::c_int = 0x00000020; +pub const XU_NGROUPS: ::c_int = 16; + pub const Q_GETQUOTA: ::c_int = 0x700; pub const Q_SETQUOTA: ::c_int = 0x800; diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index d70665839c..2717a5cfb7 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -1167,7 +1167,6 @@ pub const ST_NOSUID: ::c_ulong = 2; pub const NI_MAXHOST: ::size_t = 1025; -pub const XU_NGROUPS: ::c_int = 16; pub const XUCRED_VERSION: ::c_uint = 0; pub const RTLD_LOCAL: ::c_int = 0; |