bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH, HURD][RFC] hurdselect: Step7x, almost complete rewrite finis


From: Roland McGrath
Subject: Re: [PATCH, HURD][RFC] hurdselect: Step7x, almost complete rewrite finished
Date: Tue, 12 Feb 2013 15:27:06 -0800 (PST)

> Then you have to convince the Linux man page and the python3.2
> developers too. From python3.2:
> ./Include/fileobject.h: #define _PyIsSelectable_fd(FD) (((FD) >= 0) &&
> ((FD) < FD_SETSIZE))

The fd value itself has to be < FD_SETSIZE, since indexing is zero-origin;
so that code is right.  The nfds argument to select is highest_fd+1
(i.e. has to be 1 if the only fd in your fd_set is fd 0), so <= FD_SETSIZE
is the right test there.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]