]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler.cc (fhandler_base::lseek): Include high order offset
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 17 Nov 2003 22:18:42 +0000 (22:18 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 17 Nov 2003 22:18:42 +0000 (22:18 +0000)
bits in return value.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc

index c3fe0a05b4eb32b5c80dc1edbbd9868183cd593a..9884d80e9379b6aea4010ccc8a53c6708e69c49f 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-17  Brian Ford  <ford@vss.fsi.com>
+
+       * fhandler.cc (fhandler_base::lseek): Include high order offset
+       bits in return value.
+
 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
 
        * bsdlib.cc (getprogname): New function.
index 834ea5fe02b61fcc8c632a464f76f6bf74ff30ff..b27ab678c10ebb91fa7d8094df069175e9f374cf 100644 (file)
@@ -874,6 +874,9 @@ fhandler_base::lseek (_off64_t offset, int whence)
     }
   else
     {
+      if (poff_high)
+        res += (_off64_t) *poff_high << 32;
+
       /* When next we write(), we will check to see if *this* seek went beyond
         the end of the file, and back-seek and fill with zeros if so - DJ */
       set_did_lseek ();
This page took 0.037062 seconds and 5 git commands to generate.