Changeset a76c2373 in rtems


Ignore:
Timestamp:
Feb 24, 2012, 8:54:44 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bea7043
Parents:
adef4e4
git-author:
Sebastian Huber <sebastian.huber@…> (02/24/12 08:54:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/13/12 11:23:45)
Message:

Filesystem: Change error indication

Change error indication to ESPIPE in rtems_filesystem_default_lseek().

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    radef4e4 ra76c2373  
    10151015
    10161016/**
    1017  * @retval -1 Always.  The errno is set to ENOTSUP.
     1017 * @retval -1 Always.  The errno is set to ESPIPE.
    10181018 *
    10191019 * @see rtems_filesystem_lseek_t.
  • cpukit/libfs/src/defaults/default_lseek.c

    radef4e4 ra76c2373  
    1010 */
    1111
    12 #include <rtems/libio.h>
     12#if HAVE_CONFIG_H
     13  #include "config.h"
     14#endif
     15
    1316#include <rtems/libio_.h>
    14 #include <rtems/seterr.h>
    1517
    1618off_t rtems_filesystem_default_lseek(
    1719  rtems_libio_t *iop,
    18   off_t          length,
     20  off_t          offset,
    1921  int            whence
    2022)
    2123{
    22   rtems_set_errno_and_return_minus_one( ENOTSUP );
     24  rtems_set_errno_and_return_minus_one( ESPIPE );
    2325}
Note: See TracChangeset for help on using the changeset viewer.