summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/uthread_select.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* So passes uthreadsguenther2012-09-011-243/+0
| | | | | Like autumn leaves on water don't fear the tedu@
* clean up lint warnings related to the nfds_t type. okay marc@ millert@kurt2007-05-211-5/+5
|
* Eliminate many lint warnings by either: using the appropriate type,kurt2007-05-181-6/+8
| | | | | casting when safe or adding ARGSUSED where needed. Reviewed and improvements from millert@ and marc@. okay marc@
* Use rlimit nofiles max to size fd/fdp tables instead of cur. Fixeskurt2007-04-271-3/+3
| | | | applications that increase nofiles using setrlimit(2). ok marc@
* select() and poll() don't _FD_LOCK their file descriptors, so there's nokurt2006-10-251-6/+1
| | | | | need to bail from _thread_kern_poll() when a file descriptor is in closing state. corrects segfault reported by ckuethe@
* Last Part of file descriptor race and deadlock corrections.kurt2006-10-031-1/+6
| | | | | | | | When a fd enters the closing state prevent any threads from polling the fd and reschedule the thread with the closing_fd flag set. This fixes a class of deadlocks where a thread is blocked waiting for data (that may never arrive) and a later thread calls close() or dup2() on the fd. okay brad@
* Fixes from FreeBSD's libc_rbrad2004-01-031-14/+26
| | | | | | | | | | | | | | | | rev 1.21 Make the libc_r version of select() set the readable or writable file descriptor bit if poll() returns POLLERR, POLLHUP, or POLLNVAL. Othewise, it's possible for select() to return successfully but with no bits set. rev 1.19 Return correct number of total bits set in all fd_set's. Change case of POLLNVAL as an error. Remove POLLHUP and POLLERR from one case, their place is most likely amongst read events. ok marc@
* more cancellation points.brad2004-01-011-2/+3
| | | | ok marc@
* replace magic number for min number of poll_data entriesmarc2003-11-031-3/+8
| | | | to allocate with a define
* Fix optimized select handling buglet. Patch from tholo@marc2003-10-191-2/+2
|
* Optimize conversion of fd_set -> pollfd. OK and test by marc@millert2003-10-161-29/+37
|
* return (func(...)) not needed when the current function and funcmarc2003-01-191-2/+9
| | | | | | are both void. The select call is a cancellation point per IEEE Std 1003.1-2001. This should fix a problem espie@ found in kde.
* Start syncing with FreeBSD:fgsch2001-08-211-10/+11
| | | | | | | | | | o Implement _get_curthread() and _set_curthread(). Use it where possible. o Add missing _thread_[enter|leave]_cancellation_point(). o Add a couple of not yet used vars to pthread_private.h. o Remove return's from void functions. This is by no means complete, but instead of doing a big commit, i'll split it in small ones, minimizing diffs.
* sync with FreeBSDd1999-11-251-85/+111
|
* sync with FreeBSDd1999-05-261-2/+5
|
* identd1999-01-061-0/+1
|
* experimental threaded libc - kernel onlyd1998-08-271-0/+177