summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/src/network/sendto.c
diff options
context:
space:
mode:
Diffstat (limited to '05/musl-0.6.0/src/network/sendto.c')
-rw-r--r--05/musl-0.6.0/src/network/sendto.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/05/musl-0.6.0/src/network/sendto.c b/05/musl-0.6.0/src/network/sendto.c
new file mode 100644
index 0000000..1cfc621
--- /dev/null
+++ b/05/musl-0.6.0/src/network/sendto.c
@@ -0,0 +1,12 @@
+#include <sys/socket.h>
+#include "syscall.h"
+#include "libc.h"
+
+ssize_t sendto(int fd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t alen)
+{
+ ssize_t r;
+ CANCELPT_BEGIN;
+ r = socketcall(sendto, fd, buf, len, flags, addr, alen);
+ CANCELPT_END;
+ return r;
+}