From 02c18bf6de8a428c0460c885ebcd76bf82aab013 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 21 Apr 2022 11:10:41 +0200 Subject: LibC: Stub out posix_memalign() --- Userland/Libraries/LibC/stdlib.cpp | 9 +++++++++ Userland/Libraries/LibC/stdlib.h | 2 ++ 2 files changed, 11 insertions(+) (limited to 'Userland/Libraries/LibC') diff --git a/Userland/Libraries/LibC/stdlib.cpp b/Userland/Libraries/LibC/stdlib.cpp index 695c9c35e8..18af5fe9e6 100644 --- a/Userland/Libraries/LibC/stdlib.cpp +++ b/Userland/Libraries/LibC/stdlib.cpp @@ -1335,3 +1335,12 @@ void _Exit(int status) { _exit(status); } + +// https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html +int posix_memalign(void** memptr, size_t alignment, size_t size) +{ + (void)memptr; + (void)alignment; + (void)size; + TODO(); +} diff --git a/Userland/Libraries/LibC/stdlib.h b/Userland/Libraries/LibC/stdlib.h index 8a76ae78fe..3ea05e6c0c 100644 --- a/Userland/Libraries/LibC/stdlib.h +++ b/Userland/Libraries/LibC/stdlib.h @@ -101,4 +101,6 @@ int posix_openpt(int flags); int grantpt(int fd); int unlockpt(int fd); +int posix_memalign(void**, size_t alignment, size_t size); + __END_DECLS -- cgit v1.2.3