nptl: remove sysdep-cancel ASM macros, convert to C
[uclibc-ng.git] / libpthread / nptl / sysdeps / unix / sysv / linux / send.c
bloba403dde853d1256e8237e0040e873f3b3a61747a
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 */
6 #include <sys/socket.h>
7 #include <cancel.h>
9 ssize_t
10 send (int fd, const void *buf, size_t len, int flags)
12 return _syscall4(ssize_t, __NC(send), int, fd, const void* buf,
13 size_t, len, int, flags);
16 CANCELLABLE_SYSCALL(ssize_t, send, (int fd, const void *buf,
17 size_t len, int flags), (fd, buf, len, flags))
19 lt_libc_hidden(send)