Skip to content

Commit cb2526a

Browse files
asomerstgross35
authored andcommitted
Remove some mask constants from FreeBSD
These are bitmasks that are intended to be used within the kernel. New features may widen them, so their values aren't stable. They probably don't have any legitimate uses in userland. And their values have changed in FreeBSD 15, which is causing CI failures. freebsd/freebsd-src@eea3e4d freebsd/freebsd-src@851dc7f (backport <#4691>) (cherry picked from commit fbfa292)
1 parent 06bb0c8 commit cb2526a

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

libc-test/semver/freebsd-x86_64.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Elf64_Auxinfo
22
KINFO_FILE_SIZE
33
MAP_32BIT
4-
_MC_FLAG_MASK
54
_MC_FPFMT_NODEV
65
_MC_FPFMT_XMM
76
_MC_FPOWNED_FPU

libc-test/semver/freebsd.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,6 @@ JAIL_API_VERSION
683683
JAIL_ATTACH
684684
JAIL_CREATE
685685
JAIL_DYING
686-
JAIL_GET_MASK
687-
JAIL_SET_MASK
688686
JAIL_SYS_DISABLE
689687
JAIL_SYS_INHERIT
690688
JAIL_SYS_NEW

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2950,8 +2950,6 @@ pub const JAIL_CREATE: c_int = 0x01;
29502950
pub const JAIL_UPDATE: c_int = 0x02;
29512951
pub const JAIL_ATTACH: c_int = 0x04;
29522952
pub const JAIL_DYING: c_int = 0x08;
2953-
pub const JAIL_SET_MASK: c_int = 0x0f;
2954-
pub const JAIL_GET_MASK: c_int = 0x08;
29552953
pub const JAIL_SYS_DISABLE: c_int = 0;
29562954
pub const JAIL_SYS_NEW: c_int = 1;
29572955
pub const JAIL_SYS_INHERIT: c_int = 2;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ pub const MINSIGSTKSZ: size_t = 2048; // 512 * 4
334334
pub const _MC_HASSEGS: u32 = 0x1;
335335
pub const _MC_HASBASES: u32 = 0x2;
336336
pub const _MC_HASFPXSTATE: u32 = 0x4;
337-
pub const _MC_FLAG_MASK: u32 = _MC_HASSEGS | _MC_HASBASES | _MC_HASFPXSTATE;
338337

339338
pub const _MC_FPFMT_NODEV: c_long = 0x10000;
340339
pub const _MC_FPFMT_XMM: c_long = 0x10002;

0 commit comments

Comments
 (0)