openbsd: add commonly used libc wrappers for pledge(2) and unveil(2)
This commit is contained in:
committed by
Veikka Tuominen
parent
bc11528b8b
commit
c99c6c0a68
@@ -35,3 +35,6 @@ pub const pthread_attr_t = extern struct {
|
||||
pub const sem_t = ?*opaque {};
|
||||
|
||||
pub extern "c" fn posix_memalign(memptr: *?*c_void, alignment: usize, size: usize) c_int;
|
||||
|
||||
pub extern "c" fn pledge(promises: ?[*:0]const u8, execpromises: ?[*:0]const u8) c_int;
|
||||
pub extern "c" fn unveil(path: ?[*:0]const u8, permissions: ?[*:0]const u8) c_int;
|
||||
|
||||
Reference in New Issue
Block a user