[all-commits] [llvm/llvm-project] dbc095: [libc] Provide sys/queue.h (#78081)
Petr Hosek via All-commits
all-commits at lists.llvm.org
Thu Jan 18 21:46:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dbc09553149dee5ff5d4a8f544f56df5f01c584a
https://github.com/llvm/llvm-project/commit/dbc09553149dee5ff5d4a8f544f56df5f01c584a
Author: Petr Hosek <phosek at google.com>
Date: 2024-01-18 (Thu, 18 Jan 2024)
Changed paths:
M libc/config/baremetal/arm/headers.txt
M libc/config/baremetal/riscv/headers.txt
M libc/config/linux/riscv/headers.txt
M libc/config/linux/x86_64/headers.txt
M libc/include/CMakeLists.txt
M libc/include/llvm-libc-macros/CMakeLists.txt
A libc/include/llvm-libc-macros/containerof-macro.h
A libc/include/llvm-libc-macros/offsetof-macro.h
A libc/include/llvm-libc-macros/sys-queue-macros.h
A libc/include/sys/queue.h
M libc/test/CMakeLists.txt
A libc/test/include/CMakeLists.txt
A libc/test/include/sys/queue_test.cpp
Log Message:
-----------
[libc] Provide sys/queue.h (#78081)
This header first appeared in 4.4BSD and is provided by a number of C
libraries including Newlib. Several of our embedded projects use this
header and so to make LLVM libc a drop-in replacement, we need to
provide it as well.
For the initial commit, we only implement singly linked variants (SLIST
and STAILQ). The doubly linked variants (LIST, TAILQ and CIRCLEQ) can be
implemented in the future as needed.
More information about the All-commits
mailing list