nptl: remove sysdep-cancel ASM macros, convert to C
[uclibc-ng.git] / libpthread / nptl / sysdeps / unix / sysv / linux / recvmsg.c
blobd0f277a97d78c04f7747c98aa6fd25dbbbcec72b
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 #ifndef __NR_recvmsg
10 #error Missing definition of NR_recvmsg needed for cancellation.
11 #endif
13 ssize_t
14 recvmsg (int fd, const struct msghdr *msg, int flags)
16 return _syscall3(ssize_t, __NC(recvmsg), int, fd, const struct msghdr*, msg,
17 int, flags);
20 CANCELLABLE_SYSCALL(ssize_t, recvmsg, (int fd, const struct msghdr *msg,
21 int flags), (fd, msg, flags))
23 lt_libc_hidden(recvmsg)