From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 7BEAD3858D33 for ; Tue, 7 Feb 2023 05:53:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BEAD3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id P4tVpuQral2xSPGv2pVZzl; Tue, 07 Feb 2023 05:53:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1675749208; bh=W2rEjoK/0lWZ0pr1CE+VthtWbe7Rh9gdpsRhZJQWPtI=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To; b=IJFFLetGy2wjbTG+Ctah5LRNjSPImCLBc/rq6nYeXvnSVUdZxUVlpkXk5y6cQFntp 5oiYv8FhjGfhkc8Rlok2bvFanrk9rbnSD4+saNAXRlIl5ewUj++P1+62+YPNfCKa7d BIr1v4KfpyVYDllCf6Rr89W1R9luGwZXzlXNAx6ry5ENpUmIHFFbVjukGbzdTokRFz z8v/wwWsV6kzPRBNFnCjkiWfBNBdNFyKlQMcMNUhgJ2szU5yGlUKRnb5ZE2tHUb3rr MKeMXRMlIPy7VWlNKjVfV+s01Fsug7XMp0dlYajOSQrKVfsAIrdvWDQ9kFKU1hOGUZ U+DYAfD280/BA== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id PGv2pcBxOHFsOPGv2p6MBp; Tue, 07 Feb 2023 05:53:28 +0000 X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=63e1e758 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=Rh1ySqpaAAAA:8 a=vEyhj2CCR5CJmQ47hXgA:9 a=QEXdDO2ut3YA:10 a=49NKa3T3cLSxV3hCL32J:22 Message-ID: Date: Mon, 6 Feb 2023 22:53:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Reply-To: cygwin@cygwin.com Subject: Re: [FEEDBACK] Issue with fd_set, FD_ZERO, FD_SET, FD_SETSIZE : Cygwin Content-Language: en-CA To: cygwin@cygwin.com Cc: Yeo Kai Wei References: <36f2d54f-8515-42fb-e64c-86e348b8e902@cs.umass.edu> From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfLqSXZ3GQrGn87DOyVC/5WhCSCV8/4f2Dqyqt7ba1IkKXCoCFQUHnKvwr/I1jhe07Uy8a0axyjAu3qP5cVU4Z9d1RtAaJxmZS2uS1MSky8uXSmUzR5Bi bxicAbTVwC9LP/XjwrxIUIElZ7R6ux4IbWSAM8KpxTHLO2/1xChjiiBCZ5Y8GxM1KZEiotGWaNlOhgQiGUQn4ODef0Q5OLqzuYH5+vmj0tjOIGzR32aoMeXj X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,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 List-Id: On 2023-02-06 21:28, Yeo Kai Wei via Cygwin wrote: > On 7/2/2023 9:54 am, Eliot Moss wrote: >> On 2/7/2023 11:34 AM, Yeo Kai Wei wrote: >>> On 7/2/2023 7:27 am, Eliot Moss wrote: >>>> On 2/7/2023 10:03 AM, Yeo Kai Wei via Cygwin wrote: >>>>> On 7/2/2023 4:59 am, gs-cygwin.com@gluelogic.com wrote: >>>>>> On Tue, Feb 07, 2023 at 04:33:53AM +0800, Yeo Kai Wei wrote: >>>>> I updated Cygwin to 3.4.5-1.x86_64. >>>>> $ uname -a >>>>> CYGWIN_NT-10.0-19045 DESKTOP-P3E71RB 3.4.5-1.x86_64 2023-01-19 19:09 UTC >>>>> x86_64 Cygwin >>>>> However, the same problem occurs. >>>>> Cygwn-devel doesn't seem to work. >>>>> $ gcc -o selectStdIn selectStdIn.c >>>>> selectStdIn.c:9:10: fatal error: sys/select.h: No such file or directory >>>>>   #include >>>>>            ^~~~~~~~~~~~~~ >>>>> compilation terminated. >>>> Well, on my system cygcheck -f /usr/include/sys/select.h clearly says >>>> that the file came from cygwin-devel-3.4.3-1.  Maybe you misspelled >>>> cygwin-devel ?  You do have to select the package explicitly, too. >>> I just reinstalled Cygwin but I'm unsure of what I missed. >>> I did "cygcheck -f /usr/include/sys/select.h" and it seems to tell me that I >>> do have cygwin-devel-3.4.5-1 >>> Did I miss a step? >> What gcc are you running?  Maybe not cygwin's? > I think I'm running MinGW's gcc. > I typed in "gcc --version" and this is what Cygwin returned. > $ gcc --version > gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0 > Copyright (C) 2018 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > What should I do next? If you choose to install cygwin-devel in Cygwin Setup, it will install all the tools and files needed to develop under Cygwin, as well as rebuild Cygwin itself and most of the components and packages. If you use the provided Desktop and Start Menu shortcuts to run bash under mintty, or both under Cygwin/X, you should be able to work as if under any Linux or similar distro. You must have the virtual Cygwin paths /home/$USER/bin:/usr/bin:/bin:/usr/sbin:/sbin:... first in PATH and similar /usr/share/{man,info,awk} /usr/lib/gawk for {MAN,INFO,AWK,AWKLIB}PATH in your preferred shell initialization files e.g. in bash $OSTYPE == "cygwin". -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry