#include <sys/cdefs.h> #include <linux/poll.h> #include <signal.h> /* For sigset_t. */ #include <time.h> /* For timespec. */
__BEGIN_DECLS
/** The type of a file descriptor count, used by poll() and ppoll(). */ typedefunsignedint nfds_t;
/** *[poll(3)](https://man7.org/linux/man-pages/man3/poll.3.html) waits on a set of file descriptors. * *Returnsthenumberofreadyfiledescriptorsonsuccess,0fortimeout, *andreturns-1andsets`errno`onfailure.
*/ int poll(struct pollfd* _Nullable __fds, nfds_t __count, int __timeout_ms);
/** *[ppoll(3)](https://man7.org/linux/man-pages/man3/ppoll.3.html) waits on a set of file descriptors *orasignal.Set`__timeout`tonullfornotimeout.Set`__mask`tonulltonotsetthesignal *mask. * *Returnsthenumberofreadyfiledescriptorsonsuccess,0fortimeout, *andreturns-1andsets`errno`onfailure.
*/ int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, conststruct timespec* _Nullable __timeout, const sigset_t* _Nullable __mask);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.