Skip to content

Commit

Permalink
Merge pull request rust-lang#1052 from debris/exchangedata
Browse files Browse the repository at this point in the history
Add exchangedata for osx
  • Loading branch information
alexcrichton authored Aug 16, 2018
2 parents 2c063c2 + 504f286 commit 78f1dd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/bsd/apple/b32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 12;

pub const TIOCTIMESTAMP: ::c_ulong = 0x40087459;
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40087458;

extern {
pub fn exchangedata(path1: *const ::c_char,
path2: *const ::c_char,
options: ::c_ulong) -> ::c_int;
}
6 changes: 6 additions & 0 deletions src/unix/bsd/apple/b64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 16;

pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458;

extern {
pub fn exchangedata(path1: *const ::c_char,
path2: *const ::c_char,
options: ::c_uint) -> ::c_int;
}

0 comments on commit 78f1dd2

Please sign in to comment.