Skip to content

Commit 78f1dd2

Browse files
authored
Merge pull request #1052 from debris/exchangedata
Add exchangedata for osx
2 parents 2c063c2 + 504f286 commit 78f1dd2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/unix/bsd/apple/b32.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 12;
5858

5959
pub const TIOCTIMESTAMP: ::c_ulong = 0x40087459;
6060
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40087458;
61+
62+
extern {
63+
pub fn exchangedata(path1: *const ::c_char,
64+
path2: *const ::c_char,
65+
options: ::c_ulong) -> ::c_int;
66+
}

src/unix/bsd/apple/b64.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 16;
6363

6464
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
6565
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458;
66+
67+
extern {
68+
pub fn exchangedata(path1: *const ::c_char,
69+
path2: *const ::c_char,
70+
options: ::c_uint) -> ::c_int;
71+
}

0 commit comments

Comments
 (0)