Skip to content

Commit

Permalink
Merge pull request #4184 from asomers/cap-unused-main
Browse files Browse the repository at this point in the history
Remove FreeBSD's CAP_UNUSED* and CAP_ALL* constants
  • Loading branch information
tgross35 authored Dec 8, 2024
2 parents 9b88158 + ef35eba commit 770abef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ CAP_ACL_CHECK
CAP_ACL_DELETE
CAP_ACL_GET
CAP_ACL_SET
CAP_ALL0
CAP_ALL1
CAP_BIND
CAP_BINDAT
CAP_CHFLAGSAT
Expand Down Expand Up @@ -233,10 +231,6 @@ CAP_SOCK_SERVER
CAP_SYMLINKAT
CAP_TTYHOOK
CAP_UNLINKAT
CAP_UNUSED0_44
CAP_UNUSED0_57
CAP_UNUSED1_22
CAP_UNUSED1_57
CAP_WRITE
CCAR_OFLOW
CCTS_OFLOW
Expand Down
6 changes: 0 additions & 6 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2656,9 +2656,6 @@ pub const CAP_SOCK_SERVER: u64 = CAP_ACCEPT
| CAP_SEND
| CAP_SETSOCKOPT
| CAP_SHUTDOWN;
pub const CAP_ALL0: u64 = cap_right!(0, 0x000007FFFFFFFFFFu64);
pub const CAP_UNUSED0_44: u64 = cap_right!(0, 0x0000080000000000u64);
pub const CAP_UNUSED0_57: u64 = cap_right!(0, 0x0100000000000000u64);
pub const CAP_MAC_GET: u64 = cap_right!(1, 0x0000000000000001u64);
pub const CAP_MAC_SET: u64 = cap_right!(1, 0x0000000000000002u64);
pub const CAP_SEM_GETVALUE: u64 = cap_right!(1, 0x0000000000000004u64);
Expand All @@ -2681,9 +2678,6 @@ pub const CAP_ACL_GET: u64 = cap_right!(1, 0x0000000000040000u64);
pub const CAP_ACL_SET: u64 = cap_right!(1, 0x0000000000080000u64);
pub const CAP_KQUEUE_CHANGE: u64 = cap_right!(1, 0x0000000000100000u64);
pub const CAP_KQUEUE: u64 = CAP_KQUEUE_EVENT | CAP_KQUEUE_CHANGE;
pub const CAP_ALL1: u64 = cap_right!(1, 0x00000000001FFFFFu64);
pub const CAP_UNUSED1_22: u64 = cap_right!(1, 0x0000000000200000u64);
pub const CAP_UNUSED1_57: u64 = cap_right!(1, 0x0100000000000000u64);
pub const CAP_FCNTL_GETFL: u32 = 1 << 3;
pub const CAP_FCNTL_SETFL: u32 = 1 << 4;
pub const CAP_FCNTL_GETOWN: u32 = 1 << 5;
Expand Down

0 comments on commit 770abef

Please sign in to comment.