OSDN Git Service
Eric Andersen [Tue, 6 Mar 2001 00:13:05 +0000 (00:13 -0000)]
I just grabbed the bits dir from glibc 2.1.3 on a sparc box
to facilitate the sparc porting work being done by Mathew Bosworth.
-Erik
Eric Andersen [Mon, 5 Mar 2001 21:19:18 +0000 (21:19 -0000)]
stat and mknod cleanup, take two. Put all the needed junk into syscalls.c
for clarity.
-Erik
Eric Andersen [Mon, 5 Mar 2001 20:09:12 +0000 (20:09 -0000)]
Fix up some long standing iterative symbol usage problem, noticed today by
Michael Shmulevich, which was caused by the grafting in of GNU libc header
files.
-Erik
Manuel Novoa III [Mon, 5 Mar 2001 18:44:47 +0000 (18:44 -0000)]
Patch from Michael Shmulevich (michaels@jungo.com) -- functions were not
declared type function.
Eric Andersen [Mon, 5 Mar 2001 06:18:33 +0000 (06:18 -0000)]
Patch from Jean-Yves Avenard to move the getopt globals to their
own file, since at least on SH, weak variables with initial values
(.data stuff) were not working. Moving these to their own file
seems to be a good way to handle it.
Eric Andersen [Mon, 5 Mar 2001 06:01:21 +0000 (06:01 -0000)]
Use LDFLAGS, don't always include -nostdlib...
Manuel Novoa III [Sun, 4 Mar 2001 19:13:07 +0000 (19:13 -0000)]
Fixed vfork on i386. Reduced size of __uClibc_syscall.
Manuel Novoa III [Sat, 3 Mar 2001 20:37:32 +0000 (20:37 -0000)]
Fix a couple of bugs: check mode is legal; open file and check success before
calling vfork.
Eric Andersen [Sat, 3 Mar 2001 16:51:17 +0000 (16:51 -0000)]
strtok_r.c was not being compiled in, so fix that.
Manuel Novoa III [Thu, 1 Mar 2001 22:58:36 +0000 (22:58 -0000)]
Stupid buglet fix. Don't trash FILE bufstart if buffer allocation fails.
Manuel Novoa III [Thu, 1 Mar 2001 19:49:41 +0000 (19:49 -0000)]
Added __strtok_r function. Change strtok to a wrapper around __strtok_r and
add a weak alias of __strtok_r for strtok_r since optional. Also reduced
code size.
Manuel Novoa III [Wed, 28 Feb 2001 16:38:26 +0000 (16:38 -0000)]
Fix a buglet regarding floating point output for ?nprintf functions.
Eric Andersen [Wed, 28 Feb 2001 04:01:29 +0000 (04:01 -0000)]
This evening I've been investigating why linking with the shared uClibc library
was not working when booting busybox as init, even though it workes when run on
my desktop system. I made boot floppy with just /dev, a few /etc entries,
busybox dynamically linked vs uClibc, and /lib with shared uClibc in it. And
just as several people have reported, it didn't work.
So I ran 'ldd /bin/true' and it showed 'true' is linked with the shared library
loader. But 'ldd ./busybox' showed it was only linked with uClibc. Doh! Of
course it couldn't work!
This patch fixes the gcc wrapper so when we link with the shared uClibc
library, we also always link with the correct shared lib loader. With this
patch in place, I have now sucessfully booted busybox linked vs the shared
uClibc library. And it works great!
-Erik
Manuel Novoa III [Tue, 27 Feb 2001 21:33:59 +0000 (21:33 -0000)]
stdio mostly rewritten... passes lots of tests now.
printf now supports long double, plus some bug fixes.
David McCullough [Tue, 27 Feb 2001 01:04:45 +0000 (01:04 -0000)]
For some reason the fancy attribute tags were not working on m68k so
I followed environ example which uses asm and it seemed to fix the problem
nicely.
It should be ok on i386. Could some check it please :-)
David McCullough [Mon, 26 Feb 2001 04:00:30 +0000 (04:00 -0000)]
g++ compatible math defines.
David McCullough [Mon, 26 Feb 2001 03:57:47 +0000 (03:57 -0000)]
New crt0.S with all init done in 'C' code.
Added in support for C++ contructor/destructor tables.
David McCullough [Mon, 26 Feb 2001 03:55:17 +0000 (03:55 -0000)]
Reduced the size of sigsets to the minimal needed. Apart from the size,
it has the added advantage of giving the C++ build of m68k-elf-gcc a clean
bill of health.
David McCullough [Mon, 26 Feb 2001 03:49:32 +0000 (03:49 -0000)]
Added res_init and res_query
David McCullough [Mon, 26 Feb 2001 03:48:52 +0000 (03:48 -0000)]
Added /etc/hosts processing (parses everytime like a real one :-)
Added support for multiple nameserver lines, still supports multiple
servers on a on single line.
Added "domain" entry. domain and search are mutually exclusive and
override each other (the last one wins, see the resolver(5) man page).
Added dummy "getnetbyname" that returns fail.
Added "res_init" and "res_query".
David McCullough [Mon, 26 Feb 2001 02:54:33 +0000 (02:54 -0000)]
Added "psignal" function
Eric Andersen [Fri, 23 Feb 2001 09:19:24 +0000 (09:19 -0000)]
Update arm for the new way of entering main. BTW, I can now run things on arm
as a shared library, using the glibc shared lib loader. :-)
I've updated the pic case but havn't tested it yet.
-Erik
Eric Andersen [Fri, 23 Feb 2001 08:51:23 +0000 (08:51 -0000)]
Forgot to increment i
Eric Andersen [Fri, 23 Feb 2001 08:19:41 +0000 (08:19 -0000)]
Sigh. Turn debugging back off.
Eric Andersen [Fri, 23 Feb 2001 08:18:48 +0000 (08:18 -0000)]
This is a touch cleaner, avoids using the comma operator.
Eric Andersen [Fri, 23 Feb 2001 08:07:12 +0000 (08:07 -0000)]
This actually fixes things I believe.
Eric Andersen [Fri, 23 Feb 2001 01:41:13 +0000 (01:41 -0000)]
Let system dependant things override common things.
Eric Andersen [Fri, 23 Feb 2001 01:08:27 +0000 (01:08 -0000)]
Fix two bugs. First, gethostbyname was doing dns queries when given an IP
address. Secondly, when doing reverse dns lookups, it was appending the
domain, even if a domain was already attached.
-Erik
Eric Andersen [Thu, 22 Feb 2001 18:02:24 +0000 (18:02 -0000)]
div and ldiv are required for ISO 9899
-Erik
Eric Andersen [Thu, 22 Feb 2001 05:29:50 +0000 (05:29 -0000)]
Patch from Jean-Yves Avenard to add missing siglongjmp entry and
fix a bug in setjmp for SH
Eric Andersen [Wed, 21 Feb 2001 19:11:26 +0000 (19:11 -0000)]
Update to "malloc" so it will work on CPUs not supporting non-aligned words.
malloc still only works for little-endian CPUs... Patch by Jean-Yves Avenard
Eric Andersen [Wed, 21 Feb 2001 18:58:30 +0000 (18:58 -0000)]
Add an SH port done by Jean-Yves Avenard of Hewlett-Packard - Embedded
and Personal Systems. Thanks!
-Erik
Manuel Novoa III [Mon, 19 Feb 2001 20:33:38 +0000 (20:33 -0000)]
Fix a couple of bugs in _fopen and fclose, plus change a few internals.
Manuel Novoa III [Mon, 19 Feb 2001 11:21:34 +0000 (11:21 -0000)]
Have isatty call ioctl directly rather than tcgetattr; especially since any
program using stdio will call isatty during initialization.
Manuel Novoa III [Mon, 19 Feb 2001 10:33:52 +0000 (10:33 -0000)]
Make sure errno is 0 before we call main (may have been set while initializing).
Manuel Novoa III [Mon, 19 Feb 2001 10:28:38 +0000 (10:28 -0000)]
Remove redundant old isatty.c since newer termios supplies one.
Eric Andersen [Mon, 19 Feb 2001 03:02:34 +0000 (03:02 -0000)]
I just changed "net" to "inet" to better follow the directory
structure of libc5 and glibc. Fix the makefile accordingly.
Folks will want to 'rm -rf net' to remove the old "net" directory.
-Erik
Manuel Novoa III [Mon, 19 Feb 2001 00:28:09 +0000 (00:28 -0000)]
Lots of stdio cleanups. Several bug fixes, addition of a number of functions
to supplement macros in stdio.h, change perror to use stdio package instead
of "write". Also add back in weak stdio initialization for static lib case.
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.
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.
Manuel Novoa III [Mon, 19 Feb 2001 00:14:42 +0000 (00:14 -0000)]
Fix problems with test wrapper and test compiler selection.
Manuel Novoa III [Thu, 15 Feb 2001 16:46:18 +0000 (16:46 -0000)]
Fix LIBC rule. (cut-and-paste user bug...)
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...
Manuel Novoa III [Thu, 15 Feb 2001 16:27:53 +0000 (16:27 -0000)]
I guess we always need timespec...
Manuel Novoa III [Thu, 15 Feb 2001 16:20:49 +0000 (16:20 -0000)]
Add bdflush.
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.
Manuel Novoa III [Thu, 15 Feb 2001 16:18:12 +0000 (16:18 -0000)]
Fix stdin/stdout/stderr for now.
Manuel Novoa III [Thu, 15 Feb 2001 16:17:15 +0000 (16:17 -0000)]
Add tsearch functions from libc-5.3.12.
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.
Manuel Novoa III [Thu, 15 Feb 2001 16:15:45 +0000 (16:15 -0000)]
Add missing header file.
Manuel Novoa III [Thu, 15 Feb 2001 16:15:30 +0000 (16:15 -0000)]
Handle definition of struct timespec.
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.
Manuel Novoa III [Thu, 15 Feb 2001 16:12:47 +0000 (16:12 -0000)]
Fix broken prototype.
Manuel Novoa III [Thu, 15 Feb 2001 16:12:24 +0000 (16:12 -0000)]
Define __USE_GNU as glibc does.
Manuel Novoa III [Thu, 15 Feb 2001 16:11:21 +0000 (16:11 -0000)]
Hack DYNAMIC_LINKER setting for now.
Eric Andersen [Tue, 13 Feb 2001 00:33:30 +0000 (00:33 -0000)]
Use MAP_FAILED.
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>
Manuel Novoa III [Mon, 12 Feb 2001 00:59:18 +0000 (00:59 -0000)]
Clean up lots of warnings.
Eric Andersen [Fri, 9 Feb 2001 23:06:54 +0000 (23:06 -0000)]
Use __environ instead of the GNU extension environ.
-Erik
Eric Andersen [Fri, 9 Feb 2001 23:04:57 +0000 (23:04 -0000)]
Remove now irrelevant comment.
Manuel Novoa III [Fri, 9 Feb 2001 15:43:40 +0000 (15:43 -0000)]
Add #define to handle new ptrace support.
Eric Andersen [Fri, 9 Feb 2001 08:55:14 +0000 (08:55 -0000)]
Add ffs func declaration
-Erik
Eric Andersen [Fri, 9 Feb 2001 08:54:29 +0000 (08:54 -0000)]
Add missing ffs, used by rpc crap.
-Erik
Eric Andersen [Fri, 9 Feb 2001 08:53:51 +0000 (08:53 -0000)]
Silence warnings -- add func declaration.
-Erik
Eric Andersen [Fri, 9 Feb 2001 08:12:14 +0000 (08:12 -0000)]
Try to automagically pick the correct dynamic linker.
-Erik
Eric Andersen [Fri, 9 Feb 2001 06:43:59 +0000 (06:43 -0000)]
Implement getdtablesize(), which is used by the rpc crap.
-Erik
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
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
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
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
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
Eric Andersen [Fri, 9 Feb 2001 04:46:32 +0000 (04:46 -0000)]
Include ptrace support so debugging will hopefully work.
-Erik
Manuel Novoa III [Thu, 8 Feb 2001 02:57:48 +0000 (02:57 -0000)]
Fix the ordering of the args to the compare function.
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
Eric Andersen [Mon, 5 Feb 2001 20:32:28 +0000 (20:32 -0000)]
Wierd. Whats _null_auth doing here?
-Erik
Eric Andersen [Mon, 5 Feb 2001 20:23:52 +0000 (20:23 -0000)]
Fix broken dependancies.
-Erik
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
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
Eric Andersen [Mon, 5 Feb 2001 03:11:51 +0000 (03:11 -0000)]
Update the build system a bit.
-Erik
Eric Andersen [Mon, 5 Feb 2001 03:07:33 +0000 (03:07 -0000)]
Fix up the networking includes
-Erik
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
Eric Andersen [Mon, 5 Feb 2001 03:05:26 +0000 (03:05 -0000)]
Update networking includes.
Eric Andersen [Sat, 3 Feb 2001 00:26:28 +0000 (00:26 -0000)]
Bring into sync with a fairly current glibc header file.
-Erik
Eric Andersen [Sat, 3 Feb 2001 00:25:44 +0000 (00:25 -0000)]
Fix up the set of include files pulled into resolv.h
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
Manuel Novoa III [Tue, 30 Jan 2001 16:00:13 +0000 (16:00 -0000)]
Added some notes. Removed some dead code.
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.
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
Manuel Novoa III [Tue, 30 Jan 2001 00:21:56 +0000 (00:21 -0000)]
Hide some unnecessary output. Check cvs logging script.
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.
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.
David McCullough [Mon, 29 Jan 2001 15:03:09 +0000 (15:03 -0000)]
ptrace for m68k debugging.
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.
David McCullough [Mon, 29 Jan 2001 14:58:05 +0000 (14:58 -0000)]
Allow Config to override OPTIMIZATION flags.
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.
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.
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.
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.
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).
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.