mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 10:56:07 +00:00

The epoll_wait functions need the rest of the epoll functions (create, ctl) to be available to actually test them, as well as pipe to create a usable file descriptor. This patch adds epoll_create, epoll_create1, epoll_ctl, and pipe. These have tests, and the tests for epoll_wait, epoll_pwait, and epoll_pwait2 (currently disabled) are updated to use these newly available functions.
17 lines
566 B
C
17 lines
566 B
C
//===-- Macros defined in sys/epoll.h header file -------------------------===//
|
|
//
|
|
// 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_MACROS_SYS_EPOLL_MACROS_H
|
|
#define LLVM_LIBC_MACROS_SYS_EPOLL_MACROS_H
|
|
|
|
#ifdef __linux__
|
|
#include "linux/sys-epoll-macros.h"
|
|
#endif
|
|
|
|
#endif // LLVM_LIBC_MACROS_SYS_EPOLL_MACROS_H
|