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