[libc-commits] [libc] [libc] Implement accept4 on linux (PR #192927)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Mon Apr 20 06:56:06 PDT 2026


================
@@ -123,3 +126,53 @@ TEST_F(LlvmLibcConnectAcceptTest, ConnectLocalSocket) {
   ASSERT_THAT(LIBC_NAMESPACE::remove(ACCEPT_PATH), Succeeds(0));
   ASSERT_THAT(LIBC_NAMESPACE::remove(CONNECT_PATH), Succeeds(0));
 }
+
+TEST_F(LlvmLibcConnectAcceptTest, Accept4Flags) {
----------------
michaelrj-google wrote:

nit: we should also have a test where `accept4` fails to test the error branch.

https://github.com/llvm/llvm-project/pull/192927


More information about the libc-commits mailing list