diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-24 09:54:44 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:23:45 +0100 |
commit | a76c23738b14b1933d099e52cf1f907997993533 (patch) | |
tree | c44423fab3cb1e23d1e2aff5577893596a8b9826 /cpukit/libfs | |
parent | Filesystem: New function (diff) | |
download | rtems-a76c23738b14b1933d099e52cf1f907997993533.tar.bz2 |
Filesystem: Change error indication
Change error indication to ESPIPE in rtems_filesystem_default_lseek().
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/defaults/default_lseek.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/libfs/src/defaults/default_lseek.c b/cpukit/libfs/src/defaults/default_lseek.c index 09a691eb61..02bd369839 100644 --- a/cpukit/libfs/src/defaults/default_lseek.c +++ b/cpukit/libfs/src/defaults/default_lseek.c @@ -9,15 +9,17 @@ * $Id$ */ -#include <rtems/libio.h> +#if HAVE_CONFIG_H + #include "config.h" +#endif + #include <rtems/libio_.h> -#include <rtems/seterr.h> off_t rtems_filesystem_default_lseek( rtems_libio_t *iop, - off_t length, + off_t offset, int whence ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); + rtems_set_errno_and_return_minus_one( ESPIPE ); } |