summaryrefslogtreecommitdiffstats
path: root/libpthread
Commit message (Collapse)AuthorAgeFilesLines
* Major update for pthreads, based in large part on improvementsEric Andersen2003-02-2785-893/+3613
| | | | | from glibc 2.3. This should make threads much more efficient. -Erik
* Correct license.Miles Bader2003-01-312-6/+6
|
* Patch from Christian Krause:Eric Andersen2003-01-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | I found a problem in uClibc in libpthread/linuxthres/condvar.c: pthread_cond_timedwait never uses rt singals uClibc has two implementations of pthread_cond_timewait - pthread_cond_timedwait_relative_old using the "normal" signals and pthread_cond_timedwait_relative_new usign the rt signals (for kernels >= 2.2). The function pointer pthread_cond_tw_rel is initialised with the old function. In "__pthread_init_condvar(int)" this pointer is set to the new function using rt signals, but "__pthread_init_condvar" is never called in the uClibc. The following patch solves this issue, so that __pthread_init_condvars is called and the function pointer is always initialised with the correct function. regards, christian
* Initial checkin.Miles Bader2003-01-302-0/+63
|
* Just be a bit less different from latest glibc version in commentsEric Andersen2003-01-234-6/+6
| | | | and in the files where variables live.
* Per patch from Nathan Field at ghs.com, fix the mips __compare_and_swap inlineEric Andersen2003-01-231-0/+27
| | | | | function. Without this fix, pthread_mutex_lock/pthread_mutex_unlock don't work on mips.
* Per patch from Nathan Field at ghs.com, fix __pthread_initialize_manager so itEric Andersen2003-01-231-3/+5
| | | | | locks before calling clone when under a debugger, and unlocks on success or failure of clone when under a debugger.
* Per patch from Nathan Field at ghs.com, add a couple of variablesEric Andersen2003-01-232-0/+7
| | | | needed to make gdb happy when debugging threadded apps.
* Fix indenting. Per patch from Nathan Field at ghs.com, changeEric Andersen2003-01-231-19/+17
| | | | LINUXTHREADS_PTHREAD_THREADS_MAX to properly point to "__pthread_threads_max".
* Rework sparc architecture support so it will compileEric Andersen2003-01-024-109/+0
| | | | | and run. Seems to be working... -Erik
* whitespaceMiles Bader2002-12-181-1/+1
|
* Make support for global constructors and global destructors beEric Andersen2002-11-271-0/+2
| | | | | | configurable, so people who do not need or want ctor/dtor support can disable it and make their binaries a little bit smaller. -Erik
* Standardize LIBGCC_DIREric Andersen2002-11-051-5/+4
|
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-314-9/+9
| | | | | | | | | | | | | | | been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
* A patch from Arne Jonsson <arne.jonsson@i3micro.com>:Eric Andersen2002-10-291-16/+22
| | | | | | | | Attached are the changes we think is necessary in order to use user defined stacksizes for each thread. When testing I forgot to lower the PTHREAD_STACK_MIN to the lowest value used for the stacks, this caused stranged reboots. As said before, we are using uClinux 2.0.38 on a ARM7TDMI.
* A patch from Arne Jonsson <arne.jonsson@i3micro.com> to allowEric Andersen2002-10-231-2/+66
| | | | | uClibc's libpthread to run on linux 2.0.x kernels which lack poll() and therefore must use select() instead.
* It turns out that __thread is now a gcc keyword. We used __thread inEric Andersen2002-10-131-1/+1
| | | | | | | | a few spots in our header files. In this change I do a s/__thread/__thread_id/ so we no longer conflict with newer CVS versions of gcc (such as the patched up gcc 3.2 included with RedHat 3.0). -Erik
* This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen2002-10-011-4/+13
| | | | | | | how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips.
* Added pthread support for CRIS.Tobias Anderberg2002-09-202-0/+77
|
* Fixup thread support for the 5200/5307 coldfire platforms.David McCullough2002-09-171-1/+9
|
* Revert mode_t change. Sigh. As Manuel so eloquently put it: "this is the wayEric Andersen2002-08-211-2/+2
| | | | | | we hose our code... hose our code... hose our code... this is the way we hose our code... all thanks to glibc" -Erik
* mode_t was being promoted to an int by gcc's __builtin_va_arg, causing badEric Andersen2002-08-211-2/+2
| | | | | | things to happen. This makes it explicit, so pthread using apps are no longer broken... -Erik
* Remove some noiseEric Andersen2002-08-201-12/+0
|
* Only build libthread_db when both threads and debug are enabledEric Andersen2002-08-201-1/+1
| | | | -Erik
* Based on work by Stefan Allius, arrange for early initialization ofEric Andersen2002-08-195-14/+19
| | | | | | pthread stuff. Also, don't bother building libthread_db unless we are debugging. -Erik
* Ugh. Make uClibc cross compile with gcc 2.95.x and threads. I wonderEric Andersen2002-08-111-2/+2
| | | | | if this is serious enough to warrent 0.9.14? -Erik
* Patch from Stefan Allius and Edie C. Dost:Eric Andersen2002-08-082-5/+21
| | | | | | In linuxthreads/errno.h the functions __errno_location and __h_errno_location wasn't safe against calling before the library is initialized.
* Fix license. I meant to say LGPL...Eric Andersen2002-08-081-12/+12
| | | | -Erik
* I missed a fileEric Andersen2002-08-082-1/+55
|
* Several pthreads updates. Enable linuxthreads_db. Several fixesEric Andersen2002-08-0645-424/+427
| | | | | related to thread local storage. -Erik
* Fix spellingEric Andersen2002-07-191-1/+1
|
* Add both pthread_mutexattr_setpshared() andEric Andersen2002-07-141-0/+18
| | | | | | pthread_mutexattr_getpshared(), which were missing -Erik
* Add missing pthread_condattr_getpshared and pthread_condattr_setpsharedEric Andersen2002-07-141-0/+19
| | | | -Erik
* Patch from Ronald Wahl <rwa@peppercon.com> -- kill references toEric Andersen2002-07-011-6/+6
| | | | | the obsolete PTHREAD_MUTEX_FAST_NP, and change the default mutex type to adaptive
* Fix pthreads to use the rt signals if presentEric Andersen2002-06-131-108/+30
| | | | -Erik
* Kill the libc-lock headers, which we do not use and which areEric Andersen2002-06-102-253/+0
| | | | | not correct for uClibc. Fix setenv locking to behave itself. -Erik
* Fixup and unifiy version numbering. Automate versioning updates.Eric Andersen2002-05-282-3/+3
| | | | | Propagate fixes across makefiles. -Erik
* Remove strong aliases to symbols that we don't define in uClibcEric Andersen2002-04-171-12/+12
|
* Fix libpthread compile for sparcEric Andersen2002-04-101-3/+7
|
* Russ Dill noticed that the symlinks for libpthread didn't matchEric Andersen2002-04-091-13/+12
| | | | | the other links. Fixed now. -Erik
* Swap in the new stdio code.Manuel Novoa III2002-03-121-37/+10
|
* Patch from M. R. Brown <mrbrown@0xd6.org> to fix pthread supportEric Andersen2002-03-012-0/+83
| | | | for SH, and fix vfork
* Remove some debugging codeEric Andersen2002-02-271-0/+4
|
* Enable pread/pwriteEric Andersen2002-02-261-4/+3
|
* Several naming cleanups so threads work properly againEric Andersen2002-02-231-0/+3
|
* Let the large file stuff be cancelableEric Andersen2002-02-211-14/+66
|
* Oops. I forgot to commit this file...Eric Andersen2002-02-211-0/+35
|
* Lose the _GNU_SOURCE and just add __USE_GNU to the one file that needsEric Andersen2002-02-213-2/+4
| | | | | | it, since we definately do not want silent remapping of functions to their large-file counterparts. -Erik
* Merge in the pthread library. This is the linuxthreads library taken fromEric Andersen2002-02-20109-29/+15617
| | | | | | | | glibc 2.1.3 and ported to work with uClibc by Stefan Soucek and Erik Andersen (me). Stefan has hacked things up such that linuxthreads runs on MMU-less systems (tested only on arm-nommu). Erik cleaned things up and made it work properly as a shared library. -Erik
* Fix the bug where binaries built with older toolchains wouldEric Andersen2002-01-281-3/+3
| | | | | | segfault. Turns out that 'ld -nostdlib' was the culprit. Who wouldof thought... -Erik