Changeset ec10d26 in rtems


Ignore:
Timestamp:
Sep 13, 2017, 7:07:14 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
856ede4f
Parents:
48dbb6cf
git-author:
Sebastian Huber <sebastian.huber@…> (09/13/17 07:07:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/15/17 05:47:46)
Message:

libio: rtems_libio_check_permissions_with_error()

Rename rtems_libio_check_permissions_with_error() in
rtems_libio_check_permissions().

Update #3132.

Location:
cpukit/libcsupport
Files:
5 edited

Legend:

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

    r48dbb6cf rec10d26  
    172172
    173173/*
    174  *  rtems_libio_check_permissions_with_error
     174 *  rtems_libio_check_permissions
    175175 *
    176176 *  Macro to check if a file descriptor is open for this operation.
     
    178178 */
    179179
    180 #define rtems_libio_check_permissions_with_error(_iop, _flag, _errno) \
     180#define rtems_libio_check_permissions(_iop, _flag, _errno) \
    181181  do {                                                      \
    182182      if (((_iop)->flags & (_flag)) == 0) {                 \
     
    897897  iop = rtems_libio_iop( fd );
    898898  rtems_libio_check_is_open( iop );
    899   rtems_libio_check_permissions_with_error( iop, flags, EBADF );
     899  rtems_libio_check_permissions( iop, flags, EBADF );
    900900
    901901  *iopp = iop;
  • cpukit/libcsupport/src/fdatasync.c

    r48dbb6cf rec10d26  
    3333  iop = rtems_libio_iop( fd );
    3434  rtems_libio_check_is_open(iop);
    35   rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
     35  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE, EBADF );
    3636
    3737  /*
  • cpukit/libcsupport/src/ftruncate.c

    r48dbb6cf rec10d26  
    3333    iop = rtems_libio_iop( fd );
    3434    rtems_libio_check_is_open( iop );
    35     rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EINVAL );
     35    rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE, EINVAL );
    3636
    3737    rv = (*iop->pathinfo.handlers->ftruncate_h)( iop, length );
  • cpukit/libcsupport/src/read.c

    r48dbb6cf rec10d26  
    3939  iop = rtems_libio_iop( fd );
    4040  rtems_libio_check_is_open( iop );
    41   rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
     41  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ, EBADF );
    4242
    4343  /*
  • cpukit/libcsupport/src/write.c

    r48dbb6cf rec10d26  
    4242  iop = rtems_libio_iop( fd );
    4343  rtems_libio_check_is_open( iop );
    44   rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
     44  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE, EBADF );
    4545
    4646  /*
Note: See TracChangeset for help on using the changeset viewer.