13#ifndef POSIX_IO_SYS_SOCKET_H_
14#define POSIX_IO_SYS_SOCKET_H_
20#if defined(_POSIX_VERSION)
22#pragma GCC diagnostic push
24#pragma clang diagnostic ignored "-Wgnu-include-next"
26#include_next <sys/socket.h>
27#pragma GCC diagnostic pop
42#if !defined (OS_EXCLUDE_SOCKET_SA_FAMILY_T)
46#if !defined (OS_EXCLUDE_SOCKET_STRUCT_SOCKADDR)
74 recv (
int socket,
void* buffer,
size_t length,
int flags);
84 send (
int socket,
const void* buffer,
size_t length,
int flags);
104 socket (
int domain,
int type,
int protocol);
107 socketpair (
int domain,
int type,
int protocol,
int socket_vector[2]);
int shutdown(int socket, int how)
ssize_t recv(int socket, void *buffer, size_t length, int flags)
int accept(int socket, struct sockaddr *address, socklen_t *address_len)
int socketpair(int domain, int type, int protocol, int socket_vector[2])
ssize_t recvmsg(int socket, struct msghdr *message, int flags)
ssize_t sendmsg(int socket, const struct msghdr *message, int flags)
int sockatmark(int socket)
int setsockopt(int socket, int level, int option_name, const void *option_value, socklen_t option_len)
int bind(int socket, const struct sockaddr *address, socklen_t address_len)
int getpeername(int socket, struct sockaddr *address, socklen_t *address_len)
ssize_t send(int socket, const void *buffer, size_t length, int flags)
int getsockopt(int socket, int level, int option_name, void *option_value, socklen_t *option_len)
ssize_t sendto(int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len)
int listen(int socket, int backlog)
ssize_t recvfrom(int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len)
int getsockname(int socket, struct sockaddr *address, socklen_t *address_len)
int connect(int socket, const struct sockaddr *address, socklen_t address_len)
int socket(int domain, int type, int protocol)