Skip to content

Commit 255d84d

Browse files
committed
Auto merge of #2462 - rtzoeller:dfly_deprecate_xu_ngroups, r=JohnTitor
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
2 parents 4aaba6c + e6d308d commit 255d84d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ pub const RLIMIT_POSIXLOCKS: ::c_int = 11;
715715
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
716716
pub const RLIM_NLIMITS: ::rlim_t = 12;
717717

718+
#[deprecated(since = "0.2.105", note = "Only exists on FreeBSD, not DragonFly BSD")]
719+
pub const XU_NGROUPS: ::c_int = 16;
720+
718721
pub const Q_GETQUOTA: ::c_int = 0x300;
719722
pub const Q_SETQUOTA: ::c_int = 0x400;
720723

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ pub const NI_NUMERICSERV: ::c_int = 0x00000008;
640640
pub const NI_DGRAM: ::c_int = 0x00000010;
641641
pub const NI_NUMERICSCOPE: ::c_int = 0x00000020;
642642

643+
pub const XU_NGROUPS: ::c_int = 16;
644+
643645
pub const Q_GETQUOTA: ::c_int = 0x700;
644646
pub const Q_SETQUOTA: ::c_int = 0x800;
645647

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,6 @@ pub const ST_NOSUID: ::c_ulong = 2;
11671167

11681168
pub const NI_MAXHOST: ::size_t = 1025;
11691169

1170-
pub const XU_NGROUPS: ::c_int = 16;
11711170
pub const XUCRED_VERSION: ::c_uint = 0;
11721171

11731172
pub const RTLD_LOCAL: ::c_int = 0;

0 commit comments

Comments
 (0)