[issue895] pselect(2) implementation

Nicolas Thery nthery at gmail.com
Wed Dec 26 16:46:25 PST 2007

Please review the  patch attached to
http://bugs.dragonflybsd.org/issue895.  If there are no objections I
will commit it on Thursday, Jan 10.

It seems all BSDs leave select()'s timeout argument unchanged on
return (contrary to linux), so I don't intend anymore to "fix" dfly
with that respect.


2007/12/26, Nicolas Thery <sinknull at crater.dragonflybsd.org>:
> New submission from Nicolas Thery <nthery at gmail.com>:
> Kernel-side pselect(2) implementation:
> Add pselect() system call.
> Factor out in doselect() code shared between select and pselect (was in
> sys_select()).
> Add pselect() wrapper in libthread_xu that uses the pselect() syscall.
> Add pselect() wrapper in libc_r that uses poll() syscall (see XXX comment in
> code and BUGS in pselect man page).
> Add pselect man page (taken from FreeBSD).
> Changed libbind to use system pselect instead of locally defined wrapper.
> Note: The current select() implementation does not update the timeout parameter
> on return as specified in
> http://www.opengroup.org/onlinepubs/000095399/functions/select.html.  I intend
> to fix this in a separate patch.
> Test Strategy:
> make buildworld && make buildkernel
> Ran small test suite that could be submitted to /usr/src/test if needed.
> ----------
> files: select.diff
> messages: 4022
> nosy: nthery
> priority: feature
> status: unread
> title: pselect(2) implementation
> _____________________________________________________
> DragonFly issue tracker <bugs at lists.dragonflybsd.org>
> <http://bugs.dragonflybsd.org/issue895>
> _____________________________________________________

More information about the Bugs mailing list