blob: bb5d1711a32d55af65a710aded4e7abf782d5aff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <sys/socket.h>
#include <linuxnet.h>
extern int socketcall(int callno,long* args);
int __libc_sendmsg(int a, const struct msghdr* msg, int flags);
int __libc_sendmsg(int a, const struct msghdr* msg, int flags) {
unsigned long args[] = { a, (long) msg, flags };
return socketcall(SYS_SENDMSG, args);
}
int sendmsg(int a, const struct msghdr *msg, int flags)
__attribute__ ((weak,alias("__libc_sendmsg"))) ;
|