OSDN Git Service

uclinux-h8/uClibc.git
22 years agoMerge in an ugly pile of rand* functions from glibc. :(
Eric Andersen [Wed, 13 Mar 2002 23:38:40 +0000 (23:38 -0000)]
Merge in an ugly pile of rand* functions from glibc.  :(

22 years agoRemove the chdir, so we can test things like empty directories
Eric Andersen [Wed, 13 Mar 2002 23:34:40 +0000 (23:34 -0000)]
Remove the chdir, so we can test things like empty directories

22 years agoModified because of the new str to int funcs.
Manuel Novoa III [Wed, 13 Mar 2002 23:29:52 +0000 (23:29 -0000)]
Modified because of the new str to int funcs.

22 years agoNew versions of the various string to int functions which are smaller
Manuel Novoa III [Wed, 13 Mar 2002 23:28:57 +0000 (23:28 -0000)]
New versions of the various string to int functions which are smaller
than the old ones, even with errno setting turned on now.  Also, at
least on i386, we no longer need the long long helper functions for
division and mod from libgcc.a.

22 years agoFix stdin/stdout initialization of buffering type. I had changed the
Manuel Novoa III [Wed, 13 Mar 2002 12:35:50 +0000 (12:35 -0000)]
Fix stdin/stdout initialization of buffering type.  I had changed the
default static initiailization and forgotten to update _stdio_init().

22 years agoOops... forgot to update abort.c.
Manuel Novoa III [Wed, 13 Mar 2002 12:27:14 +0000 (12:27 -0000)]
Oops... forgot to update abort.c.

22 years agoApply Miles Bader's missing __va_copy() fix.
Manuel Novoa III [Wed, 13 Mar 2002 04:54:04 +0000 (04:54 -0000)]
Apply Miles Bader's missing __va_copy() fix.

22 years agoFix another O_LARGEFILE bug. Also, I forget to make floating point optional
Manuel Novoa III [Tue, 12 Mar 2002 19:17:50 +0000 (19:17 -0000)]
Fix another O_LARGEFILE bug.  Also, I forget to make floating point optional
in the new printf code.

22 years agoSo much for fcntl flags being resonably consistent across archs... (hopefully)
Manuel Novoa III [Tue, 12 Mar 2002 17:33:46 +0000 (17:33 -0000)]
So much for fcntl flags being resonably consistent across archs... (hopefully)
fix O_APPEND and O_LARGEFILE handling in _stdio_fopen().  Someone else will
have to check of course...

22 years agoFix fflush(NULL) and tweak _stdio_term() for the unbuffered stdio option.
Manuel Novoa III [Tue, 12 Mar 2002 17:03:43 +0000 (17:03 -0000)]
Fix fflush(NULL) and tweak _stdio_term() for the unbuffered stdio option.

22 years agoOops.. had left thread support forced on.
Manuel Novoa III [Tue, 12 Mar 2002 15:06:13 +0000 (15:06 -0000)]
Oops.. had left thread support forced on.

22 years agoFix a segfault in scandir for empty directories. After looking over
Eric Andersen [Tue, 12 Mar 2002 08:24:24 +0000 (08:24 -0000)]
Fix a segfault in scandir for empty directories.  After looking over
our version, I'm adopting the scandir from glibc (with minor changes)
instead as it seems simpler and already correct.

22 years agoUpdate to my current todo list.
Manuel Novoa III [Tue, 12 Mar 2002 02:38:27 +0000 (02:38 -0000)]
Update to my current todo list.

22 years agoFix thinko
Eric Andersen [Tue, 12 Mar 2002 02:06:35 +0000 (02:06 -0000)]
Fix thinko

22 years agoFixup redefinition of NL_ARGMAX
Eric Andersen [Tue, 12 Mar 2002 01:52:54 +0000 (01:52 -0000)]
Fixup redefinition of NL_ARGMAX

22 years agoDeal with cvs "feature"... or is that cvs _user_...
Manuel Novoa III [Tue, 12 Mar 2002 01:41:56 +0000 (01:41 -0000)]
Deal with cvs "feature"... or is that cvs _user_...

22 years agoSwap in the new stdio code.
Manuel Novoa III [Tue, 12 Mar 2002 01:18:50 +0000 (01:18 -0000)]
Swap in the new stdio code.

22 years agoAdd thread support. Eliminate the useless extra "s
Eric Andersen [Mon, 11 Mar 2002 17:03:30 +0000 (17:03 -0000)]
Add thread support.  Eliminate the useless extra "s

22 years agoFix broken links
Eric Andersen [Mon, 11 Mar 2002 07:49:07 +0000 (07:49 -0000)]
Fix broken links

22 years agoFixup ldd behavior to match recent ldso change
Eric Andersen [Mon, 11 Mar 2002 07:15:36 +0000 (07:15 -0000)]
Fixup ldd behavior to match recent ldso change

22 years agoAllow some failures to simplify building gcc
Eric Andersen [Mon, 11 Mar 2002 06:18:52 +0000 (06:18 -0000)]
Allow some failures to simplify building gcc

22 years agoDon't install CVS files into the devel dir
Eric Andersen [Mon, 11 Mar 2002 05:45:46 +0000 (05:45 -0000)]
Don't install CVS files into the devel dir

22 years agoAdd in this missing header file
Eric Andersen [Sat, 9 Mar 2002 20:56:21 +0000 (20:56 -0000)]
Add in this missing header file

22 years agoAvoid forced -lpthread lnkage when threading is enabled
Eric Andersen [Sat, 9 Mar 2002 18:07:36 +0000 (18:07 -0000)]
Avoid forced -lpthread lnkage when threading is enabled

22 years agoSeperate out the symbol resolution debugging, so it doesn't clutter
Eric Andersen [Fri, 8 Mar 2002 09:40:52 +0000 (09:40 -0000)]
Seperate out the symbol resolution debugging, so it doesn't clutter
things up when we don't care about symbol resolution problems.  Make
the lib loader always look first in the directory where the shared lib
loader was found.
 -Erik

22 years agoRemove sys/io.h include, since not everyone has it
Eric Andersen [Tue, 5 Mar 2002 14:22:30 +0000 (14:22 -0000)]
Remove sys/io.h include, since not everyone has it

22 years agoInitial checkin
Miles Bader [Tue, 5 Mar 2002 02:22:10 +0000 (02:22 -0000)]
Initial checkin

22 years agoRe-add files which were mistakenly deleted during the big bits/ update.
Miles Bader [Tue, 5 Mar 2002 02:18:47 +0000 (02:18 -0000)]
Re-add files which were mistakenly deleted during the big bits/ update.

22 years agoRemove extraneous file
Miles Bader [Tue, 5 Mar 2002 02:15:55 +0000 (02:15 -0000)]
Remove extraneous file

22 years agoCheck in new debian snapshot
David Schleef [Sun, 3 Mar 2002 23:46:04 +0000 (23:46 -0000)]
Check in new debian snapshot

22 years agoRemove generated stuff, restore sh/sys/procfs.h from M. R. Brown
Eric Andersen [Sat, 2 Mar 2002 08:21:48 +0000 (08:21 -0000)]
Remove generated stuff, restore sh/sys/procfs.h from M. R. Brown

22 years agoMove syscall.h generation to the top level Makefile
Eric Andersen [Fri, 1 Mar 2002 22:28:19 +0000 (22:28 -0000)]
Move syscall.h generation to the top level Makefile
 -Erik

22 years agoDoh! A search and replace bug...
Eric Andersen [Fri, 1 Mar 2002 22:10:39 +0000 (22:10 -0000)]
Doh!  A search and replace bug...

22 years agoDoh! Doh! Doh!
Eric Andersen [Fri, 1 Mar 2002 22:04:55 +0000 (22:04 -0000)]
Doh! Doh! Doh!

22 years agoDoh!
Eric Andersen [Fri, 1 Mar 2002 21:53:36 +0000 (21:53 -0000)]
Doh!

22 years agoPatch from Steven J. Hill to allow both mips and mipsel to be built
Eric Andersen [Fri, 1 Mar 2002 21:40:30 +0000 (21:40 -0000)]
Patch from Steven J. Hill to allow both mips and mipsel to be built

22 years agooops. I forgot to commit this...
Eric Andersen [Fri, 1 Mar 2002 21:39:50 +0000 (21:39 -0000)]
oops.  I forgot to commit this...

22 years agoPatch from Miles Bader to allow Large File support on the v850.
Eric Andersen [Fri, 1 Mar 2002 21:20:49 +0000 (21:20 -0000)]
Patch from Miles Bader to allow Large File support on the v850.

22 years agoFix for some comments, from Miles Bader
Eric Andersen [Fri, 1 Mar 2002 21:14:17 +0000 (21:14 -0000)]
Fix for some comments, from Miles Bader

22 years agoPatch from M. R. Brown <mrbrown@0xd6.org> to fix pthread support
Eric Andersen [Fri, 1 Mar 2002 21:09:56 +0000 (21:09 -0000)]
Patch from M. R. Brown <mrbrown@0xd6.org> to fix pthread support
for SH, and fix vfork

22 years agoMajor rework of the include files to eliminate redundancy
Eric Andersen [Fri, 1 Mar 2002 20:46:26 +0000 (20:46 -0000)]
Major rework of the include files to eliminate redundancy
and to better support each arch.  This is a really big patch...
 -Erik

22 years agoPatch from David Schleef to check for proper 16-byte aliged
Eric Andersen [Thu, 28 Feb 2002 03:36:56 +0000 (03:36 -0000)]
Patch from David Schleef to check for proper 16-byte aliged
stack pointer on powerpc

22 years agoRemove some debugging code
Eric Andersen [Wed, 27 Feb 2002 18:39:21 +0000 (18:39 -0000)]
Remove some debugging code

22 years agoFix C++ support
Eric Andersen [Wed, 27 Feb 2002 17:33:36 +0000 (17:33 -0000)]
Fix C++ support

22 years agoLose the -nostdlib, which causes problems with older binutils, and
Eric Andersen [Wed, 27 Feb 2002 08:53:50 +0000 (08:53 -0000)]
Lose the -nostdlib, which causes problems with older binutils, and
add some fflush calls, since it seems streams are not flushed before
an exec

22 years agoA few more little cleanups
Eric Andersen [Tue, 26 Feb 2002 16:28:48 +0000 (16:28 -0000)]
A few more little cleanups

22 years agoAdd an md5crypt test
Eric Andersen [Tue, 26 Feb 2002 15:29:24 +0000 (15:29 -0000)]
Add an md5crypt test

22 years agoDon't redefine stuff
Eric Andersen [Tue, 26 Feb 2002 15:24:39 +0000 (15:24 -0000)]
Don't redefine stuff

22 years agoBe consistant and use an unsigned char * throughout
Eric Andersen [Tue, 26 Feb 2002 15:22:38 +0000 (15:22 -0000)]
Be consistant and use an unsigned char * throughout

22 years agodon't pretend to be reentrant yet
Eric Andersen [Tue, 26 Feb 2002 12:26:41 +0000 (12:26 -0000)]
don't pretend to be reentrant yet

22 years agoDoh! Tests were not being compiled with warnings and optimization
Eric Andersen [Tue, 26 Feb 2002 12:10:21 +0000 (12:10 -0000)]
Doh! Tests were not being compiled with warnings and optimization

22 years agoFix redefine problem
Eric Andersen [Tue, 26 Feb 2002 11:53:39 +0000 (11:53 -0000)]
Fix redefine problem

22 years agoFix redefinition problem
Eric Andersen [Tue, 26 Feb 2002 11:50:48 +0000 (11:50 -0000)]
Fix redefinition problem

22 years agoGive the label a ; so compilers have no excuse to whine
Eric Andersen [Tue, 26 Feb 2002 10:55:29 +0000 (10:55 -0000)]
Give the label a ; so compilers have no excuse to whine

22 years agoOdd. This seems to be in the wrong spot...
Eric Andersen [Tue, 26 Feb 2002 10:47:22 +0000 (10:47 -0000)]
Odd.  This seems to be in the wrong spot...

22 years agoDon't try to return stuff from void funcs
Eric Andersen [Tue, 26 Feb 2002 10:43:39 +0000 (10:43 -0000)]
Don't try to return stuff from void funcs

22 years agoRemove an erroneous -L-
Eric Andersen [Tue, 26 Feb 2002 09:56:31 +0000 (09:56 -0000)]
Remove an erroneous -L-

22 years agoPatch from Miles Bader to restrict common truncate64/ftruncate64
Eric Andersen [Tue, 26 Feb 2002 09:55:04 +0000 (09:55 -0000)]
Patch from Miles Bader to restrict common truncate64/ftruncate64
syscalls to 64-bit systems, since we can't be sure that the _syscall
macros can cope with 64 bit args on 32 bit arches.

22 years agoProper support for setting h_errno
Eric Andersen [Tue, 26 Feb 2002 09:35:50 +0000 (09:35 -0000)]
Proper support for setting h_errno

22 years agoFix rpc + threads so it now compiles.
Eric Andersen [Tue, 26 Feb 2002 09:32:21 +0000 (09:32 -0000)]
Fix rpc + threads so it now compiles.

22 years agoThomas Fritzsche noticed that __open_etc_hosts was only changing a
Eric Andersen [Tue, 26 Feb 2002 03:02:20 +0000 (03:02 -0000)]
Thomas Fritzsche noticed that __open_etc_hosts was only changing a
local copy of the FILE pointer, thereby causing /etc/hosts lookups
to fail with Resolver errors.  This patch from Thomas fixes the
problem.

22 years agoEnable pread/pwrite
Eric Andersen [Tue, 26 Feb 2002 02:51:03 +0000 (02:51 -0000)]
Enable pread/pwrite

22 years agoPatch from Miles Bader: All the -M* options should
Eric Andersen [Tue, 26 Feb 2002 02:33:37 +0000 (02:33 -0000)]
Patch from Miles Bader: All the -M* options should
suppress linking (right now, only `-M' does).

22 years agoAdjust function naming and make sure everything is properly
Eric Andersen [Tue, 26 Feb 2002 02:28:55 +0000 (02:28 -0000)]
Adjust function naming and make sure everything is properly
static to avoid symbol leakage.
 -Erik

22 years agoRemove elimination of __BEGIN_DECLS/__END_DECLS
Eric Andersen [Tue, 26 Feb 2002 01:54:18 +0000 (01:54 -0000)]
Remove elimination of __BEGIN_DECLS/__END_DECLS

22 years agoI shouldn't try to program when sleepy, since I totally botched
Eric Andersen [Mon, 25 Feb 2002 23:50:51 +0000 (23:50 -0000)]
I shouldn't try to program when sleepy, since I totally botched
the fcntl interface...
 -Erik

22 years agoWhen messing with fd NONBLOCK status, put things back the way we found
Eric Andersen [Mon, 25 Feb 2002 15:06:10 +0000 (15:06 -0000)]
When messing with fd NONBLOCK status, put things back the way we found
them afterwards.  As was, this hosed things up for fds shared with a
parent process.  Very bad for shells...  Oops.
 -Erik

22 years agoTry this version instead...
Eric Andersen [Mon, 25 Feb 2002 13:00:39 +0000 (13:00 -0000)]
Try this version instead...

22 years agoJoerg Schmitz-Linneweber recommends using tar -f - instead of -O
Eric Andersen [Mon, 25 Feb 2002 11:16:15 +0000 (11:16 -0000)]
Joerg Schmitz-Linneweber recommends using tar -f - instead of -O
to prevent interference with the TAPE env var

22 years agoYet another iteration...
Eric Andersen [Mon, 25 Feb 2002 09:40:37 +0000 (09:40 -0000)]
Yet another iteration...

22 years agoBoth Miles and Manuel complained about this one. I was silently
Eric Andersen [Mon, 25 Feb 2002 09:02:57 +0000 (09:02 -0000)]
Both Miles and Manuel complained about this one.  I was silently
losing all -Wl calls...

22 years agoAdded locale and lastlog
David McCullough [Mon, 25 Feb 2002 00:35:17 +0000 (00:35 -0000)]
Added locale and lastlog

22 years agoSupport isblank()
Eric Andersen [Sat, 23 Feb 2002 13:42:45 +0000 (13:42 -0000)]
Support isblank()

22 years agoFix the compiler wrapper yet more...
Eric Andersen [Sat, 23 Feb 2002 13:27:35 +0000 (13:27 -0000)]
Fix the compiler wrapper yet more...

22 years agoIEEE Std 1003.1-2001 says that the "fclose() function shall fail [with]
Eric Andersen [Sat, 23 Feb 2002 12:35:19 +0000 (12:35 -0000)]
IEEE Std 1003.1-2001 says that the "fclose() function shall fail [with]
EINTR [when] the fclose() function was interrupted by a signal".  But
looking in the current uClibc stdio.c for some bizarre reason we had a
special case where when errno was EINTR, we would keep on trying
instead.  Doh!  Fix that,
 -Erik

22 years agoSeveral naming cleanups so threads work properly again
Eric Andersen [Sat, 23 Feb 2002 10:22:27 +0000 (10:22 -0000)]
Several naming cleanups so threads work properly again

22 years agoFix a corner case which I had botched.
Eric Andersen [Sat, 23 Feb 2002 08:48:46 +0000 (08:48 -0000)]
Fix a corner case which I had botched.
 -Erik

22 years agoAdd a better error msg
Eric Andersen [Sat, 23 Feb 2002 06:17:59 +0000 (06:17 -0000)]
Add a better error msg

22 years agoPer discussion with Manuel, when we call __stdio_flush_buffers
Eric Andersen [Sat, 23 Feb 2002 06:02:02 +0000 (06:02 -0000)]
Per discussion with Manuel, when we call __stdio_flush_buffers
from abort() and from _exit(), we need to ensure that flushing
will not cause us to block.  So use fcntl to set the fd's to
non-block mode...

22 years agoUpdate todo list
Eric Andersen [Sat, 23 Feb 2002 05:42:18 +0000 (05:42 -0000)]
Update todo list

22 years agoTest for libcrypt (which is partly broken ATM)
Eric Andersen [Sat, 23 Feb 2002 02:19:37 +0000 (02:19 -0000)]
Test for libcrypt (which is partly broken ATM)

22 years agoThis should be a little better...
Eric Andersen [Sat, 23 Feb 2002 01:40:58 +0000 (01:40 -0000)]
This should be a little better...

22 years agoI was confusing the effects of _LARGEFILE_SOURCE with those of
Manuel Novoa III [Fri, 22 Feb 2002 19:36:47 +0000 (19:36 -0000)]
I was confusing the effects of _LARGEFILE_SOURCE with those of
_FILE_OFFSET_BITS regarding aliasing of the *64 funcs.  :-(
Hopefully, this version is correct...

22 years agoBuild fix for arm
David Schleef [Fri, 22 Feb 2002 07:34:44 +0000 (07:34 -0000)]
Build fix for arm

22 years agoSpecial rules for mipsel. Force some variables in Config, in
David Schleef [Fri, 22 Feb 2002 07:28:41 +0000 (07:28 -0000)]
Special rules for mipsel.  Force some variables in Config, in
case they're wrong (they are.)  Remove Config during clean.

22 years agoSeveral mips fixes from Geoffrey Espin. With these, busybox with
Eric Andersen [Fri, 22 Feb 2002 00:10:00 +0000 (00:10 -0000)]
Several mips fixes from Geoffrey Espin.  With these, busybox with
ash/vi/etc now works just fine with uClibc on mips.

22 years agoLet the large file stuff be cancelable
Eric Andersen [Thu, 21 Feb 2002 22:49:04 +0000 (22:49 -0000)]
Let the large file stuff be cancelable

22 years agoUpdate string tests per glibc 2.2.5's string tester. Looks like
Eric Andersen [Thu, 21 Feb 2002 21:30:32 +0000 (21:30 -0000)]
Update string tests per glibc 2.2.5's string tester.  Looks like
our stpncpy is flunking...
 -Erik

22 years agoOops. I forgot to commit this file...
Eric Andersen [Thu, 21 Feb 2002 21:25:19 +0000 (21:25 -0000)]
Oops.  I forgot to commit this file...

22 years agoWhen vfork is not available and we have an MMU, then use fork()
Eric Andersen [Thu, 21 Feb 2002 18:11:47 +0000 (18:11 -0000)]
When vfork is not available and we have an MMU, then use fork()
 -Erik

22 years agoLose the _GNU_SOURCE and just add __USE_GNU to the one file that needs
Eric Andersen [Thu, 21 Feb 2002 12:39:48 +0000 (12:39 -0000)]
Lose the _GNU_SOURCE and just add __USE_GNU to the one file that needs
it, since we definately do not want silent remapping of functions to
their large-file counterparts.
 -Erik

22 years agoAdd ldexp to the !C99 list, since it is defined in POSIX as
Eric Andersen [Thu, 21 Feb 2002 11:11:01 +0000 (11:11 -0000)]
Add ldexp to the !C99 list, since it is defined in POSIX as
being part of the classic math lib stuff.
 -Erik

22 years agoMiles Bader noticed that I'd messed up by always pulling
Eric Andersen [Thu, 21 Feb 2002 08:30:07 +0000 (08:30 -0000)]
Miles Bader noticed that I'd messed up by always pulling
errno in, regardless of whether it is being used...
 -Erik

22 years agoFix from John Rigby to fix stat() so it actually works.
Eric Andersen [Wed, 20 Feb 2002 22:51:25 +0000 (22:51 -0000)]
Fix from John Rigby to fix stat() so it actually works.

22 years agooops. I had accidentally typed in "clean" when I meant "clone".
Eric Andersen [Wed, 20 Feb 2002 09:58:19 +0000 (09:58 -0000)]
oops.  I had accidentally typed in "clean" when I meant "clone".
This fix makes pthreads actaully work on powerpc.
 -Erik

22 years agoThis is a bit less messy
Eric Andersen [Wed, 20 Feb 2002 09:50:24 +0000 (09:50 -0000)]
This is a bit less messy

22 years agoEnable thread support
Eric Andersen [Wed, 20 Feb 2002 09:29:55 +0000 (09:29 -0000)]
Enable thread support

22 years agoSeveral needed cleanups to the gcc wrapper.
Eric Andersen [Wed, 20 Feb 2002 09:28:25 +0000 (09:28 -0000)]
Several needed cleanups to the gcc wrapper.
 -Erik

22 years agoMerge in the pthread library. This is the linuxthreads library taken from
Eric Andersen [Wed, 20 Feb 2002 09:18:50 +0000 (09:18 -0000)]
Merge in the pthread library.  This is the linuxthreads library taken from
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

22 years agoAdd a test from Stefan Soucek for pthread_cond_timedwait(). On
Eric Andersen [Wed, 20 Feb 2002 05:16:09 +0000 (05:16 -0000)]
Add a test from Stefan Soucek for pthread_cond_timedwait().  On
mmu-less ARM perhaps sigsetjmp() isn't working?