summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/uthread_dup.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* thread fd handling, part 2. Don't mung file flags until forcedmarc2003-02-051-2/+5
| | | | | | | | to notice that the file exists. This fixes a problem where an application may think a file was in non-block mode because the threads kernel played with the flags. Also fix a stupid error introduced in the last commit -- the threaded version of dup and dup2 were foobared. Bad marc.
* Part 1 of thread fd handling fixes. In the new scheme fd_table_entriesmarc2003-02-041-56/+8
| | | | | | | | | | | | | | | | | for dup-ed fds are shared to ensure proper flag handling. A refcnt was added to control when entries should be freed. Specific changes: close: don't free entry unless refcnt is zero dup: rewrite to use new function _thread_fd_table_dup dup2: rewrite to use new function _thread_fd_table_dup fcntl: use _thread_fd_table_dup uthread_fd: initialize thread fd table, searching for dup-ed fds. Add function to share _thread_fd_table entries when an fd is dup-ed. uthread_init: make it readable. Call fd init functions. All current regression tests plus the mysql torture test pass. The new stdfiles regression test fails (I/O redirection problem). Part 2 is intended to fix that problem
* sync with FreeBSDd1999-11-251-2/+3
|
* identd1999-01-061-0/+1
|
* experimental threaded libc - kernel onlyd1998-08-271-0/+69