From 381704dd0e7300dd5c621c46e9a64f374c3ad617 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 10:50:16 -0700 Subject: [PATCH] Revert "std.c: fix few capcisum api calls, following-up on 6ae19fa." This reverts commit 72dd22f262353fa7d37c89c7d163e97a162abb9b. --- lib/std/c/freebsd.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index deec41493d..3bdd6f9df3 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -554,11 +554,11 @@ pub const CAP = struct { pub extern "c" fn __cap_rights_init(version: c_int, rights: ?*cap_rights_t, ...) ?*cap_rights_t; pub extern "c" fn __cap_rights_set(rights: ?*cap_rights_t, ...) ?*cap_rights_t; pub extern "c" fn __cap_rights_clear(rights: ?*cap_rights_t, ...) ?*cap_rights_t; +pub extern "c" fn __cap_rights_merge(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t; +pub extern "c" fn __cap_rights_remove(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t; +pub extern "c" fn __cap_rights_contains(dst: ?*const cap_rights_t, src: ?*const cap_rights_t) bool; pub extern "c" fn __cap_rights_is_set(rights: ?*const cap_rights_t, ...) bool; -pub extern "c" fn cap_rights_merge(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t; -pub extern "c" fn cap_rights_remove(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t; -pub extern "c" fn cap_rights_contains(dst: ?*const cap_rights_t, src: ?*const cap_rights_t) bool; -pub extern "c" fn cap_rights_is_valid(rights: ?*const cap_rights_t) bool; +pub extern "c" fn __cap_rights_is_valid(rights: ?*const cap_rights_t) bool; pub const kinfo_file = extern struct { /// Size of this record.