diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-03 17:38:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-03 17:38:21 +0000 |
commit | 9efa012d9b899e0375d2aca55bd5448d3cc4073f (patch) | |
tree | 8992050520bc26ec6ee972fa491665029251a0f4 /cpukit | |
parent | 2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-9efa012d9b899e0375d2aca55bd5448d3cc4073f.tar.bz2 |
2008-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/pipe/fifo.c: Actually disable initializing pipes as
requested in confdefs.h.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libfs/src/pipe/fifo.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index bcdfddf641..3d1f087bfe 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2008-12-03 Joel Sherrill <joel.sherrill@oarcorp.com> + + * libfs/src/pipe/fifo.c: Actually disable initializing pipes as + requested in confdefs.h. + 2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com> * sapi/include/confdefs.h: Add disable of pipes by default since they diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index 1c194c2030..812c824db3 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -22,6 +22,7 @@ extern uint16_t rtems_pipe_no; static rtems_id rtems_pipe_semaphore = 0; +extern bool rtems_pipe_configured; #define PIPE_EMPTY(_pipe) (_pipe->Length == 0) @@ -534,6 +535,9 @@ int pipe_lseek( */ void rtems_pipe_initialize (void) { + if (!rtems_pipe_configured) + return; + if (rtems_pipe_semaphore) return; |