summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/write.c
blob: e4d3ab8978314d4256873a9e1abf1c37b287b37d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* vi: set sw=4 ts=4: */
/*
 * write() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <unistd.h>
#include <cancel.h>

#define __NR___write_nocancel __NR_write
_syscall3(ssize_t, __NC(write), int, fd, const void *, buf, size_t, count)

CANCELLABLE_SYSCALL(ssize_t, write, (int fd, const void *buf, size_t count),
		    (fd, buf, count))
lt_libc_hidden(write)