delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/06/10:18:48

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60F6A3851A85
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1657117127;
bh=3lVIRFKP2iYTVxs8lTgPF2mnQIM2zF77unoPK4OYnFs=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=prczMF7GgppZzVBJLVFHfhr5/1FdMHviKlFxOwC88p91Bl/YV5zYoMPvkjUJ1JRGG
5087o0TaSvm4gM84K0LuquAc0V6AKvUJM8GJMNj77PKpmB6546Q23ufzwtq7LQIO2A
ie+/z5EZXJ/Sp5mq9XSQAUS490AhXkm39YOgr3Fc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 53EFA3858439
X-SBRS-Extended: Low
X-IronPortListener: ces-out
X-IronPort-AV: E=Sophos;i="5.92,250,1650945600"; d="scan'208";a="307743212"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=e8woZpOPznV65p1oO2LcCY1VR1a8uiMTOJcodLp+ZY4v+FaqQ52W2dItjQm1hg9FAG6FThn3Yv2C8u8whaBVU0MgLLjVkKn9yFCgCWfQP0HVhOevLKbEThigXOXqV7zSSlZt/lZa2GDLsRgScGwGTsPGRr4zhC61LtEr21itSnCaQEPq4HoUt1GEsr5ASbUoiQBVrKSiK3qSnJYSUE/Y1+MKoqTDDIXh3g3rk1hDDYnoXr+6n3/iN2gXn4alJWlnk/bMDyNakQmBg7qb4FEPRGkvrFT636HL2KuX5vgnWQvIAcrrxT0iHUfjcfJ2jHYZoRlvKIMhu1ystPuSYDpNsQ==
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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=zEK5E6I87Ok1QHOSYxwtnKTZEqRiya0+Hbu1K3lKT5M=;
b=X9qvNPnhgpgtNBWmpLr/LmGdw+E1yqyH6XjCPm9VJkFfGYH9OUqOs62BBF1ys4Io9Jm9ylZQt8RvSp+G228mds+ykXQoswO6C4Q6Vakyg4QOrbisK2QMRxNF64Q0vP0x2ONIrI+Ttur2jImHonf5MynosITgrt0FTIfvvDm58QW/vPRWpt+dbIiL1IlBBh1R7RP9bKMsTTNTDssK+iAKSR/aFCKgdv3CtWA7GlLFFZOWTMiDd2UwBcswOFu8F7KNwSTiLeQJFz5vFtA8DSD7dYUsaEfRegcumjYOWodIDUMfkxTw3h6qmMmnlk0csTwsgzA3XmdyOKBxs8JHIfT3JQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none
header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: Typo in <sys/select.h>?
Thread-Topic: Typo in <sys/select.h>?
Thread-Index: AdiRQyADQ0wkGUUQSySs8zjKaegWMA==
Date: Wed, 6 Jul 2022 14:17:34 +0000
Message-ID: <DM8PR09MB7095FF1DBA506CC34FBD6212A5809@DM8PR09MB7095.namprd09.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: fea4ab4c-9ec4-431b-6a2e-08da5f5a4558
x-ms-traffictypediagnostic: CO6PR09MB8039:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: W5urieXjPz0LKTe6TpoJ9W35cntCMCnT2pfWJ264kVXHdjh7sPM7rSnx+fBgSzq9q7RehxdCpVmN4WSDQWtTXDTXjhpfwFIxfsc7pJm/L0OPbYYq6+XpWwh8v8p7nqlEEoJISOIhQ9LO8BLhVbZgDi8vm8KQFcBApkgQWU3qH1pbx6BOKNyyNc+GE5XAey/5cjOE61irxLIl/MhrCLRvMyWhsKJN4y+WR04lpKfSWOIl90oXs4CMAe85Sran8x1oGb8JwqqDm6/RFpD6T3tNHXJHQP+faQHFZa2cYXMsTlQOYg9dEiIX4qd6yZaVqG2QZo3ptZ4kEpAX/QubPDL1y11VW985UhzplTLi8zCaTx5wnwa8TzjsiyZi1JIaBldyDRPVqcMIZ9k6mbrc5xYVlvKoMEsALw0YNnrSWbJtUQU04lD4insa9I3nm/Ak2TH2gYrRjemoP1A+O9XMbif3psHIWYsyFOuaKc1ECh0+PUQvmyWcGiXGT3mrEY1+H78Z8O3JAEVo7WXmxIkCoVvnjmp4vzMS5/TuQDkhYhmBBDxuMdjRU4QlDnrg8HrVwlX0hEX0bdxZowU7k7soGcfCVvSxuKAoTNU6cCkoy2vzZhaJEE4G0fqAD7fIHdTrYC3YXhbRLsXPQC0Z6PWkNjp4lJ/1e6K3hnDye57XHWIl2AmFkrq4ia9JHwU6OVuF9WHa0uAuBdI32Fef0KsZFT71QCookeEIGAu6q1+5ughlqD4sawzVDxf5eoiSY8sQBIRUejHmdNwoNnJ38Jbn2AhSYnbNLZiryeRrxNrIGk1EOiRhLgkGQ3AdZ32qaiIcdKZc
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM8PR09MB7095.namprd09.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230016)(4636009)(366004)(498600001)(86362001)(2906002)(38100700002)(38070700005)(122000001)(66556008)(66476007)(64756008)(52536014)(8676002)(76116006)(66946007)(66446008)(71200400001)(5660300002)(8936002)(4744005)(55016003)(26005)(33656002)(6916009)(9686003)(7696005)(186003)(83380400001)(6506007);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vrVF25BOR7DN4nuS/o0tYlbiJ+u/s/SzB2HW9JTCDkw1N9mWGXfQGvQr3Pa3?=
=?us-ascii?Q?hh4S3uzizEkt+dJ0dcgbPj9nrvmX/CsqAmGuJu9qn888mlASy1zDEtTYIExg?=
=?us-ascii?Q?DX+bBBk2IOyteHYyu/p3gCOAvlFLCLlkM5E2MINco2XmQaJuyxQfZyy2rmgt?=
=?us-ascii?Q?ThGOQ5LyPtHrMWGsD5pWFafnIE686kkaCl0rF00l19f7QdW5SQBIzDOFyC3s?=
=?us-ascii?Q?/DFU+SJZ7lyKRJtt1ZCxxKHZaIyzweQmbB4w8/bimZENKK6eNC2jlhJocfUH?=
=?us-ascii?Q?39E8QrdKcbGWvpKTL6K37CCdXQNqA6U2JqwuVdvB6ldhqHXAqaMF/1a+o1Be?=
=?us-ascii?Q?bwKek14w1XQ8g4Hcn1GWEsLd35KriVxgYWuKclfnXknMPddPlSKUed3YxfQk?=
=?us-ascii?Q?dkGgOiwvFbriK2Anc18/e+JHh4jwLU/Q/T5igaTEZuGbaaFzkQWOyryBst8l?=
=?us-ascii?Q?cJS52bHLhLXkgZpBh+ARFSou7VPiKna89bmNLm6jJ2ZVOdvNTh1qWbJpkbMg?=
=?us-ascii?Q?vQ9ebrZMgMw/0+zAUqVmAwswVn7PuZ2skGs0D1php/gDCuxSfXyrmSobLAMK?=
=?us-ascii?Q?scurpbZoN0xcumVEh33wymJ1UuO9q1CLQ7LWLxSwpYbxAOf57POC+IgpftJe?=
=?us-ascii?Q?ILC1AMTXFDx/gt7YALfWjxC/PJzMcW0aVQIHFujBW5BiMq8R/0iWSLUvO0rG?=
=?us-ascii?Q?Ac2zrpIhNxN/OKGZEkHKPvoRMXsugRiEzqoepUvgNYKY/Pf+pT5i0IOICnPc?=
=?us-ascii?Q?DNZG0CPhmUw9EgZBBl7NPwc3Y7hwJmAh/jXmt+bGMRAHWhq20WVgf8VepzKA?=
=?us-ascii?Q?2D0weuxCVCN+Duu7fk0l4lDk9TCDS8bEcYeFzV0ZRppvrhRmGx/E29gQ5w5g?=
=?us-ascii?Q?Va68R++upsW4xxUkU/lKLRbRQZavKOFHL9uzMC7qUF9nKc/+mZJ3V0Z1jGYA?=
=?us-ascii?Q?zMMcAx+/cBIsTny7EMER2hVcvOyKqbQR8DJEdBU0pPV2rUeHeUOwVAr2c1fm?=
=?us-ascii?Q?wTZMLM3EqoK6L031MmRh3P8yNrQko0wj3mVMJWRmfNHnKqQixxXbM9R+rXK1?=
=?us-ascii?Q?GHXt+B/5sO219k265FzzkTR37MBS9+s7h4gMWOV0yXX534gDT5zAguFJ5Cot?=
=?us-ascii?Q?wABr2T0K4/5bsmffpvhZGmyZpM9kRj/PTyPieOu6ZqZ076fiM12rgiI5v3jx?=
=?us-ascii?Q?TB8sRUMgfxhw/nBtK34+icYq9D2bjGiUirjRY9Dy+/ci/dc2zxDpwOiU39rG?=
=?us-ascii?Q?soRkQeIfb3C5uT3nirbbacPe5aeu8Hi7/eaFJYNNUiWpE8QNNV0WYSKfj7m8?=
=?us-ascii?Q?9QBjycZ7hZviURRShEAvyZPpcQ2oo6PzPrCngAI6xWCK73ZZU/cXecwHVjxn?=
=?us-ascii?Q?pagYbAu8gLNPzJvWZzJY/Gwnge+cXxVM+M73glc0guYRDr7q74UXh10Tp7up?=
=?us-ascii?Q?4Ku1TgX1SONkBO1s/0h2exklJ6j7grRezNVhG/w3BEIPgxXHEzMgpwyjCvQj?=
=?us-ascii?Q?IGKsgtxlcbZj8AkP7zNGs566Uun4gnQruoKjpOnj14gUHrqUVtZYyYzGu9PP?=
=?us-ascii?Q?fFy6h+AJkDhqxrysixY=3D?=
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM8PR09MB7095.namprd09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: fea4ab4c-9ec4-431b-6a2e-08da5f5a4558
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2022 14:17:34.0995 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR09MB8039
X-OriginatorOrg: ncbi.nlm.nih.gov
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_EF, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE,
T_SPF_HELO_PERMERROR autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-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: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

> Remember that 64 is MAXIMUM_WAIT_OBJECTS for WaitForMultipleObjects(),
> the underlying Win32 API used to implement select(), so using more than
> 64 hits some complex code to work around that...

True but the complex code (that involves thread spawning, if that's what you're referring to)
will only be activated if the actual number of objects inquired in those sets really exceed 64,
regardless of how big the sets passed to select() were...

So basically, FD_SETSIZE, as Corinna pointed out, just refers to how much "ballast" the arguments
carry -- with larger default FD_SETSIZE they can become unnecessarily heavy for just a few small
file descriptors.

And since FD_SETSIZE is allowed to be overridden by the user, the complex processing at some
point is unavoidable, since there is no limitation for how large FD_SETSIZE can be, and the sets
are densely populated.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


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