[PATCH] lseekr.c: Change off_t to _off_t

Corinna Vinschen vinschen@redhat.com
Sun Mar 9 22:10:00 GMT 2003


Hi,

I've found the same problem for lseek_r as for lseek64_r.  The function
definition in lseekr.c doesn't exactly match the declaration in
reent.h.

This disabled building of the 64bit version of Cygwin so I've commited
the patch proactively since it's sort of obvious, I assumed.

I hope that was ok in this case though it was not a Cygwin-only issue.

Corinna

2003-03-09  Corinna Vinschen  <corinna@vinschen.de>

        * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.

Index: libc/reent/lseekr.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/reent/lseekr.c,v
retrieving revision 1.1.1.1
diff -p -u -r1.1.1.1 lseekr.c
--- libc/reent/lseekr.c	17 Feb 2000 19:39:47 -0000	1.1.1.1
+++ libc/reent/lseekr.c	9 Mar 2003 22:04:50 -0000
@@ -45,11 +45,11 @@ DESCRIPTION
 	<<errno>>.
 */
 
-off_t
+_off_t
 _lseek_r (ptr, fd, pos, whence)
      struct _reent *ptr;
      int fd;
-     off_t pos;
+     _off_t pos;
      int whence;
 {
   off_t ret;

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com



More information about the Newlib mailing list