OSDN Git Service

uclinux-h8/uClibc.git
23 years agoCreate __uClibc_main to handle what can be done in C instead of each arch's
Manuel Novoa III [Mon, 19 Feb 2001 00:24:52 +0000 (00:24 -0000)]
Create __uClibc_main to handle what can be done in C instead of each arch's
respective crt0.S.  crt0.S should now only be responsible for setting things
up to call __uClibc_main(argc, argv, envp), which will do any other necessary
setup (setting global __environ, stdio init, etc), call main, and exit.  This
should ease both maintainance and porting.

23 years agoRevert to standard handling of _exit syscall in unified syscall case on i386.
Manuel Novoa III [Mon, 19 Feb 2001 00:16:39 +0000 (00:16 -0000)]
Revert to standard handling of _exit syscall in unified syscall case on i386.

23 years agoFix problems with test wrapper and test compiler selection.
Manuel Novoa III [Mon, 19 Feb 2001 00:14:42 +0000 (00:14 -0000)]
Fix problems with test wrapper and test compiler selection.

23 years agoFix LIBC rule. (cut-and-paste user bug...)
Manuel Novoa III [Thu, 15 Feb 2001 16:46:18 +0000 (16:46 -0000)]
Fix LIBC rule.  (cut-and-paste user bug...)

23 years agoAnd apparently some things include sys/time.h instead of time.h in uClibc...
Manuel Novoa III [Thu, 15 Feb 2001 16:37:57 +0000 (16:37 -0000)]
And apparently some things include sys/time.h instead of time.h in uClibc...

23 years agoI guess we always need timespec...
Manuel Novoa III [Thu, 15 Feb 2001 16:27:53 +0000 (16:27 -0000)]
I guess we always need timespec...

23 years agoAdd bdflush.
Manuel Novoa III [Thu, 15 Feb 2001 16:20:49 +0000 (16:20 -0000)]
Add bdflush.

23 years agoAdd vdprintf function. Note: will be rewritten to check if file descriptor has an...
Manuel Novoa III [Thu, 15 Feb 2001 16:20:14 +0000 (16:20 -0000)]
Add vdprintf function.  Note: will be rewritten to check if file descriptor has an associated FILE to avoid bad interactions with buffered output, but needed for busybox right now and that implementation has the same bug.

23 years agoFix stdin/stdout/stderr for now.
Manuel Novoa III [Thu, 15 Feb 2001 16:18:12 +0000 (16:18 -0000)]
Fix stdin/stdout/stderr for now.

23 years agoAdd tsearch functions from libc-5.3.12.
Manuel Novoa III [Thu, 15 Feb 2001 16:17:15 +0000 (16:17 -0000)]
Add tsearch functions from libc-5.3.12.

23 years agoComment out for now. Not used and was causing an error.
Manuel Novoa III [Thu, 15 Feb 2001 16:16:30 +0000 (16:16 -0000)]
Comment out for now.  Not used and was causing an error.

23 years agoAdd missing header file.
Manuel Novoa III [Thu, 15 Feb 2001 16:15:45 +0000 (16:15 -0000)]
Add missing header file.

23 years agoHandle definition of struct timespec.
Manuel Novoa III [Thu, 15 Feb 2001 16:15:30 +0000 (16:15 -0000)]
Handle definition of struct timespec.

23 years agoFix stdin/stdout/stderr (that I broke) and add vdprintf prototype.
Manuel Novoa III [Thu, 15 Feb 2001 16:14:39 +0000 (16:14 -0000)]
Fix stdin/stdout/stderr (that I broke) and add vdprintf prototype.

23 years agoFix broken prototype.
Manuel Novoa III [Thu, 15 Feb 2001 16:12:47 +0000 (16:12 -0000)]
Fix broken prototype.

23 years agoDefine __USE_GNU as glibc does.
Manuel Novoa III [Thu, 15 Feb 2001 16:12:24 +0000 (16:12 -0000)]
Define __USE_GNU as glibc does.

23 years agoHack DYNAMIC_LINKER setting for now.
Manuel Novoa III [Thu, 15 Feb 2001 16:11:21 +0000 (16:11 -0000)]
Hack DYNAMIC_LINKER setting for now.

23 years agoUse MAP_FAILED.
Eric Andersen [Tue, 13 Feb 2001 00:33:30 +0000 (00:33 -0000)]
Use MAP_FAILED.

23 years agoAdd MAP_FAILED per spec -- patch from Michael Shmulevich <michaels@jungo.com>
Eric Andersen [Tue, 13 Feb 2001 00:30:39 +0000 (00:30 -0000)]
Add MAP_FAILED per spec -- patch from Michael Shmulevich <michaels@jungo.com>

23 years agoClean up lots of warnings.
Manuel Novoa III [Mon, 12 Feb 2001 00:59:18 +0000 (00:59 -0000)]
Clean up lots of warnings.

23 years agoUse __environ instead of the GNU extension environ.
Eric Andersen [Fri, 9 Feb 2001 23:06:54 +0000 (23:06 -0000)]
Use __environ instead of the GNU extension environ.
 -Erik

23 years agoRemove now irrelevant comment.
Eric Andersen [Fri, 9 Feb 2001 23:04:57 +0000 (23:04 -0000)]
Remove now irrelevant comment.

23 years agoAdd #define to handle new ptrace support.
Manuel Novoa III [Fri, 9 Feb 2001 15:43:40 +0000 (15:43 -0000)]
Add #define to handle new ptrace support.

23 years agoAdd ffs func declaration
Eric Andersen [Fri, 9 Feb 2001 08:55:14 +0000 (08:55 -0000)]
Add ffs func declaration
 -Erik

23 years agoAdd missing ffs, used by rpc crap.
Eric Andersen [Fri, 9 Feb 2001 08:54:29 +0000 (08:54 -0000)]
Add missing ffs, used by rpc crap.
 -Erik

23 years agoSilence warnings -- add func declaration.
Eric Andersen [Fri, 9 Feb 2001 08:53:51 +0000 (08:53 -0000)]
Silence warnings -- add func declaration.
 -Erik

23 years agoTry to automagically pick the correct dynamic linker.
Eric Andersen [Fri, 9 Feb 2001 08:12:14 +0000 (08:12 -0000)]
Try to automagically pick the correct dynamic linker.
 -Erik

23 years agoImplement getdtablesize(), which is used by the rpc crap.
Eric Andersen [Fri, 9 Feb 2001 06:43:59 +0000 (06:43 -0000)]
Implement getdtablesize(), which is used by the rpc crap.
 -Erik

23 years agoRevert stdio to initializing itself. Not quite a pretty but that ensures that
Eric Andersen [Fri, 9 Feb 2001 06:40:46 +0000 (06:40 -0000)]
Revert stdio to initializing itself.  Not quite a pretty but that ensures that
we don't blow up by using too much stack space, and simplifies the job of
supporting new architectures, since they don't have to mess with calling foo
init functions in crt0 and cleaning up the resulting damage.
 -Erik

23 years agoRemove times and all the foolishness surrounding it. There is
Eric Andersen [Fri, 9 Feb 2001 06:36:44 +0000 (06:36 -0000)]
Remove times and all the foolishness surrounding it.  There is
a syscall that does this, so use that.
 -Erik

23 years agoDoh! I forgot a #ifdef such that ptrace ended up in each and every
Eric Andersen [Fri, 9 Feb 2001 05:42:54 +0000 (05:42 -0000)]
Doh!  I forgot a #ifdef such that ptrace ended up in each and every
syscall .o file.
 -Erik

23 years agoIt turns out that vfork was completely broken. That was why it
Eric Andersen [Fri, 9 Feb 2001 04:51:35 +0000 (04:51 -0000)]
It turns out that vfork was completely broken.  That was why it
wouldn't run on my little arm7tdmi/uClinux boards, since without
vfork working, nothing works on uClinux.  It took me forever to
find this, since other problems were hiding this one.  Big, huge,
sigh of relief.
 -Erik

23 years agoAdd in a silly test to check that argc, argv, and environ are
Eric Andersen [Fri, 9 Feb 2001 04:48:29 +0000 (04:48 -0000)]
Add in a silly test to check that argc, argv, and environ are
working as expected...
 -Erik

23 years agoInclude ptrace support so debugging will hopefully work.
Eric Andersen [Fri, 9 Feb 2001 04:46:32 +0000 (04:46 -0000)]
Include ptrace support so debugging will hopefully work.
 -Erik

23 years agoFix the ordering of the args to the compare function.
Manuel Novoa III [Thu, 8 Feb 2001 02:57:48 +0000 (02:57 -0000)]
Fix the ordering of the args to the compare function.

23 years ago_void_void_null_func never returned. I noticed this yesterday
Eric Andersen [Wed, 7 Feb 2001 18:07:40 +0000 (18:07 -0000)]
_void_void_null_func never returned.  I noticed this yesterday
in crt0.S and Michiel Thuys <michiel.thuys@intersil.com> noticed
the same thing in crt0pic.S.
 -Erik

23 years agoWierd. Whats _null_auth doing here?
Eric Andersen [Mon, 5 Feb 2001 20:32:28 +0000 (20:32 -0000)]
Wierd.  Whats _null_auth doing here?
 -Erik

23 years agoFix broken dependancies.
Eric Andersen [Mon, 5 Feb 2001 20:23:52 +0000 (20:23 -0000)]
Fix broken dependancies.
 -Erik

23 years agoTry enabling rpc support by default now. With a bit of luck it might
Eric Andersen [Mon, 5 Feb 2001 20:09:10 +0000 (20:09 -0000)]
Try enabling rpc support by default now.  With a bit of luck it might
even work...
 -Erik

23 years agoFix the worst of the damage so it actually compiles now (though, strictly
Eric Andersen [Mon, 5 Feb 2001 20:08:28 +0000 (20:08 -0000)]
Fix the worst of the damage so it actually compiles now (though, strictly
speaking the entire pile of rpc dung is infect damage).  Anyway, hopefully
NFS using things may now be able to work...
 -Erik

23 years agoUpdate the build system a bit.
Eric Andersen [Mon, 5 Feb 2001 03:11:51 +0000 (03:11 -0000)]
Update the build system a bit.
 -Erik

23 years agoFix up the networking includes
Eric Andersen [Mon, 5 Feb 2001 03:07:33 +0000 (03:07 -0000)]
Fix up the networking includes
 -Erik

23 years agoMake the __GLIBC__ define be conditional. Stub out gnu-versions.h
Eric Andersen [Mon, 5 Feb 2001 03:06:57 +0000 (03:06 -0000)]
Make the __GLIBC__ define be conditional.  Stub out gnu-versions.h
 -Erik

23 years agoUpdate networking includes.
Eric Andersen [Mon, 5 Feb 2001 03:05:26 +0000 (03:05 -0000)]
Update networking includes.

23 years agoBring into sync with a fairly current glibc header file.
Eric Andersen [Sat, 3 Feb 2001 00:26:28 +0000 (00:26 -0000)]
Bring into sync with a fairly current glibc header file.
 -Erik

23 years agoFix up the set of include files pulled into resolv.h
Eric Andersen [Sat, 3 Feb 2001 00:25:44 +0000 (00:25 -0000)]
Fix up the set of include files pulled into resolv.h

23 years agoI hereby commit a sin. features.h is now going to _lie_
Eric Andersen [Sat, 3 Feb 2001 00:25:14 +0000 (00:25 -0000)]
I hereby commit a sin.  features.h is now going to _lie_
and claim that this is GNU libc.  Too many pieces of code
look for GNU libc version numbers.  So uClibc is now going
to lie and claim it is GNU libc.  This makes, for example,
networking apps work much better since /usr/include/linux/socket.h
does the wrong thing otherwise.  There are lots of other examples.
 -Erik

23 years agoAdded some notes. Removed some dead code.
Manuel Novoa III [Tue, 30 Jan 2001 16:00:13 +0000 (16:00 -0000)]
Added some notes.  Removed some dead code.

23 years agoFix a couple of bugs in printf. Add floating pt output for doubles. Yeah!
Manuel Novoa III [Tue, 30 Jan 2001 11:36:12 +0000 (11:36 -0000)]
Fix a couple of bugs in printf.  Add floating pt output for doubles.  Yeah!
Modified stdio/Makefile to build printf.c according to Config values for
HAS_FLOATS and HAS_LONG_LONG.

23 years agoCommit a pointless change to test more updates to the logging script.
Eric Andersen [Tue, 30 Jan 2001 01:44:38 +0000 (01:44 -0000)]
Commit a pointless change to test more updates to the logging script.
 -Erik

23 years agoHide some unnecessary output. Check cvs logging script.
Manuel Novoa III [Tue, 30 Jan 2001 00:21:56 +0000 (00:21 -0000)]
Hide some unnecessary output.  Check cvs logging script.

23 years agoThe rules to build sysconf_$(TARGET_ARCH).c were broken when cross
David McCullough [Mon, 29 Jan 2001 15:51:44 +0000 (15:51 -0000)]
The rules to build sysconf_$(TARGET_ARCH).c were broken when cross
compiling.

23 years agouClinux 2.0 doesn't have the poll system call, just check for the
David McCullough [Mon, 29 Jan 2001 15:24:57 +0000 (15:24 -0000)]
uClinux 2.0 doesn't have the poll system call,  just check for the
definition before using it.

23 years agoptrace for m68k debugging.
David McCullough [Mon, 29 Jan 2001 15:03:09 +0000 (15:03 -0000)]
ptrace for m68k debugging.

23 years agouClibc working with 2.0.x and 2.4.x m68k uClinux kernels, the PIC
David McCullough [Mon, 29 Jan 2001 15:02:05 +0000 (15:02 -0000)]
uClibc working with 2.0.x and 2.4.x m68k uClinux kernels,  the PIC
stuff in crt0.S may not be quite right yet.

23 years agoAllow Config to override OPTIMIZATION flags.
David McCullough [Mon, 29 Jan 2001 14:58:05 +0000 (14:58 -0000)]
Allow Config to override OPTIMIZATION flags.

23 years agoDIRS was not set in this makefile and could be inherited from the
David McCullough [Mon, 29 Jan 2001 14:36:00 +0000 (14:36 -0000)]
DIRS was not set in this makefile and could be inherited from the
environment.

23 years agoReduced code size; fixed ANSI bug for day -- 5 not 05; mode days and mons const.
Manuel Novoa III [Sun, 28 Jan 2001 19:30:44 +0000 (19:30 -0000)]
Reduced code size; fixed ANSI bug for day -- 5 not 05; mode days and mons const.

23 years agoReally fixed 0-pad bug this time. ;-) Code-size reductions if sizeof(int) and
Manuel Novoa III [Sun, 28 Jan 2001 19:28:46 +0000 (19:28 -0000)]
Really fixed 0-pad bug this time.  ;-)  Code-size reductions if sizeof(int) and
sizeof(long) equal.  printf # flag now works for b (binary) specifier.

23 years agoFixed (hopefully) 0-pad bug in printf. Added asprintf function. Reworked
Manuel Novoa III [Sat, 27 Jan 2001 23:50:02 +0000 (23:50 -0000)]
Fixed (hopefully) 0-pad bug in printf.  Added asprintf function.  Reworked
the *s*printf functions to no longer use a static fake file.

23 years agoEnable auto-generation of a size-optimized sysconf function (saves .5k on i386).
Manuel Novoa III [Sat, 27 Jan 2001 18:51:26 +0000 (18:51 -0000)]
Enable auto-generation of a size-optimized sysconf function (saves .5k on i386).

23 years agoClean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.a
Manuel Novoa III [Thu, 25 Jan 2001 21:19:46 +0000 (21:19 -0000)]
Clean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.a
objects with shared uClibc; allow disabling long long support.

23 years agoDon't trash regs r0-r2, fix thanks to Michiel Thuys <michiel.thuys@intersil.com>.
Eric Andersen [Thu, 25 Jan 2001 15:36:06 +0000 (15:36 -0000)]
Don't trash regs r0-r2, fix thanks to Michiel Thuys <michiel.thuys@intersil.com>.

23 years agoThis is a silly update to test my change to the script that emails folks
Eric Andersen [Wed, 24 Jan 2001 21:36:21 +0000 (21:36 -0000)]
This is a silly update to test my change to the script that emails folks
after doing a commit.  I hope it works.
 -Erik

23 years agoThis is a silly update to the makefile to test the new script
Eric Andersen [Wed, 24 Jan 2001 21:01:46 +0000 (21:01 -0000)]
This is a silly update to the makefile to test the new script
used when doing a cvs commit.  I hope it works.
 -Erik

23 years agoFixed stderr initialization bug (mine).
Manuel Novoa III [Wed, 24 Jan 2001 20:20:12 +0000 (20:20 -0000)]
Fixed stderr initialization bug (mine).

23 years agoOops. Should be LDFLAGS, not CFLAGS twice
Eric Andersen [Tue, 23 Jan 2001 18:02:39 +0000 (18:02 -0000)]
Oops.  Should be LDFLAGS, not CFLAGS twice

23 years agoAlways use system libc, to facilitate bootstrapping new architectures.
Eric Andersen [Tue, 23 Jan 2001 17:45:29 +0000 (17:45 -0000)]
Always use system libc, to facilitate bootstrapping new architectures.
 -Erik

23 years agoAdd in NATIVE_ARCH
Eric Andersen [Sat, 20 Jan 2001 00:53:19 +0000 (00:53 -0000)]
Add in NATIVE_ARCH

23 years agoBring into line with proper sest suite behavior
Eric Andersen [Sat, 20 Jan 2001 00:46:25 +0000 (00:46 -0000)]
Bring into line with proper sest suite behavior

23 years agoReworked all test suite makefiles (man did they need it).
Eric Andersen [Sat, 20 Jan 2001 00:45:14 +0000 (00:45 -0000)]
Reworked all test suite makefiles (man did they need it).

Refactored testsuite.h so it behaves the way I want it to.  As policy now,
all test apps are _supposed_ to use testsuite.h (not all have been converted
to do this yet).  It is simple, clean, and works.
 -Erik

23 years agoHopefully fix the size/type errors when doing a shared lib.
Manuel Novoa III [Wed, 17 Jan 2001 21:44:22 +0000 (21:44 -0000)]
Hopefully fix the size/type errors when doing a shared lib.

23 years agoNote about need to match _SC_ATEXIT_MAX. Minor macro name change.
Manuel Novoa III [Wed, 17 Jan 2001 17:42:06 +0000 (17:42 -0000)]
Note about need to match _SC_ATEXIT_MAX.  Minor macro name change.

23 years agoFix static buffer used initialization for FIXED_BUFFERS > 2.
Manuel Novoa III [Wed, 17 Jan 2001 17:40:47 +0000 (17:40 -0000)]
Fix static buffer used initialization for FIXED_BUFFERS > 2.

23 years agoAdded missing _SC_2_FORT_RUN case. Fixed _SC_ATEXIT_MAX to match atexit.c.
Manuel Novoa III [Wed, 17 Jan 2001 17:39:51 +0000 (17:39 -0000)]
Added missing _SC_2_FORT_RUN case.  Fixed _SC_ATEXIT_MAX to match atexit.c.

23 years agoSet dynamic linker used to /lib/ld-linux.so.1. Changeable in Makefile.
Manuel Novoa III [Wed, 17 Jan 2001 16:19:28 +0000 (16:19 -0000)]
Set dynamic linker used to /lib/ld-linux.so.1.  Changeable in Makefile.

23 years agoIncrease BUFSIZ to 512 to avoid bug in busybox tar.
Manuel Novoa III [Wed, 17 Jan 2001 16:17:49 +0000 (16:17 -0000)]
Increase BUFSIZ to 512 to avoid bug in busybox tar.

23 years agoMinor comment update
Eric Andersen [Wed, 17 Jan 2001 11:00:30 +0000 (11:00 -0000)]
Minor comment update

23 years agoNow works on StrongArm (using crt0.S) and arm7tdmi/uClinux with
Eric Andersen [Wed, 17 Jan 2001 10:37:05 +0000 (10:37 -0000)]
Now works on StrongArm (using crt0.S) and arm7tdmi/uClinux with
the arm-pic-elf compiler (using crt0pic.S).
 -Erik

23 years agoAdded #include <wait.h> for getrusage.
Manuel Novoa III [Wed, 17 Jan 2001 04:56:47 +0000 (04:56 -0000)]
Added #include <wait.h> for getrusage.

23 years agoThis is _NOT_ an auto-generated file.
Manuel Novoa III [Wed, 17 Jan 2001 04:55:37 +0000 (04:55 -0000)]
This is _NOT_ an auto-generated file.

23 years agoAdd missing symbol for ipc and ignore commented syscall lines.
Manuel Novoa III [Wed, 17 Jan 2001 04:54:25 +0000 (04:54 -0000)]
Add missing symbol for ipc and ignore commented syscall lines.

23 years agoWork around str_syscalls.sh not having execute perms. Should fix in cvs. How?
Manuel Novoa III [Wed, 17 Jan 2001 04:51:39 +0000 (04:51 -0000)]
Work around str_syscalls.sh not having execute perms.  Should fix in cvs. How?

23 years agoThe files unified_syscall_{ARCH}.h are not auto-generated while others are.
Manuel Novoa III [Wed, 17 Jan 2001 04:49:43 +0000 (04:49 -0000)]
The files unified_syscall_{ARCH}.h are not auto-generated while others are.

23 years agoUnDOSified file and added assert when debugging.
Manuel Novoa III [Wed, 17 Jan 2001 04:47:48 +0000 (04:47 -0000)]
UnDOSified file and added assert when debugging.

23 years agoAdapted to handle shared libraries as well as static. Fixed Makefile for m68k.
Manuel Novoa III [Wed, 17 Jan 2001 04:46:51 +0000 (04:46 -0000)]
Adapted to handle shared libraries as well as static.  Fixed Makefile for m68k.

23 years ago"I will always compile before I commit."
Eric Andersen [Tue, 16 Jan 2001 21:08:36 +0000 (21:08 -0000)]
"I will always compile before I commit."
"I will always compile before I commit."
"I will always compile before I commit."
 -Erik

23 years agoUpdate the comments a wee bit.
Eric Andersen [Tue, 16 Jan 2001 19:53:56 +0000 (19:53 -0000)]
Update the comments a wee bit.

23 years agoA little update to wait* and a minor syscall cleanup.
Eric Andersen [Tue, 16 Jan 2001 19:14:23 +0000 (19:14 -0000)]
A little update to wait* and a minor syscall cleanup.

23 years agoFix arm so it actually works.
Eric Andersen [Tue, 16 Jan 2001 19:00:46 +0000 (19:00 -0000)]
Fix arm so it actually works.

23 years agoRemove an extra "/" from the crt0 path
Eric Andersen [Tue, 16 Jan 2001 18:53:27 +0000 (18:53 -0000)]
Remove an extra "/" from the crt0 path

23 years agoOops. Forgot to check these in...
Eric Andersen [Tue, 16 Jan 2001 16:44:32 +0000 (16:44 -0000)]
Oops.  Forgot to check these in...

23 years agoIgnore generated files
Eric Andersen [Tue, 16 Jan 2001 13:14:35 +0000 (13:14 -0000)]
Ignore generated files

23 years agoRemove generated files
Eric Andersen [Tue, 16 Jan 2001 13:13:42 +0000 (13:13 -0000)]
Remove generated files

23 years agoMakefile fixes
Eric Andersen [Tue, 16 Jan 2001 13:11:36 +0000 (13:11 -0000)]
Makefile fixes

23 years agoRemove generated files.
Eric Andersen [Tue, 16 Jan 2001 11:33:39 +0000 (11:33 -0000)]
Remove generated files.

23 years agoIgnore generated binaries. Add a Config usable by most stock x86 systems.
Eric Andersen [Tue, 16 Jan 2001 11:26:36 +0000 (11:26 -0000)]
Ignore generated binaries.  Add a Config usable by most stock x86 systems.

23 years agoAdd first pass shared lib support into Makefile.
Eric Andersen [Tue, 16 Jan 2001 11:25:23 +0000 (11:25 -0000)]
Add first pass shared lib support into Makefile.
This could use some refinement...

23 years agoRemove the nonexistant __sigaction
Eric Andersen [Tue, 16 Jan 2001 10:20:14 +0000 (10:20 -0000)]
Remove the nonexistant __sigaction

23 years agoAdd wrapper for old termio interface
Eric Andersen [Tue, 16 Jan 2001 10:19:28 +0000 (10:19 -0000)]
Add wrapper for old termio interface