2 * \file dietlibc/lib/backends/minimal_io/write.c
6 * \author Martin Pohlack <mp26@os.inf.tu-dresden.de>
9 * (c) 2004-2009 Technische Universität Dresden
10 * This file is part of TUD:OS and distributed under the terms of the
11 * GNU Lesser General Public License 2.1.
12 * Please see the COPYING-LGPL-2.1 file for details.
18 #include <l4/sys/kdebug.h>
20 ssize_t write(int fd, const void *buf, size_t count)
22 // just accept write to stdout and stderr
23 if ((fd == STDOUT_FILENO) || (fd == STDERR_FILENO))
25 outnstring((const char*)buf, count);
29 // writes to other fds shall fail fast