|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/LWIP PATCH 4/5] sockets: Add socketpair() stub
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
exportsyms.uk | 1 +
include/sys/socket.h | 1 +
sockets.c | 6 ++++++
3 files changed, 8 insertions(+)
diff --git a/exportsyms.uk b/exportsyms.uk
index 2f9f4f6..0d6c7e9 100644
--- a/exportsyms.uk
+++ b/exportsyms.uk
@@ -47,6 +47,7 @@ setprotoent
setsockopt
shutdown
socket
+socketpair
sys_check_timeouts
tcp_abort
tcp_accept
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 7e027b9..991ae3e 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -75,5 +75,6 @@ int send(int s, const void *dataptr, size_t size, int flags);
int sendmsg(int s, const struct msghdr *message, int flags);
int sendto(int s, const void *dataptr, size_t size, int flags,
const struct sockaddr *to, socklen_t tolen);
+int socketpair(int domain, int type, int protocol, int sv[2]);
#endif /* _UK_LWIP_SOCKET_H_ */
diff --git a/sockets.c b/sockets.c
index 1806846..f4f7d40 100644
--- a/sockets.c
+++ b/sockets.c
@@ -831,3 +831,9 @@ int sendto(int s, const void *dataptr, size_t size, int
flags,
EXIT:
return ret;
}
+
+int socketpair(int domain, int type, int protocol, int sv[2])
+{
+ errno = ENOTSUP;
+ return -1;
+}
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |