File: recv.c

package info (click to toggle)
dietlibc 0.34~cvs20160606-10
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 11,336 kB
  • sloc: ansic: 71,631; asm: 13,006; cpp: 1,860; makefile: 799; sh: 292; perl: 62
file content (13 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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")));