mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2001-08-30 Joel Sherrill <joel@OARcorp.com>
* libc/lseek.c: Modified to reflect 4.5 placement of libio_.h.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <rtems/libio_.h>
|
#include "libio_.h"
|
||||||
|
|
||||||
off_t lseek(
|
off_t lseek(
|
||||||
int fd,
|
int fd,
|
||||||
@@ -37,7 +37,7 @@ off_t lseek(
|
|||||||
* Check as many errors as possible before touching iop->offset.
|
* Check as many errors as possible before touching iop->offset.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( !iop->handlers->lseek_h )
|
if ( !iop->handlers->lseek )
|
||||||
set_errno_and_return_minus_one( ENOTSUP );
|
set_errno_and_return_minus_one( ENOTSUP );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -67,7 +67,7 @@ off_t lseek(
|
|||||||
* new offset.
|
* new offset.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
status = (*iop->handlers->lseek_h)( iop, offset, whence );
|
status = (*iop->handlers->lseek)( iop, offset, whence );
|
||||||
if ( status == (off_t) -1 )
|
if ( status == (off_t) -1 )
|
||||||
iop->offset = old_offset;
|
iop->offset = old_offset;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user