delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/22/19:20:51

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:reply-to:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=Z49QejU7c77QeA4m6S3ZLugwDqgPAM
Od7G58HSermTPMgDsWGPD3Tz1C6flJQITNAFOrhkRzcH55oHCTTE//X20ff/2htv
H4Y5+ezrknnatR36Kru7y+H9890w3EcIM5NPbRlV3xIvVHTReUTC+gt3SM7UJmxS
NFoSbuf/Fmowo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:reply-to:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=FvMzweRp2QzlOcqhpmDFhAdrL7c=; b=Jy9h
DnLgocK8xjnrI8Q9h+fcHxqhtTQ+af4C8xsUyYZ/uVzi6KroHagjvcn1mn6EDA3K
jG4WPh6H1PadNKww+/OjB4RlHJgfNr1O6UGsVj8uKIJHyXhwByxh0uxNaZAqm4QF
TpReLUJskwXaqkqBmO4+TDcN+cRpNSAKVUbrv8k=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:DM3PR18, Ren, ren, H*f:sk:DM3PR18
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: =?UTF-8?Q?Ren=c3=a9_Berber?= <rene DOT berber AT gmail DOT com>
Subject: Re: FD_SETSIZE and sizeof(fd_set)
Date: Wed, 22 Jun 2016 18:19:18 -0500
Lines: 20
Message-ID: <nkf6f4$304$1@ger.gmane.org>
References: <DM3PR18MB084148FC4EFA327DA33DB267DB2C0 AT DM3PR18MB0841 DOT namprd18 DOT prod DOT outlook DOT com>
Reply-To: Do not reply <rene DOT berber AT gmail DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <DM3PR18MB084148FC4EFA327DA33DB267DB2C0@DM3PR18MB0841.namprd18.prod.outlook.com>
X-IsSubscribed: yes

On 6/22/2016 5:19 PM, Steven Bardwell wrote:

> I am running into a problem with the fd_set structure that someone may know the answer to. 
> 
> I would like to be able to call select() on more than 64 open files, so I have done the following:
> 
> 1)   the include section of the program has the code:
> 
> #undef FD_SETSIZE
> #define FD_SETSIZE 256
> #include <sys/types.h>

Wrong include file, use

#include <sys/select.h>

(which is the one that actually has the definition of fd_set, and uses
FD_SETSIZE).
-- 
René Berber


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019