summaryrefslogtreecommitdiffstats
path: root/usr/klibc/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/send.c')
-rw-r--r--usr/klibc/send.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/klibc/send.c b/usr/klibc/send.c
new file mode 100644
index 0000000..a867dd1
--- /dev/null
+++ b/usr/klibc/send.c
@@ -0,0 +1,11 @@
+/*
+ * send.c
+ */
+
+#include <stddef.h>
+#include <sys/socket.h>
+
+int send(int s, const void *buf, size_t len, unsigned int flags)
+{
+ return sendto(s, buf, len, flags, NULL, 0);
+}