|
@@ -100,11 +100,11 @@ static ssize_t __fake_pread_write(int fd, void *buf,
|
|
|
|
|
|
|
|
|
* value so that we can restore it later. */
|
|
|
- if ((old_offset=lseek(fd, 0, SEEK_CUR)) == (off_t) -1)
|
|
|
+ if ((old_offset=__lseek(fd, 0, SEEK_CUR)) == (off_t) -1)
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
- if (lseek (fd, offset, SEEK_SET) == (off_t) -1)
|
|
|
+ if (__lseek (fd, offset, SEEK_SET) == (off_t) -1)
|
|
|
return -1;
|
|
|
|
|
|
if (do_pwrite==1) {
|
|
@@ -118,7 +118,7 @@ static ssize_t __fake_pread_write(int fd, void *buf,
|
|
|
|
|
|
* have to return this as an error. */
|
|
|
save_errno = errno;
|
|
|
- if (lseek(fd, old_offset, SEEK_SET) == (off_t) -1)
|
|
|
+ if (__lseek(fd, old_offset, SEEK_SET) == (off_t) -1)
|
|
|
{
|
|
|
if (result == -1)
|
|
|
__set_errno(save_errno);
|
|
@@ -138,11 +138,11 @@ static ssize_t __fake_pread_write64(int fd, void *buf,
|
|
|
|
|
|
|
|
|
* value so that we can restore it later. */
|
|
|
- if ((old_offset=lseek64(fd, 0, SEEK_CUR)) == (off64_t) -1)
|
|
|
+ if ((old_offset=__lseek64(fd, 0, SEEK_CUR)) == (off64_t) -1)
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
- if (lseek64(fd, offset, SEEK_SET) == (off64_t) -1)
|
|
|
+ if (__lseek64(fd, offset, SEEK_SET) == (off64_t) -1)
|
|
|
return -1;
|
|
|
|
|
|
if (do_pwrite==1) {
|
|
@@ -155,7 +155,7 @@ static ssize_t __fake_pread_write64(int fd, void *buf,
|
|
|
|
|
|
|
|
|
save_errno = errno;
|
|
|
- if (lseek64 (fd, old_offset, SEEK_SET) == (off64_t) -1) {
|
|
|
+ if (__lseek64 (fd, old_offset, SEEK_SET) == (off64_t) -1) {
|
|
|
if (result == -1)
|
|
|
__set_errno (save_errno);
|
|
|
return -1;
|