VSF Documented
|
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "../../include/unistd.h"
#include "../../include/fcntl.h"
#include "../../include/simple_libc/stdio.h"
#include "../../include/netinet/in.h"
#include "../../include/arpa/inet.h"
#include "../../include/netdb.h"
#include "../../include/ifaddrs.h"
#include "../../include/net/if.h"
#include "../../include/errno.h"
#include "../../include/sys/stat.h"
#include "./vsf_linux_socket.h"
Macros | |
#define | __VSF_LINUX_CLASS_INHERIT__ |
#define | __VSF_LINUX_FS_CLASS_INHERIT__ |
#define | __VSF_LINUX_SOCKET_CLASS_IMPLEMENT |
Functions | |
int | __vsf_linux_socket_stat (vsf_linux_fd_t *sfd, struct stat *buf) |
int | inet_aton (const char *cp, struct in_addr *addr) |
in_addr_t | inet_addr (const char *cp) |
in_addr_t | inet_lnaof (struct in_addr in) |
struct in_addr | inet_makeaddr (in_addr_t net, in_addr_t lna) |
in_addr_t | inet_netof (struct in_addr in) |
char * | inet_ntoa (struct in_addr in) |
in_addr_t | inet_network (const char *cp) |
int | inet_pton (int af, const char *src, void *dst) |
const char * | inet_ntop (int af, const void *src, char *dst, socklen_t size) |
int | __vsf_linux_socket_inet_fcntl (vsf_linux_fd_t *sfd, int cmd, uintptr_t arg) |
int * | __vsf_linux_h_errno (void) |
void | herror (const char *s) |
const char * | hstrerror (int err) |
const char * | gai_strerror (int errcode) |
struct hostent * | gethostbyaddr (const void *addr, socklen_t len, int type) |
struct servent * | getservbyname (const char *name, const char *proto) |
struct servent * | getservbyport (int port, const char *proto) |
void | setservent (int stayopen) |
void | endservent (void) |
struct servent * | getservent (void) |
struct hostent * | gethostbyname (const char *name) |
int | getnameinfo (const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) |
int | getaddrinfo (const char *name, const char *service, const struct addrinfo *hints, struct addrinfo **pai) |
void | freeaddrinfo (struct addrinfo *ai) |
int | socket (int domain, int type, int protocol) |
int | connect (int sockfd, const struct sockaddr *addr, socklen_t addrlen) |
int | listen (int sockfd, int backlog) |
int | accept (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
int | accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags) |
int | bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen) |
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 | getpeername (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
int | getsockname (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
int | shutdown (int sockfd, int how) |
ssize_t | send (int sockfd, const void *buf, size_t len, int flags) |
ssize_t | recv (int sockfd, void *buf, size_t len, int flags) |
ssize_t | sendmsg (int sockfd, const struct msghdr *msg, int flags) |
ssize_t | recvmsg (int sockfd, struct msghdr *msg, int flags) |
int | socketpair (int domain, int type, int protocol, int socket_vector[2]) |
int | getifaddrs (struct ifaddrs **ifaddrs) |
void | freeifaddrs (struct ifaddrs *ifaddrs) |
unsigned int | if_nametoindex (const char *ifname) |
char * | if_indextoname (unsigned int ifindex, char *ifname) |
#define __VSF_LINUX_CLASS_INHERIT__ |
#define __VSF_LINUX_FS_CLASS_INHERIT__ |
#define __VSF_LINUX_SOCKET_CLASS_IMPLEMENT |
int __vsf_linux_socket_stat | ( | vsf_linux_fd_t * | sfd, |
struct stat * | buf | ||
) |
int inet_aton | ( | const char * | cp, |
struct in_addr * | addr | ||
) |
in_addr_t inet_addr | ( | const char * | cp | ) |
char * inet_ntoa | ( | struct in_addr | in | ) |
in_addr_t inet_network | ( | const char * | cp | ) |
int inet_pton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
const char * inet_ntop | ( | int | af, |
const void * | src, | ||
char * | dst, | ||
socklen_t | size | ||
) |
int __vsf_linux_socket_inet_fcntl | ( | vsf_linux_fd_t * | sfd, |
int | cmd, | ||
uintptr_t | arg | ||
) |
int * __vsf_linux_h_errno | ( | void | ) |
void herror | ( | const char * | s | ) |
const char * hstrerror | ( | int | err | ) |
const char * gai_strerror | ( | int | errcode | ) |
struct servent * getservbyname | ( | const char * | name, |
const char * | proto | ||
) |
struct servent * getservbyport | ( | int | port, |
const char * | proto | ||
) |
void setservent | ( | int | stayopen | ) |
void endservent | ( | void | ) |
struct servent * getservent | ( | void | ) |
struct hostent * gethostbyname | ( | const char * | name | ) |
int getnameinfo | ( | const struct sockaddr * | addr, |
socklen_t | addrlen, | ||
char * | host, | ||
socklen_t | hostlen, | ||
char * | serv, | ||
socklen_t | servlen, | ||
int | flags | ||
) |
int getaddrinfo | ( | const char * | name, |
const char * | service, | ||
const struct addrinfo * | hints, | ||
struct addrinfo ** | pai | ||
) |
void freeaddrinfo | ( | struct addrinfo * | ai | ) |
int socket | ( | int | domain, |
int | type, | ||
int | protocol | ||
) |
int listen | ( | int | sockfd, |
int | backlog | ||
) |
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 socketpair | ( | int | domain, |
int | type, | ||
int | protocol, | ||
int | socket_vector[2] | ||
) |
int getifaddrs | ( | struct ifaddrs ** | ifaddrs | ) |
void freeifaddrs | ( | struct ifaddrs * | ifaddrs | ) |
unsigned int if_nametoindex | ( | const char * | ifname | ) |
char * if_indextoname | ( | unsigned int | ifindex, |
char * | ifname | ||
) |
|
extern |
|
extern |
const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT |
const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT |
__VSF_VPLT_DECORATOR__ vsf_linux_ifaddrs_vplt_t vsf_linux_ifaddrs_vplt |
__VSF_VPLT_DECORATOR__ vsf_linux_netdb_vplt_t vsf_linux_netdb_vplt |
__VSF_VPLT_DECORATOR__ vsf_linux_arpa_inet_vplt_t vsf_linux_arpa_inet_vplt |
__VSF_VPLT_DECORATOR__ vsf_linux_net_if_vplt_t vsf_linux_net_if_vplt |
__VSF_VPLT_DECORATOR__ vsf_linux_sys_socket_vplt_t vsf_linux_sys_socket_vplt |