OSDN Git Service

uclinux-h8/uClibc.git
22 years agoTotally rework the math library, this time based on the MacOs X
Eric Andersen [Thu, 22 Nov 2001 14:04:29 +0000 (14:04 -0000)]
Totally rework the math library, this time based on the MacOs X
math library (which is itself based on the math lib from FreeBSD).
 -Erik

22 years agoSeems we were lacking an acos() implementation
Eric Andersen [Thu, 22 Nov 2001 00:15:59 +0000 (00:15 -0000)]
Seems we were lacking an acos() implementation

22 years agoAdjust naming for __FORCE_GLIBC__ to __FORCE_GLIBC and add
Eric Andersen [Wed, 21 Nov 2001 14:56:43 +0000 (14:56 -0000)]
Adjust naming for __FORCE_GLIBC__ to __FORCE_GLIBC and add
support for __FORCE_NOGLIBC per Brian Stafford
<brian.stafford@office-logic.com>

22 years agoFix support for sysv style signals
Eric Andersen [Wed, 21 Nov 2001 14:53:18 +0000 (14:53 -0000)]
Fix support for sysv style signals

22 years agoFinish off the getc putc adjustment
Eric Andersen [Wed, 21 Nov 2001 14:49:42 +0000 (14:49 -0000)]
Finish off the getc putc adjustment

22 years agoAdd acct syscall. Fix sigsuspend which was totally broken (it
Eric Andersen [Wed, 21 Nov 2001 14:48:09 +0000 (14:48 -0000)]
Add acct syscall.  Fix sigsuspend which was totally broken (it
needed a wrapper)

22 years agoCleanup abort() so it behaves itself a bit better
Eric Andersen [Wed, 21 Nov 2001 14:46:32 +0000 (14:46 -0000)]
Cleanup abort() so it behaves itself a bit better

22 years agoAdd missing ctermid. Also add putc and getc (in case they get
Eric Andersen [Wed, 21 Nov 2001 14:44:43 +0000 (14:44 -0000)]
Add missing ctermid.  Also add putc and getc (in case they get
undefined which is a valid thing to do)
 -Erik

22 years agopathconf can't use fpathconf or it will block opening FIFOs
Eric Andersen [Wed, 21 Nov 2001 14:41:38 +0000 (14:41 -0000)]
pathconf can't use fpathconf or it will block opening FIFOs

22 years agoOops. Lets try that again.
Eric Andersen [Tue, 20 Nov 2001 19:40:42 +0000 (19:40 -0000)]
Oops.  Lets try that again.

22 years agoA few symbols needed for testing
Eric Andersen [Tue, 20 Nov 2001 19:33:08 +0000 (19:33 -0000)]
A few symbols needed for testing

22 years agoFix up pathconf and friend so that test suits can work
Eric Andersen [Tue, 20 Nov 2001 19:30:33 +0000 (19:30 -0000)]
Fix up pathconf and friend so that test suits can work

22 years agoCan't use CLK_TCK in here since /usr/include/bits/time.h now
Eric Andersen [Tue, 20 Nov 2001 19:29:03 +0000 (19:29 -0000)]
Can't use CLK_TCK in here since /usr/include/bits/time.h now
defines that as __sysconf(_SC_CLK_TCK) causing infinite recursion.
 -Erik

22 years agoBe more careful able not shadowing with var names
Eric Andersen [Tue, 20 Nov 2001 00:13:30 +0000 (00:13 -0000)]
Be more careful able not shadowing with var names

22 years agoNotes on Build-Depends
David Schleef [Mon, 19 Nov 2001 23:50:27 +0000 (23:50 -0000)]
Notes on Build-Depends

22 years agoFix build-depends to use kernel-headers-2.4. Should satisfy more
David Schleef [Mon, 19 Nov 2001 23:48:08 +0000 (23:48 -0000)]
Fix build-depends to use kernel-headers-2.4.  Should satisfy more
autobuilders?

22 years agoFix default install dirs
Eric Andersen [Mon, 19 Nov 2001 12:12:20 +0000 (12:12 -0000)]
Fix default install dirs

22 years agoAdd an initial clone from glibc. Needs fixing.
Eric Andersen [Mon, 19 Nov 2001 10:22:55 +0000 (10:22 -0000)]
Add an initial clone from glibc.  Needs fixing.

22 years agoDebian upload
David Schleef [Sun, 18 Nov 2001 02:30:45 +0000 (02:30 -0000)]
Debian upload

22 years agoAdded a few items on my wishlist, removed some stuff that is finished.
David Schleef [Sun, 18 Nov 2001 02:01:53 +0000 (02:01 -0000)]
Added a few items on my wishlist, removed some stuff that is finished.

22 years agoDon't define _GNU_OBSTACK_INTERFACE_VERSION, because we don't provide
David Schleef [Sun, 18 Nov 2001 01:56:17 +0000 (01:56 -0000)]
Don't define _GNU_OBSTACK_INTERFACE_VERSION, because we don't provide
obstack.

22 years agoUpdated notes
David Schleef [Sun, 18 Nov 2001 01:54:15 +0000 (01:54 -0000)]
Updated notes

22 years agoAdded build-stamp for Debian
David Schleef [Sun, 18 Nov 2001 01:52:58 +0000 (01:52 -0000)]
Added build-stamp for Debian

22 years agoAnother todo item
Eric Andersen [Sat, 17 Nov 2001 14:12:19 +0000 (14:12 -0000)]
Another todo item

22 years agoSilly me. I left in a define which caused statfs64 to
Eric Andersen [Thu, 15 Nov 2001 14:19:23 +0000 (14:19 -0000)]
Silly me.  I left in a define which caused statfs64 to
recursively call itself.

22 years agoFix comments. Attempt at c++ global constructor support.
Eric Andersen [Thu, 15 Nov 2001 09:12:40 +0000 (09:12 -0000)]
Fix comments.  Attempt at c++ global constructor support.

22 years agoThis is a .c file
Eric Andersen [Thu, 15 Nov 2001 09:12:06 +0000 (09:12 -0000)]
This is a .c file

22 years agoI fixed readdir64
Eric Andersen [Wed, 14 Nov 2001 11:14:57 +0000 (11:14 -0000)]
I fixed readdir64

22 years agoOops. Forgot these
Eric Andersen [Wed, 14 Nov 2001 11:11:19 +0000 (11:11 -0000)]
Oops.  Forgot these

22 years agoScrub up some lingering problems preventing readdir64 from working
Eric Andersen [Wed, 14 Nov 2001 11:09:46 +0000 (11:09 -0000)]
Scrub up some lingering problems preventing readdir64 from working
and creating several *64 problems, particualrly when client apps
used -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64.  All better now.
 -Erik

22 years agoSync up sparc headers
Eric Andersen [Wed, 14 Nov 2001 07:41:08 +0000 (07:41 -0000)]
Sync up sparc headers

22 years agoMake it obvious that dtype is disabled
Eric Andersen [Wed, 14 Nov 2001 07:39:16 +0000 (07:39 -0000)]
Make it obvious that dtype is disabled

22 years agoTurn off dtype
Eric Andersen [Wed, 14 Nov 2001 07:38:16 +0000 (07:38 -0000)]
Turn off dtype

22 years agoSync up mipsel headers
Eric Andersen [Wed, 14 Nov 2001 07:37:43 +0000 (07:37 -0000)]
Sync up mipsel headers

22 years agoSync up m68k headers
Eric Andersen [Wed, 14 Nov 2001 07:34:46 +0000 (07:34 -0000)]
Sync up m68k headers

22 years agoInitial first (lame) pass at making a pthreads library. This
Eric Andersen [Wed, 14 Nov 2001 06:46:51 +0000 (06:46 -0000)]
Initial first (lame) pass at making a pthreads library.  This
works for me when linking staticly on x86.

22 years agoFix the clone syscall so it actually works.
Eric Andersen [Wed, 14 Nov 2001 02:26:48 +0000 (02:26 -0000)]
Fix the clone syscall so it actually works.

22 years agoAdd missing sched.h
Eric Andersen [Wed, 14 Nov 2001 01:35:34 +0000 (01:35 -0000)]
Add missing sched.h

22 years agoNotes about how powerpc/bits was constructed.
David Schleef [Mon, 12 Nov 2001 03:18:12 +0000 (03:18 -0000)]
Notes about how powerpc/bits was constructed.

22 years agoChange the output filename to correspond to the package version.
David Schleef [Mon, 12 Nov 2001 03:11:33 +0000 (03:11 -0000)]
Change the output filename to correspond to the package version.

22 years agoFix common C ambiguity.
David Schleef [Mon, 12 Nov 2001 03:10:42 +0000 (03:10 -0000)]
Fix common C ambiguity.

22 years agoEnable ld.so on powerpc
David Schleef [Mon, 12 Nov 2001 03:07:54 +0000 (03:07 -0000)]
Enable ld.so on powerpc

22 years agopowerpc/elfinterp.c: Powerpc works now. Major rework; most relocs
David Schleef [Mon, 12 Nov 2001 03:06:38 +0000 (03:06 -0000)]
powerpc/elfinterp.c: Powerpc works now.  Major rework; most relocs
  should work now.  R_PPC_JMP_SLOT correctly being lazily relocated.
hash.h: Added a field in elf_resolve to store a ppc-specific address.
boot1.c: Added debugging code.  Disabled check that fails on powerpc
  because the string literal requires a reloc that isn't performed.
  Added check to ignore d_tag if it is out of bounds, as has been
  observed with powerpc binaries.

22 years agoA couple of TODO items
Eric Andersen [Sat, 10 Nov 2001 14:54:54 +0000 (14:54 -0000)]
A couple of TODO items

22 years agoLimited Debian architectures to the ones we can actually build.
David Schleef [Sat, 10 Nov 2001 12:02:35 +0000 (12:02 -0000)]
Limited Debian architectures to the ones we can actually build.
Improved mksnapshot script; now adds a bogus changelog entry.
Added fixlinks script that automatically converts symlinks to
conform to Debian policy and updated rules to use it.  Added
another bogus man page, prolonging the pretense that I'll actually
write real ones.

22 years agoAdded winsize structure from before glibc-2.2.4 update
David Schleef [Sat, 10 Nov 2001 00:50:10 +0000 (00:50 -0000)]
Added winsize structure from before glibc-2.2.4 update

22 years agoAdded .cvsignore
David Schleef [Sat, 10 Nov 2001 00:42:09 +0000 (00:42 -0000)]
Added .cvsignore

22 years ago_mmap.o should be added to libc.a, not crt0.o
David Schleef [Sat, 10 Nov 2001 00:30:23 +0000 (00:30 -0000)]
_mmap.o should be added to libc.a, not crt0.o

22 years agoAdd missing <errno.h>
David Schleef [Sat, 10 Nov 2001 00:17:21 +0000 (00:17 -0000)]
Add missing <errno.h>

22 years agoPatch from Jari Korva <jpkorva@iki.fi>
Eric Andersen [Wed, 7 Nov 2001 22:02:57 +0000 (22:02 -0000)]
Patch from Jari Korva <jpkorva@iki.fi>
    I found some support in uClibc for IPv6 but I needed some more...
    Enclosed
    is the patch containing following modifications:

    - getnameinfo port from lates glibc
    - IPv6 support for gethostbyaddr()
    - IPv6 support for get_hosts_byname and read_etc_hosts (among other
      things this fixed a bug in gethostbyname2 in a case when user asked for
an IPv6 but got a v4 address if it was present in /etc/hosts)
    - defined ip6addr_any and in6addr_loopback (though the place where I
    defined these isn't correct, I guess)

    What is still missing:

    - getaddrinfo (this could be ported also from glibc but it won't be as
    easy as porting getnameinfo, I guess)

    I have tested the patch using enclosed test program and boa web server.
    Seems to work ;)

22 years agoAdd statfs64
Eric Andersen [Wed, 7 Nov 2001 21:58:25 +0000 (21:58 -0000)]
Add statfs64

22 years agoPatch from Jari Korva <jari.korva@vtt.fi> to fix a memory leak
Eric Andersen [Mon, 5 Nov 2001 19:24:06 +0000 (19:24 -0000)]
Patch from Jari Korva <jari.korva@vtt.fi> to fix a memory leak
in dns_lookup.

22 years agoDisable fast search by default (doesn't work on coda for example)
Eric Andersen [Mon, 5 Nov 2001 19:21:58 +0000 (19:21 -0000)]
Disable fast search by default (doesn't work on coda for example)

22 years agoOops. Forgot this one....
Eric Andersen [Wed, 17 Oct 2001 06:07:07 +0000 (06:07 -0000)]
Oops.  Forgot this one....

22 years agoThese are now obsolete
Eric Andersen [Wed, 17 Oct 2001 06:04:44 +0000 (06:04 -0000)]
These are now obsolete

22 years agoFix up sig handling so it is more in sync with glibc behavior
Eric Andersen [Wed, 17 Oct 2001 06:02:35 +0000 (06:02 -0000)]
Fix up sig handling so it is more in sync with glibc behavior

22 years agoBring these into line with glibc 2.2.4
Eric Andersen [Wed, 17 Oct 2001 06:01:24 +0000 (06:01 -0000)]
Bring these into line with glibc 2.2.4

22 years agoThis header file was broken, breaking signal handling on ARM.
Eric Andersen [Wed, 17 Oct 2001 05:54:39 +0000 (05:54 -0000)]
This header file was broken, breaking signal handling on ARM.
This update fixes it...
 -Erik

22 years agoIn theory, this adds readdir64 and friends. Dunno if they
Eric Andersen [Wed, 17 Oct 2001 03:17:15 +0000 (03:17 -0000)]
In theory, this adds readdir64 and friends.  Dunno if they
work yet or not....
 -Erik

22 years agoThis commit makes large file support actually work (when enabled in
Eric Andersen [Wed, 17 Oct 2001 01:10:29 +0000 (01:10 -0000)]
This commit makes large file support actually work (when enabled in
the config file).  I've tested this and it works for me.
 -Erik

22 years agoFix comment
Eric Andersen [Tue, 16 Oct 2001 04:48:42 +0000 (04:48 -0000)]
Fix comment

22 years agoGeez, I really screwed that one up. Lets try that one again...
Eric Andersen [Tue, 16 Oct 2001 04:36:26 +0000 (04:36 -0000)]
Geez, I really screwed that one up.  Lets try that one again...
Revert mmap to where it was in rev 1.41 of this file,
 -Erik

22 years agoOops. I merged things backwards. Lets try that again...
Eric Andersen [Tue, 16 Oct 2001 04:34:10 +0000 (04:34 -0000)]
Oops.  I merged things backwards.  Lets try that again...

22 years agoRevert global old mmap usage, and do it per arch
Eric Andersen [Tue, 16 Oct 2001 03:10:39 +0000 (03:10 -0000)]
Revert global old mmap usage, and do it per arch

22 years agoDisable posix threads support
David Schleef [Mon, 15 Oct 2001 22:47:38 +0000 (22:47 -0000)]
Disable posix threads support

22 years agodepend on kernel-headers, not kernel-headers-2.4
David Schleef [Mon, 15 Oct 2001 22:35:45 +0000 (22:35 -0000)]
depend on kernel-headers, not kernel-headers-2.4

22 years agoMerged patch from pre-glibc-2.2.4 files
David Schleef [Mon, 15 Oct 2001 22:22:32 +0000 (22:22 -0000)]
Merged patch from pre-glibc-2.2.4 files

22 years agoinclude/bits from glibc-2.2.4-1
David Schleef [Mon, 15 Oct 2001 22:07:58 +0000 (22:07 -0000)]
include/bits from glibc-2.2.4-1

22 years agoTurn off program_invocation_name and friend
Eric Andersen [Mon, 15 Oct 2001 16:56:14 +0000 (16:56 -0000)]
Turn off program_invocation_name and friend

22 years agoErwin Authried <eauth@softsys.co.at> noticed that _XOPEN_SOURCE is
Eric Andersen [Sun, 14 Oct 2001 04:50:39 +0000 (04:50 -0000)]
Erwin Authried <eauth@softsys.co.at> noticed that _XOPEN_SOURCE is
supposed to be a number

22 years agoBeef up the fork test, checking for proper SIGCHLD behavior
Eric Andersen [Fri, 12 Oct 2001 22:01:07 +0000 (22:01 -0000)]
Beef up the fork test, checking for proper SIGCHLD behavior

22 years agoA small patch from Erwin Authried <eauth@softsys.co.at>
Eric Andersen [Fri, 12 Oct 2001 19:21:40 +0000 (19:21 -0000)]
A small patch from Erwin Authried <eauth@softsys.co.at>
 *) changed ARM crt0.S / crt0pic.S selection -- depends on DOPIC now.
 *) Minor tweek to syscall definitions

22 years agoFix problem with version naming
David Schleef [Thu, 11 Oct 2001 23:06:20 +0000 (23:06 -0000)]
Fix problem with version naming

22 years agoLittle script to create a properly-named snapshot for Debian packaging
David Schleef [Thu, 11 Oct 2001 22:56:29 +0000 (22:56 -0000)]
Little script to create a properly-named snapshot for Debian packaging

22 years agoFixes for finding appropriate kernel headers, changelog entry
David Schleef [Thu, 11 Oct 2001 22:55:24 +0000 (22:55 -0000)]
Fixes for finding appropriate kernel headers, changelog entry

22 years agoAdd missing values.h
Eric Andersen [Thu, 11 Oct 2001 18:50:26 +0000 (18:50 -0000)]
Add missing values.h

22 years agoAdd strndup, written by Stefan Soucek <ssoucek@coactive.com>
Eric Andersen [Thu, 11 Oct 2001 08:36:33 +0000 (08:36 -0000)]
Add strndup, written by Stefan Soucek <ssoucek@coactive.com>

22 years agoPatch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.
Eric Andersen [Thu, 11 Oct 2001 08:29:22 +0000 (08:29 -0000)]
Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.
He sent this patch to me a month ago, but I forgot to apply it...

22 years agoMinor update
Eric Andersen [Fri, 5 Oct 2001 19:59:12 +0000 (19:59 -0000)]
Minor update

22 years agoWohoo! David McCullough found the bug! His comments follow:
Eric Andersen [Fri, 5 Oct 2001 11:31:48 +0000 (11:31 -0000)]
Wohoo!  David McCullough found the bug!  His comments follow:

    I had a look at it and you won't believe it was always broken.

    I'll try and explain it,  let me know if it doesn't make sense.

    * ash calls setjmp,  which messes with the stack to look like it has
      two args instead of one and then jmps (actually falls) into
    sigsetjmp.

      BUG

    * sigsetjmp then saves the registers and "jumps" to __sigset_save,  a C
      function.

    BUG1 - because the caller pops its args off the stack,  a program that
   changes it's number of args is broken because the caller will
    not
       pop the correct number of args.

    I think that jumping from the sigsetjmp asm to the 'C' code is unsafe
    but I can't think of an example.  Anyway,  I have attached what I think
    is
    a working fix.

    The reason this worked without -fomit-frame-pointer is that the
    _sigset_save 'C' code would restore the stack pointer from %ebp (the
    frame
    pointer) and because none of the asm had moded it,  when we returned
    from
    __sigset_save the stack was back to it's correct position for 1
    argument
    despite our best attempts to stuff it up ;-)

22 years agoYet more minor cleanups
Eric Andersen [Thu, 4 Oct 2001 10:08:51 +0000 (10:08 -0000)]
Yet more minor cleanups

22 years agoPatch from David McCullough <davidm@lineo.com>:
Eric Andersen [Thu, 4 Oct 2001 07:38:56 +0000 (07:38 -0000)]
Patch from David McCullough <davidm@lineo.com>:

* reduce the sigset types to 32 bits (I've mentioned this before)
  I think I saw this change go in for another platform anyway ;-)

* Do not use _IO_FILE as it clashes with the C++ libraries which know
  too much about how glibc workds :-(

* Do not use _G_va_list for the same reason.

* remove the CTORS/DTORS from crt0.S for ARM as the compiler provided
  crtbegin.o and crtend.o have these (and only these) already in them and
  you get multiple defined errs :-(

22 years agoWith all the headerfile changes, some functions didn't get there arg types
David McCullough [Thu, 4 Oct 2001 03:44:35 +0000 (03:44 -0000)]
With all the headerfile changes,  some functions didn't get there arg types
fixed up.

22 years agoMinor cleanups
Eric Andersen [Wed, 3 Oct 2001 09:26:48 +0000 (09:26 -0000)]
Minor cleanups

22 years agoSilly little changes
Eric Andersen [Wed, 3 Oct 2001 09:15:04 +0000 (09:15 -0000)]
Silly little changes

22 years agoCleanup brk/sbrk
Eric Andersen [Wed, 3 Oct 2001 09:12:28 +0000 (09:12 -0000)]
Cleanup brk/sbrk

22 years agotermcap.h is supposed to be part of ncurses, and has no place in the C
Eric Andersen [Tue, 2 Oct 2001 19:18:58 +0000 (19:18 -0000)]
termcap.h is supposed to be part of ncurses, and has no place in the C
library includes.

22 years agoAdd in some math lib tests
Eric Andersen [Tue, 2 Oct 2001 10:45:16 +0000 (10:45 -0000)]
Add in some math lib tests

22 years agoTurn off optimization when debugging
Eric Andersen [Tue, 2 Oct 2001 09:25:58 +0000 (09:25 -0000)]
Turn off optimization when debugging

22 years agoFix nasty behavior difference from glibc -- also fixes getline()
Eric Andersen [Sun, 30 Sep 2001 04:55:22 +0000 (04:55 -0000)]
Fix nasty behavior difference from glibc -- also fixes getline()
 -Erik

22 years agoMinor cleanup
Eric Andersen [Sat, 29 Sep 2001 21:35:08 +0000 (21:35 -0000)]
Minor cleanup

22 years agoFix prototype
Eric Andersen [Sat, 29 Sep 2001 21:11:36 +0000 (21:11 -0000)]
Fix prototype

22 years agoFix a stupid typo...
Eric Andersen [Sat, 29 Sep 2001 21:08:09 +0000 (21:08 -0000)]
Fix a stupid typo...

22 years agoAdd in gcvt()
Eric Andersen [Sat, 29 Sep 2001 07:53:25 +0000 (07:53 -0000)]
Add in gcvt()

22 years agoSigh. Erik mucks it up again...
Eric Andersen [Thu, 27 Sep 2001 07:48:05 +0000 (07:48 -0000)]
Sigh.  Erik mucks it up again...

22 years agoMake iopl and ioperm work
Eric Andersen [Thu, 27 Sep 2001 07:40:15 +0000 (07:40 -0000)]
Make iopl and ioperm work

22 years agoDuh.
Eric Andersen [Thu, 27 Sep 2001 07:23:46 +0000 (07:23 -0000)]
Duh.

22 years agoBe more careful about not redefining stuf
Eric Andersen [Thu, 27 Sep 2001 07:22:21 +0000 (07:22 -0000)]
Be more careful about not redefining stuf

22 years agoAdd inb, outb and friends,
Eric Andersen [Thu, 27 Sep 2001 07:20:27 +0000 (07:20 -0000)]
Add inb, outb and friends,

22 years agore-enable ntohl and friends
Eric Andersen [Thu, 27 Sep 2001 07:02:33 +0000 (07:02 -0000)]
re-enable ntohl and friends