4.115
Last change
on this file since 5a4bb75 was
5a4bb75,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/26/12 at 12:28:52
|
Filesystem: Remove per file descriptor semaphore
The per file descriptor semaphore (field of rtems_libio_t) is unused in
RTEMS. There is a considerable memory overhead due to that. A
semaphore needs roughly 124 bytes which is huge compared to the
approximately 72 bytes for the file descriptor structure itself. Device
drivers can create their own synchronization primitives in the open
handler on demand.
|
-
Property mode set to
100644
|
File size:
697 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2010. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | /* generate fatal errors in open_dev_console.c */ |
---|
13 | #define FATAL_ERROR_TEST_NAME "15" |
---|
14 | #define FATAL_ERROR_DESCRIPTION "fail to open stderr" |
---|
15 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API |
---|
16 | #define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE |
---|
17 | #define FATAL_ERROR_EXPECTED_ERROR 0x55544432 |
---|
18 | |
---|
19 | #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 2 |
---|
20 | |
---|
21 | void force_error() |
---|
22 | { |
---|
23 | /* we will not run this far */ |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.