www.delorie.com/archives/browse.cgi | search |
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: | Wed, 10 Jul 2002 12:36:13 -0400 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [BUG] open(): Opening with flags O_RDONLY | O_APPEND positions the file pointer at the end of the file |
Message-ID: | <20020710163613.GD10966@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <823876622 DOT 20020710153943 AT syntrex DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <823876622.20020710153943@syntrex.com> |
User-Agent: | Mutt/1.3.23.1i |
On Wed, Jul 10, 2002 at 03:39:43PM +0200, Pavel Tsekov wrote: >Hello, there :) > >Attached is a testcase which displays the problem. On Linux it will >properly return 13, while on cygwin it returns 0. > >I found this while trying to understand why MC doesn't extract >properly files from say .zip files. > >I don't know exactly why they call O_RDONLY combined with O_APPEND but >I will mail the mc-devel list ASAP. > >Still according to the Linux man page and SUSv2, O_APPEND should be >taken into account only when writing to the file. > >Having in mind that fhandler_base::write() calls SetFilePointer >before each write, I wonder why fhandler_disk_base::open calls >SetFilePointer when it detects O_APPEND ? Good question. We've got your assignment. Do you want to send a patch for this behavior to cygwin-patches? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |