From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66384 invoked by alias); 12 Jan 2017 15:36:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 66370 invoked by uid 89); 12 Jan 2017 15:36:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=conduent, Conduent, H*MI:sk:0D835E9, H*i:sk:0D835E9 X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 15:36:22 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 11D0E721E281E for ; Thu, 12 Jan 2017 16:36:20 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 5D32D5E021D for ; Thu, 12 Jan 2017 16:36:19 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 3D367A804D6; Thu, 12 Jan 2017 16:36:19 +0100 (CET) Date: Thu, 12 Jan 2017 15:36:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: rename() cannot replace the file which is opened with writable access Message-ID: <20170112153619.GD12383@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20170112.234135.194683198576068158.trueroad@trueroad.jp> <0D835E9B9CD07F40A48423F80D3B5A704BBD9592@USA7109MB022.na.xerox.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="n2Pv11Ogg/Ox8ay5" Content-Disposition: inline In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A704BBD9592@USA7109MB022.na.xerox.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-01/txt/msg00122.txt.bz2 --n2Pv11Ogg/Ox8ay5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 874 On Jan 12 15:30, Nellis, Kenneth (Conduent) wrote: > From: Masamichi Hosoda > > If I understand correctly, > > POSIX behavior should be able to replace the writable opened file by > > rename(). > > But, It does not work on my Cygwin environment. > >=20 > > Is it no problem if Cygwin's behavior is different from POSIX behavior? > > If so, we need different application handling for Cygwin and POSIX. >=20 > I thought it would be informative to respond by referring the OP > to a section of the Cygwin User's Guide or FAQ that mentioned the > limitations of Cygwin, but I could not find it. Needs debugging. Off the top of my head I have no clue why this doesn't work. I'm just not near any Windows machine ATM... Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --n2Pv11Ogg/Ox8ay5 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYd6JzAAoJEPU2Bp2uRE+gqTAP/is6nIa6qHsznm4iYyicbw82 RpDmVsTIEBZxWwd9mQa5xJwK/pORkVuRqW1T56f5JoDdk0/ew22+4x1IScpZqPKa o+3A48c+4upOcFPXg0gOTluzcEjx4Lm1iTUNOQ/nmGZNMGl+jZqSpnld/1ixmIUQ l3K7apK/kbxwCzcwigPX511c1d7LsQzyS8EvgBS2whEUZdzj+iSNYZhMrWZxxjzf 5IaCQztrkB5KalfeqBa3GTTbRSmA8jTf1rkNl4th4i1jFQeoftASO4zzC6L//F4a /5qPtbb7Zh1X0sOEaQA9ANegErwr5mKTYIDBz98udZXhjsIU7hKlHUnQfiM3Jr3q Xie4+3k/fG4EKYzJdTPPeqQOkVsIrMvAsxC1ux6dyGMB2r2fTYwRYIyvR4BTZMrf QqNe372DvglnwnvE8ilXqRql+AaMoSEmF7d3E5ZMT5qxmnqYeX5Exxg8Q0ttAWMM 1HIqlKQ6y773l301clgxfJSCPAfnITRiaRVS8bUH+NdvcvzMSGTIO/3fLv47yAkn /HWlokMy8p/VzZAfKVxns6ur/lnQTlk2O30MPkuVa3dIJofZ8PfW3uh+q5eudg9I 1Ua0K4Ej36APLSxJuglZWdCA74+WiwpjxhL33kmQBYueaurE6kkHZpoIjPcmOp1+ gXmV7UcgmhmK6DT8Km3z =ZXiV -----END PGP SIGNATURE----- --n2Pv11Ogg/Ox8ay5--