Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/sys
File: epoll.h
/* Copyright (C) 2002-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_EPOLL_H
[17] Fix | Delete
#define _SYS_EPOLL_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <stdint.h>
[20] Fix | Delete
#include <sys/types.h>
[21] Fix | Delete
[22] Fix | Delete
#include <bits/types/sigset_t.h>
[23] Fix | Delete
[24] Fix | Delete
/* Get the platform-dependent flags. */
[25] Fix | Delete
#include <bits/epoll.h>
[26] Fix | Delete
[27] Fix | Delete
#ifndef __EPOLL_PACKED
[28] Fix | Delete
# define __EPOLL_PACKED
[29] Fix | Delete
#endif
[30] Fix | Delete
[31] Fix | Delete
[32] Fix | Delete
enum EPOLL_EVENTS
[33] Fix | Delete
{
[34] Fix | Delete
EPOLLIN = 0x001,
[35] Fix | Delete
#define EPOLLIN EPOLLIN
[36] Fix | Delete
EPOLLPRI = 0x002,
[37] Fix | Delete
#define EPOLLPRI EPOLLPRI
[38] Fix | Delete
EPOLLOUT = 0x004,
[39] Fix | Delete
#define EPOLLOUT EPOLLOUT
[40] Fix | Delete
EPOLLRDNORM = 0x040,
[41] Fix | Delete
#define EPOLLRDNORM EPOLLRDNORM
[42] Fix | Delete
EPOLLRDBAND = 0x080,
[43] Fix | Delete
#define EPOLLRDBAND EPOLLRDBAND
[44] Fix | Delete
EPOLLWRNORM = 0x100,
[45] Fix | Delete
#define EPOLLWRNORM EPOLLWRNORM
[46] Fix | Delete
EPOLLWRBAND = 0x200,
[47] Fix | Delete
#define EPOLLWRBAND EPOLLWRBAND
[48] Fix | Delete
EPOLLMSG = 0x400,
[49] Fix | Delete
#define EPOLLMSG EPOLLMSG
[50] Fix | Delete
EPOLLERR = 0x008,
[51] Fix | Delete
#define EPOLLERR EPOLLERR
[52] Fix | Delete
EPOLLHUP = 0x010,
[53] Fix | Delete
#define EPOLLHUP EPOLLHUP
[54] Fix | Delete
EPOLLRDHUP = 0x2000,
[55] Fix | Delete
#define EPOLLRDHUP EPOLLRDHUP
[56] Fix | Delete
EPOLLEXCLUSIVE = 1u << 28,
[57] Fix | Delete
#define EPOLLEXCLUSIVE EPOLLEXCLUSIVE
[58] Fix | Delete
EPOLLWAKEUP = 1u << 29,
[59] Fix | Delete
#define EPOLLWAKEUP EPOLLWAKEUP
[60] Fix | Delete
EPOLLONESHOT = 1u << 30,
[61] Fix | Delete
#define EPOLLONESHOT EPOLLONESHOT
[62] Fix | Delete
EPOLLET = 1u << 31
[63] Fix | Delete
#define EPOLLET EPOLLET
[64] Fix | Delete
};
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
/* Valid opcodes ( "op" parameter ) to issue to epoll_ctl(). */
[68] Fix | Delete
#define EPOLL_CTL_ADD 1 /* Add a file descriptor to the interface. */
[69] Fix | Delete
#define EPOLL_CTL_DEL 2 /* Remove a file descriptor from the interface. */
[70] Fix | Delete
#define EPOLL_CTL_MOD 3 /* Change file descriptor epoll_event structure. */
[71] Fix | Delete
[72] Fix | Delete
[73] Fix | Delete
typedef union epoll_data
[74] Fix | Delete
{
[75] Fix | Delete
void *ptr;
[76] Fix | Delete
int fd;
[77] Fix | Delete
uint32_t u32;
[78] Fix | Delete
uint64_t u64;
[79] Fix | Delete
} epoll_data_t;
[80] Fix | Delete
[81] Fix | Delete
struct epoll_event
[82] Fix | Delete
{
[83] Fix | Delete
uint32_t events; /* Epoll events */
[84] Fix | Delete
epoll_data_t data; /* User data variable */
[85] Fix | Delete
} __EPOLL_PACKED;
[86] Fix | Delete
[87] Fix | Delete
[88] Fix | Delete
__BEGIN_DECLS
[89] Fix | Delete
[90] Fix | Delete
/* Creates an epoll instance. Returns an fd for the new instance.
[91] Fix | Delete
The "size" parameter is a hint specifying the number of file
[92] Fix | Delete
descriptors to be associated with the new instance. The fd
[93] Fix | Delete
returned by epoll_create() should be closed with close(). */
[94] Fix | Delete
extern int epoll_create (int __size) __THROW;
[95] Fix | Delete
[96] Fix | Delete
/* Same as epoll_create but with an FLAGS parameter. The unused SIZE
[97] Fix | Delete
parameter has been dropped. */
[98] Fix | Delete
extern int epoll_create1 (int __flags) __THROW;
[99] Fix | Delete
[100] Fix | Delete
[101] Fix | Delete
/* Manipulate an epoll instance "epfd". Returns 0 in case of success,
[102] Fix | Delete
-1 in case of error ( the "errno" variable will contain the
[103] Fix | Delete
specific error code ) The "op" parameter is one of the EPOLL_CTL_*
[104] Fix | Delete
constants defined above. The "fd" parameter is the target of the
[105] Fix | Delete
operation. The "event" parameter describes which events the caller
[106] Fix | Delete
is interested in and any associated user data. */
[107] Fix | Delete
extern int epoll_ctl (int __epfd, int __op, int __fd,
[108] Fix | Delete
struct epoll_event *__event) __THROW;
[109] Fix | Delete
[110] Fix | Delete
[111] Fix | Delete
/* Wait for events on an epoll instance "epfd". Returns the number of
[112] Fix | Delete
triggered events returned in "events" buffer. Or -1 in case of
[113] Fix | Delete
error with the "errno" variable set to the specific error code. The
[114] Fix | Delete
"events" parameter is a buffer that will contain triggered
[115] Fix | Delete
events. The "maxevents" is the maximum number of events to be
[116] Fix | Delete
returned ( usually size of "events" ). The "timeout" parameter
[117] Fix | Delete
specifies the maximum wait time in milliseconds (-1 == infinite).
[118] Fix | Delete
[119] Fix | Delete
This function is a cancellation point and therefore not marked with
[120] Fix | Delete
__THROW. */
[121] Fix | Delete
extern int epoll_wait (int __epfd, struct epoll_event *__events,
[122] Fix | Delete
int __maxevents, int __timeout);
[123] Fix | Delete
[124] Fix | Delete
[125] Fix | Delete
/* Same as epoll_wait, but the thread's signal mask is temporarily
[126] Fix | Delete
and atomically replaced with the one provided as parameter.
[127] Fix | Delete
[128] Fix | Delete
This function is a cancellation point and therefore not marked with
[129] Fix | Delete
__THROW. */
[130] Fix | Delete
extern int epoll_pwait (int __epfd, struct epoll_event *__events,
[131] Fix | Delete
int __maxevents, int __timeout,
[132] Fix | Delete
const __sigset_t *__ss);
[133] Fix | Delete
[134] Fix | Delete
__END_DECLS
[135] Fix | Delete
[136] Fix | Delete
#endif /* sys/epoll.h */
[137] Fix | Delete
[138] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function