[issue895] pselect(2) implementation

Nicolas Thery sinknull at crater.dragonflybsd.org
Wed Dec 26 10:18:04 PST 2007

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

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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00001.bin
Type: application/octet-stream
Size: 15346 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20071226/48ba47d5/attachment-0021.bin>

More information about the Bugs mailing list