delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/07/18:45:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02BF73851C39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1631054730;
bh=Ei6j9Oxg+VFbJ0nYpnv11209u185Oi1e3MD3FOwTxcc=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=sPzSYLNbHKQfHZ+jbp916+3gfN6ymD5JOkcgf0G+Bw+ptNEDjKotYl50Mkrrt3uAc
llIWx/9OR3ZUbVhhFRl6XL33WGQiydOCwtRBMh/Slgz1Edi6UsOSKf2btH7jgxM3O2
5/CJ8RYyfwZWx6ixTsA2anD+Glgz52V0wQqRadK0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4EBAC3858023
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=XuorAzEGGkG8bjsCI32eNKoQU/O2qhPeqrqq8yfQ/Q9mXcsH8l5M1lkRtwLTTrA6ABYDiB17kyECL6DV4i0dA/3EVahaTAqT7BJPuDv2NYzF8xPasO8oSylt9vAP15auiwBE5Gav0rfGW0uEFSfPr9o/DZInd3Aobnu7rir8AvPRSkJMC4lLjmKJa0zDAI739QGd40GSEuy8YJvR/1G3XxEJ3WlbsUmKGHxlS3DnIepqvrcWBBd+CHs3IJxGZr2l18aRm4d81eHiCCw7m3mIUIbMuzel6Qh5SLhm5cCudBr6vDPVGdSiGNwpeSFUQbzKFFBwfVgD1dlFEfs/uZER/Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
bh=pd1I3IZEuZi4RfhCJNb20euaFN8BK9qiqF92UxS+Q+U=;
b=ZmHZZgnBSy2vqRpx6uON8KQvI0ZTT/42Y3ykIgrnlGCxXkPMMwmdsSy877A6SJWgpSj2QaDAy2sB8UA2EuFiw4/zRY77iZL81UrsRbHs8jBZEkXNnnVRyH2BX2ZQ7mbwuz6PITmFg+8tXj4jYztACywAyK09SNxN7P+w5NTyR/jc/qcCwotV9iPrNZ6GaVPdmGIl+yy290olmQAg2zE6eWHnx5/dixjZhE4IE/Rk7HyCNCymNJYA0OEAIURNYztOl4Q4Vk8UAnFdFRJxdwywnDCd/tccclxveUDNAqILKFecLQ4ZMtG6z99Luntu2NUCbcYdmlqV2jc76WTOqzvI5w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: mmap failure [was: cygrunsrv + sshd + rsync = 20 times too slow
-- throttled?]
To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
References: <YTJ9wwbHqeoGxZMP AT calimero DOT vinschen DOT de>
<c54c8815-44fe-a837-211e-6497a185c2e8 AT cornell DOT edu>
<88fde5d5-4897-8792-576a-a62be0092ad8 AT cornell DOT edu>
<94b5b6cf-1670-cbdd-2f51-84dae09d27b6 AT cornell DOT edu>
<387d9062-1ff9-6eab-e268-e5070352a193 AT cornell DOT edu>
<40275f71-7c10-55a9-e6c8-a948e32c37ac AT cornell DOT edu>
<YTY0oN9x7wNtJAKx AT calimero DOT vinschen DOT de>
<d3c9bb17-b859-e7b1-d7e6-c421d0f37836 AT cornell DOT edu>
<33ae27cb-4e45-7484-40d1-6cbd88c958f1 AT cornell DOT edu>
<YTZXGlvWWUk23bJI AT calimero DOT vinschen DOT de>
<YTZY/vytb7nagC6M AT calimero DOT vinschen DOT de>
<3a63eb8c-3e8e-cd2c-b9de-8c34fa041a75 AT cornell DOT edu>
<5b705ae7c9747a9cc25d2610cc6748e92bbe1d70 DOT camel AT dontech DOT dk>
<890dad21-dec5-cdd1-bf99-bdb45e759a71 AT cornell DOT edu>
<742331ee-4d9f-e86f-9314-c85b5f0cbfa8 AT SystematicSw DOT ab DOT ca>
<3bb3814c-0584-c918-6710-f71c7abfbcc5 AT cornell DOT edu>
<SJ0PR09MB7102405FB7D88E4AF44E9498A5D39 AT SJ0PR09MB7102 DOT namprd09 DOT prod DOT outlook DOT com>
Message-ID: <07cb816c-0bca-440d-338d-fefb110d4a41@cornell.edu>
Date: Tue, 7 Sep 2021 18:44:54 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <SJ0PR09MB7102405FB7D88E4AF44E9498A5D39@SJ0PR09MB7102.namprd09.prod.outlook.com>
X-ClientProxiedBy: CH2PR07CA0034.namprd07.prod.outlook.com
(2603:10b6:610:20::47) To BN7PR04MB4388.namprd04.prod.outlook.com
(2603:10b6:406:f8::19)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 00496634-2fa8-40c3-aa39-08d972511d57
X-MS-TrafficTypeDiagnostic: BN3PR04MB2324:
X-Microsoft-Antispam-PRVS: <BN3PR04MB2324210559888DAA24331CF7D8D39 AT BN3PR04MB2324 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:7219;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: cQVbGPPd6oRWZcaRlDtpuuboS0WgUxwGRIv/UuAmHdqDBlT1aUigzTGK3WmnbDsymNDHSLWEdKUb+h7YrIWkBius0qNpMkrvr/dzAFf9ZVpo0LXWtcFDI0mIXHlLdKYmYKcX1a+Obpm+8RoahmN4kEPN0O1+BaKLUxdjmMxch0WseVva4iBB3z9rHxNPrwhA44XoNnq1NWg7Ui/1DNdnzJS1HirYFItccZSTYavsR/aYHijImtP030GYs0KtP3lAB6u2igmRCPEieKgDIhWlVmXdvO8sOSKPBNC3Mu3Aa2LEbFdjX3kNM+xHt/+Bb8cH4UAsz0QRbVimlt3ONV40L9Qt2DlHSXb8bAb4d/l2k7faVKSwqlYDkIW5LHDqzb60e/38f++t2Ca/wdKS0jPRzpxehxmNDUDmuSlIasxxr2eaoF4aK/4rkbTvBMhq0pr1qec68yAEnZtvt1/RCvbkPFFV7TCY2SDmADV5p+BMhCDBL936vuWO4f34KBiZf1LofM7z3s5a2bsrs0j/7d58EIu6c+eY/P+7DiFmaGD4ZvjeoWUBmWGeixzDGiRFOyDh9CW2aEhadeWKYj5VgPPGF4Fck52hrTf7yAvL+ZTtI/EXVU7cesPhALy5+VYKlG8wrN1cyMiUWvrhIB6YJk9oWzUwPnzAW+k/oWO7xdXV53fTxJo5DgIKc886gAWiFrdT1MPBe42Bg4rh8EzIG3/CCYPgcLVEYaGyUokRCn1IxII=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(366004)(346002)(136003)(39860400002)(376002)(396003)(478600001)(2616005)(83380400001)(316002)(186003)(31696002)(86362001)(53546011)(66946007)(75432002)(31686004)(5660300002)(4326008)(66476007)(36756003)(66556008)(38100700002)(8676002)(2906002)(6916009)(6486002)(4744005)(8936002)(43740500002)(45980500001);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?i+QbfMb2VHx+SlE66AoymGhOTUC9+/Zsjaim1QWmuVjQ0SEhauY3esRT?=
=?Windows-1252?Q?rGLHOd622EP/KCtr852df3Ps7So1fcQ7dIJCP3ej1Ee9mBl33/HsCB+G?=
=?Windows-1252?Q?q4ZWVcNax9FVQmsuiH/GVCquSsLGO3cuWbYjpmO5ceaLpW/JId48Fn7N?=
=?Windows-1252?Q?sr8YDUG/7yJHxXwiafq1zYxQfx9yPbLWBX2Ukx0sliN8ffVozuyuqm4i?=
=?Windows-1252?Q?TgwkCY8Jre3qO0xZ73n416iPYSZdXHR1h9h55Iw4g+e8HExsg/jwZeFm?=
=?Windows-1252?Q?MK2tG8/IebCOuwMcZkiRM02aexrQOh+EIAJByJtaKJS5CU89iMr3UmqY?=
=?Windows-1252?Q?ke76k/mU6feRhTON9baO7VMBDaf/0hBDO0bnnB3Edj/QK6SKFqp+tCs6?=
=?Windows-1252?Q?WzlsTx7GKfzN6mOooSSqztClqKMciAKOv6FXsnvu5BBr2T/lKFCCPUEf?=
=?Windows-1252?Q?A0j/49oIwbb81WaiHjE3N7+rUetcxDhf1zbgxqkMv4Xy/TtboFNCednO?=
=?Windows-1252?Q?5FSLBAsdtZtETlI30MoS9kRrRNE9cUOgXBZB4yqVBq4xbOnX7nv9HT3f?=
=?Windows-1252?Q?40oYhTMU/t3E/acftZ3iF/BnRfkA3X/AUF1heVpeoAQgnLb+2T7V7TvG?=
=?Windows-1252?Q?Smi+zqIUzupKuvq4BFQm2yu4L4aU2qx3D5q8A8lX2ChYtXKdq3E9da6F?=
=?Windows-1252?Q?YQUCCOf6PtjTqkVr99TJrxRmWADcmmCZomlRjDugF/xoCYH+gwB0kvwA?=
=?Windows-1252?Q?mApoSKbbS7rIcizkHY0n3LTbetyCJm8sNPO8GXxO/5Ajrdfrp0HPTa6O?=
=?Windows-1252?Q?HeYM7o0EUo/sS1LAkTJCnQeiH9PEGTz7p3SQW6TqXO8zdnsMgajOhnD9?=
=?Windows-1252?Q?FRGtNxujq2e2DIBMIU5dXfnacE8NlR9U7e829/chBpAFcy5kr4Y00Dnb?=
=?Windows-1252?Q?WM+QDoTbyAjZ5/PMidQhP7yVbz5uKDq2eT3i3ektaRRKqHVXeNczWTWS?=
=?Windows-1252?Q?57/QPKpSw/Zl1ijHPHFxilTvdylkWOXf2PR2YzvZDML6nJFyMc8nH8Tv?=
=?Windows-1252?Q?bKNHmI67XPLsaGuTyYeEZXCssxSiPb7G1riy3EQrEjGX+nrZgw7A8YI+?=
=?Windows-1252?Q?p3tFx8omek7aZP+nW/Ha0Z6fBDKcSVWwDXNlWPz/LvSER+Xshqyj+zcn?=
=?Windows-1252?Q?GSTaEEWHtPLrfQVY7KORVaj+GIv99rjuAHPBAuM4zxiqyar2vFAsjN6x?=
=?Windows-1252?Q?kVW1AIhoQw+GohnssGslU9ioSgB0++TNJTCK0qJBtlY29qFNEp9JQDhh?=
=?Windows-1252?Q?+sgtgJJMGOuc9TY9Eencyb7jTVYHO8VVS95GHHOflCiVjsN7HtVW1ASn?=
=?Windows-1252?Q?uv49htci7U4hTdoIVWbRW9VIfxxzaANLZOpaOh98/WVH3X3oWa0ExxXG?=
=?Windows-1252?Q?3W8t3RbLmp6LSft+bplhd0cJJzhlir86SRgjj40ROvPXfq9Jrflp/vI7?=
=?Windows-1252?Q?P/JAm65y?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 00496634-2fa8-40c3-aa39-08d972511d57
X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 22:44:56.1196 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: EpqK49FzLSnuQUo3Fmq+pd/03fo580IOy2DH4im2j60EJONTASADfP1FIR56A0sle7MFQWtLdz5DkyniBtUMbg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR04MB2324
X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 9/7/2021 5:52 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
>>>
>>> With undocumented structure member initialization an issue, maybe better to
>>> future proof using e.g.
>>>
>>>       MEM_EXTENDED_PARAMETER mmap_ext = { 0 }; // or memset or bzero
>>
>> I don't see what this would accomplish.  We're already initializing every member
>> after Corinna's last patch.
>>
> 
> Well, if one day MS decides to use some of the Reserved field by splinting off a new
> named field out of that bulk of bits, the code will be in trouble again...
> While with memset, bzero or C-style initializer, everything is guaranteed to be zapped with 0.

MS can't add a new named field to a documented struct without breaking a lot of 
code.  I think it's extremely unlikely that they would do that.  On the other 
hand, I think it's very likely that a reader of the Cygwin code would be 
confused by code that initializes a struct to 0 prior to assigning a value to 
every member.

Ken

-- 
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

- Raw text -


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