summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/uthread_file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix the handle locking in stdio to use flockfile/funlockfilekurt2009-11-091-131/+122
| | | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. committing on behalf of and okay guenther@ now that we have install media space available.
* Back out previous commit, as it caused too much growth for the installguenther2009-10-221-122/+131
| | | | media to fit
* Change libpthread's f*lockfile() routines to stop acting as no-opsguenther2009-10-211-131/+122
| | | | | | | | | for FILEs that don't have real file-descriptors: the fake FILEs used internally by snprintf/asprintf/vfprintf and friends now avoid unnecessary locking by calling the internal __vfprintf() routine directly and we do want to do locking on FILEs created with funopen(). ok kurt@
* Use fileno() instead of peeking into FILE *; Paul Stoeberderaadt2008-03-231-4/+4
|
* Eliminate many lint warnings by either: using the appropriate type,kurt2007-05-181-2/+3
| | | | | casting when safe or adding ARGSUSED where needed. Reviewed and improvements from millert@ and marc@. okay marc@
* Use queue macros instead of directly accessing fields. ok marc@ miod@otto2005-10-141-5/+5
| | | | patrick@
* major bump to libc and libpthread to break the dependency of amarc2004-06-071-10/+3
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* Create a siginfo_t for thread-to-thread kill.marc2003-01-311-2/+2
| | | | | Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
* Add needed table of strong functions that override weak functionsmarc2002-11-071-11/+4
| | | | | | in libc so static linking works with -lpthreads. There is a (linker?) problem that still shows up with static -pthread, though. Solution to problem from freebsd.
* put changes back, this time ALL the files.fgsch2001-09-041-2/+2
|
* Back out fgsch@'s tree breaking commits.todd2001-08-301-2/+2
| | | | Test next time, ok?
* fix some const warnings.fgsch2001-08-301-2/+2
| | | | more sync with freebsd.
* volatile, unused varsd2000-01-061-3/+2
|
* sync with FreeBSDd1999-11-251-16/+27
|
* funlockfile shouldnt assume flockfile has been calledd1998-12-231-3/+12
|
* sync with FreeBSD (rwlock, gc thread, man pages)d1998-11-091-20/+9
| | | | | | | add (broken) mips md stuff fix some const warnings add sigaltstack() stub another hash at getting shlib auto-init to work (mips/elf and i386/a.out)
* experimental threaded libc - kernel onlyd1998-08-271-0/+367