From owner-freebsd-hackers Thu Mar 13 1:34:48 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1177637B401 for ; Thu, 13 Mar 2003 01:34:47 -0800 (PST) Received: from park.rambler.ru (park.rambler.ru [81.19.64.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C45F43F3F for ; Thu, 13 Mar 2003 01:34:45 -0800 (PST) (envelope-from is@rambler-co.ru) Received: from is.park.rambler.ru (is.park.rambler.ru [81.19.64.102]) by park.rambler.ru (8.12.6/8.12.6) with ESMTP id h2D9YZmF040826; Thu, 13 Mar 2003 12:34:35 +0300 (MSK) Date: Thu, 13 Mar 2003 12:34:35 +0300 (MSK) From: Igor Sysoev X-Sender: is@is To: Sean Hamilton Cc: hackers@FreeBSD.ORG Subject: Re: first parameter to select In-Reply-To: <000501c2e911$96ea79a0$d1d7e8d8@slugabed.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 12 Mar 2003, Sean Hamilton wrote: > What is the first parameter to select(2) for? Microsoft's select ignores it, > and it does not appear to have any valid use since it only allows > constraints on values which are assigned by the system. > > Purely historic? Winsock uses the integer array for fd_set instead of the bit array as Unices do. Winsock socket's numbers are big enough, for example I saw on NT as first created socket has number 96 and second has 42. Bitmask is not effective for such numbers. Igor Sysoev http://sysoev.ru/en/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message