diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-14 14:19:32 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-14 14:19:32 +0000 |
commit | 167217bec15c9c7aa70ba2a3dc9c689b3cd91872 (patch) | |
tree | 7c0c62debf8f9f145643102fb52b81afce743594 /mdk-stage1/dietlibc/lib/sendmsg.c | |
parent | 9097327dc1c667fc51b8e05cc7c0626fac96665d (diff) | |
download | drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.gz drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.bz2 drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.xz drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.zip |
import new version of dietlibc
Diffstat (limited to 'mdk-stage1/dietlibc/lib/sendmsg.c')
-rw-r--r-- | mdk-stage1/dietlibc/lib/sendmsg.c | 15 |
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"))) ; |