Skip to content
Snippets Groups Projects
Commit 807ecb11 authored by Guy Zana's avatar Guy Zana
Browse files

net: implement socketpair()

parent d4b63034
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,19 @@
#include "libc.h"
int socketpair(int domain, int type, int protocol, int sv[2])
{
int error;
error = linux_socketpair(domain, type, protocol, sv);
if (error) {
errno = error;
return -1;
}
return 0;
}
int accept4(int fd, struct sockaddr *restrict addr, socklen_t *restrict len, int flg)
{
......
......@@ -53,5 +53,6 @@ int linux_recvfrom(int s, void* buf, size_t len, int flags,
int linux_shutdown(int s, int how);
int linux_setsockopt(int s, int level, int name, caddr_t val, int valsize);
int linux_getsockopt(int s, int level, int name, void *val, socklen_t *valsize);
int linux_socketpair(int domain, int type, int protocol, int* rsv);
#endif /* !UIPC_SYSCALLS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment