summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordebris <marek.kotewicz@gmail.com>2018-07-05 18:23:23 +0200
committerdebris <marek.kotewicz@gmail.com>2018-07-05 18:23:23 +0200
commitba46c0cbffb983e7221e79d624496fe9cee6f843 (patch)
tree165d953a4e961d37418139b829c2ad8e6014efd3
parent460fb1310a5ec1951e730b4c668b922eb6ecb521 (diff)
downloadrust-libc-ba46c0cbffb983e7221e79d624496fe9cee6f843.tar.gz
Add exchangedata for bsd
-rw-r--r--src/unix/bsd/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index 47f82bdf59..1f4cd616a4 100644
--- a/src/unix/bsd/mod.rs
+++ b/src/unix/bsd/mod.rs
@@ -401,6 +401,9 @@ extern {
pub fn getpeereid(socket: ::c_int,
euid: *mut ::uid_t,
egid: *mut ::gid_t) -> ::c_int;
+ pub fn exchangedata(path1: *const ::c_char,
+ path2: *const ::c_char,
+ options: ::c_uint) -> ::c_int;
#[cfg_attr(target_os = "macos", link_name = "glob$INODE64")]
#[cfg_attr(target_os = "netbsd", link_name = "__glob30")]