summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads
AgeCommit message (Collapse)Author
2005-07-02sync with glibcMike Frysinger
2005-07-01update the debug macros so they build with newer gcc versionsMike Frysinger
2005-05-28gcc saysJoakim Tjernlund
spinlock.c:35: warning: matching constraint does not allow a register Update the asm to match glibc.
2005-05-28I added, then removed and now I add this again :). Hopefully I got it rigth ↵Joakim Tjernlund
this time.
2005-05-28Add patch at bugs 274. From Peter Manzinger.Joakim Tjernlund
2005-05-20Back out nptl changes, which for now will be done in branches/uClibc-nptlEric Andersen
2005-05-14There were two versions of 'pthreadtypes.h' originally in uClibc. Also,"Steven J. Hill"
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.
2005-05-14In order to accomodate usage of either pthreads implementation, we now"Steven J. Hill"
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.
2005-05-11Cleanup original linuxthreads and update top-level threads makefiles."Steven J. Hill"
2005-02-28Fix reported bug in error return behavior of sem_timedwait().Manuel Novoa III
2005-02-23have the directories themselves rather than the alias subdirs depend on ↵Mike Frysinger
$(LIBPTHREAD)
2005-02-18Merge pt-machine.h for the blackfin from the AnalogEric Andersen
source tree.
2005-02-15some test header files for x86_64Mike Frysinger
2005-02-10Add THREAD_SELF definition to PPC. This should make threads on PPCJoakim Tjernlund
a bit faster.
2005-02-01Fix death event reporting properly.Joakim Tjernlund
Now GDB is happy and death events are reported as [Thread 5126 (LWP 192) exited] without GDB bailing out.
2005-01-31Restore it so we get gdbEric Andersen
[Thread 1026 (Missing) exited] messages again, while leaving the __linuxthreads_death_event() call disabled, as it still breaks gdb.
2005-01-31Oops, remove extra sigaddset() call. Don't know how that one got there.Joakim Tjernlund
2005-01-29Hi Erik and ManuelEric Andersen
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
2005-01-19touchup the dependencies so that the sysdeps object files will override the ↵Mike Frysinger
toplevel linuxthreads generic object files
2005-01-19ok, worry over race condition doesnt exist because we only have 1 subdir ↵Mike Frysinger
running $(AR), and the toplevel $(AR) isnt invoked until subdirs have finished
2005-01-19tweak dependencies so the archive is only rebuilt when the object files are ↵Mike Frysinger
updated
2004-12-22Patch from Peter S. Mazinger to consistantly use "ASFLAGS"Eric Andersen
as the flags for all calls to 'as'
2004-10-31Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III
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.
2004-10-26We don't need this READMEEric Andersen
2004-10-19Peter S. Mazinger writes:Eric Andersen
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
2004-08-26Partial patch from Alexandre Oliva:Eric Andersen
- 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.
2004-08-16The variable used to store pagesize is not the same as theEric Andersen
_dl_pagesize variable in ldso, so avoid aliasing. -Erik
2004-08-13Fixup PAGE_SIZE problemsEric Andersen
-Erik
2004-07-30Cleanup some dead wood in the header filesEric Andersen
2004-07-16Pete Popov writes:Eric Andersen
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
2004-07-15_SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZEEric Andersen
instead, but we are not such a system and should not propagate such things.
2004-05-14Alexandre Oliva writes:Eric Andersen
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.
2004-05-06Alexandre Oliva writes:Eric Andersen
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.
2004-04-20We don't need these...Eric Andersen
2004-02-18Alexandre Oliva writes:Eric Andersen
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.
2004-02-11New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III
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.
2004-01-16s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen
2003-12-28remove unused fileEric Andersen
2003-12-27Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III
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.
2003-12-05Paul Mundt <lethal@linux-sh.org> writes:Eric Andersen
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.
2003-11-05Arthur Shipkowski, art ! videon-central ! com, writes:Eric Andersen
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
2003-10-18Peter Kjellerstedt writes:Eric Andersen
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).
2003-08-29here is (I hope) a better way to handle this one. I regularly buildEric Andersen
debug versions of uClibc with -O0, but libpthread/linuxthreads/spinlock.c will not compile without at least -O1 optimization...
2003-08-01Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III
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.
2003-07-21Doing an search and replace on CFLAGS can prove dangerous. We don'tEric Andersen
do -O0 by default anyways, so leave this disabled for now.
2003-06-17When compiling with -O0, linuxthreads does not compile. So addEric Andersen
a local override changing -O0 to -O1 only for that directory.
2003-06-17Coldfire patch from Bernardo InnocentiEric Andersen
2003-06-12Set the default thread stack size to 16k for mmu-less systems.Eric Andersen
-Erik
2003-06-02Patch from Peter S. Mazinger to fix some leftover problemsEric Andersen
from converting "PIC" to "__PIC__"
2003-05-30In a number of places we erroneously used tests such as '#ifdef PIC' when weEric Andersen
should instead have been testing for '#ifdef __PIC__'. This resulted in NON-PIC code getting mixed into the shared library. Oops!!! -Erik