[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/LWIP PATCH 4/5] sockets: Add socketpair() stub
- To: minios-devel@xxxxxxxxxxxxx
- From: Costin Lupu <costin.lupu@xxxxxxxxx>
- Date: Wed, 4 Sep 2019 22:09:11 +0300
- Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
- Delivery-date: Wed, 04 Sep 2019 19:09:32 +0000
- Ironport-phdr: 9a23:EyDNdhSIk8ZaNXqn91PbG4TImtpsv+yvbD5Q0YIujvd0So/mwa6zYhGN2/xhgRfzUJnB7Loc0qyK6vqmADNdqs/b4TgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrswndrNQajIliJ6o+1xfFvH9FcPlKyG11Il6egwzy7dqq8p559CRQtfMh98peXqj/Yq81U79WAik4Pm4s/MHkugXNQgWJ5nsHT2UZiQFIDBTf7BH7RZj+rC33vfdg1SaAPM32Sbc0WSm+76puVRTlhjsLOyI//WrKjMF7kaBVrw+7pxFnw4DafpybOvR9cK3af9waS3FMUtpNWyFbHo+xdZcDA/YHMO1Fr4f9vVwOrR6mCASyA+Pv0SNIhn7w3aYn1eohDBnG3BE9FN8JrHvUq871NLsTUeCz1qXIySjDb+tL2Trm9IfIaQotoemRXb1ra8bR004vGhrDg16NqoLlJyuY2vkCvmSG9eZtVuKih3Q5pw1voDWj3MkhhpHUio8a11zI7yZ0zYYvKdGmRkN2b8SoHIZfui2EMYZ9X9ksTHtyuCkgz70LoZu7fC8Xx5s53xPfcPmHc5SQ4hLkSeaRPS90hHJ7d7K7gBa/6VagyujmWcm11FZGtDZKksLWunAVyhzc8dKLSuF6/ku52DaP0R7c6v1cLEwpmqfXNoQtz70wm5YJr0jPAC37lF/4gaOOc0Ur4Omo6+DpYrX8oZ+cMpd5hR35MqQ1hsy/AOI4PhIKX2iG4eS8yabu8lHiQLlQlv02j7LWvIrAJcQcvqK5GRNa0p4/6xajCDeryNEYnXgBLFJEfxKHlJHlNEzQL/DmE/i/h0+hkDNqx/DdIr3hGY/BL3fdn7fnZ7p97FRcyAUrx9BF+51UEq0BIO70WkLputzXEBs5Mw2sw+n5Etl91p4eWWOTDa+YK67St0GH6f4rI+aWf4AZoijyK+U97f70kXA5gUMdfbWu3ZYPc3C4H/FmI0KfYXb2gdcBDHkFvgw/TeP0kl2PSjhTaGiuUKI4/D40E5iqApneRoq1mryOwD+7HoFKZmBBEl2MD3PoeJ+ZVPgUci2SJNJukiYaWrigUYMuzguhuxL9y7pmM+rZ4TYYtY7+1Ndo/eHcjw099SduA8SAy2GCVHt4nnkPR2x+4KcqpE17y1CYlKR1nfFcPdhS/O9SFBc3M9jb1eMpJcr1X1fqecyVSVDuZsi+HHllRdUq394IJUJgA8iKhQuFxzegRaUSwe/YTKco+77RiiCib/12zGzLgfEs
- Ironport-sdr: guNcfrnLeQUYcHtPYotq4EAvdMjGdT10J4haOU5u/qjS7Faw66VHEQNqiDznSxid9Bz6EEZpTR BlVG3TaFizyg==
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
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
|