2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/unix/pread.c: Fix typo for _pread_r. * libc/unix/pwrite.c: Fix type for _pwrite_r. * libc/sys/linux/pread64.c: Fix typo for read syscall. * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
This commit is contained in:
parent
a991777994
commit
f78e59a8f9
|
@ -1,3 +1,10 @@
|
||||||
|
2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libc/unix/pread.c: Fix typo for _pread_r.
|
||||||
|
* libc/unix/pwrite.c: Fix type for _pwrite_r.
|
||||||
|
* libc/sys/linux/pread64.c: Fix typo for read syscall.
|
||||||
|
* libc/sys/linux/pwrite64.c: Fix typo for write syscall.
|
||||||
|
|
||||||
2002-05-03 Christopher Faylor <cgf@redhat.com>
|
2002-05-03 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* libc/include/sys/unistd.h: Define getdomainname under cygwin.
|
* libc/include/sys/unistd.h: Define getdomainname under cygwin.
|
||||||
|
|
|
@ -29,7 +29,7 @@ RETURNS
|
||||||
PORTABILITY
|
PORTABILITY
|
||||||
<<pread64>> is an EL/IX extension.
|
<<pread64>> is an EL/IX extension.
|
||||||
|
|
||||||
Supporting OS subroutine required: <<read64>>, <<lseek64>>.
|
Supporting OS subroutine required: <<read>>, <<lseek64>>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <_ansi.h>
|
#include <_ansi.h>
|
||||||
|
@ -52,7 +52,7 @@ _DEFUN (pread64, (fd, buf, n, off),
|
||||||
if (lseek64 (fd, off, SEEK_SET) == (loff_t)-1)
|
if (lseek64 (fd, off, SEEK_SET) == (loff_t)-1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
num_read = read64 (fd, buf, n);
|
num_read = read (fd, buf, n);
|
||||||
|
|
||||||
if (lseek64 (fd, cur_pos, SEEK_SET) == (loff_t)-1)
|
if (lseek64 (fd, cur_pos, SEEK_SET) == (loff_t)-1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -29,7 +29,7 @@ RETURNS
|
||||||
PORTABILITY
|
PORTABILITY
|
||||||
<<pwrite64>> is an EL/IX extension.
|
<<pwrite64>> is an EL/IX extension.
|
||||||
|
|
||||||
Supporting OS subroutine required: <<write64>>, <<lseek64>>.
|
Supporting OS subroutine required: <<write>>, <<lseek64>>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <_ansi.h>
|
#include <_ansi.h>
|
||||||
|
@ -52,7 +52,7 @@ _DEFUN (pwrite64, (fd, buf, n, off),
|
||||||
if (lseek64 (fd, off, SEEK_SET) == (loff_t)-1)
|
if (lseek64 (fd, off, SEEK_SET) == (loff_t)-1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
num_written = write64 (fd, buf, n);
|
num_written = write (fd, buf, n);
|
||||||
|
|
||||||
if (lseek64 (fd, cur_pos, SEEK_SET) == (loff_t)-1)
|
if (lseek64 (fd, cur_pos, SEEK_SET) == (loff_t)-1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -52,7 +52,7 @@ Supporting OS subroutine required: <<read>>, <<lseek>>.
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
_DEFUN (pread_r, (rptr, fd, buf, n, off),
|
_DEFUN (_pread_r, (rptr, fd, buf, n, off),
|
||||||
struct _reent *rptr _AND
|
struct _reent *rptr _AND
|
||||||
int fd _AND
|
int fd _AND
|
||||||
_PTR buf _AND
|
_PTR buf _AND
|
||||||
|
|
|
@ -53,7 +53,7 @@ Supporting OS subroutine required: <<write>>, <<lseek>>.
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
_DEFUN (pwrite_r, (rptr, fd, buf, n, off),
|
_DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
|
||||||
struct _reent *rptr _AND
|
struct _reent *rptr _AND
|
||||||
int fd _AND
|
int fd _AND
|
||||||
_CONST _PTR buf _AND
|
_CONST _PTR buf _AND
|
||||||
|
|
Loading…
Reference in New Issue