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 67 of file socket.cpp.

67 {
68 errno = 0;
69 return ::accept(sockfd, addr, addrlen);
70 }

◆ accept4()

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

Definition at line 72 of file socket.cpp.

72 {
73 errno = 0;
74 return ::accept4(sockfd, addr, addrlen, flags);
75 }

◆ bind()

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

Definition at line 57 of file socket.cpp.

57 {
58 errno = 0;
59 return ::bind(sockfd, addr, addrlen);
60 }

◆ close()

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

Definition at line 67 of file unistd.cpp.

67 {
68 errno = 0;
69 return ::close(fd);
70 }

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 76 of file socket.cpp.

76 {
77 errno = 0;
78 return ::connect(sockfd, addr, addrlen);
79 }

◆ dlclose()

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

Definition at line 57 of file dlfcn.cpp.

57 {
58 errno = 0;
59 return ::dlclose(handle);
60 }

◆ dlerror()

char * core::system::dlerror ( )

Definition at line 67 of file dlfcn.cpp.

67 {
68 errno = 0;
69 return ::dlerror();
70 }

◆ dlopen()

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

Definition at line 52 of file dlfcn.cpp.

52 {
53 errno = 0;
54 return ::dlopen(filename, flags);
55 }

◆ dlsym()

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

Definition at line 62 of file dlfcn.cpp.

62 {
63 errno = 0;
64 return ::dlsym(handle, symbol);
65 }

◆ epoll_create1()

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

Definition at line 52 of file epoll.cpp.

52 {
53 errno = 0;
54 return ::epoll_create1(flags);
55 }

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 67 of file epoll.cpp.

67 {
68 errno = 0;
69 return ::epoll_ctl(epfd, op, fd, event);
70 }

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 62 of file epoll.cpp.

62 {
63 errno = 0;
64 return ::epoll_pwait(epfd, events, maxevents, timeout, sigMask);
65 }

◆ epoll_wait()

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

Definition at line 57 of file epoll.cpp.

57 {
58 errno = 0;
59 return ::epoll_wait(epfd, events, maxevents, timeout);
60 }

◆ flock()

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

Definition at line 77 of file unistd.cpp.

77 {
78 errno = 0;
79 return ::flock(lockFd, operation);
80 }

◆ freeaddrinfo()

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

Definition at line 67 of file netdb.cpp.

67 {
68 errno = 0;
69 ::freeaddrinfo(res);
70 }

◆ getaddrinfo()

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

Definition at line 62 of file netdb.cpp.

62 {
63 errno = 0;
64 return ::getaddrinfo(node, service, hints, res);
65 }

◆ 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 72 of file netdb.cpp.

72 {
73 errno = 0;
74 return ::getnameinfo(addr, addrlen, host, HOSTLEN_CAST(hostlen), serv, SERVLEN_CAST(servlen), flags);
75 }
#define SERVLEN_CAST(A)
Definition netdb.cpp:57
#define HOSTLEN_CAST(A)
Definition netdb.cpp:56

◆ getpeername()

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

Definition at line 86 of file socket.cpp.

86 {
87 errno = 0;
88 return ::getpeername(sockfd, addr, addrlen);
89 }

◆ getsockname()

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

Definition at line 81 of file socket.cpp.

81 {
82 errno = 0;
83 return ::getsockname(sockfd, addr, addrlen);
84 }

◆ getsockopt()

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

Definition at line 101 of file socket.cpp.

101 {
102 errno = 0;
103 return ::getsockopt(sockfd, level, optname, optval, optlen);
104 }

◆ listen()

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

Definition at line 62 of file socket.cpp.

62 {
63 errno = 0;
64 return ::listen(sockfd, backlog);
65 }

◆ open()

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

Definition at line 52 of file unistd.cpp.

52 {
53 errno = 0;
54 return ::open(pathname, flags);
55 }

◆ pipe2()

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

Definition at line 72 of file unistd.cpp.

72 {
73 errno = 0;
74 return ::pipe2(pipefd, flags);
75 }

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 54 of file poll.cpp.

54 {
55 errno = 0;
56 return ::poll(fds, nfds, timeout);
57 }

◆ ppoll()

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

Definition at line 59 of file poll.cpp.

59 {
60 errno = 0;
61 return ::ppoll(fds, nfds, timeout, sigMask);
62 }

◆ 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 57 of file select.cpp.

57 {
58 errno = 0;
59 return ::pselect(nfds, readfds, writefds, exceptfds, timeout, sigMask);
60 }

◆ 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 57 of file unistd.cpp.

57 {
58 errno = 0;
59 return ::read(fd, buf, count);
60 }

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 91 of file socket.cpp.

91 {
92 errno = 0;
93 return ::recv(sockfd, buf, len, flags);
94 }

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 52 of file select.cpp.

52 {
53 errno = 0;
54 return ::select(nfds, readfds, writefds, exceptfds, timeout);
55 }

◆ send()

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

Definition at line 96 of file socket.cpp.

96 {
97 errno = 0;
98 return ::send(sockfd, buf, len, flags);
99 }

◆ setsockopt()

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

Definition at line 106 of file socket.cpp.

106 {
107 errno = 0;
108 return ::setsockopt(sockfd, level, optname, optval, optlen);
109 }

◆ shutdown()

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

Definition at line 111 of file socket.cpp.

111 {
112 errno = 0;
113 return ::shutdown(sockfd, how);
114 }

◆ socket()

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

Definition at line 52 of file socket.cpp.

52 {
53 errno = 0;
54 return ::socket(domain, type, protocol);
55 }

◆ write()

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

Definition at line 62 of file unistd.cpp.

62 {
63 errno = 0;
64 return ::write(fd, buf, count);
65 }