OSDN Git Service

uclinux-h8/uclibc-ng.git
23 years agoTurns out alphasort was totally broken. This fixed one works.
Eric Andersen [Tue, 8 May 2001 18:09:01 +0000 (18:09 -0000)]
Turns out alphasort was totally broken.  This fixed one works.
 -Erik

23 years agoA patch from Jon Nelson <jnelson@securepipe.com> to make scandir
Eric Andersen [Tue, 8 May 2001 18:06:08 +0000 (18:06 -0000)]
A patch from Jon Nelson <jnelson@securepipe.com> to make scandir
sort things as it is supposed to do.

23 years agoAdd in a qsort, alphasort, scandir test from Jon Nelson, jnelson@securepipe.com
Eric Andersen [Tue, 8 May 2001 18:04:43 +0000 (18:04 -0000)]
Add in a qsort, alphasort, scandir test from Jon Nelson, jnelson@securepipe.com

23 years agoMake sure types are pulled in
Eric Andersen [Tue, 8 May 2001 17:09:45 +0000 (17:09 -0000)]
Make sure types are pulled in

23 years agoSome very minor cleanups
Eric Andersen [Tue, 8 May 2001 17:08:03 +0000 (17:08 -0000)]
Some very minor cleanups

23 years agoCode did not match the prototypes, from what I can tell it should be using
David McCullough [Tue, 8 May 2001 13:59:30 +0000 (13:59 -0000)]
Code did not match the prototypes,  from what I can tell it should be using
size_t as the header files have it already.

23 years agoQuick fix to setjmp/longjmp/sigsetjmp etc to make them work.
David McCullough [Tue, 8 May 2001 13:56:56 +0000 (13:56 -0000)]
Quick fix to setjmp/longjmp/sigsetjmp etc to make them work.
This should really be fixed to fall into line with the other archs.

23 years agoFix comment for #endif to remove warnings.
Manuel Novoa III [Tue, 8 May 2001 12:56:17 +0000 (12:56 -0000)]
Fix comment for #endif to remove warnings.

23 years agoLooks like I forgot to commit this.
Eric Andersen [Tue, 8 May 2001 00:08:00 +0000 (00:08 -0000)]
Looks like I forgot to commit this.

23 years agoUse the symbolic name, don't hard code.
Eric Andersen [Mon, 7 May 2001 22:02:05 +0000 (22:02 -0000)]
Use the symbolic name, don't hard code.

23 years agoPut in but leave commented the DL_DEBUG define
Eric Andersen [Mon, 7 May 2001 21:58:54 +0000 (21:58 -0000)]
Put in but leave commented the DL_DEBUG define

23 years agoFix fwrite return value bug reported by Matthias Kilian <kili@outback.escape.de>.
Manuel Novoa III [Mon, 7 May 2001 20:17:35 +0000 (20:17 -0000)]
Fix fwrite return value bug reported by Matthias Kilian <kili@outback.escape.de>.

23 years agoChange FILENAME_MAX to be only 255. Max filename on ext2 is 255,
Eric Andersen [Mon, 7 May 2001 18:29:33 +0000 (18:29 -0000)]
Change FILENAME_MAX to be only 255.  Max filename on ext2 is 255,
so there is no reason to allocate 4k.  Change working of execvep.c
per patch from Matthias Kilian <kili@outback.escape.de> so that there
is not a fixed 127 byte buffer.  Too easy to overflow...
 -Erik

23 years agoA couple of printf fixes from Johan Adolfsson (johan.adolfsson@axis.com).
Manuel Novoa III [Mon, 7 May 2001 16:19:17 +0000 (16:19 -0000)]
A couple of printf fixes from Johan Adolfsson (johan.adolfsson@axis.com).

23 years agoAdd in inet_ntop() and inet_pton() -- ported from glibc 2.2.3
Eric Andersen [Fri, 4 May 2001 23:39:15 +0000 (23:39 -0000)]
Add in inet_ntop() and inet_pton() -- ported from glibc 2.2.3
by Cory Visi <merlin@phear.lwz.org>

23 years agoFixup ppc to powerpc
Eric Andersen [Fri, 4 May 2001 23:09:58 +0000 (23:09 -0000)]
Fixup ppc to powerpc

23 years agoAnother update to make sure things work properly on x86 now.
Eric Andersen [Fri, 4 May 2001 23:00:34 +0000 (23:00 -0000)]
Another update to make sure things work properly on x86 now.

23 years agoThis patch allows powerpc to compile again. It also checks if we
Eric Andersen [Fri, 4 May 2001 22:29:43 +0000 (22:29 -0000)]
This patch allows powerpc to compile again.  It also checks if we
are compiling for an arch for which uClibc has an ld.so or not,
and otherwise sets things up to use the system ld.so.
 -Erik

23 years agoInitial sparc port, thanks to Mathew Bosworth <mbosworth@metaflow.com>,
Eric Andersen [Fri, 4 May 2001 17:03:47 +0000 (17:03 -0000)]
Initial sparc port, thanks to Mathew Bosworth <mbosworth@metaflow.com>,
who sent this to me a month ago and I forgot to check it in.  Oops.
Better late then never.
 -Erik

23 years agoThis is kindof neat. With this update, you can now simply set your
Eric Andersen [Fri, 4 May 2001 01:30:26 +0000 (01:30 -0000)]
This is kindof neat.  With this update, you can now simply set your
PATH and things will now simply compile vs uClibc.  Or you can add
INSTALL_DIR/usr/bin to your path and use it as a cross compiler.
Either way, it works now.
 -Erik

23 years agoClean up some issues for building on m68k.
David McCullough [Fri, 4 May 2001 00:46:29 +0000 (00:46 -0000)]
Clean up some issues for building on m68k.

23 years agoDont segfault when folks run ld-uclibc as an executable.
Eric Andersen [Thu, 3 May 2001 15:56:13 +0000 (15:56 -0000)]
Dont segfault when folks run ld-uclibc as an executable.

23 years agoDescribe what this routine is supposed to do so we can port it
Eric Andersen [Thu, 3 May 2001 06:35:12 +0000 (06:35 -0000)]
Describe what this routine is supposed to do so we can port it
to other achitectures.

23 years agoSome more minor updates. Add in some debug stuff, and
Eric Andersen [Thu, 3 May 2001 06:34:13 +0000 (06:34 -0000)]
Some more minor updates.  Add in some debug stuff, and
a way to print out addresses _early_ on in the process.

23 years agoAvoid needing to distinguis between the install dir and the build
Eric Andersen [Thu, 3 May 2001 06:20:12 +0000 (06:20 -0000)]
Avoid needing to distinguis between the install dir and the build
dir.  Use both automagically when compiling.
 -Erik

23 years agoSome more updates and explanation
Eric Andersen [Wed, 2 May 2001 22:37:41 +0000 (22:37 -0000)]
Some more updates and explanation

23 years agoAnother cleanup. Never pass addresses as an 'int'
Eric Andersen [Tue, 1 May 2001 19:06:35 +0000 (19:06 -0000)]
Another cleanup.  Never pass addresses as an 'int'
 -Erik

23 years agoI forgot to check this in.
Eric Andersen [Tue, 1 May 2001 18:42:50 +0000 (18:42 -0000)]
I forgot to check this in.
 -Erik

23 years agoYet another major rework. This time around, rework it to no longer
Eric Andersen [Tue, 1 May 2001 14:20:45 +0000 (14:20 -0000)]
Yet another major rework.  This time around, rework it to no longer
use linux kernel header files.
 -Erik

23 years agoSanitize the calling of _dl_linux_resolver so it can be read by
Eric Andersen [Mon, 30 Apr 2001 21:28:56 +0000 (21:28 -0000)]
Sanitize the calling of _dl_linux_resolver so it can be read by
mere mortals, and so it says what it means.  Ick this stuff was
nasty.
 -Erik

23 years agoFix up a comment
Eric Andersen [Sat, 28 Apr 2001 04:20:49 +0000 (04:20 -0000)]
Fix up a comment

23 years agoGet rid of the a.out header file
Eric Andersen [Fri, 27 Apr 2001 23:13:44 +0000 (23:13 -0000)]
Get rid of the a.out header file

23 years agoAdd in missing ARM support. I really need to port this whole thing
Eric Andersen [Fri, 27 Apr 2001 20:21:49 +0000 (20:21 -0000)]
Add in missing ARM support.  I really need to port this whole thing
to use a modern version of elf.h from glibc.
 -Erik

23 years agoFor m68k I forgot a needed #undef
Eric Andersen [Fri, 27 Apr 2001 20:21:06 +0000 (20:21 -0000)]
For m68k I forgot a needed #undef

23 years agoEliminate the useless _dl_interpreter_exit function
Eric Andersen [Fri, 27 Apr 2001 19:27:16 +0000 (19:27 -0000)]
Eliminate the useless _dl_interpreter_exit function

23 years agoI messed up the comment
Eric Andersen [Fri, 27 Apr 2001 19:25:42 +0000 (19:25 -0000)]
I messed up the comment

23 years agoYet another large update to ld.so. In this iteration I finally got
Eric Andersen [Fri, 27 Apr 2001 17:23:26 +0000 (17:23 -0000)]
Yet another large update to ld.so.  In this iteration I finally got
the C based syscalls working, which greatly simplifies what it takes
to get new architectures running.
 -Erik

23 years agoAs noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias for
Eric Andersen [Fri, 27 Apr 2001 15:37:06 +0000 (15:37 -0000)]
As noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias for
srand was in the wrong file, causing rand.o to be needlessly included in some
cases.

23 years agoPatch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinko
Eric Andersen [Fri, 27 Apr 2001 15:32:56 +0000 (15:32 -0000)]
Patch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinko
on my patch.

23 years agoIgnore stuff
Eric Andersen [Fri, 27 Apr 2001 07:10:16 +0000 (07:10 -0000)]
Ignore stuff

23 years agoMore trivial changes.
Eric Andersen [Fri, 27 Apr 2001 07:09:41 +0000 (07:09 -0000)]
More trivial changes.

23 years agoA few more compilation updates
Eric Andersen [Fri, 27 Apr 2001 07:05:59 +0000 (07:05 -0000)]
A few more compilation updates

23 years agoJust use 'ls -l' since ls -sh lacks sufficient granularity
Eric Andersen [Fri, 27 Apr 2001 05:46:40 +0000 (05:46 -0000)]
Just use 'ls -l' since ls -sh lacks sufficient granularity

23 years agoIgnore strerror
Eric Andersen [Fri, 27 Apr 2001 05:44:46 +0000 (05:44 -0000)]
Ignore strerror

23 years agoIgnore generated binary
Eric Andersen [Thu, 26 Apr 2001 19:15:14 +0000 (19:15 -0000)]
Ignore generated binary

23 years agooops again! I forgot to pull in the arch specific stuff, and forgot
Eric Andersen [Thu, 26 Apr 2001 16:47:34 +0000 (16:47 -0000)]
oops again!  I forgot to pull in the arch specific stuff, and forgot
to update those makefiles.
 -Erik

23 years agoDon't hard-code the major number
Eric Andersen [Thu, 26 Apr 2001 16:29:45 +0000 (16:29 -0000)]
Don't hard-code the major number

23 years agoOk, this should finish things up
Eric Andersen [Thu, 26 Apr 2001 16:21:29 +0000 (16:21 -0000)]
Ok, this should finish things up
 -Erik

23 years agoMissed these
Eric Andersen [Thu, 26 Apr 2001 16:15:29 +0000 (16:15 -0000)]
Missed these

23 years agoBe more careful about not hard coding names.
Eric Andersen [Thu, 26 Apr 2001 16:12:47 +0000 (16:12 -0000)]
Be more careful about not hard coding names.

23 years agoKeep major number in sync with the toplevel makefile
Eric Andersen [Thu, 26 Apr 2001 16:05:36 +0000 (16:05 -0000)]
Keep major number in sync with the toplevel makefile

23 years agoOops. I forgot to check this in last night, so if anybody built
Eric Andersen [Thu, 26 Apr 2001 16:03:17 +0000 (16:03 -0000)]
Oops.   I forgot to check this in last night, so if anybody built
uClibc during the last 18 hours it would have failed.  Sorry about
that...
 -Erik

23 years agoSome minor makefile fixups
Eric Andersen [Thu, 26 Apr 2001 16:00:56 +0000 (16:00 -0000)]
Some minor makefile fixups

23 years agoFix up default .so number. This should avoid conflicts with libc5
Eric Andersen [Wed, 25 Apr 2001 23:42:36 +0000 (23:42 -0000)]
Fix up default .so number.  This should avoid conflicts with libc5
libraries...

23 years agoRevert my ill-advised change to force the shared lib loader to always
Eric Andersen [Wed, 25 Apr 2001 23:41:53 +0000 (23:41 -0000)]
Revert my ill-advised change to force the shared lib loader to always
be linked.  Just make libc.so link vs the shared lib loader and everything
works fine.  Duh.  Thanks to Michael Shmulevich <michaels@jungo.com> for
clueing me in.
 -Erik

23 years agoBe really sneaky and use GNU ld special stuff so that whenever folks
Eric Andersen [Wed, 25 Apr 2001 23:36:24 +0000 (23:36 -0000)]
Be really sneaky and use GNU ld special stuff so that whenever folks
use the unsafe gets, they will get a warning from the linker.  muahahaha.
This method will soon be applied to fork() w/o an mmu etc...
 -Erik

23 years agoUpdate ignore target
Eric Andersen [Wed, 25 Apr 2001 23:30:01 +0000 (23:30 -0000)]
Update ignore target

23 years agoMove libdl and udate build method a bit
Eric Andersen [Wed, 25 Apr 2001 23:29:12 +0000 (23:29 -0000)]
Move libdl and udate build method a bit
 -Erik

23 years agoAs pointed out by Michiel Thuys <michiel.thuys@intersil.com>, this was
Eric Andersen [Wed, 25 Apr 2001 16:17:39 +0000 (16:17 -0000)]
As pointed out by Michiel Thuys <michiel.thuys@intersil.com>, this was
checking sizeof which was pure bloat and in many cases wrong.
 -Erik

23 years agoBe more strict with the malloc implementation. Return NULL
Eric Andersen [Wed, 25 Apr 2001 16:09:48 +0000 (16:09 -0000)]
Be more strict with the malloc implementation.  Return NULL
when folks do a malloc(0) using malloc-simple.
 -Erik

23 years agoBe more strict with the glibc style malloc implementation. Return NULL
Eric Andersen [Wed, 25 Apr 2001 16:07:47 +0000 (16:07 -0000)]
Be more strict with the glibc style malloc implementation.  Return NULL
when folks do a malloc(0) using malloc-930716.

23 years agoMake sure 'make install' creates needed dirs.
Eric Andersen [Tue, 24 Apr 2001 20:42:34 +0000 (20:42 -0000)]
Make sure 'make install' creates needed dirs.

23 years agoDisable an ugly bug-workaround for ancient versions of gcc.
Eric Andersen [Tue, 24 Apr 2001 20:41:48 +0000 (20:41 -0000)]
Disable an ugly bug-workaround for ancient versions of gcc.
 -Erik

23 years agoAvoid a chicken-and-the-egg problem. Use $(LD) to compile the
Eric Andersen [Tue, 24 Apr 2001 20:40:53 +0000 (20:40 -0000)]
Avoid a chicken-and-the-egg problem.  Use $(LD) to compile the
libdl library, not $(CC).
 -Erik

23 years agoSilence a warning
Eric Andersen [Tue, 24 Apr 2001 20:39:51 +0000 (20:39 -0000)]
Silence a warning

23 years agoThese are needed for arm ld.so support (not at all working yet...)
Eric Andersen [Tue, 24 Apr 2001 04:14:30 +0000 (04:14 -0000)]
These are needed for arm ld.so support (not at all working yet...)
 -Erik

23 years agoMake sure that we list the shared lib loader as a required lib
Eric Andersen [Mon, 23 Apr 2001 21:52:35 +0000 (21:52 -0000)]
Make sure that we list the shared lib loader as a required lib
by explicitly linking against it.  That way 'ldd' tells us what
we need to know.
 -Erik

23 years agoFix up the main makefile. Autobuild ld.so and install it
Eric Andersen [Mon, 23 Apr 2001 21:33:52 +0000 (21:33 -0000)]
Fix up the main makefile.  Autobuild ld.so and install it
when appropriate,

23 years agoDefine where the shared lib loader now lives...
Eric Andersen [Mon, 23 Apr 2001 21:23:19 +0000 (21:23 -0000)]
Define where the shared lib loader now lives...
 -Erik

23 years agoFix up compiler name
Eric Andersen [Mon, 23 Apr 2001 21:21:49 +0000 (21:21 -0000)]
Fix up compiler name

23 years agoAlways use __NR_<name>, not SYS_<name>
Eric Andersen [Mon, 23 Apr 2001 21:20:42 +0000 (21:20 -0000)]
Always use __NR_<name>, not SYS_<name>
 -Erik

23 years agoRevert my syscall changes. The _syscall# macros are not PIC
Eric Andersen [Mon, 23 Apr 2001 21:18:14 +0000 (21:18 -0000)]
Revert my syscall changes.  The _syscall# macros are not PIC
friendly and don't work.  Back to nasty asm...

With this change in place, it now works for me on x86.
 -Erik

23 years agoOk, seems this _must_ be compiled as PIC code.
Eric Andersen [Mon, 23 Apr 2001 20:36:01 +0000 (20:36 -0000)]
Ok, seems this _must_ be compiled as PIC code.
 -Erik

23 years agoIgnore generated stuff. Add a 'make install' target that works.
Eric Andersen [Mon, 23 Apr 2001 20:11:40 +0000 (20:11 -0000)]
Ignore generated stuff.  Add a 'make install' target that works.
 -Erik

23 years agoInitial checkin for ld.so. This is a combination of effort from Manuel Novoa
Eric Andersen [Mon, 23 Apr 2001 17:43:54 +0000 (17:43 -0000)]
Initial checkin for ld.so.  This is a combination of effort from Manuel Novoa
III and me.  I've been working on stripping out arch dependant stuff and
replacing it with generic stuff whenever possible.
 -Erik

23 years agoOnly compile in daemon() if the target has an MMU.
Eric Andersen [Mon, 23 Apr 2001 14:56:15 +0000 (14:56 -0000)]
Only compile in daemon() if the target has an MMU.
 -Erik

23 years agoUse the real getnetbyname(), not the stub in resolv.c
Eric Andersen [Fri, 20 Apr 2001 19:14:22 +0000 (19:14 -0000)]
Use the real getnetbyname(), not the stub in resolv.c

23 years agoStub out fpathconf() -- FIXME
Eric Andersen [Fri, 20 Apr 2001 18:50:22 +0000 (18:50 -0000)]
Stub out fpathconf() -- FIXME
 -Erik

23 years agoAdd in a trivial getlogin implementation
Eric Andersen [Fri, 20 Apr 2001 18:48:34 +0000 (18:48 -0000)]
Add in a trivial getlogin implementation

23 years agoUpdate the ignore targets
Eric Andersen [Fri, 20 Apr 2001 17:51:43 +0000 (17:51 -0000)]
Update the ignore targets

23 years agoOops. I forgot the header file
Eric Andersen [Fri, 20 Apr 2001 17:49:19 +0000 (17:49 -0000)]
Oops.  I forgot the header file
 -Erik

23 years agoAdd missing header file for daemon.c, add missing functions into unistd.h.
Eric Andersen [Fri, 20 Apr 2001 17:48:24 +0000 (17:48 -0000)]
Add missing header file for daemon.c, add missing functions into unistd.h.
I still need to implement getlogin.c fpathconf.c, but they are required
for IEEE Std. 1003.13-1998 POSIX_FILE_SYSTEM conformance and we don't
have them yet.  But we will very very soon.  :-)
 -Erik

23 years agoNobody should be using the SYS_ syscall names. Use the __NR_<foo>
Eric Andersen [Fri, 20 Apr 2001 17:26:51 +0000 (17:26 -0000)]
Nobody should be using the SYS_ syscall names.  Use the __NR_<foo>
names instead.
 -Erik

23 years agogetnetbyname.o, res_init.o and res_query.o were missing from the Makefile,
Eric Andersen [Fri, 20 Apr 2001 16:47:10 +0000 (16:47 -0000)]
getnetbyname.o, res_init.o and res_query.o were missing from the Makefile,
patch thanks to John Hall <John.Hall@optionexist.co.uk>

23 years agoUpdate the gcc wrapper. Changes described in the notes at the top of the file.
Manuel Novoa III [Fri, 20 Apr 2001 07:53:33 +0000 (07:53 -0000)]
Update the gcc wrapper.  Changes described in the notes at the top of the file.

23 years agoChange shared lib name. Update install_new target in Makefile.
Manuel Novoa III [Fri, 20 Apr 2001 07:52:06 +0000 (07:52 -0000)]
Change shared lib name.  Update install_new target in Makefile.

23 years agoRemove the old crypt implementation
Eric Andersen [Thu, 19 Apr 2001 20:55:41 +0000 (20:55 -0000)]
Remove the old crypt implementation

23 years agoAdd in a libcrypt implementation. About 8k.
Eric Andersen [Thu, 19 Apr 2001 20:53:49 +0000 (20:53 -0000)]
Add in a libcrypt implementation.  About 8k.
 -Erik

23 years agoBring sh and i386 longjmp implementations into sync
Eric Andersen [Thu, 19 Apr 2001 15:42:16 +0000 (15:42 -0000)]
Bring sh and i386 longjmp implementations into sync

23 years agoAdd missing alias siglongjmp = longjmp;
Eric Andersen [Thu, 19 Apr 2001 15:31:06 +0000 (15:31 -0000)]
Add missing alias siglongjmp = longjmp;
 -Erik

23 years agoRemove all the __THROW macros
Eric Andersen [Thu, 19 Apr 2001 14:42:48 +0000 (14:42 -0000)]
Remove all the __THROW macros

23 years agoPosix 1003.13 POSIX_MULTI_PROCESS specifies that execle() should
Eric Andersen [Wed, 18 Apr 2001 22:00:20 +0000 (22:00 -0000)]
Posix 1003.13 POSIX_MULTI_PROCESS specifies that execle() should
be there, so I just wrote it up.
 -Erik

23 years agoAdd missing time()
Eric Andersen [Wed, 18 Apr 2001 21:12:09 +0000 (21:12 -0000)]
Add missing time()

23 years agoUpdate temp file handling and use a single function to do all
Eric Andersen [Wed, 18 Apr 2001 20:13:13 +0000 (20:13 -0000)]
Update temp file handling and use a single function to do all
the heavy lifting (most of the heavy lifting stolen from glibc,
but reduced a bit).

23 years agoFix dynamic linking bug. If you need -ldl, you must explicitly add the
Manuel Novoa III [Sat, 7 Apr 2001 16:44:38 +0000 (16:44 -0000)]
Fix dynamic linking bug.  If you need -ldl, you must explicitly add the
library (path and version!!!) to the args instead.  For example, add
/lib/libdl.so.1 if DYNAMIC_LINKER is /lib/ld-linux.so.1.

23 years agoFix up more leftovers resultant from fixing _LIBC
Eric Andersen [Fri, 6 Apr 2001 23:34:52 +0000 (23:34 -0000)]
Fix up more leftovers resultant from fixing _LIBC

23 years agoFix include/errno.h to not use kernel header, and instead use bits/errno.h.
Eric Andersen [Fri, 6 Apr 2001 20:28:45 +0000 (20:28 -0000)]
Fix include/errno.h to not use kernel header, and instead use bits/errno.h.
This required we use _LIBC instead of __LIBC__ to be consistent with glibc.
This had some sideffects in sys/syscalls.h.  While fixing things, I made
everything use __set_errno() for (eventual) thread support.
 -Erik

23 years agoUpdate the ignore file to match
Eric Andersen [Fri, 6 Apr 2001 20:19:10 +0000 (20:19 -0000)]
Update the ignore file to match

23 years agoMake a naming change to be consistent with other cross compiling tools.
Eric Andersen [Fri, 6 Apr 2001 20:17:32 +0000 (20:17 -0000)]
Make a naming change to be consistent with other cross compiling tools.
Set up a default lib dir off the root of the uClibc compile dir.  This
really needs more thought, but is good enough for now I think.

23 years agoGet the full set of module creating syscalls in place.
Eric Andersen [Thu, 5 Apr 2001 07:34:20 +0000 (07:34 -0000)]
Get the full set of module creating syscalls in place.
 -Erik