DragonFly bugs List (threaded) for 2007-12
DragonFly BSD
DragonFly bugs List (threaded) for 2007-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue895] pselect(2) implementation


From: Nicolas Thery <sinknull@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Dec 2007 18:15:54 -0000

New submission from Nicolas Thery <nthery@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue895>
_____________________________________________________

Attachment: select.diff
Description: Binary data



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