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

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CDEF3851A9C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1657117656;
bh=ajJGnsvmuu6FxXU7faLQeBbDND/OyKQwH2RiKV9TT3s=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=o6Qh3pLTOqyrrJLVNQdrqvKHkzQCn45SU71dZujEYy1V1TEt3ezndG2pVgyFcKaqX
VRZ1+MQt2K6oCv19bYy15DYgs4JDmsJidwC9d3VDfp3HnvAwby9rSaVzbNrmujtG9t
uaK6bs3yBTqThMn5pKKYhU2/YRl35KYJ7FOnNd2k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DCC883858015
X-SBRS-Extended: Low
X-IronPortListener: ces-out
X-IronPort-AV: E=Sophos;i="5.92,250,1650945600"; d="scan'208";a="250613440"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=c5T40BOEvwKd4TBkwBIpxZMNLoM++eD4drWyqpGqP4TCjHP/OkOq8GxBhfFBiz+1CJ07Ys+xB/xRsOUO7QtvIZ0DT86giyGhdI+U8CBK/1nvE3w/yHqLXda+216PkQiS/ORmYQFtlWm51P8HIGHdTUaTIa8krEysJe6/+usLs/gNsicsFBQ5hvd+kyk5bcBF4kk8P4iP2o+l0CXVt6ECeHzFwSkefotV9bSAAI1e/yUtRLP5jLHnplHofS+CmcNOpyTgOgU1QvtZ982dDFc6Q3EEKPJofAYRYwnWTRobhv+7VoBiw4pPSeIHhhdDX3NSXwKGVWNa26AeiBpGcG1XAA==
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=fWZVo96Dk5WDR5GS1NBSxg7isLQBAlTVGHkQGBNt/nk=;
b=WymZXoa5NQ4F3aMFwM/XmhYwKdhIQKSF59nF4npJ3E9GhXZ4jfMjyHDd2Mgfw/f4SvS0SOOfsyPZi/ARO+zDIMx6Wi+Osp4oWPAen+W5pqGswDfyhQCGqmVoEhGwvwwGNG7/N6NR7PR10cd8gM2JRgDjiqjwnK2m84EfcYLoQK1wNhsDpXv2Sz1ayk5eUyPZWO/+yYwBAOSeU2flCvgfOqfvmaPiZ+muafYG7QkyWT9cY5sErBta2KqExHj7Z6etVfTBC/bL24NFxHW+DoYc0BAB4XZY4Sy8HNQYC8nATU4HqaTMcEqsJzINL9Vo/LeVE9Jrwt9HPydugy/Dew+fFA==
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: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Typo in <sys/select.h>?
Thread-Topic: Typo in <sys/select.h>?
Thread-Index: AdiRRF98z8s1MxN/QAq5XP6Ii3xCwg==
Date: Wed, 6 Jul 2022 14:26:26 +0000
Message-ID: <DM8PR09MB709506526ACE1ACB3E0E41F3A5809@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: 95ff28c8-e1cb-4ed5-fab5-08da5f5b829a
x-ms-traffictypediagnostic: DM8PR09MB6519:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: myv+pNs8hDiXkL9Jtmc1Otu7DxzyQO8CmpiB/rWZJEuabnESIi5pUBhOhcWjtX8qINN44xGrxXNsZNoVa1WdCnLncSyMa7coQIqRuKzcbtvDQUmskMQmIgBVpP2hRacSBvDDJwLqnI5lW6BwdOe/pQn7g19elL3Zu5q2RALsA77HkLYCUEhwYCjkHqonT4DkFKeZOHiJDU1XCxch//j2op4E4HbnHifEoeyni1FquqWiH+KujY1QulaRpBYb4Zz65icgekFLUd7ApaPQSzN0vFifDGRYlgHg/m9BTXfb8FwXJTKx0OVtOSaQlSFN03HPFQCjV9pdu2lGh0uZIJsUWFD+dCmaybtznLpuvQw2quaDxxy7izS+I14bKV/abHOLzFxlng4zIrUTyWSuUUyEuOtgAlDBKDBZjSfY4sZujQ5y9TAGzXpr6NnE0dSt+l7BQ5TYyA1aRSWySZ39YvPXuVci39USieKoe8e2pcxPpnL0LUV2ECV7SInBMhG4ucEigZoujPDOhfnPAPf/ePrt8LY+BZlsa79Hojf3zGJUmFV2utcIsm0r4ur7hVfiSH6jpIejXnsgoFW4oyL1WyQq0Lkx6l6Z3SYTXPsvdxw3O3XW+VkZwnAU05DGoaYSn2MYSsjkQ2HCPpiGuPvszr3GpWmmA1Z0SHg4AWzyml6aVwHpn61rOYFVYet02pHjwO1S5zQSf2NxLD/K1DldNCOog1LZiaFm1RzyveYXVzXlUzM3zkW9ntf5VaMWAOwsx8WyB5aLmAD97NME5SS95k/vSWRDsxAgP+LIXiP8Ny4hEHG+WDS9a/zANGNyty4ZgPbXK5iti4DPmCa6/nUpKaUMyw==
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)(52536014)(66446008)(6916009)(66476007)(66556008)(8676002)(64756008)(66946007)(86362001)(6506007)(7696005)(76116006)(26005)(8936002)(9686003)(71200400001)(38100700002)(122000001)(498600001)(2906002)(83380400001)(966005)(33656002)(5660300002)(38070700005)(4744005)(55016003)(186003);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wj48TuzaEf6V+oUZczbognnrAWRMHpjC3MIV8gHAfE4uRdB4SaBHQqL/yO31?=
=?us-ascii?Q?9mgYpCExDHKWYF/GxEuulOwSf6uDyKU5BCu0f6K5cBorZiB/1riq9jxJKPMT?=
=?us-ascii?Q?ngsHz67fsOI+mQOa68ZPcnVNFe9iwOQ0WDvX7PKQi4i6fjOF+n08S4X6TFCN?=
=?us-ascii?Q?I8euq+23nu1xuWC5VBPtAr/BCCz2IgM5Z4XthZs723NoXkxqgpE5BZeIf8t/?=
=?us-ascii?Q?yst9uyKMYKpVfgK0aj71hwkQ2ugl5ZzHzXkMS8nShxTEcXekmsPEcAc75LF8?=
=?us-ascii?Q?bSb3vsxIbqSy44JQnVJFIB3UhPfb6/Yk2rK0oleLCHVGKDecofDjwyxF4UQV?=
=?us-ascii?Q?jKpq15lG509YGqqNctKhAfemQJZPvy6j1kajvZZ7g+aWCG+PCbBVVJBlG2n9?=
=?us-ascii?Q?vJ43R9Iwoee7kcYFuq6vuBiZYhh9c3uZRpLv7Fx0NXvzb3NTCHnhdmmrU43f?=
=?us-ascii?Q?0KNFDaWfG/UOd3lNDTlKxJwA4Gh3DBJO8OPtNp7WE6gc+drEB6dTTm1F7yeg?=
=?us-ascii?Q?8lbhj15NZFGfGoKPMIVGlXRhqcv++WspS7KwrXCp21Zy3zMl6yW31XhQ8UBt?=
=?us-ascii?Q?j/dghyqcKkCI2o4LAtT3W3PX9ujG6mPHyGDhnMYmhPgsf3itt8ZSJedPZXb1?=
=?us-ascii?Q?kkGcZpWTxr2zlHgXd8FbnytHm506u29jB1ohDTMdLDvKb/HwyjJGbOFjc8MR?=
=?us-ascii?Q?RkM8kJLufNW0FxBkD0WYTf/Mm0wJE9uAAWT8GF0ERDA/Z8PTMwhbqbNupEgG?=
=?us-ascii?Q?Gg97bXS+gMFJ+05LQguNCxoOo/Xm14wuG3wRRa+louy5O8QfRhdGHNE+0lne?=
=?us-ascii?Q?zUkvZ7a+3203V584XjI/HTBhSf31pBCML7Y9iuRUfAxIC912MfYCceODszd/?=
=?us-ascii?Q?s+cHLg1bAvOP9ot9ANnnlrQjhkXT2TFaviJuSJuNdDHu+hpiIMU8iJcRPXyv?=
=?us-ascii?Q?VOTdTh37xb9Pi7zuBcqkv3fkldd97or967h834TbQrf/atRU4ZKk7GtJXpoD?=
=?us-ascii?Q?bOgM7clWJVMM1N6fdnm9al7QG7+TFmCKIYFQKNPaWdE0JLr1f6wC/RqjA00e?=
=?us-ascii?Q?zmmEB0EU7+7pQTcyrYaDjSvq+NXoceM8Q5e53h210BAoDZiSOl7i4OSs0MDf?=
=?us-ascii?Q?bvjDom5GlSsBJYKcQaYm3LFLbB2PcwB651YZzj+6pWibxz85EIHVshcFRbY9?=
=?us-ascii?Q?AB0s9ZjuHxgEhzviIGATCauYd18u5H6AG2O5Md9HOegtzFYdNdwsp5mkmRDC?=
=?us-ascii?Q?wWndkKI8Lv/moKORzjH0bFllg53C6M+VOG1TvFVm8AcxrukJ89b2HWVNpWPZ?=
=?us-ascii?Q?xTw6GxPJnG+MIHr+rRw39MT1JMrl6rSYjGnoUN4yJrJqvtdB7ubk79/gk53x?=
=?us-ascii?Q?9lcX5ILaX5HS5ZeHGSl0DoDMLwQSw/9dTgkaQ2v37/4qlCRcp6RvXhwrrtli?=
=?us-ascii?Q?dDJHDI4W9Dpn/0GduhFlwZfK+dquPh0R0AyFxuf3zAeABbjOiX+SSJ51oNk5?=
=?us-ascii?Q?lWBCHn0J5CU96IAbuKO4BIv9SPzZPMgSZAK94McksY2r9Z+ww9VMnf8dLo3Y?=
=?us-ascii?Q?voTOV2NsqMRcdO0w7aI=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: 95ff28c8-e1cb-4ed5-fab5-08da5f5b829a
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2022 14:26:26.3578 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR09MB6519
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>

> DESCRIPTION
>        WARNING: select() can monitor only file descriptors  numbers  that  are
>        less  than  FD_SETSIZE (1024)-an unreasonably low limit for many modern

Whoever wrote this, was wrong (they might have never consulted the actual kernel code, or were just
blindsided by FD_SETSIZE being a predefined constant).  You can take a look at the kernel source code,
if you don't believe me.

This select() trick has been like that from the earliest days of Linux, and the behavior is carefully carried over.

https://github.com/torvalds/linux/blob/master/fs/select.c#L625

It's just an FYI :-)

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