diff options
Diffstat (limited to 'lib/libc/socket/send.c')
| -rw-r--r-- | lib/libc/socket/send.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/socket/send.c b/lib/libc/socket/send.c new file mode 100644 index 00000000..a2760a2f --- /dev/null +++ b/lib/libc/socket/send.c @@ -0,0 +1,7 @@ +#include <sys/socket.h> +#include <syscall.h> + +ssize_t send(int socket, const void *buffer, size_t length, int flags) +{ + return syscall(sendto, socket, buffer, length, flags, 0, 0); +} |
