NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
poll.h File Reference

Provide poll call where missing. More...

#include <config.h>
#include <freetds/pushvis.h>
#include <freetds/popvis.h>
+ Include dependency graph for poll.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  pollfd
 

Macros

#define _REPLACEMENTS_POLL_H
 
#define FD_SETSIZE   OPEN_MAX
 
#define POLLIN   0x0001
 
#define POLLOUT   0x0004
 
#define POLLERR   0x0008
 
#define POLLNORM   POLLIN
 
#define POLLPRI   POLLIN
 
#define POLLRDNORM   POLLIN
 
#define POLLRDBAND   POLLIN
 
#define POLLWRNORM   POLLOUT
 
#define POLLWRBAND   POLLOUT
 
#define POLLHUP   0x0010
 
#define POLLNVAL   0x0020
 
#define poll(fds, nfds, timeout)   tds_poll(fds, nfds, timeout)
 

Typedefs

typedef struct pollfd pollfd_t
 

Functions

int tds_poll (struct pollfd fds[], int nfds, int timeout)
 

Detailed Description

Provide poll call where missing.

Definition in file poll.h.

Macro Definition Documentation

◆ _REPLACEMENTS_POLL_H

#define _REPLACEMENTS_POLL_H

Definition at line 6 of file poll.h.

◆ FD_SETSIZE

#define FD_SETSIZE   OPEN_MAX

Definition at line 30 of file poll.h.

◆ poll

#define poll (   fds,
  nfds,
  timeout 
)    tds_poll(fds, nfds, timeout)

Definition at line 81 of file poll.h.

◆ POLLERR

#define POLLERR   0x0008

Definition at line 39 of file poll.h.

◆ POLLHUP

#define POLLHUP   0x0010

Definition at line 50 of file poll.h.

◆ POLLIN

#define POLLIN   0x0001

Definition at line 37 of file poll.h.

◆ POLLNORM

#define POLLNORM   POLLIN

Definition at line 42 of file poll.h.

◆ POLLNVAL

#define POLLNVAL   0x0020

Definition at line 51 of file poll.h.

◆ POLLOUT

#define POLLOUT   0x0004

Definition at line 38 of file poll.h.

◆ POLLPRI

#define POLLPRI   POLLIN

Definition at line 43 of file poll.h.

◆ POLLRDBAND

#define POLLRDBAND   POLLIN

Definition at line 45 of file poll.h.

◆ POLLRDNORM

#define POLLRDNORM   POLLIN

Definition at line 44 of file poll.h.

◆ POLLWRBAND

#define POLLWRBAND   POLLOUT

Definition at line 47 of file poll.h.

◆ POLLWRNORM

#define POLLWRNORM   POLLOUT

Definition at line 46 of file poll.h.

Typedef Documentation

◆ pollfd_t

typedef struct pollfd pollfd_t

Function Documentation

◆ tds_poll()

int tds_poll ( struct pollfd  fds[],
int  nfds,
int  timeout 
)

Definition at line 47 of file poll.c.

References assert, pollfd::events, pollfd::fd, FD_SETSIZE, int, mod(), NULL, POLLERR, POLLIN, POLLOUT, and pollfd::revents.

Modified on Thu Nov 30 04:54:39 2023 by modify_doxy.py rev. 669887