Skip to content

Commit 504f286

Browse files
committed
Push function into lower modules
1 parent 56dde29 commit 504f286

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
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+
}

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,14 +2471,6 @@ extern {
24712471
pub fn renameatx_np(fromfd: ::c_int, from: *const ::c_char,
24722472
tofd: ::c_int, to: *const ::c_char,
24732473
flags: ::c_uint) -> ::c_int;
2474-
#[cfg(target_arch = "x86")]
2475-
pub fn exchangedata(path1: *const ::c_char,
2476-
path2: *const ::c_char,
2477-
options: ::c_ulong) -> ::c_int;
2478-
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
2479-
pub fn exchangedata(path1: *const ::c_char,
2480-
path2: *const ::c_char,
2481-
options: ::c_uint) -> ::c_int;
24822474
pub fn fremovexattr(filedes: ::c_int, name: *const ::c_char,
24832475
flags: ::c_int) -> ::c_int;
24842476

0 commit comments

Comments
 (0)