SNode.C
Loading...
Searching...
No Matches
core::system Namespace Reference

Functions

void * dlopen (const char *filename, int flags)
 
int dlclose (void *handle)
 
void * dlsym (void *handle, const char *symbol)
 
char * dlerror ()
 
int epoll_create1 (int flags)
 
int epoll_wait (int epfd, epoll_event *events, int maxevents, int timeout)
 
int epoll_pwait (int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigMask)
 
int epoll_ctl (int epfd, int op, int fd, epoll_event *event)
 
int getaddrinfo (const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
 
void freeaddrinfo (struct addrinfo *res)
 
int getnameinfo (const sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
 
int poll (pollfd *fds, nfds_t nfds, int timeout)
 
int ppoll (struct pollfd *fds, nfds_t nfds, const timespec *timeout, const sigset_t *sigMask)
 
int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
int pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, const sigset_t *sigMask)
 
int socket (int domain, int type, int protocol)
 
int bind (int sockfd, const sockaddr *addr, socklen_t addrlen)
 
int listen (int sockfd, int backlog)
 
int accept (int sockfd, sockaddr *addr, socklen_t *addrlen)
 
int accept4 (int sockfd, sockaddr *addr, socklen_t *addrlen, int flags)
 
int connect (int sockfd, const sockaddr *addr, socklen_t addrlen)
 
int getsockname (int sockfd, sockaddr *addr, socklen_t *addrlen)
 
int getpeername (int sockfd, sockaddr *addr, socklen_t *addrlen)
 
ssize_t recv (int sockfd, void *buf, std::size_t len, int flags)
 
ssize_t send (int sockfd, const void *buf, std::size_t len, int flags)
 
int getsockopt (int sockfd, int level, int optname, void *optval, socklen_t *optlen)
 
int setsockopt (int sockfd, int level, int optname, const void *optval, socklen_t optlen)
 
int shutdown (int sockfd, int how)
 
int open (const char *pathname, int flags)
 
ssize_t read (int fd, void *buf, std::size_t count)
 
ssize_t write (int fd, const void *buf, std::size_t count)
 
int close (int fd)
 
int pipe2 (int pipefd[2], int flags)
 
int flock (int lockFd, int operation)
 
int pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const timespec *timeout, const sigset_t *sigMask)
 

Function Documentation

◆ accept()

int core::system::accept ( int sockfd,
sockaddr * addr,
socklen_t * addrlen )

Definition at line 45 of file socket.cpp.

45 {
46 errno = 0;
47 return ::accept(sockfd, addr, addrlen);
48 }

◆ accept4()

int core::system::accept4 ( int sockfd,
sockaddr * addr,
socklen_t * addrlen,
int flags )

Definition at line 50 of file socket.cpp.

50 {
51 errno = 0;
52 return ::accept4(sockfd, addr, addrlen, flags);
53 }

◆ bind()

int core::system::bind ( int sockfd,
const sockaddr * addr,
socklen_t addrlen )

Definition at line 35 of file socket.cpp.

35 {
36 errno = 0;
37 return ::bind(sockfd, addr, addrlen);
38 }

◆ close()

int core::system::close ( int fd)

Definition at line 45 of file unistd.cpp.

45 {
46 errno = 0;
47 return ::close(fd);
48 }

Referenced by core::Descriptor::~Descriptor().

Here is the caller graph for this function:

◆ connect()

int core::system::connect ( int sockfd,
const sockaddr * addr,
socklen_t addrlen )

Definition at line 54 of file socket.cpp.

54 {
55 errno = 0;
56 return ::connect(sockfd, addr, addrlen);
57 }

◆ dlclose()

int core::system::dlclose ( void * handle)

Definition at line 35 of file dlfcn.cpp.

35 {
36 errno = 0;
37 return ::dlclose(handle);
38 }

◆ dlerror()

char * core::system::dlerror ( )

Definition at line 45 of file dlfcn.cpp.

45 {
46 errno = 0;
47 return ::dlerror();
48 }

◆ dlopen()

void * core::system::dlopen ( const char * filename,
int flags )

Definition at line 30 of file dlfcn.cpp.

30 {
31 errno = 0;
32 return ::dlopen(filename, flags);
33 }

◆ dlsym()

void * core::system::dlsym ( void * handle,
const char * symbol )

Definition at line 40 of file dlfcn.cpp.

40 {
41 errno = 0;
42 return ::dlsym(handle, symbol);
43 }

◆ epoll_create1()

int core::system::epoll_create1 ( int flags)

Definition at line 30 of file epoll.cpp.

30 {
31 errno = 0;
32 return ::epoll_create1(flags);
33 }

Referenced by core::multiplexer::epoll::DescriptorEventPublisher::EPollEvents::EPollEvents().

Here is the caller graph for this function:

◆ epoll_ctl()

int core::system::epoll_ctl ( int epfd,
int op,
int fd,
epoll_event * event )

Definition at line 45 of file epoll.cpp.

45 {
46 errno = 0;
47 return ::epoll_ctl(epfd, op, fd, event);
48 }

Referenced by core::multiplexer::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::multiplexer::epoll::DescriptorEventPublisher::EPollEvents::muxDel(), and core::multiplexer::epoll::DescriptorEventPublisher::EPollEvents::muxMod().

Here is the caller graph for this function:

◆ epoll_pwait()

int core::system::epoll_pwait ( int epfd,
struct epoll_event * events,
int maxevents,
int timeout,
const sigset_t * sigMask )

Definition at line 40 of file epoll.cpp.

40 {
41 errno = 0;
42 return ::epoll_pwait(epfd, events, maxevents, timeout, sigMask);
43 }

◆ epoll_wait()

int core::system::epoll_wait ( int epfd,
epoll_event * events,
int maxevents,
int timeout )

Definition at line 35 of file epoll.cpp.

35 {
36 errno = 0;
37 return ::epoll_wait(epfd, events, maxevents, timeout);
38 }

◆ flock()

int core::system::flock ( int lockFd,
int operation )

Definition at line 55 of file unistd.cpp.

55 {
56 errno = 0;
57 return ::flock(lockFd, operation);
58 }

◆ freeaddrinfo()

void core::system::freeaddrinfo ( struct addrinfo * res)

Definition at line 35 of file netdb.cpp.

35 {
36 errno = 0;
37 ::freeaddrinfo(res);
38 }

◆ getaddrinfo()

int core::system::getaddrinfo ( const char * node,
const char * service,
const struct addrinfo * hints,
struct addrinfo ** res )

Definition at line 30 of file netdb.cpp.

30 {
31 errno = 0;
32 return ::getaddrinfo(node, service, hints, res);
33 }

◆ getnameinfo()

int core::system::getnameinfo ( const sockaddr * addr,
socklen_t addrlen,
char * host,
socklen_t hostlen,
char * serv,
socklen_t servlen,
int flags )

Definition at line 40 of file netdb.cpp.

40 {
41 errno = 0;
42 return ::getnameinfo(addr, addrlen, host, hostlen, serv, servlen, flags);
43 }

◆ getpeername()

int core::system::getpeername ( int sockfd,
sockaddr * addr,
socklen_t * addrlen )

Definition at line 64 of file socket.cpp.

64 {
65 errno = 0;
66 return ::getpeername(sockfd, addr, addrlen);
67 }

◆ getsockname()

int core::system::getsockname ( int sockfd,
sockaddr * addr,
socklen_t * addrlen )

Definition at line 59 of file socket.cpp.

59 {
60 errno = 0;
61 return ::getsockname(sockfd, addr, addrlen);
62 }

◆ getsockopt()

int core::system::getsockopt ( int sockfd,
int level,
int optname,
void * optval,
socklen_t * optlen )

Definition at line 79 of file socket.cpp.

79 {
80 errno = 0;
81 return ::getsockopt(sockfd, level, optname, optval, optlen);
82 }

◆ listen()

int core::system::listen ( int sockfd,
int backlog )

Definition at line 40 of file socket.cpp.

40 {
41 errno = 0;
42 return ::listen(sockfd, backlog);
43 }

◆ open()

int core::system::open ( const char * pathname,
int flags )

Definition at line 30 of file unistd.cpp.

30 {
31 errno = 0;
32 return ::open(pathname, flags);
33 }

◆ pipe2()

int core::system::pipe2 ( int pipefd[2],
int flags )

Definition at line 50 of file unistd.cpp.

50 {
51 errno = 0;
52 return ::pipe2(pipefd, flags);
53 }

Referenced by core::pipe::Pipe::Pipe().

Here is the caller graph for this function:

◆ poll()

int core::system::poll ( pollfd * fds,
nfds_t nfds,
int timeout )

Definition at line 32 of file poll.cpp.

32 {
33 errno = 0;
34 return ::poll(fds, nfds, timeout);
35 }

◆ ppoll()

int core::system::ppoll ( struct pollfd * fds,
nfds_t nfds,
const timespec * timeout,
const sigset_t * sigMask )

Definition at line 37 of file poll.cpp.

37 {
38 errno = 0;
39 return ::ppoll(fds, nfds, timeout, sigMask);
40 }

◆ pselect() [1/2]

int core::system::pselect ( int nfds,
fd_set * readfds,
fd_set * writefds,
fd_set * exceptfds,
const struct timespec * timeout,
const sigset_t * sigMask )

Definition at line 35 of file select.cpp.

35 {
36 errno = 0;
37 return ::pselect(nfds, readfds, writefds, exceptfds, timeout, sigMask);
38 }

◆ pselect() [2/2]

int core::system::pselect ( int nfds,
fd_set * readfds,
fd_set * writefds,
fd_set * exceptfds,
const timespec * timeout,
const sigset_t * sigMask )

◆ read()

ssize_t core::system::read ( int fd,
void * buf,
std::size_t count )

Definition at line 35 of file unistd.cpp.

35 {
36 errno = 0;
37 return ::read(fd, buf, count);
38 }

Referenced by core::pipe::PipeSink::readEvent().

Here is the caller graph for this function:

◆ recv()

ssize_t core::system::recv ( int sockfd,
void * buf,
std::size_t len,
int flags )

Definition at line 69 of file socket.cpp.

69 {
70 errno = 0;
71 return ::recv(sockfd, buf, len, flags);
72 }

Referenced by core::socket::stream::SocketReader::read().

Here is the caller graph for this function:

◆ select()

int core::system::select ( int nfds,
fd_set * readfds,
fd_set * writefds,
fd_set * exceptfds,
struct timeval * timeout )

Definition at line 30 of file select.cpp.

30 {
31 errno = 0;
32 return ::select(nfds, readfds, writefds, exceptfds, timeout);
33 }

◆ send()

ssize_t core::system::send ( int sockfd,
const void * buf,
std::size_t len,
int flags )

Definition at line 74 of file socket.cpp.

74 {
75 errno = 0;
76 return ::send(sockfd, buf, len, flags);
77 }

◆ setsockopt()

int core::system::setsockopt ( int sockfd,
int level,
int optname,
const void * optval,
socklen_t optlen )

Definition at line 84 of file socket.cpp.

84 {
85 errno = 0;
86 return ::setsockopt(sockfd, level, optname, optval, optlen);
87 }

◆ shutdown()

int core::system::shutdown ( int sockfd,
int how )

Definition at line 89 of file socket.cpp.

89 {
90 errno = 0;
91 return ::shutdown(sockfd, how);
92 }

◆ socket()

int core::system::socket ( int domain,
int type,
int protocol )

Definition at line 30 of file socket.cpp.

30 {
31 errno = 0;
32 return ::socket(domain, type, protocol);
33 }

◆ write()

ssize_t core::system::write ( int fd,
const void * buf,
std::size_t count )

Definition at line 40 of file unistd.cpp.

40 {
41 errno = 0;
42 return ::write(fd, buf, count);
43 }