[llvm] [libc] [reland][libc] add epoll_wait functions (PR #79635)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 15:55:39 PST 2024


================
@@ -0,0 +1,21 @@
+//===-- Implementation header for epoll_wait function -----------*- 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_SYS_EPOLL_EPOLL_WAIT_H
+#define LLVM_LIBC_SRC_SYS_EPOLL_EPOLL_WAIT_H
+
+#include <sys/epoll.h> // For epoll_event
+
+namespace LIBC_NAMESPACE {
+
+int epoll_wait(int epfd, struct epoll_event *events, int maxevents,
----------------
lntue wrote:

We shouldn't need `struct` here.

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


More information about the llvm-commits mailing list