summaryrefslogtreecommitdiff
path: root/lib/libpthread
AgeCommit message (Collapse)Author
2003-12-22Fix from FreeBSD' libc_rBrad Smith
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@
2003-12-22Fixes from FreeBSD' libc_rBrad Smith
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@
2003-12-10Add an nfds_t type as per POSIX and also add pollfd_t like Solaris has.Todd C. Miller
2003-11-10missing proto for kqueue(); marc@ okMichael Shalayeff
2003-11-03replace magic number for min number of poll_data entriesMarco S Hyman
to allocate with a define
2003-10-26Real atomic locks for m88k.Miod Vallat
2003-10-22Add wrapper for kqueue() to keep track of the allocated fd and allow it toBrad Smith
be closed. This fixes a file descriptor leak when closing a kqueue() fd. from FreeBSD ok marc@
2003-10-22When about to do an execve(), don't bother resetting the O_NONBLOCK flagBrad Smith
on any file descriptors that have the close-on-exec flag set. from FreeBSD ok marc@
2003-10-21indicacte -> indicate; from Jared YanovichJason McIntyre
2003-10-19Fix optimized select handling buglet. Patch from tholo@Marco S Hyman
2003-10-19sync FreeBSD RCS idBrad Smith
2003-10-16Optimize conversion of fd_set -> pollfd. OK and test by marc@Todd C. Miller
2003-10-03remove error code that can't be returned;Jason McIntyre
from kensmith@freebsd (rev. 1.13); ok marc@
2003-09-22Off-by-ones, from aaron@Miod Vallat
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-08-01Go back to using ITIMER_PROF for the non-profiled libpthread and useTodd C. Miller
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
2003-07-22- use :L variable modifier with ELF_TOOLCHAIN variableBrad Smith
- change 2 instances of the check from != "yes" to == "no" ok deraadt@
2003-07-21minor number bump due to added functionsTodd C. Miller
2003-07-08remove variable never readMarco S Hyman
2003-06-10Use ITIMER_VIRTUAL instead of ITIMER_PROF as the thread schedulerMarco S Hyman
timer. Allows threaded aps to be profiled. Tested on i386, alpha, macppc, sparc64 and vax. miod@ says: I think this is the right thing to do.
2003-06-02place this under the Public Domain (instead of a bad license I had put)Peter Valchev
2003-06-02section reorder;Jason McIntyre
2003-06-02Strict prototypes.Miod Vallat
2003-05-27libpthread support for vax, at last.Miod Vallat
2003-05-19Missing licenceMiod Vallat
2003-05-18- typosJason McIntyre
- new sentence, new line - clean up .Xrs
2003-05-13Add support for blocking thread switches during dlopen and otherMarco S Hyman
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
2003-05-08crank major number to correspond to libc major changeTodd C. Miller
2003-05-08RETURN VALUE -> RETURN VALUES in .Sh, as per mdoc template.Jason McIntyre
also new sentence, new line.
2003-05-01Enable compiler warning options but NOT -WerrorMarco S Hyman
2003-04-30fix for pr# 3179 and 3238. Patch verified by author of 3179.Marco S Hyman
2003-04-14when libc/shlib_version says you need to crank this one too, DO NOT IGNORETheo de Raadt
THAT ADVICE -- IT IS THERE FOR A REASON
2003-03-31Remove unused file. OpenBSD uses uthread_info_openbsd.c, instead.Marco S Hyman
This is easier than fixing the strcpy in the file.
2003-03-20sprintf -> snprintf; ok millert@, henning@Marco S Hyman
2003-03-14document that sigwait() needs to be linked with -pthread;Jason McIntyre
from Mike Neuman; closes PR 3030 ok marc@
2003-02-27Don't need to specify both __dead and __attribute__((__noreturn__)) forChad Loder
pthread_exit prototype. Replace with just __dead. OK millert@, marc@
2003-02-20copyrights added;Jason McIntyre
these are all David Leonard, and Public Domain ok deraadt@
2003-02-18intial -> initial;Jason McIntyre
the great intial witch hunt, as prompted by tdeval@ os-aix-dso.c: ok henning@ ab.C: ok drahn@
2003-02-14- save and restore %fsr, too.Jason Wright
- better function descriptions
2003-02-14fix bug that would leave an FD locked if dup'd, then closed.Marco S Hyman
Also, for safety lock the _thread_fd_table when removing entries.
2003-02-14white spaceMarco S Hyman
2003-02-10priviledged -> privileged from David Krause via Henning BrauerMarco S Hyman
2003-02-05AARRGGH! 2nd try, handle the case where from_fd == to_fd in ↵Marco S Hyman
_thread_fd_table_dup
2003-02-05handle the case where from_fd == to_fd in _thread_fd_table_dupMarco S Hyman
2003-02-05thread fd handling, part 2. Don't mung file flags until forcedMarco S Hyman
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.
2003-02-04Part 1 of thread fd handling fixes. In the new scheme fd_table_entriesMarco S Hyman
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
2003-01-31typoTheo de Raadt
2003-01-31stuff in arch/sparc64 is by defn v9, remove < v9 #ifdefs. ok marc.Jason Wright
2003-01-31bad marc, commited crap to shut gcc up. Remove the crap.Marco S Hyman
2003-01-31Create a siginfo_t for thread-to-thread kill.Marco S Hyman
Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.