File:  [DVB] / dietlibc / lib / sendmsg.c
Revision 1.7: download - view: text, annotated - select for diffs
Thu Mar 3 19:03:16 2011 UTC (13 years, 3 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
socket modernization part 2

#include "syscalls.h"
#ifdef __NR_socketcall

#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) {
  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"))) ;

#endif

LinuxTV legacy CVS <linuxtv.org/cvs>