Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/