[libc-commits] [libc] [libc] Implement listen(2) on linux (PR #190755)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Wed Apr 8 13:04:57 PDT 2026
================
@@ -0,0 +1,43 @@
+//===-- Implementation header for listen ------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC___SUPPORT_OSUTIL_SYSCALL_WRAPPERS_LISTEN_H
+#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_SYSCALL_WRAPPERS_LISTEN_H
+
+#include "src/__support/OSUtil/linux/syscall.h" // syscall_impl
+#include "src/__support/common.h"
+#include "src/__support/error_or.h"
+#include "src/__support/macros/config.h"
+
+#include <linux/net.h> // For SYS_SOCKET socketcall number.
----------------
vonosmas wrote:
SYS_LISTEN
https://github.com/llvm/llvm-project/pull/190755
More information about the libc-commits
mailing list