This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] lseek64r.c: Change off64_t to __off64_t


Hi,

the following patch changes the usage of the datatype off64_t in
reent/lseek64_r.c to __off64_t.  This allows compiling it always, even
if the system it's compiled on doesn't provide a off64_t definition.
__off64_t is newlib internal, off64_t not necessarily as on Cygwin
where we're trying to introduce a 64bit file access in one step w/o
defining distinct types on the API level.

Corinna


2003-03-07  Corinna Vinschen  <corinna at vinschen dot de>

	* libc/reent/lseek64r.c: Use __off64_t instead of off64_t.


Index: libc/reent/lseek64r.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/reent/lseek64r.c,v
retrieving revision 1.2
diff -p -u -r1.2 lseek64r.c
--- libc/reent/lseek64r.c	26 Aug 2002 18:56:06 -0000	1.2
+++ libc/reent/lseek64r.c	7 Mar 2003 09:52:09 -0000
@@ -48,17 +48,17 @@ DESCRIPTION
         with large file support.
 */
 
-off64_t
+__off64_t
 _lseek64_r (ptr, fd, pos, whence)
      struct _reent *ptr;
      int fd;
-     off64_t pos;
+     __off64_t pos;
      int whence;
 {
-  off64_t ret;
+  __off64_t ret;
 
   errno = 0;
-  if ((ret = _lseek64 (fd, pos, whence)) == (off64_t) -1 && errno != 0)
+  if ((ret = _lseek64 (fd, pos, whence)) == (__off64_t) -1 && errno != 0)
     ptr->_errno = errno;
   return ret;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]