summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfifo02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-26 14:28:52 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-04 10:53:51 +0200
commit5a4bb758c0017374352ccf065fb1aac4ebb3e27d (patch)
tree5b69f58aac905d40a70923eaab5b0fa43cfa57bb /testsuites/sptests/spfifo02
parentRemove CVS-Ids. (diff)
downloadrtems-5a4bb758c0017374352ccf065fb1aac4ebb3e27d.tar.bz2
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.
Diffstat (limited to 'testsuites/sptests/spfifo02')
-rw-r--r--testsuites/sptests/spfifo02/init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/testsuites/sptests/spfifo02/init.c b/testsuites/sptests/spfifo02/init.c
index 8526d0cde6..2725a5024a 100644
--- a/testsuites/sptests/spfifo02/init.c
+++ b/testsuites/sptests/spfifo02/init.c
@@ -145,11 +145,7 @@ rtems_task Init(
puts( "Creating FIFO" );
create_fifo();
-
- puts( "Opening FIFO.. expect ENFILE (semaphore @ open could not be created)" );
- open_fifo(ENFILE, O_RDWR);
- delete_semaphore();
puts( "Opening FIFO.. expect ENOMEM (semaphore for pipe could not be created)" );
open_fifo(ENOMEM, O_RDWR);