delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/02/06/15:33:00

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D1F3385840E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1675715531;
bh=k9r5OsH1UsQpFpIxC2c6XqJU7V5sYFncL8roOI6xiFA=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=fmXqvlhbcVDaHSSmKBURARcqTqmtD4UBAaCe5I1qFWPsMXRaiOmAfqfYdThit/yk3
7NrCiHvENJApU1pbKH0CLR7E3gp8G9mRWhbCLpOC625aLKf3obb/RjUpSSITKKq4Kz
GOrR4VeC8cjagh+RzCHj06BN8hu7YnqrrPUCfWwk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E89153858D1E
Message-ID: <e38a8c41-aaaa-5ca5-04fc-dfb36ebf2377@cs.umass.edu>
Date: Tue, 7 Feb 2023 07:31:51 +1100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Subject: Re: [FEEDBACK] Issue with fd_set, FD_ZERO, FD_SET, FD_SETSIZE : Cygwin
To: Yeo Kai Wei <yeokaiwei AT hotmail DOT com>, cygwin AT cygwin DOT com
References: <PH0PR05MB991811F96A93962E56F6DCC0A4DA9 AT PH0PR05MB9918 DOT namprd05 DOT prod DOT outlook DOT com>
In-Reply-To: <PH0PR05MB991811F96A93962E56F6DCC0A4DA9@PH0PR05MB9918.namprd05.prod.outlook.com>
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS,
TXREP 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: Eliot Moss via Cygwin <cygwin AT cygwin DOT com>
Reply-To: moss AT cs DOT umass DOT edu
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 316KWZcK007216

On 2/7/2023 7:25 AM, Yeo Kai Wei via Cygwin wrote:
> Hi,
> 
> I would like to report an issue with Cygwin 3.4.2 on Windows.
> 
> It doesn't seem to be able to work with  fd_set, FD_ZERO, FD_SET, FD_SETSIZE macros.
> 
> The code is in italics. The filename was selectStdIn.c. The terminal command used was "gcc -o 
> selectStdIn selectStdIn.c"
> 
> Thank you.

My guess is that those fd set things aren't POSIX, and cygwin tries to model POSIX.

Comments at the top of /usr/include/sys/select.h suggest that.

-- Eliot Moss

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