28#ifndef POSIX_IO_SYS_SOCKET_H_
29#define POSIX_IO_SYS_SOCKET_H_
35#if defined(_POSIX_VERSION)
37#pragma GCC diagnostic push
39#pragma clang diagnostic ignored "-Wgnu-include-next"
41#include_next <sys/socket.h>
42#pragma GCC diagnostic pop
57#if !defined (OS_EXCLUDE_SOCKET_SA_FAMILY_T)
61#if !defined (OS_EXCLUDE_SOCKET_STRUCT_SOCKADDR)
89 recv (
int socket,
void* buffer,
size_t length,
int flags);
99 send (
int socket,
const void* buffer,
size_t length,
int flags);
119 socket (
int domain,
int type,
int protocol);
122 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)