summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/x86_64/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/x86_64/send.c')
-rw-r--r--mdk-stage1/dietlibc/x86_64/send.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/x86_64/send.c b/mdk-stage1/dietlibc/x86_64/send.c
new file mode 100644
index 000000000..bdeb1d31f
--- /dev/null
+++ b/mdk-stage1/dietlibc/x86_64/send.c
@@ -0,0 +1,13 @@
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <linuxnet.h>
+
+int __libc_send(int fd, const void * buf, size_t n, int flags);
+ /* shut up gcc warning about missing prototype */
+
+int __libc_send(int fd, const void * buf, size_t n, int flags) {
+ return sendto(fd, buf, n, flags, NULL, 0);
+}
+
+int send(int a, const void * b, size_t c, int flags)
+ __attribute__ ((weak, alias("__libc_send")));