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]

Re: [issue895] pselect(2) implementation


From: "Nicolas Thery" <nthery@xxxxxxxxx>
Date: Thu, 27 Dec 2007 01:44:56 +0100

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.

Cheers,
Nicolas

2007/12/26, Nicolas Thery <sinknull@crater.dragonflybsd.org>:
>
> 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>
> _____________________________________________________
>



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