openbsd: unbreak: chflags family

This commit is contained in:
Sébastien Marie 2018-11-27 18:00:34 +01:00
parent 914e50a607
commit 81a0e2cdf0
3 changed files with 5 additions and 6 deletions

View File

@ -611,11 +611,6 @@ f! {
}
}
extern {
pub fn chflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int;
pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int;
}
#[link(name = "util")]
extern {
pub fn mincore(addr: *mut ::c_void, len: ::size_t,

View File

@ -1032,6 +1032,8 @@ extern {
pub fn lio_listio(mode: ::c_int, aiocb_list: *const *mut aiocb,
nitems: ::c_int, sevp: *mut sigevent) -> ::c_int;
pub fn chflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int;
pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int;
pub fn lchflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int;
pub fn extattr_delete_fd(fd: ::c_int,

View File

@ -710,7 +710,9 @@ f! {
}
extern {
pub fn chflagsat(fd: ::c_int, path: *const ::c_char, flags: ::c_ulong,
pub fn chflags(path: *const ::c_char, flags: ::c_uint) -> ::c_int;
pub fn fchflags(fd: ::c_int, flags: ::c_uint) -> ::c_int;
pub fn chflagsat(fd: ::c_int, path: *const ::c_char, flags: ::c_uint,
atflag: ::c_int) -> ::c_int;
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
pub fn getnameinfo(sa: *const ::sockaddr,