delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/01/12/10:30:32

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=ShOAaPsJx9Pej+fGQB6ckk/xwDQsD
3UeRmMYZxEQJJpnnwzrfN0aK6WLQbUGxdfwh6xl1tRWSDEeI1bpTuka1mXoOAW9h
ZS7K+659tA6fDOZ2YVqDZ7r57W7RmqB2JFa+MH0MO5J/2ozyEoi7Qm1azDNckUtE
qDoCE8DCRWkmZE=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=Odh3EiGrq09wI49gcxkufPys5qU=; b=fdF
S9uMIAumOo2/84GCqnP1scNYeYTX06Vvv/a8ydQalFGhDnCxBZFX8DlFyWvsXllT
8hgQEEOr8oI+lSVraxiputoQB2eP7naK6aeVt3OjKJWuxVisJCF+/SR8oC2gvx+5
9qZVq5ex7u9oBq6lZNp0ew5m1syzLtlUsflJdmmw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=informative, Hx-languages-length:600, respond
X-HELO: USA7109MR002.ACS-INC.COM
From: "Nellis, Kenneth (Conduent)" <Kenneth DOT Nellis AT conduent DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: rename() cannot replace the file which is opened with writable access
Date: Thu, 12 Jan 2017 15:30:13 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BBD9592@USA7109MB022.na.xerox.net>
References: <20170112 DOT 234135 DOT 194683198576068158 DOT trueroad AT trueroad DOT jp>
In-Reply-To: <20170112.234135.194683198576068158.trueroad@trueroad.jp>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v0CFUVkp000989

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.
> 
> Is it no problem if Cygwin's behavior is different from POSIX behavior?
> If so, we need different application handling for Cygwin and POSIX.

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.

--Ken Nellis

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


- Raw text -


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