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] lseekr.c: Change off_t to _off_t


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 at vinschen dot 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 at redhat dot com


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