OSDN Git Service

uclinux-h8/uClibc.git
20 years agoAdd a new *scanf implementation, includeing the *wscanf functions.
Manuel Novoa III [Fri, 1 Aug 2003 20:08:59 +0000 (20:08 -0000)]
Add a new *scanf implementation, includeing the *wscanf functions.
  Should be standards compliant and with several optional features,
  including support for hexadecimal float notation, locale awareness,
  glibc-like locale-specific digit grouping with the `'' flag, and
  positional arg support.  I tested it pretty well (finding several
  bugs in glibc's scanf in the process), but it is brand new so be
  aware.

The *wprintf functions now support floating point output.  Also, a
  couple of bugs were squashed.  Finally, %a/%A conversions are
  now implemented.

Implement the glibc xlocale interface for thread-specific locale
  support.  Also add the various *_l(args, locale_t loc_arg) funcs.

  NOTE!!!  setlocale() is NOT threadsafe!  NOTE!!!

The strto{floating point} conversion functions are now locale aware.
  The also now support hexadecimal floating point notation.

Add the wcsto{floating point} conversion functions.

Fix a bug in mktime() related to dst.  Note that unlike glibc's mktime,
  uClibc's version always normalizes the struct tm before attempting
  to determine the correct dst setting if tm_isdst == -1 on entry.

Add a stub version of the libintl functions.  (untested)

Fixed a known memory leak in setlocale() related to the collation data.

Add lots of new config options (which Erik agreed to sort out :-),
  including finally exposing some of the stripped down stdio configs.
  Be careful with those though, as they haven't been tested in a
  long time.

(temporary) GOTCHAs...

The ctype functions are currently incorrect for 8-bit locales.  They
  will be fixed shortly.

The ctype functions are now table-based, resulting in larger staticly
  linked binaries.  I'll be adding an option to use the old approach
  in the stub locale configuration.

21 years agoRemove the arch specific shm.h and use the fixed up common
Eric Andersen [Fri, 1 Aug 2003 09:13:43 +0000 (09:13 -0000)]
Remove the arch specific shm.h and use the fixed up common
one which now uses the kernel structs
 -Erik

21 years agoDoing an search and replace on CFLAGS can prove dangerous. We don't
Eric Andersen [Mon, 21 Jul 2003 20:28:58 +0000 (20:28 -0000)]
Doing an search and replace on CFLAGS can prove dangerous.  We don't
do -O0 by default anyways, so leave this disabled for now.

21 years agoBug fix from Peter Kjellerstedt <peter.kjellerstedt@axis.com>. vfscanf was
Manuel Novoa III [Thu, 17 Jul 2003 16:07:48 +0000 (16:07 -0000)]
Bug fix from  Peter Kjellerstedt <peter.kjellerstedt@axis.com>.  vfscanf was
not setting the FILE bufread member to flag the end of the buffer.
Also, do not set bufgetc member if getc macro support is disabled.

21 years agoPatch from Peter Kjellerstedt to not modify include/bits/sysnum.h
Eric Andersen [Tue, 15 Jul 2003 07:46:09 +0000 (07:46 -0000)]
Patch from Peter Kjellerstedt to not modify include/bits/sysnum.h
if it does not need to be updated.

21 years agoPatch from Peter Kjellerstedt to make it simpler for arches to specify
Eric Andersen [Tue, 15 Jul 2003 07:44:34 +0000 (07:44 -0000)]
Patch from Peter Kjellerstedt to make it simpler for arches to specify
either -fPIC or -fpic

21 years agoFix a silly cut-n-paste error
Eric Andersen [Tue, 15 Jul 2003 07:00:50 +0000 (07:00 -0000)]
Fix a silly cut-n-paste error

21 years agoYikes! This was doing another lock instead of unlocking the stream.
Manuel Novoa III [Mon, 14 Jul 2003 21:16:54 +0000 (21:16 -0000)]
Yikes!  This was doing another lock instead of unlocking the stream.

21 years agoAs noted by Felix Radensky back on 16 Mar:
Eric Andersen [Thu, 3 Jul 2003 10:40:18 +0000 (10:40 -0000)]
As noted by Felix Radensky back on 16 Mar:

    I've tried several times to compile uClibc with soft-float
    (both gcc-3.2.2 toolchain and wrapper), but applications
    compiled with uClibc always failed with "Invalid instruction".
    So I ended up disabling floating point at all and this works well.
    I also has no problem with glibc from Monta Vista, which is
    compiled with soft-float. My processor is PowerPC 405GP.

    Maybe the problem is in FP() macro definition in
    libc/sysdeps/linux/powerpc/setjmp.S and
    libc/sysdeps/linux/powerpc/__longjmp.S

    #ifdef __UCLIBC_HAS_FLOATS__
    #define FP(x...) x
    #else
    #define FP(x...)
    #endif

    which should be defined as

    if defined __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__
    #define FP(x...) x
    #else
    #define FP(x...)
    #endif

21 years agoOnly exec child apps if they are elf type ET_EXEC
Eric Andersen [Wed, 2 Jul 2003 17:04:08 +0000 (17:04 -0000)]
Only exec child apps if they are elf type ET_EXEC

21 years agoFix source code URL
Eric Andersen [Tue, 1 Jul 2003 17:11:13 +0000 (17:11 -0000)]
Fix source code URL

21 years agooops. This is 0.9.20, not .30
Eric Andersen [Tue, 1 Jul 2003 01:44:53 +0000 (01:44 -0000)]
oops.  This is 0.9.20, not .30

21 years agoMore updates
Eric Andersen [Tue, 1 Jul 2003 00:49:22 +0000 (00:49 -0000)]
More updates

21 years agoUpdate note re binary compat
Eric Andersen [Tue, 1 Jul 2003 00:44:11 +0000 (00:44 -0000)]
Update note re binary compat

21 years agoUpdate for release
Eric Andersen [Mon, 30 Jun 2003 21:51:15 +0000 (21:51 -0000)]
Update for release

21 years agoYield to yet another glibc-ism and add __progname
Eric Andersen [Mon, 30 Jun 2003 21:47:29 +0000 (21:47 -0000)]
Yield to yet another glibc-ism and add __progname

21 years agoUpdate for completed items
Eric Andersen [Mon, 30 Jun 2003 21:05:01 +0000 (21:05 -0000)]
Update for completed items

21 years agoFixup symlinks to libthread_db
Eric Andersen [Mon, 30 Jun 2003 18:27:34 +0000 (18:27 -0000)]
Fixup symlinks to libthread_db

21 years agoPer suggestion from Stuart Hughes, allow uClibc to re-install
Eric Andersen [Mon, 30 Jun 2003 18:22:43 +0000 (18:22 -0000)]
Per suggestion from Stuart Hughes, allow uClibc to re-install
headers on a system where they have previously been installed.

21 years agoPatch from Pavel Roskin to fixup toplevel help text
Eric Andersen [Mon, 30 Jun 2003 18:14:36 +0000 (18:14 -0000)]
Patch from Pavel Roskin to fixup toplevel help text

21 years agoFix a couple of typos
Eric Andersen [Fri, 27 Jun 2003 20:26:18 +0000 (20:26 -0000)]
Fix a couple of typos

21 years agoret could have been used uninitialized in one case
Eric Andersen [Fri, 27 Jun 2003 19:35:17 +0000 (19:35 -0000)]
ret could have been used uninitialized in one case

21 years agoAdd a test which shows off the broken spots in our dlopen implementation
Eric Andersen [Fri, 27 Jun 2003 11:55:20 +0000 (11:55 -0000)]
Add a test which shows off the broken spots in our dlopen implementation

21 years agooops
Eric Andersen [Fri, 27 Jun 2003 11:51:42 +0000 (11:51 -0000)]
oops

21 years agoRun dlopened ctors and dtors in the correct order
Eric Andersen [Fri, 27 Jun 2003 11:45:12 +0000 (11:45 -0000)]
Run dlopened ctors and dtors in the correct order

21 years agoRevenge of the Typo
Eric Andersen [Fri, 27 Jun 2003 11:16:24 +0000 (11:16 -0000)]
Revenge of the Typo

21 years agowhitespace and debug updates
Eric Andersen [Fri, 27 Jun 2003 11:03:37 +0000 (11:03 -0000)]
whitespace and debug updates

21 years agoYet more cleanup for the reentrant pwd/grp functions so they
Eric Andersen [Fri, 27 Jun 2003 10:43:43 +0000 (10:43 -0000)]
Yet more cleanup for the reentrant pwd/grp functions so they
should now actually be doing the right thing

21 years agoFixup errno handling
Eric Andersen [Fri, 27 Jun 2003 10:19:29 +0000 (10:19 -0000)]
Fixup errno handling
 -Erik

21 years agoAdd config option to enable 'struct tm' timezone extension fields
Eric Andersen [Fri, 27 Jun 2003 09:12:38 +0000 (09:12 -0000)]
Add config option to enable 'struct tm' timezone extension fields

21 years agoDo not let isatty mess up errno
Eric Andersen [Fri, 27 Jun 2003 08:57:23 +0000 (08:57 -0000)]
Do not let isatty mess up errno

21 years agoCleanup a couple of ugly bits
Eric Andersen [Fri, 27 Jun 2003 08:38:15 +0000 (08:38 -0000)]
Cleanup a couple of ugly bits

21 years agoImplement mmap64 for arm
Eric Andersen [Fri, 27 Jun 2003 08:37:55 +0000 (08:37 -0000)]
Implement mmap64 for arm

21 years agoadd mmap64 for i386
Eric Andersen [Fri, 27 Jun 2003 08:23:23 +0000 (08:23 -0000)]
add mmap64 for i386

21 years agooops. Fix the name so it is "mmap64", not "__mmap64"
Eric Andersen [Fri, 27 Jun 2003 08:22:45 +0000 (08:22 -0000)]
oops.  Fix the name so it is "mmap64", not "__mmap64"

21 years agoActually, some arches do support _syscall6, so implement a generic version
Eric Andersen [Fri, 27 Jun 2003 08:05:40 +0000 (08:05 -0000)]
Actually, some arches do support _syscall6, so implement a generic version
for them...
 -Erik

21 years agoMention that the common mmap64 is a stub and must be overridden
Eric Andersen [Fri, 27 Jun 2003 07:49:25 +0000 (07:49 -0000)]
Mention that the common mmap64 is a stub and must be overridden
on a per arch basis using platform specific code

21 years agoAdd missing madvise syscall
Eric Andersen [Fri, 27 Jun 2003 07:36:43 +0000 (07:36 -0000)]
Add missing madvise syscall

21 years agoPer a patch from Rob McMullen, add getprotoent_r, getprotobyname_r,
Eric Andersen [Fri, 27 Jun 2003 07:31:45 +0000 (07:31 -0000)]
Per a patch from Rob McMullen, add getprotoent_r, getprotobyname_r,
and getprotobynumber_r

21 years agoAdd in ceilf() and floorf() since XFree86 wants them...
Eric Andersen [Fri, 27 Jun 2003 05:50:09 +0000 (05:50 -0000)]
Add in ceilf() and floorf() since XFree86 wants them...

21 years agoSeveral more cleanups
Eric Andersen [Tue, 24 Jun 2003 08:55:19 +0000 (08:55 -0000)]
Several more cleanups

21 years agoFix indenting for real this time.
Eric Andersen [Tue, 24 Jun 2003 08:23:19 +0000 (08:23 -0000)]
Fix indenting for real this time.

21 years agoMake indenting be consistant
Eric Andersen [Tue, 24 Jun 2003 08:19:35 +0000 (08:19 -0000)]
Make indenting be consistant

21 years agoRename the very badly named 'UCLIBC_GCC' to 'UCLIBC_ENV' and
Eric Andersen [Tue, 24 Jun 2003 07:40:05 +0000 (07:40 -0000)]
Rename the very badly named 'UCLIBC_GCC' to 'UCLIBC_ENV' and
implement 'UCLIBC_CC', which does this:

$ UCLIBC_CC=gcc-2.95 /usr/i386-linux-uclibc/bin/i386-uclibc-gcc --version
2.95.4

$ UCLIBC_CC=gcc-3.3 /usr/i386-linux-uclibc/bin/i386-uclibc-gcc --version
gcc-3.3 (GCC) 3.3 (Debian)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

21 years agoChange 'undefined behavior' of fflush() on readonly or reading streams
Manuel Novoa III [Tue, 24 Jun 2003 04:07:40 +0000 (04:07 -0000)]
Change 'undefined behavior' of fflush() on readonly or reading streams
to match that of current glibc; i.e. don't do anything and return success.
Apparently, php calls fflush() on a file opened as readonly before trying
to read.  Eventually I'll add some config options to flag this and several
other instances of nonportable code.

21 years agoMake login actually write out utmp and wtmp junk (even
Eric Andersen [Tue, 24 Jun 2003 03:14:19 +0000 (03:14 -0000)]
Make login actually write out utmp and wtmp junk (even
though such things are completly unreliable crap)

21 years agoBe extra careful to memset the correct size, not the size of some random
Eric Andersen [Wed, 18 Jun 2003 22:42:23 +0000 (22:42 -0000)]
Be extra careful to memset the correct size, not the size of some random
pointer.  Fix printing of '0x0x' in ldd output.  Simplify discrimination of
libname, so doing things like dlopen("./libfoo.so",RTLD_NOW) with a leading
"./" in the path will work as expected.
 -Erik

21 years agoOptionally support the struct tm extension fields.
Manuel Novoa III [Tue, 17 Jun 2003 19:19:39 +0000 (19:19 -0000)]
Optionally support the struct tm extension fields.
Add a few misc functions mentioned in time.h.
Revert davidm's change regarding using a define for the "/etc/TZ" path,
as this is eventually meant to be a configurable extension and not
unconditionally supported.

21 years agoPatch from Ronald Wahl fixing an IPV6 specific problem
Eric Andersen [Tue, 17 Jun 2003 19:09:50 +0000 (19:09 -0000)]
Patch from Ronald Wahl fixing an IPV6 specific problem
with getaddrinfo().

21 years agoWhen compiling with -O0, linuxthreads does not compile. So add
Eric Andersen [Tue, 17 Jun 2003 19:03:39 +0000 (19:03 -0000)]
When compiling with -O0, linuxthreads does not compile.  So add
a local override changing -O0 to -O1 only for that directory.

21 years agoColdfire patch from Bernardo Innocenti
Eric Andersen [Tue, 17 Jun 2003 18:39:54 +0000 (18:39 -0000)]
Coldfire patch from Bernardo Innocenti

21 years agoOk... pasting in DUMPn() is unnecessary and technically incorrect.
Manuel Novoa III [Tue, 17 Jun 2003 18:31:23 +0000 (18:31 -0000)]
Ok... pasting in DUMPn() is unnecessary and technically incorrect.

21 years agoAs noted by Peter S. Mazinger
Eric Andersen [Mon, 16 Jun 2003 19:07:14 +0000 (19:07 -0000)]
As noted by Peter S. Mazinger

    After removal of stropts.h none of the files references bits/stropts.h, so
    it can be removed.

    Peter

21 years agoFor some strange reason, davidm put this file in the wrong spot.
Eric Andersen [Mon, 16 Jun 2003 18:08:01 +0000 (18:08 -0000)]
For some strange reason, davidm put this file in the wrong spot.
So put it where it is supposed to be.
 -Erik

21 years agoFix a segfault when used on a library w/o an INTERP program header.
Eric Andersen [Mon, 16 Jun 2003 07:34:25 +0000 (07:34 -0000)]
Fix a segfault when used on a library w/o an INTERP program header.

21 years agoAdd memmem().
Manuel Novoa III [Mon, 16 Jun 2003 04:50:09 +0000 (04:50 -0000)]
Add memmem().

21 years agoDon't segfault when given things other than a regular file.
Eric Andersen [Sun, 15 Jun 2003 06:13:36 +0000 (06:13 -0000)]
Don't segfault when given things other than a regular file.
 -Erik

21 years agoImplement syscall() for powerpc. Fixup syscall code so
Eric Andersen [Sun, 15 Jun 2003 01:08:45 +0000 (01:08 -0000)]
Implement syscall() for powerpc.  Fixup syscall code so
it compiles properly with gcc 3.3.
 -Erik

21 years agoComment out the rpl_malloc workaround. It was a good idea, but it violates
Eric Andersen [Sat, 14 Jun 2003 04:25:57 +0000 (04:25 -0000)]
Comment out the rpl_malloc workaround.  It was a good idea, but it violates
namespace guarantees and conflicts with other programs that have used the
AC_FUNC_MALLOC autoconf macro properly.

21 years agoBump version number in preparation for a release
Eric Andersen [Sat, 14 Jun 2003 01:39:39 +0000 (01:39 -0000)]
Bump version number in preparation for a release

21 years agoThe mere presence of stropts.h causes many configure scripts to erroneously
Eric Andersen [Thu, 12 Jun 2003 22:31:38 +0000 (22:31 -0000)]
The mere presence of stropts.h causes many configure scripts to erroneously
believe that uClibc supports STREAMS.  Well, we don't.  So I am hereby removing
this header file, since it was empty anyways.  Applications that depend on
stropts.h being present, but do not depend on its contents, are broken anyways.
 -Erik

21 years agoAs suggested by Marshall M. Midden at brecis, use -mno-split-addresses
Eric Andersen [Thu, 12 Jun 2003 22:10:40 +0000 (22:10 -0000)]
As suggested by Marshall M. Midden at brecis, use -mno-split-addresses
instead for mips, which should be a bit faster and will be safer too.

21 years agoSet the default thread stack size to 16k for mmu-less systems.
Eric Andersen [Thu, 12 Jun 2003 21:44:56 +0000 (21:44 -0000)]
Set the default thread stack size to 16k for mmu-less systems.
 -Erik

21 years agoFix mips so it compiles with gcc 3.3
Eric Andersen [Thu, 12 Jun 2003 21:39:10 +0000 (21:39 -0000)]
Fix mips so it compiles with gcc 3.3

21 years agoMarshall M. Midden at brecis.com writes:
Eric Andersen [Wed, 11 Jun 2003 17:12:06 +0000 (17:12 -0000)]
Marshall M. Midden at brecis.com writes:
    The gnu ld and binutils for mips has a bug with relocation.

    It is possible for a relocation table to be created that is not able to be loaded correctly.
    We found this with the intersil wireless driver port.

    To enable a correctly created mips relocation table (either a .o, or ld -r) it is necessary
    to turn off one of the instruction re-scheduling passes.

    Specifically, on mips-gcc -fno-schedule-insns2 is needed.

    This is an FYI.  The bug has been reported to the appropriate mailing lists.

This patch is an effort to avoid this problem on mips.
 -Erik

21 years agoFix arm syscall implementation so it does not blow chunks with gcc 3.3
Eric Andersen [Wed, 11 Jun 2003 01:45:27 +0000 (01:45 -0000)]
Fix arm syscall implementation so it does not blow chunks with gcc 3.3
 -Erik

21 years agoPatch from Peter S. Mazinger to make the get-needed-libgcc-objects
Eric Andersen [Thu, 5 Jun 2003 21:25:53 +0000 (21:25 -0000)]
Patch from Peter S. Mazinger to make the get-needed-libgcc-objects
script work with newer binutils versions.

21 years agoWe do not provide getfsent and friends, so remove this header
Eric Andersen [Thu, 5 Jun 2003 06:32:59 +0000 (06:32 -0000)]
We do not provide getfsent and friends, so remove this header
file, to prevent stupid configure scripts from getting confused.

21 years agoKill the runtime fallback to fork and make it be compile time
Eric Andersen [Tue, 3 Jun 2003 19:13:14 +0000 (19:13 -0000)]
Kill the runtime fallback to fork and make it be compile time

21 years agoFix broken
Eric Andersen [Tue, 3 Jun 2003 17:59:37 +0000 (17:59 -0000)]
Fix broken

21 years agoPatch from Peter S. Mazinger to fix some leftover problems
Eric Andersen [Mon, 2 Jun 2003 17:51:32 +0000 (17:51 -0000)]
Patch from Peter S. Mazinger to fix some leftover problems
from converting "PIC" to "__PIC__"

21 years agoClone still had a few little PIC problems....
Eric Andersen [Fri, 30 May 2003 05:51:40 +0000 (05:51 -0000)]
Clone still had a few little PIC problems....

21 years agoIn a number of places we erroneously used tests such as '#ifdef PIC' when we
Eric Andersen [Fri, 30 May 2003 04:47:47 +0000 (04:47 -0000)]
In a number of places we erroneously used tests such as '#ifdef PIC' when we
should instead have been testing for '#ifdef __PIC__'.  This resulted in
NON-PIC code getting mixed into the shared library.  Oops!!!
 -Erik

21 years agoEnable ADD_LIBGCC_FUNCTIONS by default on arm
Eric Andersen [Fri, 30 May 2003 04:40:22 +0000 (04:40 -0000)]
Enable ADD_LIBGCC_FUNCTIONS by default on arm

21 years agoEviscerate stropts.h so configure scripts won't try to use STREAMS
Eric Andersen [Thu, 29 May 2003 22:55:14 +0000 (22:55 -0000)]
Eviscerate stropts.h so configure scripts won't try to use STREAMS
garbage.  uClibc does not support STREAMS in any way whatsoever.
 -Erik

21 years agoAllow gcc to move/update by detecting where needed files are should
Eric Andersen [Wed, 28 May 2003 07:47:51 +0000 (07:47 -0000)]
Allow gcc to move/update by detecting where needed files are should
they move/disappear from the expected location.
 -Erik

21 years agoAccomodate building under cygwin
Eric Andersen [Wed, 28 May 2003 07:15:46 +0000 (07:15 -0000)]
Accomodate building under cygwin

21 years agogrr. It's a void *, not a char *.
Eric Andersen [Tue, 27 May 2003 20:13:13 +0000 (20:13 -0000)]
grr.  It's a void *, not a char *.

21 years agoChange 'N' to '__size' to avoid conflicts with common #define of N
Eric Andersen [Tue, 27 May 2003 20:11:16 +0000 (20:11 -0000)]
Change 'N' to '__size' to avoid conflicts with common #define of N

21 years agoSorry. Changed this while fixing the last bug and forgot to change it
Manuel Novoa III [Fri, 23 May 2003 15:04:43 +0000 (15:04 -0000)]
Sorry.  Changed this while fixing the last bug and forgot to change it
back.  Unfortunately, none of my test cases caught it.

21 years agoCope with autoconf's broken AC_FUNC_MALLOC macro, which redefines malloc as
Eric Andersen [Fri, 23 May 2003 06:42:53 +0000 (06:42 -0000)]
Cope with autoconf's broken AC_FUNC_MALLOC macro, which redefines malloc as
rpl_malloc if it does not detect glibc style
returning-a-valid-pointer-for-malloc(0) behavior.  This wrapper calls malloc()
as usual, but if N is zero, we allocate and return a 1-byte block instead....
sigh...

 -Erik

21 years agoFix (hopefully) scanf behavior for nul bytes in the stream when processing
Manuel Novoa III [Thu, 15 May 2003 21:32:31 +0000 (21:32 -0000)]
Fix (hopefully) scanf behavior for nul bytes in the stream when processing
%c, %s, and %[ specifiers.  Note that scanf is undergoing rewrite so I
didn't bother optimizing this.  I did run all my regression tests though.
Set EOF correctly for fmemopen on readonly streams.  I really need to
check what glibc behavior is for the various open modes though.

21 years agoAdd in a default file for m68k.
David McCullough [Wed, 14 May 2003 13:35:27 +0000 (13:35 -0000)]
Add in a default file for m68k.

21 years agoSleep was returning the wrong value because:
David McCullough [Wed, 14 May 2003 05:10:58 +0000 (05:10 -0000)]
Sleep was returning the wrong value because:

* nanosleep returns the remaining time,  not the time slept

* nanosleep only fills out the remaining time if it returns -1 (ie., the
  sleep was interrupted)

Fix from Paul Dale <pauli@snapgear.com>

21 years ago(__libc_open): Fix wacky indentation.
Miles Bader [Thu, 8 May 2003 02:36:12 +0000 (02:36 -0000)]
(__libc_open): Fix wacky indentation.

21 years agosetjmp was trashing r12 which is bad and can cause apps to crash if they are
David McCullough [Thu, 1 May 2003 05:28:43 +0000 (05:28 -0000)]
setjmp was trashing r12 which is bad and can cause apps to crash if they are
using r12. r12 is supposed to be preserved across C function calls.  r0-r7
are trashable :-)

21 years agoSome small fixups for the h8 support and add the h8s platform support.
David McCullough [Tue, 29 Apr 2003 14:46:31 +0000 (14:46 -0000)]
Some small fixups for the h8 support and add the h8s platform support.

21 years agoFixup __libc_open to use varargs and match the prototype.
David McCullough [Tue, 29 Apr 2003 14:41:48 +0000 (14:41 -0000)]
Fixup __libc_open to use varargs and match the prototype.

On the H8 varargs are rather unusual and if you declare a function with
varargs,  it had better use them or it won't work.

21 years agouClibc 0.9.19 has a bug in globfree(). If the previous call to
Eric Andersen [Tue, 29 Apr 2003 07:25:59 +0000 (07:25 -0000)]
uClibc 0.9.19 has a bug in globfree(). If the previous call to
glob(...,pglob) used the GLOB_DOOFFS flag to reserve the first
pglob->gl_offs slots of pglob->gl_pathv, globfree(pglob) would attempt
to free the objects pointed to by those slots. If those objects were not
on the heap, the system would crash.

The attached patch fixes this.

Norm

21 years agoComment on glibc's MALLOC_CHECK_ support.
Eric Andersen [Fri, 25 Apr 2003 09:09:56 +0000 (09:09 -0000)]
Comment on glibc's MALLOC_CHECK_ support.

21 years agoThierry De Corte notices that when UCLIBC_HAS_FLOAT is disabled, we must also
Eric Andersen [Wed, 23 Apr 2003 20:59:01 +0000 (20:59 -0000)]
Thierry De Corte notices that when UCLIBC_HAS_FLOAT is disabled, we must also
disable drand48, drand48_r, erand48, and erand48_r since they use floats.

21 years agoFix SIGTRAP handling on arm. The defination of struct ucontext,
Eric Andersen [Mon, 21 Apr 2003 19:07:26 +0000 (19:07 -0000)]
Fix SIGTRAP handling on arm.  The defination of struct ucontext,
which was copied from glibc, is wrong.  So fix it.
 -Erik

21 years agoPatch from Marshall M. Midden:
Eric Andersen [Sat, 19 Apr 2003 23:35:01 +0000 (23:35 -0000)]
Patch from Marshall M. Midden:

It turns out that uClibc's syslog.c does not close sockets when
doing retries and when it exits due to errors.  This patch fixes
it.

21 years agoKonrad Taro Eisele noticed the sparc struct stat was broken.
Eric Andersen [Sat, 19 Apr 2003 23:25:34 +0000 (23:25 -0000)]
Konrad Taro Eisele noticed the sparc struct stat was broken.
Fix it.

21 years agoPatch from Liam Girdwood to fix mips profiling when using
Eric Andersen [Wed, 16 Apr 2003 00:59:00 +0000 (00:59 -0000)]
Patch from Liam Girdwood to fix mips profiling when using
newer gcc versions.

21 years ago(free_to_heap): Unlock the heap before returning in the
Miles Bader [Wed, 2 Apr 2003 06:40:43 +0000 (06:40 -0000)]
(free_to_heap): Unlock the heap before returning in the
__UCLIBC_UCLINUX_BROKEN_MUNMAP__ case.  Fix from YYang1@Winbond.com.tw.

21 years agoAvoid errors with buggy preprocessors
Eric Andersen [Mon, 31 Mar 2003 16:27:18 +0000 (16:27 -0000)]
Avoid errors with buggy preprocessors

21 years agoOops. Don't call strip twice
Eric Andersen [Thu, 13 Mar 2003 19:54:36 +0000 (19:54 -0000)]
Oops.  Don't call strip twice

21 years agoresync with glibc 2.3
Eric Andersen [Thu, 13 Mar 2003 19:43:38 +0000 (19:43 -0000)]
resync with glibc 2.3

21 years agosjhill needs to buy donuts for everyone
Eric Andersen [Tue, 11 Mar 2003 20:27:02 +0000 (20:27 -0000)]
sjhill needs to buy donuts for everyone