Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 1999 17:48:47 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        Jonathan Lemon <jlemon@americantv.com>, jwd@unx.sas.com, hackers@FreeBSD.org
Subject:   Re: Strange select/poll behaviour [EBADF inconsistancy]
Message-ID:  <Pine.BSF.4.10.9907081748000.56445-100000@janus.syracuse.net>
In-Reply-To: <199907082145.OAA43211@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Jul 1999, Matthew Dillon wrote:

> :Hmm, you're right.  Arguably, it could return EINVAL.  Actually, the
> :man page documents this behavior, although it gets the 256 number wrong.
> :
> :     If nfds is greater than the number of open files, select() is not guaran-
> :     teed to examine the unused file descriptors.   For historical reasons,
> :     select() will always examine the first 256 descriptors.
> :
> :--
> :Jonathan
> 
>     This piece of the manual is justifying the fact that select() is not
>     currently checking past the current number of open files -- which
>     is how select() works now.  The second part of that manual entry is just
>     plain wrong:  If you pass an nd value less then 256 it will only check that
>     number of descriptors, it no longer examines a minimum of 256.

So shouldn't someone correct it? I'll do it if noone else wants to.

> 
>     It would definitely not be appropriate to return EINVAL.

I concur.

> 
> 					-Matt
> 					Matthew Dillon 
> 					<dillon@backplane.com>
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 

 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 green@FreeBSD.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907081748000.56445-100000>