Skip to content

Commit b190462

Browse files
devnexentgross35
authored andcommitted
adding aligned_alloc support for unixes.
close #3689 (backport <#3843>) (cherry picked from commit f136b30)
1 parent 9a31934 commit b190462

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/unix.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ accept
453453
access
454454
addrinfo
455455
alarm
456+
aligned_alloc
456457
atexit
457458
atof
458459
atoi

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ extern "C" {
940940
pub fn pathconf(path: *const c_char, name: ::c_int) -> c_long;
941941
pub fn pipe(fds: *mut ::c_int) -> ::c_int;
942942
pub fn posix_memalign(memptr: *mut *mut ::c_void, align: ::size_t, size: ::size_t) -> ::c_int;
943+
pub fn aligned_alloc(alignment: ::size_t, size: ::size_t) -> *mut ::c_void;
943944
#[cfg_attr(
944945
all(target_os = "macos", target_arch = "x86"),
945946
link_name = "read$UNIX2003"

0 commit comments

Comments
 (0)