File:  [DVB] / dietlibc / lib / accept.c
Revision 1.8: 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 <linuxnet.h>

extern int socketcall(int callno,long* args);

int __libc_accept(int a, void * addr, void * addr2);

int __libc_accept(int a, void * addr, void * addr2) {
  long args[] = { a, (long) addr, (long) addr2 };
  return socketcall(SYS_ACCEPT, args);
}

int accept(int a, void * addr, void * addr2) __attribute__((weak,alias("__libc_accept")));

#endif

LinuxTV legacy CVS <linuxtv.org/cvs>