summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/recv.c
blob: 144871c531331aecd34020c48557356fcb909b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org>
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/socket.h>
#include <cancel.h>

ssize_t
recv (int fd, void *buf, size_t len, int flags)
{
  return _syscall4(ssize_t, __NC(recv), int, fd, void* buf,
			size_t, len, int, flags);
}

CANCELLABLE_SYSCALL(ssize_t, recv, (int fd, void *buf,
			size_t len, int flags), (fd, buf, len, flags))

lt_libc_hidden(recv)