summaryrefslogtreecommitdiff
path: root/libc/src/sys/socket
AgeCommit message (Collapse)Author
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
2024-11-22[libc] Fix unpoisoning for recvfrom (#117366)Michael Jones
Turns out there were also errors in the recvfrom unpoisoning logic. This patch fixes those.
2024-11-05[libc] Fix sendmsg iovec unpoisoning (#115057)Michael Jones
The unpoisoning for sendmsg had a typo where it would not unpoison all of the elements in the iovec, causing msan errors. This patch fixes that.
2024-10-03[libc] Small recvfrom fixes (yaml, unpoison) (#111020)Michael Jones
Forgot to update the newhdrgen yaml (old headergen is fine) and forgot to unpoison addrlen. This patch fixes those.
2024-10-03[libc] Fix send and recv functions (#110936)Michael Jones
There were some errors in the implementation. Oops. This patch fixes those.
2024-09-24[libc] Add MSAN unpoison annotations to recv funcs (#109844)Michael Jones
Anywhere a struct is returned from the kernel, we need to explicitly unpoison it for MSAN. This patch does that for the recv, recvfrom, recvmsg, and socketpair functions.
2024-09-19[libc] Put bind back, fix gcc build (#109341)Michael Jones
Fixes #106467. Bind was accidentally removed while trying to clean up functions that didn't end up being needed. The GCC issue was just a warning treated as an error.
2024-09-19[libc] Add functions to send/recv messages (#106467)Michael Jones
This patch adds the necessary functions to send and receive messages over a socket. Those functions are: recv, recvfrom, recvmsg, send, sendto, sendmsg, and socketpair for testing.
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
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-09-21[libc][clang-tidy] Add llvm-header-guard to get consistant naming and ↵Guillaume Chatelet
prevent file copy/paste issues. (#66477)
2023-08-07[libc][cleanup] Fix most conversion warningsMichael Jones
This patch is large, but is almost entirely just adding casts to calls to syscall_impl. Much of the work was done programatically, with human checking when the syntax or types got confusing. Reviewed By: mcgrathr Differential Revision: https://reviews.llvm.org/D156950
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