File:  [DVB] / dietlibc / aarch64 / recv.c
Revision 1.1: download - view: text, annotated - select for diffs
Thu Jan 24 15:42:28 2019 UTC (5 years, 4 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
no recv on aarch64

#include <sys/types.h>
#include <sys/socket.h>
#include <linuxnet.h>

int __libc_recv(int fd, void * buf, size_t n, int flags);
  /* shut up gcc warning about missing prototype */

int __libc_recv(int fd, void * buf, size_t n, int flags) {
  return recvfrom(fd, buf, n, flags, 0, 0);
}

int recv(int a, void * b, size_t c, int flags)
  __attribute__ ((weak, alias("__libc_recv")));

LinuxTV legacy CVS <linuxtv.org/cvs>