blob: 5a6f7225fb8cc5d975ee229c09b7ffa9afcdc1dc [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* 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__
15libc_hidden_def(write)
16#else
17libc_hidden_weak(write)
18strong_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... */
24strong_alias(write,__write)
25#endif