summaryrefslogtreecommitdiff
path: root/libc/test/src/sys/mman/linux/mlock_test.cpp
AgeCommit message (Collapse)Author
2025-10-15libc: Introduce calls to sysconf to get page size.Peter Collingbourne
sysconf(_SC_PAGESIZE) is implemented now. Reviewers: michaelrj-google, aaronmondal, rupprecht, keith Reviewed By: michaelrj-google Pull Request: https://github.com/llvm/llvm-project/pull/163462
2025-10-06[libc] Simplify mman tests (#161748)Michael Jones
Previously they called sysconf and capget. Those were blocking adding bazel rules for those tests since sysconf isn't done.
2025-09-23[libc] Cleanup mman functions and tests (#159657)Michael Jones
Remove functions depending on each other, cleanup internal errno in shm_common, remove various unnecessary includes.
2025-06-11[libc] Move libc_errno.h to libc/src/__support and make ↵lntue
LIBC_ERRNO_MODE_SYSTEM to be header-only. (#143187) This is the first step in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-05-28[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871)Alexey Samsonov
See PR #132823 for a previous change to sys/epoll tests, and prior changes before that. ErrnoCheckingTest ensures that errno is properly reset at the beginning of the test case, and is validated at the end of it. This change removes many instances of manual errno manipulation.
2024-11-05[libc][NFC] Correct test header inclusion, license (#114604)Michael Jones
Some tests were including LibcTest.h directly. Instead you should include Test.h which does proper indirection for other test frameworks we support (zxtest, gtest). Also added some license headers to tests that were missing them.
2024-10-31[libc] Remove asm-generic includes from tests (#114479)Michael Jones
We shouldn't be including headers directly from asm-generic for macros. It's safer to get those through the correct primary header where possible (e.g. fcntl instead of asm-generic/fcntl). For our public headers we may need to include the asm-generic headers instead of defining all the macros ourselves, but that's something for a followup PR.
2024-02-06[libc] Move libc_errno inside of LIBC_NAMESPACE (#80774)michaelrj-google
Having libc_errno outside of the namespace causes versioning issues when trying to link the tests against LLVM-libc. Most of this patch is just moving libc_errno inside the namespace in tests. This isn't necessary in the function implementations since those are already inside the namespace.
2024-02-01[libc] Update libc_errno to work correctly in both overlay and full build ↵lntue
modes. (#80177)
2024-01-30[libc] disable mlockall w/ MCL_ONFAULT (#80075)Nick Desaulniers
I suspect this is a bug in linux 4.19, as the test passes as written on my linux 6.5 machine. Let's revisit this after the build bots are upgraded. Link: #80073
2024-01-30[libc] implement mlock/mlock2/munlock/mlockall/munlockall (#79645)Schrodinger ZHU Yifan
fixes #79336 Co-authored-by: Sirui Mu <msrlancern@gmail.com>