delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/21/02:00:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 20 Apr 2004 22:59:19 -0700
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: lseek returning 2**32-1 on error instead of -1
Message-ID: <20040421055919.GA240@efn.org>
References: <20040421001833 DOT GA3836 AT efn DOT org>
Mime-Version: 1.0
In-Reply-To: <20040421001833.GA3836@efn.org>
User-Agent: Mutt/1.4.1i
Organization: bs"d
X-IsSubscribed: yes

On Tue, Apr 20, 2004 at 05:18:33PM -0700, Yitzchak Scott-Thoennes wrote:
>
> I believe this to be the cause of perl's op/sysio.t test 39 failing.

This would have been easier to pin down if the strace had been correct
(patch untested):

--- winsup/cygwin/syscalls.cc.orig	2004-04-16 14:42:20.000000000 -0700
+++ winsup/cygwin/syscalls.cc	2004-04-20 22:14:07.504308800 -0700
@@ -603,7 +603,7 @@ lseek64 (int fd, _off64_t pos, int dir)
       else
 	res = -1;
     }
-  syscall_printf ("%d = lseek (%d, %D, %d)", res, fd, pos, dir);
+  syscall_printf ("%D = lseek (%d, %D, %d)", res, fd, pos, dir);
 
   return res;
 }
@@ -1697,7 +1697,7 @@ truncate64 (const char *pathname, _off64
       res = ftruncate64 (fd, length);
       close (fd);
     }
-  syscall_printf ("%d = truncate (%s, %d)", res, pathname, length);
+  syscall_printf ("%d = truncate (%s, %D)", res, pathname, length);
 
   return res;
 }


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019