Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing function: aligned_alloc #3689

Open
RalfJung opened this issue May 9, 2024 · 0 comments
Open

Missing function: aligned_alloc #3689

RalfJung opened this issue May 9, 2024 · 0 comments
Labels
C-API-request Category: API request

Comments

@RalfJung
Copy link
Member

RalfJung commented May 9, 2024

This function is part of the C standard. I don't know the full set of targets that support it.

  • Linux: glibc has it, and I found it in musl, too (but that uses malloc + offset -- no idea how they're making sure that you can free the resulting pointer)
  • FreeBSD also seems to have it
  • macOS: available since 10.15 according to this (but buggy until today... but that's not libc's concern)
  • Solaris seems to have it, and same for Illumos (again, buggy...)
  • The function is mentioned here so I assume (recent enough) Android also has it.
@RalfJung RalfJung added the C-API-request Category: API request label May 9, 2024
devnexen added a commit to devnexen/libc that referenced this issue May 12, 2024
- linux glibc/musl.
- all supported BSD implements it.
- apple.
- solarish.

close rust-lang#3689
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-API-request Category: API request
Projects
None yet
Development

No branches or pull requests

1 participant