Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/sys
File: poll.h
/* Compatibility definitions for System V `poll' interface.
[0] Fix | Delete
Copyright (C) 1994-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _SYS_POLL_H
[18] Fix | Delete
#define _SYS_POLL_H 1
[19] Fix | Delete
[20] Fix | Delete
#include <features.h>
[21] Fix | Delete
[22] Fix | Delete
/* Get the platform dependent bits of `poll'. */
[23] Fix | Delete
#include <bits/poll.h>
[24] Fix | Delete
#ifdef __USE_GNU
[25] Fix | Delete
# include <bits/types/__sigset_t.h>
[26] Fix | Delete
# include <bits/types/struct_timespec.h>
[27] Fix | Delete
#endif
[28] Fix | Delete
[29] Fix | Delete
[30] Fix | Delete
/* Type used for the number of file descriptors. */
[31] Fix | Delete
typedef unsigned long int nfds_t;
[32] Fix | Delete
[33] Fix | Delete
/* Data structure describing a polling request. */
[34] Fix | Delete
struct pollfd
[35] Fix | Delete
{
[36] Fix | Delete
int fd; /* File descriptor to poll. */
[37] Fix | Delete
short int events; /* Types of events poller cares about. */
[38] Fix | Delete
short int revents; /* Types of events that actually occurred. */
[39] Fix | Delete
};
[40] Fix | Delete
[41] Fix | Delete
[42] Fix | Delete
__BEGIN_DECLS
[43] Fix | Delete
[44] Fix | Delete
/* Poll the file descriptors described by the NFDS structures starting at
[45] Fix | Delete
FDS. If TIMEOUT is nonzero and not -1, allow TIMEOUT milliseconds for
[46] Fix | Delete
an event to occur; if TIMEOUT is -1, block until an event occurs.
[47] Fix | Delete
Returns the number of file descriptors with events, zero if timed out,
[48] Fix | Delete
or -1 for errors.
[49] Fix | Delete
[50] Fix | Delete
This function is a cancellation point and therefore not marked with
[51] Fix | Delete
__THROW. */
[52] Fix | Delete
extern int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout);
[53] Fix | Delete
[54] Fix | Delete
#ifdef __USE_GNU
[55] Fix | Delete
/* Like poll, but before waiting the threads signal mask is replaced
[56] Fix | Delete
with that specified in the fourth parameter. For better usability,
[57] Fix | Delete
the timeout value is specified using a TIMESPEC object.
[58] Fix | Delete
[59] Fix | Delete
This function is a cancellation point and therefore not marked with
[60] Fix | Delete
__THROW. */
[61] Fix | Delete
extern int ppoll (struct pollfd *__fds, nfds_t __nfds,
[62] Fix | Delete
const struct timespec *__timeout,
[63] Fix | Delete
const __sigset_t *__ss);
[64] Fix | Delete
#endif
[65] Fix | Delete
[66] Fix | Delete
__END_DECLS
[67] Fix | Delete
[68] Fix | Delete
[69] Fix | Delete
/* Define some inlines helping to catch common problems. */
[70] Fix | Delete
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
[71] Fix | Delete
# include <bits/poll2.h>
[72] Fix | Delete
#endif
[73] Fix | Delete
[74] Fix | Delete
#endif /* sys/poll.h */
[75] Fix | Delete
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function