X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 364ED386F831
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1587977002;
	bh=9rC/0bU068JMzjTCX3pVJqWyEAj7dktv8h3l2bkuWCY=;
	h=Date:From:To:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 Reply-To:From;
	b=YhiuDKnpiJ+IQxjv2vnH5c8qqZtonI5nVO/Fb8LdF5xWYAr6k59Ua9N+25yaEUFE4
	 B2pN1vmn7dv16pBMfJbmuM7dHDTYYDw1HdHpe9h2XSeJhYcs3xKQ6oH7Baszry1jKF
	 LemNYBVkeymuwAcO/qzikb3GDBCXDWqlO/nrndiU=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B6306386F831
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
 spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com
Date: Mon, 27 Apr 2020 10:43:09 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: write() on 64 bit platform sometimes returns 32bit -1 as error
 indicator
Message-ID: <20200427084309.GA4499@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <8FBD9FC4F4994493AE1DA1DDBBAFB6B9@DAD325>
 <20200424144206.GF1654005@calimero.vinschen.de>
 <c7073209-4a88-71bd-1a3c-bc89f33b1ea3@SystematicSw.ab.ca>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <c7073209-4a88-71bd-1a3c-bc89f33b1ea3@SystematicSw.ab.ca>
X-Provags-ID: V03:K1:SYvKM3GHBNmeQyWw6F9y+hA19Z0uZgtf3sXa6djMgjTNHkr04Oh
 uvvfjbQ8+1/R3UrxKkgnkHbL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skXN06vg+/GANkggO6bOjsaU1Krxv4Xq/DjdNK494
X-Spam-Status: No, score=-97.3 required=5.0 tests=BAYES_00,
 GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
 SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 03R8hn4b003567

On Apr 24 16:01, Brian Inglis wrote:
> On 2020-04-24 08:42, Corinna Vinschen wrote:
> > This problem is due to a restriction in Windows introduced with Windows
> > Vista.  In theory it gets explained at length in "Changes to the file
> > system and to the storage stack to restrict direct disk access and
> > direct volume access in Windows Vista and in Windows Server 2008" in the
> > Help and Support Knowledge Base at http://support.microsoft.com/kb/942448.
> > Unfortunately, this KB article is current unaccessible for some reason.
> 
> MS are blocking access to earlier unsupported (all Vista extended support ended
> 2017-04-11) system info:
> 
> [ Vista kb942448 🔎]

That doesn't make sense.  The KB article describes a change in the ABI
affecting all Windows versions since Vista.  It's not only affecting
Vista alone.  Thus the KB article is still important, especially given
the MSDN library man pages (e.g. CreateFileA) refer to it.  I added
feedback to this effect on the MSDN man pages, hopefully somebody
actually reads them and reactivates the KB article.

Besides, deleting history doesn't make sense at all.

> support.microsoft.com [links to https://support.microsoft.com/kb/942448]
> We would like to show you a description here but the site won’t allow us.
> 
> Still readable via:
> 
> https://web.archive.org/web/20180217230150/https://support.microsoft.com/en-us/help/942448/changes-to-the-file-system-and-to-the-storage-stack-to-restrict-direct

Great, thanks for the URL!  This also shows that my description above
is not entirely correct :)


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

