summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/sendmsg.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:19:32 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:19:32 +0000
commit167217bec15c9c7aa70ba2a3dc9c689b3cd91872 (patch)
tree7c0c62debf8f9f145643102fb52b81afce743594 /mdk-stage1/dietlibc/lib/sendmsg.c
parent9097327dc1c667fc51b8e05cc7c0626fac96665d (diff)
downloaddrakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.gz
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.bz2
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.xz
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.zip
import new version of dietlibc
Diffstat (limited to 'mdk-stage1/dietlibc/lib/sendmsg.c')
-rw-r--r--mdk-stage1/dietlibc/lib/sendmsg.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/sendmsg.c b/mdk-stage1/dietlibc/lib/sendmsg.c
new file mode 100644
index 000000000..277265985
--- /dev/null
+++ b/mdk-stage1/dietlibc/lib/sendmsg.c
@@ -0,0 +1,15 @@
+#include <linux/net.h>
+
+extern int socketcall(int callno,long* args);
+
+int __libc_sendmsg(int a, const struct msghdr* msg, int flags) {
+#ifdef __i386__
+ return socketcall(SYS_SENDMSG, (long*)&a);
+#else
+ unsigned long args[] = { a, (long) msg, flags };
+ return socketcall(SYS_SENDMSG, args);
+#endif
+}
+
+int sendmsg(int a, const struct msghdr *msg, int flags)
+ __attribute__ ((weak,alias("__libc_sendmsg"))) ;