OSDN Git Service
Manuel Novoa III [Fri, 2 Jan 2004 08:47:22 +0000 (08:47 -0000)]
The checking Erik added seems to be unnecessary. Without it, I am not
seeing any LTP failures.
Manuel Novoa III [Fri, 2 Jan 2004 08:44:58 +0000 (08:44 -0000)]
Redo the exec functions to comply with SUSv3.
Manuel Novoa III [Fri, 2 Jan 2004 07:11:35 +0000 (07:11 -0000)]
Rewrite popen for SUSv3 compliance.
Added a list of popen()'d to store pids and use waitpid() in pclose().
Loop on waitpid() failure due to EINTR as required.
Close parent's popen()'d FILEs in the {v}fork()'d child.
Fix failure exit code for failed execve().
Manuel Novoa III [Fri, 2 Jan 2004 07:01:13 +0000 (07:01 -0000)]
Minor fix from upstream glibc.
Manuel Novoa III [Fri, 2 Jan 2004 07:00:29 +0000 (07:00 -0000)]
Kept the same approach, but rewrote the code for the most part.
Fixed some minor issues plus (as I recall) one SUSv3 errno case.
Eric Andersen [Wed, 31 Dec 2003 12:13:27 +0000 (12:13 -0000)]
Fir errno return when the file/path is NULL or points to an empty string.
-Erik
Eric Andersen [Wed, 31 Dec 2003 11:50:08 +0000 (11:50 -0000)]
Add extra checks for sigprocmask and rt_sigprocmask syscalls.
The rt_sigprocmask syscall has broken error handling in 2.4.x
kernels, while the sigprocmask syscall appears to get things
right. Regardless we should be extra careful, and add these
checks.
Eric Andersen [Tue, 30 Dec 2003 10:57:16 +0000 (10:57 -0000)]
Fix the manditory typo in my last minute untested fix.
-Erik
Eric Andersen [Tue, 30 Dec 2003 10:45:45 +0000 (10:45 -0000)]
Make sleep behave itself properly inthe presence of SIGCHLD
Eric Andersen [Tue, 30 Dec 2003 10:40:49 +0000 (10:40 -0000)]
Rework malloc. The new default implementation is based on dlmalloc from Doug
Lea. It is about 2x faster than the old malloc-930716, and behave itself much
better -- it will properly release memory back to the system, and it uses a
combination of brk() for small allocations and mmap() for larger allocations.
-Erik
Eric Andersen [Tue, 30 Dec 2003 01:41:14 +0000 (01:41 -0000)]
Update and restore malloc-simple. Slow as molasses, but trivially
simple and releases memory immediately when asked to do so.
-Erik
Eric Andersen [Sun, 28 Dec 2003 08:25:16 +0000 (08:25 -0000)]
Fix a really dumb bug introduced in version 1.4 of this file (a patch for ipv6
support) which could cause things like EOF and read errors while reading
/etc/services to always return a TRY_AGAIN. The perl test suite would alloc a
larger buffer and try again until all memory was exhausted. When we get a read
error, or EOF, it means we didn't get what we wanted, and so we should return
an error. Doing so fixes the failing perl 5.8.2 test.
-Erik
Eric Andersen [Sun, 28 Dec 2003 07:41:24 +0000 (07:41 -0000)]
Fix whitespace
Eric Andersen [Sun, 28 Dec 2003 00:25:31 +0000 (00:25 -0000)]
remove unused file
Manuel Novoa III [Sat, 27 Dec 2003 23:36:23 +0000 (23:36 -0000)]
Handle the app_fini stuff in exit without requiring atexit().
This avoids pulling in all the malloc/free code for a simple true/false app.
Manuel Novoa III [Sat, 27 Dec 2003 23:30:50 +0000 (23:30 -0000)]
Fix a long-standing bug with pthreads. A couple of linuxthreads files
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.
Eric Andersen [Mon, 22 Dec 2003 11:22:59 +0000 (11:22 -0000)]
oops
Eric Andersen [Mon, 22 Dec 2003 11:19:49 +0000 (11:19 -0000)]
implement the worthless cuserid() function we claim to support.
This isn't in SuSv3, but is expected by at least some apps such
as emacs...
Eric Andersen [Mon, 22 Dec 2003 10:47:04 +0000 (10:47 -0000)]
In unistd.h, getpgrp() is redirected to __getpgid(), but
we did not have a __getpgid(). Fix that.
Eric Andersen [Mon, 22 Dec 2003 09:17:19 +0000 (09:17 -0000)]
That was awfully stupid.
Eric Andersen [Mon, 22 Dec 2003 08:56:37 +0000 (08:56 -0000)]
Use 'sed -i -e' rather than 'sed -ie' since we don't want
to leave backup files with "e" appended scattered all over
the place.
Eric Andersen [Mon, 22 Dec 2003 08:53:21 +0000 (08:53 -0000)]
Update the config used when building a .deb
Eric Andersen [Fri, 19 Dec 2003 11:45:21 +0000 (11:45 -0000)]
dev systems updated
Eric Andersen [Wed, 17 Dec 2003 18:34:15 +0000 (18:34 -0000)]
Use PAGE_SIZE rather than hard coding 4096
Eric Andersen [Wed, 17 Dec 2003 08:07:14 +0000 (08:07 -0000)]
Patch from Paul Mundt <lethal@linux-sh.org>:
Here's the patch for the ldso bits for sh64. This is still in need of a bunch
of debugging, testing, etc. and is really only being submitted for general
completeness. This assumes that the previous patches I've submitted have
already been applied.
I plan on playing with this and buildroot some more later, as I'd definitely
like to see buildroot images for sh64.
Eric Andersen [Wed, 17 Dec 2003 08:05:44 +0000 (08:05 -0000)]
Patch from Paul Mundt <lethal@linux-sh.org>:
For sh64 we need implicit access to the symtab, primarily to get at the
->st_other value. This presently isn't possible, as PERFORM_BOOTSTRAP_RELOC()
is invoked as such:
PERFORM_BOOTSTRAP_RELOC(rpnt, reloc_addr, symbol_addr, load_addr);
while we can easily get the symtab_index value from rpnt->r_info, this still
doesn't buy us easy access to the actual table. As such, I've modified
PERFORM_BOOTSTRAP_RELOC() to take an additional SYMTAB argument. Most
architectures aren't going to care about this, but unfortunately we don't
have any other options for sh64.
The following patch fixes up the API for what we need for sh64, and updates
the other architectures appropriately.
Eric Andersen [Wed, 17 Dec 2003 07:57:32 +0000 (07:57 -0000)]
Patch from Paul Mundt <lethal@linux-sh.org>:
The subject says it all.. optimized memset/memcpy/strcpy, lifted from SuperH's
glibc tree.
Eric Andersen [Wed, 17 Dec 2003 06:41:20 +0000 (06:41 -0000)]
When I switched from using stack allocated space for printf, I missed a case
where a sizeof(foo) was changed to the sizeof a pointer. This caused
_dl_printf to complain a lot when debug is enabled (which itself revealed a bug
since it should have exited on buffer overflow), and let me to find another
bug, where memory failures would try to recursively call _dl_printf....
What a mess.
Eric Andersen [Wed, 17 Dec 2003 04:23:42 +0000 (04:23 -0000)]
Add in the axis network cameras
Eric Andersen [Tue, 16 Dec 2003 08:00:28 +0000 (08:00 -0000)]
Add LEAF Bering-uClibc
Eric Andersen [Tue, 16 Dec 2003 07:11:11 +0000 (07:11 -0000)]
fix grammer such it is possible to understand what is written...
Eric Andersen [Tue, 16 Dec 2003 06:47:28 +0000 (06:47 -0000)]
Update for release (no really this time ;-)
Eric Andersen [Tue, 16 Dec 2003 06:45:49 +0000 (06:45 -0000)]
Update the website
Manuel Novoa III [Sun, 14 Dec 2003 23:52:57 +0000 (23:52 -0000)]
Link ldconfig with the appropriate libraries.
Manuel Novoa III [Sun, 14 Dec 2003 23:51:30 +0000 (23:51 -0000)]
Fix some dst issues in _time_mktime().
Normalize the tm_isdst value to -1, 0, or 1.
If no dst for this timezone, then reset tm_isdst to 0.
Manuel Novoa III [Sun, 14 Dec 2003 19:10:23 +0000 (19:10 -0000)]
Fix a couple of 'declaration after statement' errors.
Eric Andersen [Thu, 11 Dec 2003 08:18:42 +0000 (08:18 -0000)]
fix a cut-n-paste typo
Eric Andersen [Thu, 11 Dec 2003 07:55:13 +0000 (07:55 -0000)]
add image for validator
Eric Andersen [Thu, 11 Dec 2003 07:54:56 +0000 (07:54 -0000)]
fixup some silly html bugs
Eric Andersen [Thu, 11 Dec 2003 07:42:05 +0000 (07:42 -0000)]
mjn3 found a url for the darwin C lib
Eric Andersen [Thu, 11 Dec 2003 07:41:48 +0000 (07:41 -0000)]
more minor cleanups
Eric Andersen [Thu, 11 Dec 2003 07:16:11 +0000 (07:16 -0000)]
Rework the website
Eric Andersen [Mon, 8 Dec 2003 21:18:40 +0000 (21:18 -0000)]
Prepare for uClibc 0.9.24 release
Eric Andersen [Fri, 5 Dec 2003 20:39:51 +0000 (20:39 -0000)]
Paul Mundt <lethal@linux-sh.org> writes:
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.
Eric Andersen [Fri, 5 Dec 2003 20:24:26 +0000 (20:24 -0000)]
move _dl_fixup so staticly linked apps using dlopen have a
chance of actually working
Manuel Novoa III [Thu, 4 Dec 2003 22:57:32 +0000 (22:57 -0000)]
Fix infinite loop in putgrent (forgotten increment).
Eric Andersen [Thu, 4 Dec 2003 22:07:51 +0000 (22:07 -0000)]
Fix arm profiling support, which was accidentally removed
Eric Andersen [Thu, 4 Dec 2003 18:25:36 +0000 (18:25 -0000)]
Set the default stdio buffer size to 4096, rather then 256.
256 is fine of course, but many applications use this value
and expect it to be larger.
Manuel Novoa III [Thu, 4 Dec 2003 06:37:34 +0000 (06:37 -0000)]
Don't download the local data if we have it already.
Manuel Novoa III [Thu, 4 Dec 2003 06:36:52 +0000 (06:36 -0000)]
Building of iconv.o was accidently always disabled.
Also, build the iconv app in utils.
Eric Andersen [Wed, 3 Dec 2003 23:38:43 +0000 (23:38 -0000)]
Henrik Grindal Bakken writes:
The patch touches a minor (well, not that minor, but perhaps only
rarely encountered) bug in the powerpc dynamic linker.
The problem is that addi is called in inline assembly, but there is no
restriction on the second argument. In powerpc assembler, if the
second argument to addi is r0, it is taken as the value 0, not the
contents of r0. This happened to me, making the stack pointer 0 on
the invocation on the application.
The patch is against 0.9.22, but there didn't seem to be any changes
to the relevant section in 0.9.23.
Eric Andersen [Wed, 3 Dec 2003 23:28:33 +0000 (23:28 -0000)]
Joakim Tjernlund writes:
This is just a wild guess, but you could try this to see if it fixes
Richards problem:
Eric Andersen [Wed, 3 Dec 2003 23:12:14 +0000 (23:12 -0000)]
Lethal noticed that the generated file gmon-start.S was not
being cleaned up.
Eric Andersen [Wed, 3 Dec 2003 23:07:50 +0000 (23:07 -0000)]
Patch from lethal, adding syscall() to the sh64 port
Eric Andersen [Wed, 3 Dec 2003 23:04:01 +0000 (23:04 -0000)]
Paul Mundt <lethal@linux-sh.org> writes:
Nothing overly interesting here, this renames Hitachi/Mitsubishi to Renesas
for the relevant platforms (in this case, h8, sh, and m32r). The same changes
have already been going on in gcc/binutils/gdb/glibc/etc.
Eric Andersen [Wed, 3 Dec 2003 21:35:01 +0000 (21:35 -0000)]
Eliminate some static buffers based on a patch from Tobias Anderberg
Eric Andersen [Wed, 3 Dec 2003 20:36:49 +0000 (20:36 -0000)]
remove some garbage
Eric Andersen [Wed, 3 Dec 2003 20:12:45 +0000 (20:12 -0000)]
Rob McMullen writes:
There is code in ldconfig that checks to see if a shared library is named
either ``lib*'' or ``ld-*'' before ldconfig -l will work on it. gawk uses this
feature of ldconfig to make /lib/rcscripts/filefuncs.so, so the build fails.
Eric Andersen [Wed, 3 Dec 2003 02:35:36 +0000 (02:35 -0000)]
force enable FORCE_SHAREABLE_TEXT_SEGMENTS for sh4
Eric Andersen [Tue, 2 Dec 2003 23:16:59 +0000 (23:16 -0000)]
Disable pthreads for sh64 for the time being (since it is not
currently supported)
Manuel Novoa III [Tue, 2 Dec 2003 20:37:08 +0000 (20:37 -0000)]
Include Rules.mk for consistency. Trying not to was simply too painful.
Manuel Novoa III [Tue, 2 Dec 2003 19:06:32 +0000 (19:06 -0000)]
Add a syscall() implementation using a hacked version of the syscall6 macro.
Untested, but syscall() is needed by busybox for pivot_root at least.
Eric Andersen [Tue, 2 Dec 2003 17:59:06 +0000 (17:59 -0000)]
Add function versions of ntohl and friends
Eric Andersen [Tue, 2 Dec 2003 17:58:24 +0000 (17:58 -0000)]
Avoid a potentially undefined operation with a veriable++ in a macro
Manuel Novoa III [Tue, 2 Dec 2003 04:58:41 +0000 (04:58 -0000)]
Put in a dummy reference to main so busybox will link.
Manuel Novoa III [Sat, 29 Nov 2003 21:23:42 +0000 (21:23 -0000)]
Minor typo fix.
Manuel Novoa III [Sat, 29 Nov 2003 20:48:18 +0000 (20:48 -0000)]
Minor update... Config no longer used.
Manuel Novoa III [Sat, 29 Nov 2003 02:17:24 +0000 (02:17 -0000)]
Patch by "Bradley D. LaRonde" <brad@ltc.com> for boehm garbage collector.
Manuel Novoa III [Fri, 28 Nov 2003 19:39:51 +0000 (19:39 -0000)]
Another missing mips function, needed by the boehm garbage collector.
Manuel Novoa III [Fri, 28 Nov 2003 18:28:41 +0000 (18:28 -0000)]
Add sysmips(), based on a patch by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
Manuel Novoa III [Mon, 24 Nov 2003 04:24:31 +0000 (04:24 -0000)]
Add -msoft-float to CPU_CFLAGS instead of CFLAGS, since ldso and libdl
Makefiles ignore CFLAGS.
Manuel Novoa III [Mon, 24 Nov 2003 04:23:31 +0000 (04:23 -0000)]
Don't bother checking, since we want an error if -msoft-float doesn't work.
Manuel Novoa III [Sun, 23 Nov 2003 20:24:32 +0000 (20:24 -0000)]
Ok.. this fixes the buildroot soft-float arm build.
Also try to make sure the build breaks if we want soft float but
don't know how to request it.
Manuel Novoa III [Sun, 23 Nov 2003 18:47:56 +0000 (18:47 -0000)]
Make sure we use the right CC setting when building utils.
Not doing so was breaking the buildroot softfloat arm build.
Manuel Novoa III [Sun, 23 Nov 2003 18:46:00 +0000 (18:46 -0000)]
Hopefully this is correct for cris.
Manuel Novoa III [Sun, 23 Nov 2003 18:45:12 +0000 (18:45 -0000)]
Protect against quoting changes.
Eric Andersen [Sat, 22 Nov 2003 21:22:28 +0000 (21:22 -0000)]
Remove SAFECFLAGS. It was a workaround for failures in old awk script
used to generate the crti.S and crtn.S files. Since we don't use that
anymore, keeping the workaround makes no sense.
Furthermore, in most cases, SAFECFLAGS was not picking up all the
needed flags, causing crti.o and crtn.o to not be built PIC.
Which is very bad. Removing SAFECFLAGS and using CFLAGS fixes
that as well.
Eric Andersen [Sat, 22 Nov 2003 18:32:59 +0000 (18:32 -0000)]
Only enable debugging when SUPPORT_LD_DEBUG is enabled, not DEBUGGING
Eric Andersen [Sat, 22 Nov 2003 18:11:47 +0000 (18:11 -0000)]
Oops. Only enable debug when debugging...
Manuel Novoa III [Sat, 22 Nov 2003 06:51:17 +0000 (06:51 -0000)]
Fix arm detection for libfloat.
Manuel Novoa III [Sat, 22 Nov 2003 04:42:22 +0000 (04:42 -0000)]
Make sure the utils build gets the setting for CROSS.
Eric Andersen [Fri, 21 Nov 2003 07:47:43 +0000 (07:47 -0000)]
prevent some needless warnings when building w/2.6.x kernel headers
Eric Andersen [Thu, 20 Nov 2003 20:05:53 +0000 (20:05 -0000)]
Add missing weak alias for bcmp
Manuel Novoa III [Thu, 20 Nov 2003 17:13:53 +0000 (17:13 -0000)]
Always include locale.h, which was included by libintl.h only when
optimizing.
Eric Andersen [Thu, 20 Nov 2003 15:28:24 +0000 (15:28 -0000)]
Don't depend on BSD naming
Eric Andersen [Thu, 20 Nov 2003 15:23:03 +0000 (15:23 -0000)]
Add an initial set of arm optimized string functions. These
do seem to make noticable speed improvement...
-Erik
Eric Andersen [Thu, 20 Nov 2003 15:05:27 +0000 (15:05 -0000)]
Lets try that one again...
Eric Andersen [Thu, 20 Nov 2003 14:42:42 +0000 (14:42 -0000)]
Make certain that arch specific stuff is compiled last
Eric Andersen [Thu, 20 Nov 2003 14:40:50 +0000 (14:40 -0000)]
Make certain that the arch specific stuff is always compiled last
Eric Andersen [Thu, 20 Nov 2003 14:35:06 +0000 (14:35 -0000)]
Fixup dependancies to ensure arch specific string functions
will always win
Manuel Novoa III [Wed, 19 Nov 2003 07:21:10 +0000 (07:21 -0000)]
Fix the return value for fputs when passed an empty string.
Indirectly detected by gmp-4.1.2 self-tests and reported by
"Peter S. Mazinger" <ps.m@gmx.net>.
Manuel Novoa III [Tue, 18 Nov 2003 19:57:06 +0000 (19:57 -0000)]
Kill ARCH_HAS_NO_MMU and use HAS_FPU only. Wether floating point ops
are implemented in hardware or via kernel emulation doesn't matter to
the libc code.
Manuel Novoa III [Mon, 17 Nov 2003 01:24:07 +0000 (01:24 -0000)]
If __NR_ftruncate64 isn't defined, do the best we can.
Manuel Novoa III [Sun, 16 Nov 2003 21:10:07 +0000 (21:10 -0000)]
I forgot to update the thread locking in the last dst fix.
Manuel Novoa III [Sun, 16 Nov 2003 16:26:35 +0000 (16:26 -0000)]
Patch from Jeffrey Baitis <baitisj@evolution.com> for mips arch tuning.
Manuel Novoa III [Sun, 16 Nov 2003 15:58:33 +0000 (15:58 -0000)]
Don't install shadow.h if shadow password support is disabled.
Manuel Novoa III [Sun, 16 Nov 2003 04:50:49 +0000 (04:50 -0000)]
Fix a build problem when using 2.2.x kernel headers.
Eric Andersen [Thu, 13 Nov 2003 12:45:53 +0000 (12:45 -0000)]
Prepare for release
Eric Andersen [Thu, 13 Nov 2003 12:30:10 +0000 (12:30 -0000)]
Joakim Tjernlund writes:
I think I messed up a little in my latest patch to Erik. Can you try
this on top of CVS(which I think you have already)
Jocke
And later writes:
Hi Erik
I just saw something that might be a problem.
The "delta" variable is signed and
the "delta" calculations, such as delta = PLT_LONGBRANCH_ENTRY_WORDS*4 - (insn_addr-plt_addr+4),
are supposed to be unsigned.
Jocke
Eric Andersen [Thu, 13 Nov 2003 10:19:01 +0000 (10:19 -0000)]
Update the debian packaging for use in a standalone uClibc
system, rather than being a subordinate lib under a glibc
based system.
-Erik