]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/write.c
Inital import
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / common / write.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * write() for uClibc
4  *
5  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6  *
7  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8  */
9
10 #include <sys/syscall.h>
11 #include <unistd.h>
12
13 _syscall3(ssize_t, write, int, fd, const __ptr_t, buf, size_t, count)
14 #ifndef __LINUXTHREADS_OLD__
15 libc_hidden_def(write)
16 #else
17 libc_hidden_weak(write)
18 strong_alias(write,__libc_write)
19 #endif
20
21 #if 0
22 /* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o
23  * which is a blatant GNU libc-ism... */
24 strong_alias(write,__write)
25 #endif