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 */
5
6 #include <sys/socket.h>
7 #include <cancel.h>
8
9 ssize_t
send(int fd,const void * buf,size_t len,int flags)10 send (int fd, const void *buf, size_t len, int flags)
11 {
12 return _syscall4(ssize_t, __NC(send), int, fd, const void* buf,
13 size_t, len, int, flags);
14 }
15
16 CANCELLABLE_SYSCALL(ssize_t, send, (int fd, const void *buf,
17 size_t len, int flags), (fd, buf, len, flags))
18
19 lt_libc_hidden(send)
20