forked from Imagelibrary/rtems
2010-06-23 Chris Johns <chrisj@rtems.org>
PR 1577/filesystem
* libfs/src/pipe/fifo.c: Fixed the error codes returned on open.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2010-06-23 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
|
PR 1577/filesystem
|
||||||
|
* libfs/src/pipe/fifo.c: Fixed the error codes returned on open.
|
||||||
|
|
||||||
2010-06-23 Chris Johns <chrisj@rtems.org>
|
2010-06-23 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
* rtems/Makefile.am: Remove the stray 'c' file.
|
* rtems/Makefile.am: Remove the stray 'c' file.
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ static int pipe_alloc(
|
|||||||
if (! pipe->Buffer)
|
if (! pipe->Buffer)
|
||||||
goto err_buf;
|
goto err_buf;
|
||||||
|
|
||||||
err = -EINTR;
|
|
||||||
if (rtems_barrier_create(
|
if (rtems_barrier_create(
|
||||||
rtems_build_name ('P', 'I', 'r', c),
|
rtems_build_name ('P', 'I', 'r', c),
|
||||||
RTEMS_BARRIER_MANUAL_RELEASE, 0,
|
RTEMS_BARRIER_MANUAL_RELEASE, 0,
|
||||||
@@ -180,7 +179,7 @@ static rtems_status_code pipe_lock(void)
|
|||||||
if (sc == RTEMS_SUCCESSFUL) {
|
if (sc == RTEMS_SUCCESSFUL) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return -EINTR;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user