From ec10d266ba8bca9e0142cff75cb016038967f0d8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Sep 2017 09:07:14 +0200 Subject: libio: rtems_libio_check_permissions_with_error() Rename rtems_libio_check_permissions_with_error() in rtems_libio_check_permissions(). Update #3132. --- cpukit/libcsupport/include/rtems/libio_.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libcsupport/include/rtems') diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h index 0a80c917b7..ba6866e5a4 100644 --- a/cpukit/libcsupport/include/rtems/libio_.h +++ b/cpukit/libcsupport/include/rtems/libio_.h @@ -171,13 +171,13 @@ static inline rtems_libio_t *rtems_libio_iop( int fd ) } while (0) /* - * rtems_libio_check_permissions_with_error + * rtems_libio_check_permissions * * Macro to check if a file descriptor is open for this operation. * On failure, return the user specified error. */ -#define rtems_libio_check_permissions_with_error(_iop, _flag, _errno) \ +#define rtems_libio_check_permissions(_iop, _flag, _errno) \ do { \ if (((_iop)->flags & (_flag)) == 0) { \ rtems_set_errno_and_return_minus_one( _errno ); \ @@ -896,7 +896,7 @@ static inline ssize_t rtems_libio_iovec_eval( rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); - rtems_libio_check_permissions_with_error( iop, flags, EBADF ); + rtems_libio_check_permissions( iop, flags, EBADF ); *iopp = iop; -- cgit v1.2.3