diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-21 11:10:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-21 11:50:38 +0200 |
commit | 02c18bf6de8a428c0460c885ebcd76bf82aab013 (patch) | |
tree | e68d6aaabfd7628c8c5451832ef7b2146e792702 /Userland/Libraries/LibC | |
parent | ab878576bbdb42feb7d0be4393caaa6c55166d33 (diff) | |
download | serenity-02c18bf6de8a428c0460c885ebcd76bf82aab013.zip |
LibC: Stub out posix_memalign()
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/stdlib.cpp | 9 | ||||
-rw-r--r-- | Userland/Libraries/LibC/stdlib.h | 2 |
2 files changed, 11 insertions, 0 deletions
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 |