summaryrefslogtreecommitdiff
path: root/libc/test/src/sys/socket/linux/socket_test.cpp
AgeCommit message (Collapse)Author
2025-03-19[libc] Migrate sys/socket tests to use ErrnoCheckingTest. (#132107)Alexey Samsonov
Also use ErrnoSetterMatcher to verify the function return values and verify/clear out errno values. Fix the bug in ErrnoSetterMatcher error reporting machinery to properly convert errno values into errno names to make error messages easier to debug.
2024-01-26[libc][NFC] Use specific ASSERT macros to test errno (#79573)Guillaume Chatelet
This patch provides specific test macros to deal with `errno`. This will help abstract away the differences between unit test and integration/hermetic tests in #79319. In one case we use `libc_errno` which is a struct, in the other case we deal directly with `errno`.
2023-12-12[libc] Add bind function (#74014)michaelrj-google
This patch adds the bind function to go with the socket function. It also cleans up a lot of socket related data structures.
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-05-03[libc] add socket functionMichael Jones
This patch adds the function "socket" from the header "sys/socket". It's a simple syscall wrapper, and I plan on adding the related functions in a followup patch. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D149622