X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=ayTrsfkpUa4lOFSfjvdOn8XOy/YpNQJ5txCzXbJsl1YN8FNJxsQ0O bk7JoBhvHBKPEGYoT304Jh0cJ5O61vyy+aG+Jo5YBw88v/rr48JfE/4oOOetX/ww 0BR6GkKfUNFRm2Q5YfNZA4wLJJj0/1DsBaRooZQTld8njHoTB/SP/M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=IjrrqmPpkqMR9QqZYXDvWD09iEM=; b=kxN1Fa64tfDIIN/nY7HbctzT/WC3 +DrXGW/53wbf6HHs3Wnj2o1bhGDm6n4ciYNbNRfTi3D14OOzdQRE3ITgStxjd5Dg R6hLXwu/CAFd6Qb7k912+lfQMuJjCMV9atJgHXLnhguWGs7Bdq3fUhYculzRrJDL FC+UPnIPsp7GKgE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 Date: Thu, 12 Jan 2017 16:36:19 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: rename() cannot replace the file which is opened with writable access Message-ID: <20170112153619.GD12383@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20170112 DOT 234135 DOT 194683198576068158 DOT trueroad AT trueroad DOT jp> <0D835E9B9CD07F40A48423F80D3B5A704BBD9592 AT USA7109MB022 DOT na DOT xerox DOT 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) --n2Pv11Ogg/Ox8ay5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--