OSDN Git Service
Eric Andersen [Mon, 19 Aug 2002 10:05:03 +0000 (10:05 -0000)]
Based on work by Stefan Allius, arrange for early initialization of
pthread stuff. Also, don't bother building libthread_db unless we
are debugging.
-Erik
Eric Andersen [Mon, 19 Aug 2002 10:01:33 +0000 (10:01 -0000)]
Open a lib that is not so closely coupled with gdb
Eric Andersen [Mon, 19 Aug 2002 08:56:59 +0000 (08:56 -0000)]
Be prepared to call __pthread_initialize_minimal
Miles Bader [Mon, 19 Aug 2002 08:49:22 +0000 (08:49 -0000)]
(CSRC): Make contents source files, not object files.
Miles Bader [Mon, 19 Aug 2002 08:48:08 +0000 (08:48 -0000)]
(CSRC): Add `memalign.c'.
Miles Bader [Mon, 19 Aug 2002 08:46:34 +0000 (08:46 -0000)]
Initial checkin.
Miles Bader [Mon, 19 Aug 2002 08:45:22 +0000 (08:45 -0000)]
(realloc): Follow new arg conventions of MALLOC_SET_SIZE.
Miles Bader [Mon, 19 Aug 2002 08:44:11 +0000 (08:44 -0000)]
(malloc): Use MALLOC_SETUP.
Miles Bader [Mon, 19 Aug 2002 08:43:30 +0000 (08:43 -0000)]
(MALLOC_SETUP): New macro.
(MALLOC_SET_SIZE): Take the base-address of the block, not the user-address.
(MALLOC_ADDR): Macro removed.
Eric Andersen [Sun, 18 Aug 2002 21:08:34 +0000 (21:08 -0000)]
Directly use kernel types for uid_t, gid_t, and dev_t to avoid the
need to translate these entities...
-Erik
Eric Andersen [Sun, 18 Aug 2002 18:50:52 +0000 (18:50 -0000)]
Yet more rework to make __getgrent and the functions that use it
reentrant...
-Erik
Manuel Novoa III [Sun, 18 Aug 2002 00:24:25 +0000 (00:24 -0000)]
Fix broken locking so that at least the Python 2.2.1 grp test doesn't
lock up. This really needs to be looked at, as I don't think this
needs to be reentrant. In any case, several routines call the
__getgrent internal routine and it uses static vars for data. If this
stuff is really supposed to be threadsafe, then __getgrent probably
needs fixing.
Manuel Novoa III [Sun, 18 Aug 2002 00:21:45 +0000 (00:21 -0000)]
Remove recursive lock/unlock for a non-recursive mutex.
Manuel Novoa III [Sat, 17 Aug 2002 21:28:29 +0000 (21:28 -0000)]
Fixed __read_etc_hosts_r to return alias list and modified buffer
allocation accordingly. This fixes the segfault in the Python 2.2.1
socket test.
Manuel Novoa III [Sat, 17 Aug 2002 00:35:15 +0000 (00:35 -0000)]
Fix two problems with printf that showed up in the python 2.2.1 tests;
One involving %o and one involving %f.
Manuel Novoa III [Fri, 16 Aug 2002 18:35:07 +0000 (18:35 -0000)]
Disable macro implementations. Somehow I missed the following from the
ANSI/ISO C99 std...
A library macro that masks a function declaration expands to an
expression that evaluates each of its arguments once (and only once).
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Arguments that have side effects evaluate the same way whether the
expression executes the macro expansion or calls the function. Macros
for the functions getc and putc are explicit exceptions to this rule.
Their stream arguments can be evaluated more than once. Avoid argument
expressions that have side effects with these macros.
This will be reworked before the next release. And yes, I feel stupid.
Eric Andersen [Fri, 16 Aug 2002 14:17:46 +0000 (14:17 -0000)]
Cleanup exit a bit, from Ronald Wahl
Miles Bader [Fri, 16 Aug 2002 09:02:40 +0000 (09:02 -0000)]
whitespace
Miles Bader [Fri, 16 Aug 2002 08:56:23 +0000 (08:56 -0000)]
Remove __res_state function.
Miles Bader [Fri, 16 Aug 2002 08:53:15 +0000 (08:53 -0000)]
Make INCLUDE_FULL_RPC default to !HAVE_SHARED.
Eric Andersen [Fri, 16 Aug 2002 08:02:17 +0000 (08:02 -0000)]
Demonstrate that dlopen() RTLD_NOW is currently broken.
-Erik
Miles Bader [Fri, 16 Aug 2002 06:30:30 +0000 (06:30 -0000)]
Remove thread-specific stuff entirely.
Miles Bader [Fri, 16 Aug 2002 05:45:24 +0000 (05:45 -0000)]
(_res): Define as a macro if __UCLIBC_HAS_THREADS__ is defined,
regardless of _LIBC.
Miles Bader [Fri, 16 Aug 2002 05:37:11 +0000 (05:37 -0000)]
(h_errno): Only define as a macro if __UCLIBC_HAS_THREADS__ is defined.
(__set_h_errno): Just assign to `h_errno' (which will be expanded to the
thread-friendly version when appropriate).
Miles Bader [Fri, 16 Aug 2002 05:02:02 +0000 (05:02 -0000)]
(errno): Only define as a macro if __UCLIBC_HAS_THREADS__ is defined.
(__set_errno): Just assign to `errno' (which will be expanded to the
thread-friendly version when appropriate).
Eric Andersen [Fri, 16 Aug 2002 04:49:08 +0000 (04:49 -0000)]
Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__
-Erik
Eric Andersen [Fri, 16 Aug 2002 04:36:44 +0000 (04:36 -0000)]
Remove h8300 special case
Miles Bader [Fri, 16 Aug 2002 02:23:52 +0000 (02:23 -0000)]
(headers): Remove special case for v850, now that the general case
works correctly for non-MMU systems without a `nommu' suffix.
Fixup indentation a bit.
Manuel Novoa III [Thu, 15 Aug 2002 17:04:09 +0000 (17:04 -0000)]
Fix erroneous grouping.
Eric Andersen [Thu, 15 Aug 2002 13:02:13 +0000 (13:02 -0000)]
Patch from Jarkko to fix drand48 to not use long long when
long long support is disabled in the uClibc Config.
Eric Andersen [Thu, 15 Aug 2002 12:54:54 +0000 (12:54 -0000)]
Do not prevent people from making mmu-less builds on mmu-full systems.
-Erik
Miles Bader [Wed, 14 Aug 2002 09:15:36 +0000 (09:15 -0000)]
Use __malloc_unlikely instead of `likely'.
Miles Bader [Wed, 14 Aug 2002 09:14:40 +0000 (09:14 -0000)]
Add flow-control hints with __malloc_likely and __malloc_unlikely.
Miles Bader [Wed, 14 Aug 2002 09:13:10 +0000 (09:13 -0000)]
(__malloc_likely, __malloc_unlikely): New macros.
Miles Bader [Wed, 14 Aug 2002 06:16:41 +0000 (06:16 -0000)]
Handle zero NEW_SIZE case.
Miles Bader [Wed, 14 Aug 2002 05:00:42 +0000 (05:00 -0000)]
(CSRC): Add syscall.c
Miles Bader [Wed, 14 Aug 2002 04:59:46 +0000 (04:59 -0000)]
Initial checkin.
Eric Andersen [Wed, 14 Aug 2002 02:38:04 +0000 (02:38 -0000)]
Move all malloc tests under test/malloc/
Eric Andersen [Wed, 14 Aug 2002 01:37:09 +0000 (01:37 -0000)]
Add missing include/thread_db.h file, as reported by Simon Posnjak
-Erik
Manuel Novoa III [Tue, 13 Aug 2002 21:24:56 +0000 (21:24 -0000)]
__fsetlocking() and FILE field user_locking were completely broken. :-(
I think they're fixed now (I've run a few tests).
Note: __fsetlocking() is not threadsafe... but glibc's doesn't appear to
be either.
Miles Bader [Tue, 13 Aug 2002 07:18:45 +0000 (07:18 -0000)]
Use `return' for null pointers, to avoid a giant block holding the rest
of the function.
Eric Andersen [Mon, 12 Aug 2002 11:08:38 +0000 (11:08 -0000)]
Update to version 0.9.14
-Erik
Eric Andersen [Mon, 12 Aug 2002 11:00:21 +0000 (11:00 -0000)]
Only try to install existing binaries
-Erik
Eric Andersen [Mon, 12 Aug 2002 10:57:40 +0000 (10:57 -0000)]
I missed a spot.
-Erik
Eric Andersen [Mon, 12 Aug 2002 10:57:22 +0000 (10:57 -0000)]
Doh! missed a spot.
-Erik
Eric Andersen [Mon, 12 Aug 2002 09:53:12 +0000 (09:53 -0000)]
Fix the gcc wrapper to include crtbeginS.o and crtendS.o when we are compiling
PIC code, and use crtbegin.o and crtend.o when compiling non-pic code. As was
caused problems, esp on powerpc...
-Erik
Eric Andersen [Mon, 12 Aug 2002 09:14:52 +0000 (09:14 -0000)]
Test threads when appropriate
Eric Andersen [Mon, 12 Aug 2002 09:13:58 +0000 (09:13 -0000)]
Fix use of __pthread_once, and fix rpc usage of thread local
storage....
-Erik
Eric Andersen [Mon, 12 Aug 2002 09:03:30 +0000 (09:03 -0000)]
Fix alignment, minor cosmetic changes
-Erik
Manuel Novoa III [Mon, 12 Aug 2002 04:32:41 +0000 (04:32 -0000)]
Revert commit by davidm to printf.c that initialized conv_num
needlessly. To do so increases the generated code size with bcc.
Eliminate duplicate define warnings in wstring.c.
Fix potentially broken preprocessor comparisons. The preprocessor
converts integers to maximal signed type, so inequality comparisons
involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX
were potentially broken.
Eric Andersen [Mon, 12 Aug 2002 04:15:45 +0000 (04:15 -0000)]
Geez I'm an idiot some times. I shouldn't code when I'm exhausted.
I _totally_ screwed up the locking on exit and atexit such that it
didn't do any good at all.
-Erik
Eric Andersen [Sun, 11 Aug 2002 18:53:30 +0000 (18:53 -0000)]
Ugh. Make uClibc cross compile with gcc 2.95.x and threads. I wonder
if this is serious enough to warrent 0.9.14?
-Erik
David Schleef [Fri, 9 Aug 2002 23:05:27 +0000 (23:05 -0000)]
update to last Debian upload. Dumbass Debian maintainer forgets to check
stuff in.
David Schleef [Fri, 9 Aug 2002 23:01:39 +0000 (23:01 -0000)]
fix mksnapshot and update documentation.
Eric Andersen [Fri, 9 Aug 2002 17:44:05 +0000 (17:44 -0000)]
Fix spacing
Eric Andersen [Fri, 9 Aug 2002 17:42:55 +0000 (17:42 -0000)]
spacing
Eric Andersen [Fri, 9 Aug 2002 17:40:16 +0000 (17:40 -0000)]
Move old stuff into old-news
Eric Andersen [Fri, 9 Aug 2002 17:01:30 +0000 (17:01 -0000)]
Add missing thread-safe locking.
-Erik
Eric Andersen [Fri, 9 Aug 2002 16:43:07 +0000 (16:43 -0000)]
update todo again
Eric Andersen [Fri, 9 Aug 2002 16:39:49 +0000 (16:39 -0000)]
Update webpage for release
Eric Andersen [Fri, 9 Aug 2002 16:14:26 +0000 (16:14 -0000)]
Update Changelog for release
-Erik
Manuel Novoa III [Fri, 9 Aug 2002 15:44:22 +0000 (15:44 -0000)]
Update my TODO list. In particular, breakdown what I'll be working on
in the next two months.
Eric Andersen [Fri, 9 Aug 2002 15:31:19 +0000 (15:31 -0000)]
Update todo list a bit
Eric Andersen [Fri, 9 Aug 2002 14:41:04 +0000 (14:41 -0000)]
Ok, bad idea. didn't work.
-Erik
Eric Andersen [Fri, 9 Aug 2002 13:54:32 +0000 (13:54 -0000)]
Add in __uClibc_syscall
Eric Andersen [Fri, 9 Aug 2002 13:43:21 +0000 (13:43 -0000)]
Initial piece of unified syscall support from Brecis Communications
Eric Andersen [Fri, 9 Aug 2002 13:41:25 +0000 (13:41 -0000)]
New and improved fork for mips, thanks to the fine folks
at Brecis Communications.
David McCullough [Fri, 9 Aug 2002 13:11:08 +0000 (13:11 -0000)]
Fix some more warnings for non-thread-enabled compiles.
Eric Andersen [Fri, 9 Aug 2002 13:05:29 +0000 (13:05 -0000)]
Link ldso vs libgcc.a and eliminate baggage caused by
not previously linking vs libgcc
-Erik
David McCullough [Fri, 9 Aug 2002 13:03:00 +0000 (13:03 -0000)]
Fix a number of compile time warnings so that uClibc will build with -Werror using
a 3.0.4 version of the sh-linux-gcc compiler.
David McCullough [Fri, 9 Aug 2002 12:58:02 +0000 (12:58 -0000)]
pread and pwrite were broken in several ways:
* pwrite was using the write system call.
* SYSCALL_INLINE was only defined for pread and reused by pwrite
meaning pwrite did a pread :-).
* The kernel pread/pwrite interfaces always take a 64bit value. So
the libc versions must do the LONG_LONG_PAIR stuff otherwise the
pread/pwrite calls will not work.
These guys are working now for SH at least (and I can format my
DiskOnChip again ;-)
David McCullough [Fri, 9 Aug 2002 12:52:02 +0000 (12:52 -0000)]
At some stage I was getting conflicts on the SH platform with
the two i_am_not_a_leaf functions, changing the name of one is harmless
and fixed the problem at the time. Not entirely sure it's still required.
David McCullough [Fri, 9 Aug 2002 12:49:35 +0000 (12:49 -0000)]
Changes so that this file builds if we are not using threads.
Eric Andersen [Fri, 9 Aug 2002 12:35:37 +0000 (12:35 -0000)]
Be more path independent
Eric Andersen [Fri, 9 Aug 2002 12:21:55 +0000 (12:21 -0000)]
Doh! I broke it. oops. Patch from Stefan Allius to fix it.
Eric Andersen [Fri, 9 Aug 2002 12:20:22 +0000 (12:20 -0000)]
Patch from Stefan Allius, avoid compiler warnings (unused variable)
Eric Andersen [Fri, 9 Aug 2002 12:19:23 +0000 (12:19 -0000)]
Cleanup error returns to avoid warnings
-Erik
Eric Andersen [Fri, 9 Aug 2002 12:14:20 +0000 (12:14 -0000)]
Patch from Stefan Allius to remove obsolete printfs
Eric Andersen [Fri, 9 Aug 2002 12:08:57 +0000 (12:08 -0000)]
Disable this code for mips, which does things quite differently...
-Erik
Eric Andersen [Fri, 9 Aug 2002 08:24:41 +0000 (08:24 -0000)]
Fix a stupid typo messing up powerpc support
-Erik
Eric Andersen [Thu, 8 Aug 2002 17:51:16 +0000 (17:51 -0000)]
For some perverse reason we were not registering destructors
for dlopen'd libraries. This fixes that.
-Erik
Manuel Novoa III [Thu, 8 Aug 2002 17:01:30 +0000 (17:01 -0000)]
Add an entry regarding localtime(), TZ, and timezone support.
Eric Andersen [Thu, 8 Aug 2002 16:30:18 +0000 (16:30 -0000)]
Oops. missed a spot.
-Erik
Eric Andersen [Thu, 8 Aug 2002 16:29:18 +0000 (16:29 -0000)]
Make powerpc compile once again
-Erik
Eric Andersen [Thu, 8 Aug 2002 15:54:36 +0000 (15:54 -0000)]
Update the FAQ
Eric Andersen [Thu, 8 Aug 2002 15:54:14 +0000 (15:54 -0000)]
Bump version to 0.9.13
Eric Andersen [Thu, 8 Aug 2002 15:50:07 +0000 (15:50 -0000)]
Move destructor attribute tag
Eric Andersen [Thu, 8 Aug 2002 15:49:05 +0000 (15:49 -0000)]
Shuffle things around a bit. Looks a little cleaner.
-Erik
Eric Andersen [Thu, 8 Aug 2002 15:47:22 +0000 (15:47 -0000)]
Add a simple test for shared lib ctor/dtors
-Erik
Eric Andersen [Thu, 8 Aug 2002 15:44:46 +0000 (15:44 -0000)]
Patch from Stefan Allius and Edie C. Dost:
In linuxthreads/errno.h the functions __errno_location and
__h_errno_location wasn't safe against calling before the
library is initialized.
Eric Andersen [Thu, 8 Aug 2002 15:07:08 +0000 (15:07 -0000)]
Missed a spot
-Erik
Eric Andersen [Thu, 8 Aug 2002 14:51:40 +0000 (14:51 -0000)]
I reworked syscalls.h to match how I'm doing other arches. Stefan Allius and
Edie C. Dost has some concerns about the perl script used to general crti.o and
crtn.o and added their own versions. These versions will win since they are
built last,
Eric Andersen [Thu, 8 Aug 2002 14:47:14 +0000 (14:47 -0000)]
Fix license. I meant to say LGPL...
-Erik
Eric Andersen [Thu, 8 Aug 2002 14:35:49 +0000 (14:35 -0000)]
Patch from Stefan Allius and Edie C. Dost to add SuperH
shared library support. This also adds some cleaner error
handling, which I (Erik) then ported over to x86 and arm.
In addition Stefan added the following fixes:
- in hash.c was the lvalue handling of global library functions wrong.
To fix this I had to change the prototype of _dl_find_hash. (==> TIS and
ELF spec. Vers. 1.2)
- in ldso.c was the order of the .init sections calls wrong. Before we call
the initialization code of a library we have to check that all dependend
libraries are already initialized. This can easily made by calling it in the
revers loading order. For this I added a previous pointer chain.
- in ldso.c the ELF magics wasn't checked fo PPC, MIPS and SH architecture
Eric Andersen [Thu, 8 Aug 2002 14:28:47 +0000 (14:28 -0000)]
Patch from Stefan Allius and Edie C. Dost to let ldd and
readelf compile under solaris.
Eric Andersen [Thu, 8 Aug 2002 13:23:59 +0000 (13:23 -0000)]
Make pump happy. Add in this header.
-Erik
Eric Andersen [Thu, 8 Aug 2002 08:47:17 +0000 (08:47 -0000)]
I missed a file
Eric Andersen [Thu, 8 Aug 2002 08:00:43 +0000 (08:00 -0000)]
Fix a silly bug with using fstat64 instead of just fstat. No
reason for 64bit stuff just to check perms.
-Erik
Eric Andersen [Thu, 8 Aug 2002 07:55:31 +0000 (07:55 -0000)]
Remove unified syscall support (it should just be a per-arch
decision, with syscalls.h adjusted to match). Add symlinks
to make tools like mklibs.py be happy.
-Erik
Eric Andersen [Thu, 8 Aug 2002 07:54:16 +0000 (07:54 -0000)]
Disable unused unifed stuff
-Erik