[llvm] [libc] [reland][libc] add epoll_wait functions (PR #79635)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 15:56:43 PST 2024
================
@@ -0,0 +1,19 @@
+//===-- Definition of epoll_event type ------------------------------------===//
+//
+// 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_TYPES_EPOLL_EVENT_H__
+#define __LLVM_LIBC_TYPES_EPOLL_EVENT_H__
+
+#include <llvm-libc-types/epoll_data.h>
+
+typedef struct epoll_event {
+ __UINT32_TYPE__ events;
+ epoll_data_t data;
+};
----------------
lntue wrote:
Do you mean to add `epoll_event` after `}` for C?
https://github.com/llvm/llvm-project/pull/79635
More information about the llvm-commits
mailing list