[vlc-devel] [PATCH 2/6] os2: filesystem: implement vlc_send(), vlc_sendto() and vlc_sendmsg()

KO Myung-Hun komh78 at gmail.com
Sun Oct 11 13:00:53 CEST 2020


---
 src/os2/filesystem.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/os2/filesystem.c b/src/os2/filesystem.c
index 8b1d3d5eec..124b80a1fb 100644
--- a/src/os2/filesystem.c
+++ b/src/os2/filesystem.c
@@ -350,3 +350,19 @@ int vlc_accept (int lfd, struct sockaddr *addr, socklen_t *alen, bool nonblock)
 
     return -1;
 }
+
+ssize_t vlc_send(int fd, const void *buf, size_t len, int flags)
+{
+    return send(fd, buf, len, flags);
+}
+
+ssize_t vlc_sendto(int fd, const void *buf, size_t len, int flags,
+                   const struct sockaddr *dst, socklen_t dstlen)
+{
+    return sendto(fd, buf, len, flags, dst, dstlen);
+}
+
+ssize_t vlc_sendmsg(int fd, const struct msghdr *msg, int flags)
+{
+    return sendmsg(fd, msg, flags);
+}
-- 
2.22.0



More information about the vlc-devel mailing list