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 }

Referenced by net::phy::stream::PhysicalSocketServer< SocketAddressT >::accept().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::stream::PhysicalSocketServer< SocketAddressT >::accept4().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::PhysicalSocket< SocketAddressT >::bind().

Here is the caller graph for this function:

◆ 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 net::un::phy::PhysicalSocket< PhysicalPeerSocketT >::bind(), core::Descriptor::~Descriptor(), and net::un::phy::PhysicalSocket< PhysicalPeerSocketT >::~PhysicalSocket().

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 }

Referenced by net::phy::stream::PhysicalSocketClient< SocketAddressT >::connect().

Here is the caller graph for this function:

◆ dlclose()

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

Definition at line 57 of file dlfcn.cpp.

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

Referenced by core::DynamicLoader::realExecDlClose().

Here is the caller graph for this function:

◆ dlerror()

char * core::system::dlerror ( )

Definition at line 67 of file dlfcn.cpp.

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

Referenced by core::DynamicLoader::dlError().

Here is the caller graph for this function:

◆ 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 }

Referenced by core::DynamicLoader::dlSym().

Here is the caller graph for this function:

◆ 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(), and core::multiplexer::epoll::EventMultiplexer::EventMultiplexer().

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::EventMultiplexer::EventMultiplexer(), 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 }

Referenced by core::multiplexer::epoll::EventMultiplexer::monitorDescriptors().

Here is the caller graph for this function:

◆ 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 }

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

Here is the caller graph for this function:

◆ 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 }

Referenced by net::un::phy::PhysicalSocket< PhysicalPeerSocketT >::bind(), and net::un::phy::PhysicalSocket< PhysicalPeerSocketT >::~PhysicalSocket().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::in::SocketAddrInfo::resolve(), and net::in6::SocketAddrInfo::resolve().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::PhysicalSocket< SocketAddressT >::getPeerName().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::PhysicalSocket< SocketAddressT >::getSockName().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::PhysicalSocket< SocketAddressT >::getSockopt().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::stream::PhysicalSocketServer< SocketAddressT >::listen().

Here is the caller graph for this function:

◆ 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 }

Referenced by core::file::FileReader::open().

Here is the caller graph for this function:

◆ 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 }

Referenced by core::multiplexer::select::EventMultiplexer::monitorDescriptors().

Here is the caller graph for this function:

◆ 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::file::FileReader::onEvent(), and 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 }

Referenced by core::socket::stream::SocketWriter::write().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::PhysicalSocket< SocketAddressT >::setSockopt().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::stream::PhysicalSocket< SocketAddressT >::shutdown().

Here is the caller graph for this function:

◆ 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 }

Referenced by net::phy::PhysicalSocket< SocketAddressT >::open().

Here is the caller graph for this function:

◆ 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 }

Referenced by core::pipe::PipeSource::writeEvent().

Here is the caller graph for this function: