Age | Commit message (Collapse) | Author |
|
From FreeBSD
ok marc@
|
|
* plug a memory leak and FD_UNLOCK properly in writev
ok marc
|
|
Patch from Kurt Miller <truk at optonline.net>
Commit reminder from millert@. OK brad@
|
|
particular implementation of libpthread for libc. libc no longer
needs pthread.h to compile.
OK millert@, brad@, tedu@
|
|
Kurt Miller <truk at optonline.net>. Kurt says:
They're needed for the java hotspot compiler in the 1.3+ jdk
OK brad@
|
|
current thread. ok deraadt@
|
|
|
|
|
|
on behalf of a thread, we should check the POLLERR, POLLHUP, and
POLLNVAL flags as well to wake up the thread in these cases.
From: FreeBSD's libc_r
ok marc@
|
|
free in the threads library
|
|
From: FreeBSD's libc_r
ok marc@
|
|
as adding a more aggressive arguement check.
From: FreeBSD's libc_r.
ok marc@
|
|
From: FreeBSD's libc_r
ok marc@
|
|
readlocks on a rwlock while there are writers waiting.
From: FreeBSD's libc_r
ok marc@
|
|
thread. Requested by truk at optonline dot net and OK-ed by
tedu @.
|
|
|
|
|
|
pthread_stackseg_np added. Minor bump for these changes occurred
a day or so ago and will not be bumped again
|
|
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@
|
|
ok marc@
|
|
|
|
Based upon patch/report from Marc Olzheim <marcolz at stack.nl>
|
|
From: FreeBSD' libc_r
ok marc@
|
|
LIBC_R_DEBUG -> LIBPTHREAD_DEBUG
ok marc@
|
|
If an application closes one of its stdio descriptors (0..2),
an excessive close() on one of these descriptors would cause
a memory for this descriptor to be allocated in the internal
descriptor table. When this descriptor gets used again, e.g.
through the call to open() or socket(), the descriptor would
be erroneously left in the blocking mode, and the whole
application would get stuck on a blocking operation, e.g.,
in accept(2).
but changed to not eat fds when a file that the thread kernel doesn't
know about is closed.
|
|
and sendto() cancellation points, as required by POSIX.1-2001.
From: FreeBSD' libc_r
ok marc@
|
|
rev 1.21
Fix bogus return values from libc_r's writev() routine in situations where
a partial-write is followed by an error.
ok marc@
|
|
rev 1.21
Fix bogus return values from libc_r's write() routine in situations where
partial-write is followed by an error.
rev 1.22
If __sys_write() returns 0, allow that to exit the loop in libc_r's
wrapped version of write().
rev 1.23
Return to the caller if write() returns 0.
ok marc@
|
|
|
|
|
|
to allocate with a define
|
|
be closed. This fixes a file descriptor leak when closing a kqueue() fd.
from FreeBSD
ok marc@
|
|
on any file descriptors that have the close-on-exec flag set.
from FreeBSD
ok marc@
|
|
|
|
|
|
|
|
|
|
I've skipped the GNU stuff for now. From Patrick Latifi.
|
|
ITIMER_VIRTUAL for the profiled version. Fixes problems when programs
linked with libpthread try to use ITIMER_VIRTUAL (and have no way of
knowing that this will cause conflicts with the threads lib).
marc@ OK
|
|
|
|
non-thread-safe dl functions. Only enabled for ELF architectures
at this time as needed dlxxx support has not yet been added to the
a.out run time loader.
'doesn't break xmms at least' tedu@. Tested by others with no comment
|
|
|
|
This is easier than fixing the strcpy in the file.
|
|
|
|
Also, for safety lock the _thread_fd_table when removing entries.
|
|
|
|
_thread_fd_table_dup
|
|
|
|
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.
|
|
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
|