send.c 483 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. send (int fd, const void *buf, size_t len, int flags)
  9. {
  10. return _syscall4(ssize_t, __NC(send), int, fd, const void* buf,
  11. size_t, len, int, flags);
  12. }
  13. CANCELLABLE_SYSCALL(ssize_t, send, (int fd, const void *buf,
  14. size_t len, int flags), (fd, buf, len, flags))
  15. lt_libc_hidden(send)