diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 11:33:25 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 10:27:13 +0200 |
commit | 9012db84f611d5c394683ddcca95354928a8b505 (patch) | |
tree | d3c9e3717aa472e950d6f03767d2c157c909a51e /cpukit/libcsupport/src/lseek.c | |
parent | libio: Add rtems_libio_iop_is_append() (diff) | |
download | rtems-9012db84f611d5c394683ddcca95354928a8b505.tar.bz2 |
libio: LIBIO_GET_IOP() LIBIO_GET_IOP_WITH_ACCESS()
Replace rtems_libio_check_fd(), rtems_libio_iop(),
rtems_libio_check_open() and rtems_libio_check_permissions()
combinations with new LIBIO_GET_IOP() and LIBIO_GET_IOP_WITH_ACCESS()
macros.
Update #3132.
Diffstat (limited to 'cpukit/libcsupport/src/lseek.c')
-rw-r--r-- | cpukit/libcsupport/src/lseek.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/lseek.c b/cpukit/libcsupport/src/lseek.c index f5c6fa6226..16271eba09 100644 --- a/cpukit/libcsupport/src/lseek.c +++ b/cpukit/libcsupport/src/lseek.c @@ -21,9 +21,7 @@ off_t lseek( int fd, off_t offset, int whence ) { rtems_libio_t *iop; - rtems_libio_check_fd( fd ); - iop = rtems_libio_iop( fd ); - rtems_libio_check_is_open(iop); + LIBIO_GET_IOP( fd, iop ); return (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence ); } |