diff options
author | Sébastien Marie <semarie@users.noreply.github.com> | 2018-11-27 18:00:34 +0100 |
---|---|---|
committer | Sébastien Marie <semarie@users.noreply.github.com> | 2018-11-27 18:03:21 +0100 |
commit | 81a0e2cdf0e40164adffdb7be84bfeb36436697a (patch) | |
tree | 4be8f5a54d9283dd35eed8882444d7523a36b995 | |
parent | 914e50a60773b231619ad4abce72f94fb0c13e2f (diff) | |
download | rust-libc-81a0e2cdf0e40164adffdb7be84bfeb36436697a.tar.gz |
openbsd: unbreak: chflags family
-rw-r--r-- | src/unix/bsd/netbsdlike/mod.rs | 5 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/netbsd/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/openbsdlike/mod.rs | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index 3d8c05b1dd..a5c91b08e7 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -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, diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 5fedee60b1..0c9d73a4ae 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -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, diff --git a/src/unix/bsd/netbsdlike/openbsdlike/mod.rs b/src/unix/bsd/netbsdlike/openbsdlike/mod.rs index 01e9cca237..578e06a67b 100644 --- a/src/unix/bsd/netbsdlike/openbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsdlike/mod.rs @@ -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, |