Skip to content

Commit

Permalink
adding aligned_alloc support for unixes.
Browse files Browse the repository at this point in the history
close rust-lang#3689

(backport <rust-lang#3843>)
(cherry picked from commit f136b30)
  • Loading branch information
devnexen authored and tgross35 committed Nov 18, 2024
1 parent 397d198 commit 245318a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/unix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ accept
access
addrinfo
alarm
aligned_alloc
atexit
atof
atoi
Expand Down
1 change: 1 addition & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ extern "C" {
pub fn pathconf(path: *const c_char, name: ::c_int) -> c_long;
pub fn pipe(fds: *mut ::c_int) -> ::c_int;
pub fn posix_memalign(memptr: *mut *mut ::c_void, align: ::size_t, size: ::size_t) -> ::c_int;
pub fn aligned_alloc(alignment: ::size_t, size: ::size_t) -> *mut ::c_void;
#[cfg_attr(
all(target_os = "macos", target_arch = "x86"),
link_name = "read$UNIX2003"
Expand Down

0 comments on commit 245318a

Please sign in to comment.