OSDN Git Service
Eric Andersen [Mon, 19 Mar 2001 21:37:09 +0000 (21:37 -0000)]
Sync with glibc i386 bits.
Manuel Novoa III [Mon, 19 Mar 2001 21:33:48 +0000 (21:33 -0000)]
Put weak symbols where they can find what they are aliasing. Clean up strcspn.c
Eric Andersen [Mon, 19 Mar 2001 20:23:01 +0000 (20:23 -0000)]
Add a sneaky backwards compat hack from Michael Shmulevich
Eric Andersen [Mon, 19 Mar 2001 20:13:39 +0000 (20:13 -0000)]
Sync i386 up with _all_ the glibc 2.1.3 include/bits headers,
since we will end up needing a few more of them anyways, and
all the other arches have the full set anyways.
-Erik
Eric Andersen [Mon, 19 Mar 2001 20:07:59 +0000 (20:07 -0000)]
With the Official Declaration of coff being dead, we can
forget about wrapper functions and just use weak symbols.
-Erik
Manuel Novoa III [Mon, 19 Mar 2001 17:49:28 +0000 (17:49 -0000)]
Small change from Vladimir.
Manuel Novoa III [Mon, 19 Mar 2001 17:45:44 +0000 (17:45 -0000)]
Since Erik apparently wants def/undef vs def 1/0...
Eric Andersen [Mon, 19 Mar 2001 06:29:14 +0000 (06:29 -0000)]
Move yet more stuff into the uClibc_config.h file
Eric Andersen [Mon, 19 Mar 2001 06:24:20 +0000 (06:24 -0000)]
Fix up breakage resulting from flipping the sense of some defines. Change from
defining things to "0" in the disabled case to outright undefining them, lest
code that does an "#ifdef FOO" get inadvertantly triggered. Remove now
unneeded lines from Rules.mak which makes the command line smaller and avoids
redundancy (since this stuff is now pulled in via features.h).
-Erik
Manuel Novoa III [Sun, 18 Mar 2001 22:25:43 +0000 (22:25 -0000)]
Test for Config features using features.h.
Manuel Novoa III [Sun, 18 Mar 2001 22:23:51 +0000 (22:23 -0000)]
Part of the shared lib build rework.
Manuel Novoa III [Sun, 18 Mar 2001 22:23:22 +0000 (22:23 -0000)]
Added Vladimir's ctype locale support. Make Config setting visible in features.h. Reworked build of shared lib as suggested by Magick <magick@dds.nl>.
Manuel Novoa III [Sun, 18 Mar 2001 22:19:32 +0000 (22:19 -0000)]
Part of the ctype locale support.
Manuel Novoa III [Sat, 17 Mar 2001 19:05:51 +0000 (19:05 -0000)]
Fix fdopen mode-compatibility test and errno setting.
Eric Andersen [Fri, 16 Mar 2001 03:20:36 +0000 (03:20 -0000)]
Add in a setjmp test from David Schleef
Eric Andersen [Fri, 16 Mar 2001 01:06:29 +0000 (01:06 -0000)]
Add powerpc port done by David Schleef <ds@schleef.org>
Eric Andersen [Thu, 15 Mar 2001 19:58:26 +0000 (19:58 -0000)]
Wow. I'm all full of stupid mistakes today. Fix strxfrm
-Erik
Eric Andersen [Thu, 15 Mar 2001 19:53:59 +0000 (19:53 -0000)]
Hah. It turned out that index and rindex were _already_
there and already implemented as wrapper funcs. And so
just the header files were wrong. Anyway, axe the old
index and rindex.
-Erik
Eric Andersen [Thu, 15 Mar 2001 19:35:37 +0000 (19:35 -0000)]
Add strxfrm and strcoll
Eric Andersen [Thu, 15 Mar 2001 19:32:28 +0000 (19:32 -0000)]
Fix the header file for index, rindex and similar
Manuel Novoa III [Thu, 15 Mar 2001 19:31:09 +0000 (19:31 -0000)]
Fix bug with %c... takes care of bug reported with busybox ps.
Eric Andersen [Thu, 15 Mar 2001 19:30:26 +0000 (19:30 -0000)]
Add index and rindex
Manuel Novoa III [Tue, 13 Mar 2001 16:04:09 +0000 (16:04 -0000)]
New version of scanf, with floating point support.
Manuel Novoa III [Tue, 13 Mar 2001 16:03:26 +0000 (16:03 -0000)]
Delete a stray character that hopped into the file...
Eric Andersen [Tue, 13 Mar 2001 06:37:21 +0000 (06:37 -0000)]
Delete wordexp. There isn't much point in having this since
so few apps use it, and it is just a stub anyways. Better
to just skip it.
Manuel Novoa III [Mon, 12 Mar 2001 10:09:06 +0000 (10:09 -0000)]
Hack long long support into scanf. For now, will fail for unsigned long longs
that are greater that long long max, but works well enough to support interface
in busybox. Just a temporary measure until scanf.c is rewritten.
Manuel Novoa III [Mon, 12 Mar 2001 10:06:18 +0000 (10:06 -0000)]
Define h_errno to be errno for now.
Manuel Novoa III [Mon, 12 Mar 2001 10:04:34 +0000 (10:04 -0000)]
Add some missing network functionality; grabbed from libc-5.3.12.
Eric Andersen [Thu, 8 Mar 2001 16:57:01 +0000 (16:57 -0000)]
Hmm. Seems I left wordexp off. oops.
Eric Andersen [Thu, 8 Mar 2001 16:49:37 +0000 (16:49 -0000)]
Add in wordexp support (mostly stubbed out for now) since the busybox
shell, lash, is about to start using wordexp.
-Erik
Eric Andersen [Thu, 8 Mar 2001 16:47:29 +0000 (16:47 -0000)]
Make alloca work using the compiler builtin
-Erik
Eric Andersen [Thu, 8 Mar 2001 16:45:24 +0000 (16:45 -0000)]
Reworked the password stuff to be reentrant. Group stuff is
still needing to be reworked.
-Erik
Eric Andersen [Thu, 8 Mar 2001 07:33:05 +0000 (07:33 -0000)]
Add strnlen
Manuel Novoa III [Wed, 7 Mar 2001 09:47:29 +0000 (09:47 -0000)]
Fix a bad assertion test.
Manuel Novoa III [Tue, 6 Mar 2001 15:27:46 +0000 (15:27 -0000)]
Move fork to common/syscalls (with NO_MMU check). Add Makefile to sparc so
make clean works.
Manuel Novoa III [Tue, 6 Mar 2001 15:25:28 +0000 (15:25 -0000)]
Fix unified syscall stuff for changed ?stat. Move fork to syscalls.c wrapped
with a check for NO_MMU of course.
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