authorgravatar for devnexen@gmail.comDavid Carlier <devnexen@gmail.com> 2023-06-24 10:47:26+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-24 13:05:45-07:00
log72dd22f262353fa7d37c89c7d163e97a162abb9b
tree1cb872aa696da797b6bfe78d2f4eb7708e50e8de
parent7ad10422793e56dcd50a4254beb8fc9d6c7f5eae

std.c: fix few capcisum api calls, following-up on 6ae19fa.

only variadic calls are prefixed with underscores. ref: https://github.com/freebsd/freebsd-src/blob/59833b089e78463a561706fc03777249766aea01/sys/sys/capsicum.h#L326

1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/c/freebsd.zig+4-4
......@@ -554,11 +554,11 @@ pub const CAP = struct {
554554pub extern "c" fn __cap_rights_init(version: c_int, rights: ?*cap_rights_t, ...) ?*cap_rights_t;
555555pub extern "c" fn __cap_rights_set(rights: ?*cap_rights_t, ...) ?*cap_rights_t;
556556pub extern "c" fn __cap_rights_clear(rights: ?*cap_rights_t, ...) ?*cap_rights_t;
557pub extern "c" fn __cap_rights_merge(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t;
558pub extern "c" fn __cap_rights_remove(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t;
559pub extern "c" fn __cap_rights_contains(dst: ?*const cap_rights_t, src: ?*const cap_rights_t) bool;
560557pub extern "c" fn __cap_rights_is_set(rights: ?*const cap_rights_t, ...) bool;
561pub extern "c" fn __cap_rights_is_valid(rights: ?*const cap_rights_t) bool;
558pub extern "c" fn cap_rights_merge(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t;
559pub extern "c" fn cap_rights_remove(dst: ?*cap_rights_t, src: ?*const cap_rights_t) ?*cap_rights_t;
560pub extern "c" fn cap_rights_contains(dst: ?*const cap_rights_t, src: ?*const cap_rights_t) bool;
561pub extern "c" fn cap_rights_is_valid(rights: ?*const cap_rights_t) bool;
562562
563563pub const kinfo_file = extern struct {
564564 /// Size of this record.