libs/libc/net: implement socketpair

N/A

Reference here:
https://www.freebsd.org/cgi/man.cgi?apropos=0&sektion=2&query=socketpair&manpath=FreeBSD+7.0-current&format=html

Change-Id: I959b4d661cd436f5d5050baf9e821db84139d482
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
This commit is contained in:
danguanghua
2020-12-24 14:42:34 +08:00
committed by DanGuanghua
parent 688911373d
commit d226e8fb49
3 changed files with 188 additions and 0 deletions
+1
View File
@@ -381,6 +381,7 @@ extern "C"
#endif
int socket(int domain, int type, int protocol);
int socketpair(int domain, int type, int protocol, int sv[2]);
int bind(int sockfd, FAR const struct sockaddr *addr, socklen_t addrlen);
int connect(int sockfd, FAR const struct sockaddr *addr, socklen_t addrlen);