4.115
Last change
on this file since e02d5dd9 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
758 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief POSIX 1003.1b 6.4.2 - Write to a File |
---|
5 | * @ingroup libcsupport |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2007. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/libio_.h> |
---|
22 | #include <rtems/seterr.h> |
---|
23 | |
---|
24 | /* |
---|
25 | * _write_r |
---|
26 | * |
---|
27 | * This is the Newlib dependent reentrant version of write(). |
---|
28 | */ |
---|
29 | |
---|
30 | #if defined(RTEMS_NEWLIB) |
---|
31 | |
---|
32 | #include <reent.h> |
---|
33 | |
---|
34 | _ssize_t _write_r( |
---|
35 | struct _reent *ptr __attribute__((unused)), |
---|
36 | int fd, |
---|
37 | const void *buf, |
---|
38 | size_t nbytes |
---|
39 | ) |
---|
40 | { |
---|
41 | return write( fd, buf, nbytes ); |
---|
42 | } |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.