X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02AFA3858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1675749247; bh=lcaEgo7Y5UXCq2quHQYiNocrN0StoyM0ONypr0HAv/c=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=P+n6UQSG4kZowISdz3ga6I5293W6IRl62NF+vFh7nAqqM4uDdHg5zynp+O+Oo9BKC AmsQeP0RpbNYQ0nUMUq7CKVVa2e3KKq7mzg/TXDRumgCjeYxt+k0cMj7caw8WpVnXG XyskNiUsPe8zYadV3Uy5a6srIlXPKorae1BUqdec= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BEAD3858D33 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 Subject: Re: [FEEDBACK] Issue with fd_set, FD_ZERO, FD_SET, FD_SETSIZE : Cygwin Content-Language: en-CA To: cygwin AT cygwin DOT com References: <36f2d54f-8515-42fb-e64c-86e348b8e902 AT cs DOT umass DOT edu> Organization: Inglis In-Reply-To: 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis , Yeo Kai Wei Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3175sU7L002460 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 DOT com AT gluelogic DOT 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 -- 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