recv.c 465 B

12345678910111213141516171819
  1. /*
  2. * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. #include <sys/socket.h>
  6. #include <cancel.h>
  7. ssize_t
  8. recv (int fd, void *buf, size_t len, int flags)
  9. {
  10. return _syscall4(ssize_t, __NC(recv), int, fd, void* buf,
  11. size_t, len, int, flags);
  12. }
  13. CANCELLABLE_SYSCALL(ssize_t, recv, (int fd, void *buf,
  14. size_t len, int flags), (fd, buf, len, flags))
  15. lt_libc_hidden(recv)