[PATCH] lseekr.c: Change off_t to _off_t

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


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

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.


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
diff -p -u -r1.1.1.1 lseekr.c
--- libc/reent/lseekr.c	17 Feb 2000 19:39:47 -0000
+++ libc/reent/lseekr.c	9 Mar 2003 22:04:50 -0000
@@ -45,11 +45,11 @@ DESCRIPTION
 _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.

More information about the Newlib mailing list