summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/send.c
blob: a403dde853d1256e8237e0040e873f3b3a61747a (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
send (int fd, const void *buf, size_t len, int flags)
{
  return _syscall4(ssize_t, __NC(send), int, fd, const void* buf,
			size_t, len, int, flags);
}

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

lt_libc_hidden(send)