Project

General

Profile

Actions

Bug #895

closed

pselect(2) implementation

Added by nthery over 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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 (15 KB) select.diff nthery, 12/26/2007 06:15 PM
tselect.c (3.6 KB) tselect.c nthery, 12/26/2007 06:18 PM
pselect_v2.diff (16.4 KB) pselect_v2.diff nthery, 12/29/2007 10:15 PM
Actions

Also available in: Atom PDF