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