summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads
Commit message (Collapse)AuthorAgeFilesLines
...
* sync code style with glibcMike Frysinger2005-09-081-6/+8
|
* import license updates from glibcMike Frysinger2005-09-081-5/+5
|
* unusedMike Frysinger2005-09-082-126/+0
|
* import thumb support from jbowler in Bug 385Mike Frysinger2005-08-151-0/+15
|
* sync with glibcMike Frysinger2005-07-021-2/+7
|
* update the debug macros so they build with newer gcc versionsMike Frysinger2005-07-014-30/+36
|
* gcc saysJoakim Tjernlund2005-05-281-1/+1
| | | | | | spinlock.c:35: warning: matching constraint does not allow a register Update the asm to match glibc.
* I added, then removed and now I add this again :). Hopefully I got it rigth ↵Joakim Tjernlund2005-05-281-0/+1
| | | | this time.
* Add patch at bugs 274. From Peter Manzinger.Joakim Tjernlund2005-05-281-5/+2
|
* Back out nptl changes, which for now will be done in branches/uClibc-nptlEric Andersen2005-05-202-35/+8
|
* There were two versions of 'pthreadtypes.h' originally in uClibc. Also,"Steven J. Hill"2005-05-141-4/+34
| | | | | | since we are going to support the two implementations of pthreads, we again need to instead create symbolic links to use the proper version of the file depending on the pthreads option chosen.
* In order to accomodate usage of either pthreads implementation, we now"Steven J. Hill"2005-05-141-0/+707
| | | | | | | have to create symbolic links for 'semaphore.h' and 'pthread.h' which will point to the proper pthreads directory. When we finish getting NPTL working with uClibc, perhaps we can merge them, but a first glance at the differences between the two does not make that very likely.
* Cleanup original linuxthreads and update top-level threads makefiles."Steven J. Hill"2005-05-111-4/+1
|
* Fix reported bug in error return behavior of sem_timedwait().Manuel Novoa III2005-02-281-2/+4
|
* have the directories themselves rather than the alias subdirs depend on ↵Mike Frysinger2005-02-231-3/+3
| | | | $(LIBPTHREAD)
* Merge pt-machine.h for the blackfin from the AnalogEric Andersen2005-02-181-0/+57
| | | | source tree.
* some test header files for x86_64Mike Frysinger2005-02-152-0/+215
|
* Add THREAD_SELF definition to PPC. This should make threads on PPCJoakim Tjernlund2005-02-101-0/+10
| | | | a bit faster.
* Fix death event reporting properly.Joakim Tjernlund2005-02-011-4/+2
| | | | | | Now GDB is happy and death events are reported as [Thread 5126 (LWP 192) exited] without GDB bailing out.
* Restore it so we get gdbEric Andersen2005-01-311-1/+1
| | | | | | [Thread 1026 (Missing) exited] messages again, while leaving the __linuxthreads_death_event() call disabled, as it still breaks gdb.
* Oops, remove extra sigaddset() call. Don't know how that one got there.Joakim Tjernlund2005-01-311-1/+0
|
* Hi Erik and ManuelEric Andersen2005-01-292-1/+8
| | | | | | | | | | | | | | | | | | Long time no see :) It appears uClibc pthreads native debugging is broken w.r.t thread exit handling in uClibc(at least on PPC). When debugging ex7, gdb(6.2.1) bails out as soon as a thread exits. I found a comment in gdb that TD_DEATH handling was broken for glibc 2.3.1, so I figured that maybe it was broken in uClibc also. I added a #if 0 #endif in pthread_exit( see patch below) and then gdb behaved again. While looking into this I found a few differences( included in the patch) between glibc and uClibc. Don't know if these makes a difference, but I leave that to you to decide. Jocke
* touchup the dependencies so that the sysdeps object files will override the ↵Mike Frysinger2005-01-191-5/+9
| | | | toplevel linuxthreads generic object files
* ok, worry over race condition doesnt exist because we only have 1 subdir ↵Mike Frysinger2005-01-191-3/+3
| | | | running $(AR), and the toplevel $(AR) isnt invoked until subdirs have finished
* tweak dependencies so the archive is only rebuilt when the object files are ↵Mike Frysinger2005-01-191-5/+5
| | | | updated
* Patch from Peter S. Mazinger to consistantly use "ASFLAGS"Eric Andersen2004-12-221-2/+2
| | | | as the flags for all calls to 'as'
* Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III2004-10-311-2/+2
| | | | | | adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
* We don't need this READMEEric Andersen2004-10-261-352/+0
|
* Peter S. Mazinger writes:Eric Andersen2004-10-191-2/+2
| | | | | | | | | | | Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
* Partial patch from Alexandre Oliva:Eric Andersen2004-08-261-18/+38
| | | | | | | | | | - adjust licensing terms of sources for crt*.o - change the stat ABI to speed it up, matching changes in the kernel - assorted bug-fixes, improvements and updates in the FR-V port etc.
* The variable used to store pagesize is not the same as theEric Andersen2004-08-161-4/+4
| | | | | _dl_pagesize variable in ldso, so avoid aliasing. -Erik
* Fixup PAGE_SIZE problemsEric Andersen2004-08-131-3/+5
| | | | -Erik
* Cleanup some dead wood in the header filesEric Andersen2004-07-301-40/+0
|
* Pete Popov writes:Eric Andersen2004-07-162-0/+125
| | | | | | | | | | | | | Hi Erik, I'm not sure why the NIOS support is not in uClibc -- perhaps the patch was rejected or never submitted? In any case, I'm playing with some NIOS stuff and created this patch against 0.9.26. The work was done by Microtronix. I'm not sure who else contributed to it. It would be great to have the NIOS support available in uClibc so developers don't have to go searching for these bits. Pete
* _SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZEEric Andersen2004-07-151-1/+1
| | | | instead, but we are not such a system and should not propagate such things.
* Alexandre Oliva writes:Eric Andersen2004-05-141-0/+4
| | | | | | | | | A program that requests __pthread_sig_debug to be blocked will self-deadlock when it requests a thread to be created, because the debugger (rda or gdb) will never get the signal, so it won't wake up the pthread manager as expected. This patch fixes it.
* Alexandre Oliva writes:Eric Andersen2004-05-061-21/+16
| | | | | | | | | | | | | | | | The vfork() wrapper defined in libpthread, that's used to run pthread_atfork()-registered handlers, is not only a very bad idea, it's broken and useless. Here's the rationale: [---------snip----------] Since the implementation as it stands is broken (linking a program that vfork()s and exec()s on the child and wait()s on the parent works unless you happen to link with libpthread), and I can't think of any workable solution, I suggest that we simply remove the vfork() overrider in the non-MMU case. Yes, we might lose some small amount of functionality here, but it's not like people running uClinux expect anything resembling actual fork() to work.
* We don't need these...Eric Andersen2004-04-201-1257/+0
|
* Alexandre Oliva writes:Eric Andersen2004-02-181-0/+48
| | | | | | | | | | | | | | | | | | | | This patch adds code to uClibc to support a new ABI designed for the FR-V architecture, that enables text segments of executables and shared libraries to be shared by multiple processes on an OS such as uClinux, that can run on FR-V processors without an MMU. Patches for binutils and GCC have just been posted in the corresponding mailing lists. The binutils patch was approved, but there's one additional patch pending review, that I posted this week. An updated GCC patch will be posted to gcc-patches@gcc.gnu.org as soon as I complete testing (I used a known-good compiler to test the uClibc patch below). Since the existing dynamic loader code didn't support independent relocation of segments, it required changes that were somewhat extensive. I've added a number of new machine-specific macros to try to keep the platform and ABI-specific details outside the generic code. I hope this is not a problem.
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-112-27/+17
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-164-16/+16
|
* remove unused fileEric Andersen2003-12-282-121/+1
|
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-273-3/+0
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Paul Mundt <lethal@linux-sh.org> writes:Eric Andersen2003-12-055-2/+196
| | | | | | | | | | | | | This patch adds the libpthread backend bits for sh64. As noted previously, we can't inline things like the testandset() in pt-machine.h as we need to use a completely different ISA / CFLAGS in order for this to work. As a result, this patch is somewhat of a RFC as well to see what people think of the libpthread/linuxthreads/sysdeps Makefile approach, etc. The approach I've taken currently has been to provide a sysdeps/Makefile with a note that TARGET_ARCHs that want build rules can simply add themselves into the list of matching architectures to add to the subdir rule for. This probably isn't the cleanest solution, but it's quite transparent and works quite well.
* Arthur Shipkowski, art ! videon-central ! com, writes:Eric Andersen2003-11-051-1/+25
| | | | | | | | | | | | | | | | | | | | | | I've noticed a few people have posted over the last year about problems compiling programs that use vfork when pthreads are involved. Some detective work turned up that ptfork.c aliases vfork to fork and then tries to call the original fork as __libc_fork. This patch removes the aliasing when there is no MMU present, and uses the same call semantics to call __libc_vfork. I then added a symbol to the m68k vfork.S to allow vfork to be called as __libc_vfork. The same bug exists in the uClibc CVS, and with a possible tweak this patch should go through there as well. Obviously, all other platforms need __libc_vfork as a workable means to call vfork in order for this to work for them. Let me know if there are any problems with this patch. Art Shipkowski Videon Central Software Engineer (814)235-1111 x307
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* here is (I hope) a better way to handle this one. I regularly buildEric Andersen2003-08-291-1/+2
| | | | | debug versions of uClibc with -O0, but libpthread/linuxthreads/spinlock.c will not compile without at least -O1 optimization...
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-015-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Doing an search and replace on CFLAGS can prove dangerous. We don'tEric Andersen2003-07-211-1/+1
| | | | do -O0 by default anyways, so leave this disabled for now.
* When compiling with -O0, linuxthreads does not compile. So addEric Andersen2003-06-171-0/+2
| | | | a local override changing -O0 to -O1 only for that directory.