OSDN Git Service
Eric Andersen [Fri, 20 Apr 2001 18:48:34 +0000 (18:48 -0000)]
Add in a trivial getlogin implementation
Eric Andersen [Fri, 20 Apr 2001 17:51:43 +0000 (17:51 -0000)]
Update the ignore targets
Eric Andersen [Fri, 20 Apr 2001 17:49:19 +0000 (17:49 -0000)]
Oops. I forgot the header file
-Erik
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
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
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>
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.
Manuel Novoa III [Fri, 20 Apr 2001 07:52:06 +0000 (07:52 -0000)]
Change shared lib name. Update install_new target in Makefile.
Eric Andersen [Thu, 19 Apr 2001 20:55:41 +0000 (20:55 -0000)]
Remove the old crypt implementation
Eric Andersen [Thu, 19 Apr 2001 20:53:49 +0000 (20:53 -0000)]
Add in a libcrypt implementation. About 8k.
-Erik
Eric Andersen [Thu, 19 Apr 2001 15:42:16 +0000 (15:42 -0000)]
Bring sh and i386 longjmp implementations into sync
Eric Andersen [Thu, 19 Apr 2001 15:31:06 +0000 (15:31 -0000)]
Add missing alias siglongjmp = longjmp;
-Erik
Eric Andersen [Thu, 19 Apr 2001 14:42:48 +0000 (14:42 -0000)]
Remove all the __THROW macros
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
Eric Andersen [Wed, 18 Apr 2001 21:12:09 +0000 (21:12 -0000)]
Add missing time()
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).
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.
Eric Andersen [Fri, 6 Apr 2001 23:34:52 +0000 (23:34 -0000)]
Fix up more leftovers resultant from fixing _LIBC
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
Eric Andersen [Fri, 6 Apr 2001 20:19:10 +0000 (20:19 -0000)]
Update the ignore file to match
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.
Eric Andersen [Thu, 5 Apr 2001 07:34:20 +0000 (07:34 -0000)]
Get the full set of module creating syscalls in place.
-Erik
Eric Andersen [Thu, 5 Apr 2001 03:11:57 +0000 (03:11 -0000)]
Compile the compiler last
Eric Andersen [Thu, 5 Apr 2001 03:09:58 +0000 (03:09 -0000)]
Add in delete_module
-Erik
Manuel Novoa III [Wed, 4 Apr 2001 05:16:48 +0000 (05:16 -0000)]
Add missing function sigfillset.
Eric Andersen [Tue, 3 Apr 2001 23:58:52 +0000 (23:58 -0000)]
Accomodate mmuless systems.
Eric Andersen [Tue, 3 Apr 2001 23:55:10 +0000 (23:55 -0000)]
Add in daemon.c, now used by busybox.
-Erik
Eric Andersen [Tue, 3 Apr 2001 23:21:32 +0000 (23:21 -0000)]
Fix a bug noted by David Beamonte <dbeamonte@intelnet.es>, so that
we define "__linux__" in uClibc_config.h, not "__linux_".
Eric Andersen [Fri, 30 Mar 2001 20:25:02 +0000 (20:25 -0000)]
It seems ARM 2.4.x kernels do not have iopl. Also add missing
bits/sem.h for ARM so everything now compiles and runs.
-Erik
David Schleef [Thu, 29 Mar 2001 23:58:49 +0000 (23:58 -0000)]
Reimplemented "make install" target. I left the old one as-is,
under the assumtion that someone will get confused if it suddenly
changes.
Manuel Novoa III [Fri, 23 Mar 2001 02:32:39 +0000 (02:32 -0000)]
Bug fix from Peter Kjellerstedt <Peter.Kjellerstedt@axis.com>.
Manuel Novoa III [Thu, 22 Mar 2001 15:00:46 +0000 (15:00 -0000)]
Add some missing headers needed by ld.so-1.9.11.
Eric Andersen [Thu, 22 Mar 2001 06:14:18 +0000 (06:14 -0000)]
Add in random(), make rand use that under the hood. Fix the
include file so folks know random is now there.
Eric Andersen [Wed, 21 Mar 2001 18:13:36 +0000 (18:13 -0000)]
Stub out localeconv. Please look over this to check it is correct....
I started trying to read the glibc code -- but that code is far too
messy to be read. So I just wrote a silly C app against glibc, set
the locale to POSIX, then called localeconv(). I wrote this version
of localeconv.c so it returns the same stuff.
-Erik
Eric Andersen [Tue, 20 Mar 2001 21:54:01 +0000 (21:54 -0000)]
Fix from Jon Nelson for error in timezone
-Erik
Manuel Novoa III [Tue, 20 Mar 2001 16:04:27 +0000 (16:04 -0000)]
Add missed dependency. TODO: Should build gen_sysconf when cross-compiling.
Manuel Novoa III [Tue, 20 Mar 2001 15:32:43 +0000 (15:32 -0000)]
Fix longjmp on i386. Also adds siglongjmp.
Eric Andersen [Tue, 20 Mar 2001 14:19:38 +0000 (14:19 -0000)]
Put regex back in
David McCullough [Tue, 20 Mar 2001 10:52:50 +0000 (10:52 -0000)]
Add an empty DIRS target incase it gets inherited from the env.
David McCullough [Tue, 20 Mar 2001 10:51:57 +0000 (10:51 -0000)]
Do not remove const and extension when compiling with the elf tools.
Eric Andersen [Tue, 20 Mar 2001 03:21:56 +0000 (03:21 -0000)]
Fix some strange formatting, so the compile looks prettier.
Eric Andersen [Tue, 20 Mar 2001 03:20:50 +0000 (03:20 -0000)]
I think this fixes the dependancy problems. Manuel, can you
double check that this is what you intended?
-Erik
Eric Andersen [Mon, 19 Mar 2001 23:34:12 +0000 (23:34 -0000)]
Add in the timezone global from time.h, from a patch by
Jon Nelson <jnelson@boa.org>
Eric Andersen [Mon, 19 Mar 2001 23:32:00 +0000 (23:32 -0000)]
Seems most folks don't have /sbin in their path
Eric Andersen [Mon, 19 Mar 2001 23:22:41 +0000 (23:22 -0000)]
Add in alphasort (working fine) and scandir (just a stub for now).
-Erik
Eric Andersen [Mon, 19 Mar 2001 22:49:36 +0000 (22:49 -0000)]
Move the dirent stuff. I suppose it is system dependant, but then
it really should be grouped together too. And it needed to be grouped
more then it needed to be in sysdeps/linux/common
Eric Andersen [Mon, 19 Mar 2001 22:40:50 +0000 (22:40 -0000)]
Debug should be off by default
Eric Andersen [Mon, 19 Mar 2001 21:51:29 +0000 (21:51 -0000)]
Add in the sysvipc patch from Michael Shmulevich
Eric Andersen [Mon, 19 Mar 2001 21:43:10 +0000 (21:43 -0000)]
Add sigintr, from a patch by Michael Shmulevich
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 :-)