recv.c 168 B

12345678
  1. #include <sys/socket.h>
  2. #include "syscall.h"
  3. #include "libc.h"
  4. ssize_t recv(int fd, void *buf, size_t len, int flags)
  5. {
  6. return recvfrom(fd, buf, len, flags, 0, 0);
  7. }