From 69058973a9f5073184b9f0b98dbcbbd63da40514 Mon Sep 17 00:00:00 2001 From: pk33 Date: Sun, 3 Nov 2024 03:46:13 +0100 Subject: ignore --- musl/sys/epoll.h | 81 -------------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 musl/sys/epoll.h (limited to 'musl/sys/epoll.h') diff --git a/musl/sys/epoll.h b/musl/sys/epoll.h deleted file mode 100644 index 5f975c4..0000000 --- a/musl/sys/epoll.h +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef _SYS_EPOLL_H -#define _SYS_EPOLL_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include -#include - -#define __NEED_sigset_t - -#include - -#define EPOLL_CLOEXEC O_CLOEXEC -#define EPOLL_NONBLOCK O_NONBLOCK - -enum EPOLL_EVENTS { __EPOLL_DUMMY }; -#define EPOLLIN 0x001 -#define EPOLLPRI 0x002 -#define EPOLLOUT 0x004 -#define EPOLLRDNORM 0x040 -#define EPOLLNVAL 0x020 -#define EPOLLRDBAND 0x080 -#define EPOLLWRNORM 0x100 -#define EPOLLWRBAND 0x200 -#define EPOLLMSG 0x400 -#define EPOLLERR 0x008 -#define EPOLLHUP 0x010 -#define EPOLLRDHUP 0x2000 -#define EPOLLEXCLUSIVE (1U<<28) -#define EPOLLWAKEUP (1U<<29) -#define EPOLLONESHOT (1U<<30) -#define EPOLLET (1U<<31) - -#define EPOLL_CTL_ADD 1 -#define EPOLL_CTL_DEL 2 -#define EPOLL_CTL_MOD 3 - -typedef union epoll_data { - void *ptr; - int fd; - uint32_t u32; - uint64_t u64; -} epoll_data_t; - -struct epoll_event { - uint32_t events; - epoll_data_t data; -} -#ifdef __x86_64__ -__attribute__ ((__packed__)) -#endif -; - -struct epoll_params { - uint32_t busy_poll_usecs; - uint16_t busy_poll_budget; - uint8_t prefer_busy_poll; - - uint8_t __pad; -}; - -#define EPOLL_IOC_TYPE 0x8A -#define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params) -#define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params) - -int epoll_create(int); -int epoll_create1(int); -int epoll_ctl(int, int, int, struct epoll_event *); -int epoll_wait(int, struct epoll_event *, int, int); -int epoll_pwait(int, struct epoll_event *, int, int, const sigset_t *); - - -#ifdef __cplusplus -} -#endif - -#endif /* sys/epoll.h */ -- cgit v1.2.3