Skip to content

Commit 2d05930

Browse files
committed
Merge branch 'android-posix-memalign' of https://github.com/tamird/libc into merge
2 parents 0422dba + 0b102fd commit 2d05930

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unix/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ extern {
294294
link_name = "pause$UNIX2003")]
295295
pub fn pause() -> ::c_int;
296296
pub fn pipe(fds: *mut ::c_int) -> ::c_int;
297+
pub fn posix_memalign(memptr: *mut *mut ::c_void,
298+
align: ::size_t,
299+
size: ::size_t) -> ::c_int;
297300
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
298301
link_name = "read$UNIX2003")]
299302
pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t)
@@ -624,9 +627,6 @@ extern {
624627
buf: *mut ::c_char,
625628
buflen: ::size_t,
626629
result: *mut *mut passwd) -> ::c_int;
627-
pub fn posix_memalign(memptr: *mut *mut ::c_void,
628-
align: ::size_t,
629-
size: ::size_t) -> ::c_int;
630630
#[cfg_attr(target_os = "netbsd", link_name = "__sigemptyset14")]
631631
pub fn sigemptyset(set: *mut sigset_t) -> ::c_int;
632632
#[cfg_attr(target_os = "netbsd", link_name = "__sigaddset14")]

0 commit comments

Comments
 (0)