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.
19 lines
560 B
Modula-2
19 lines
560 B
Modula-2
//===-- Linux header epoll.h ----------------------------------------------===//
|
|
//
|
|
// 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_SYS_EPOLL_H
|
|
#define LLVM_LIBC_SYS_EPOLL_H
|
|
|
|
#include "__llvm-libc-common.h"
|
|
|
|
#include "llvm-libc-macros/sys-epoll-macros.h"
|
|
|
|
%%public_api()
|
|
|
|
#endif // LLVM_LIBC_SYS_EPOLL_H
|