VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
poll.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./signal.h"
#include "./simple_libc/time.h"

Go to the source code of this file.

Data Structures

struct  pollfd
 
struct  vsf_linux_poll_vplt_t
 

Macros

#define poll   VSF_LINUX_WRAPPER(poll)
 
#define ppoll   VSF_LINUX_WRAPPER(ppoll)
 
#define __NR_poll   poll
 
#define __NR_ppoll   ppoll
 
#define POLLIN   (1 << 0)
 
#define POLLPRI   (1 << 1)
 
#define POLLOUT   (1 << 2)
 
#define POLLERR   (1 << 3)
 
#define POLLHUP   (1 << 4)
 
#define POLLNVAL   (1 << 5)
 
#define POLLRDNORM   (1 << 6)
 
#define POLLRDBAND   (1 << 7)
 
#define POLLWRNORM   (1 << 8)
 
#define POLLWRBAND   (1 << 9)
 
#define POLLRDHUP   (1 << 10)
 

Typedefs

typedef int nfds_t
 
typedef struct vsf_linux_fd_priv_callback_t vsf_linux_fd_priv_callback_t
 
typedef struct vsf_linux_poll_vplt_t vsf_linux_poll_vplt_t
 

Functions

int poll (struct pollfd *fds, nfds_t nfds, int timeout)
 
int ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts, const sigset_t *sigmask)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_poll_vplt_t vsf_linux_poll_vplt
 

Macro Definition Documentation

◆ poll

#define poll   VSF_LINUX_WRAPPER(poll)

◆ ppoll

#define ppoll   VSF_LINUX_WRAPPER(ppoll)

◆ __NR_poll

#define __NR_poll   poll

◆ __NR_ppoll

#define __NR_ppoll   ppoll

◆ POLLIN

#define POLLIN   (1 << 0)

◆ POLLPRI

#define POLLPRI   (1 << 1)

◆ POLLOUT

#define POLLOUT   (1 << 2)

◆ POLLERR

#define POLLERR   (1 << 3)

◆ POLLHUP

#define POLLHUP   (1 << 4)

◆ POLLNVAL

#define POLLNVAL   (1 << 5)

◆ POLLRDNORM

#define POLLRDNORM   (1 << 6)

◆ POLLRDBAND

#define POLLRDBAND   (1 << 7)

◆ POLLWRNORM

#define POLLWRNORM   (1 << 8)

◆ POLLWRBAND

#define POLLWRBAND   (1 << 9)

◆ POLLRDHUP

#define POLLRDHUP   (1 << 10)

Typedef Documentation

◆ nfds_t

typedef int nfds_t

◆ vsf_linux_fd_priv_callback_t

◆ vsf_linux_poll_vplt_t

Function Documentation

◆ poll()

int poll ( struct pollfd fds,
nfds_t  nfds,
int  timeout 
)

◆ ppoll()

int ppoll ( struct pollfd fds,
nfds_t  nfds,
const struct timespec timeout_ts,
const sigset_t sigmask 
)

Variable Documentation

◆ vsf_linux_poll_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_poll_vplt_t vsf_linux_poll_vplt
extern