Changeset 48dbb6cf in rtems


Ignore:
Timestamp:
Sep 13, 2017, 7:08:34 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ec10d26
Parents:
0169e90
git-author:
Sebastian Huber <sebastian.huber@…> (09/13/17 07:08:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/15/17 05:34:03)
Message:

libio: Remove rtems_libio_check_permissions()

Remove rtems_libio_check_permissions() and convert single user to
rtems_libio_check_permissions_with_error().

Update #3132.

Location:
cpukit/libcsupport
Files:
2 edited

Legend:

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

    r0169e90 r48dbb6cf  
    185185      }                                                     \
    186186  } while (0)
    187 
    188 /*
    189  *  rtems_libio_check_permissions
    190  *
    191  *  Macro to check if a file descriptor is open for this operation.
    192  *  On failure, return EINVAL
    193  */
    194 
    195 #define rtems_libio_check_permissions(_iop, _flag) \
    196    rtems_libio_check_permissions_with_error(_iop, _flag, EINVAL )
    197187
    198188/**
  • cpukit/libcsupport/src/ftruncate.c

    r0169e90 r48dbb6cf  
    3333    iop = rtems_libio_iop( fd );
    3434    rtems_libio_check_is_open( iop );
    35     rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
     35    rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EINVAL );
    3636
    3737    rv = (*iop->pathinfo.handlers->ftruncate_h)( iop, length );
Note: See TracChangeset for help on using the changeset viewer.