OSDN Git Service

uclinux-h8/uClibc.git
17 years agoMake strdup() use memcpy() rather than strcpy() to duplicate the string.
Peter Kjellerstedt [Thu, 19 Oct 2006 10:17:12 +0000 (10:17 -0000)]
Make strdup() use memcpy() rather than strcpy() to duplicate the string.
The rationale is that we already have the length of the string to
duplicate (from doing the malloc()), and memcpy() should then always be
faster than strcpy() (or at least as fast).

17 years agoMake _dl_linux_resolve interworking safe. Thanks Paul Brook
Khem Raj [Tue, 10 Oct 2006 01:03:46 +0000 (01:03 -0000)]
Make _dl_linux_resolve interworking safe. Thanks Paul Brook

17 years agoAdd the mmap.c missed out in the last commit.
Khem Raj [Sat, 7 Oct 2006 22:22:51 +0000 (22:22 -0000)]
Add the mmap.c missed out in the last commit.

17 years agoAdd config options to select ARM ARMv5 and Intel iwmmxt variants.
Khem Raj [Sat, 7 Oct 2006 06:54:35 +0000 (06:54 -0000)]
Add config options to select ARM ARMv5 and Intel iwmmxt variants.

17 years agoAdd mmap function needed for ARM EABI and define thumb specific INTERNAL_SYSCALL...
Khem Raj [Sat, 7 Oct 2006 06:50:44 +0000 (06:50 -0000)]
Add mmap function needed for ARM EABI and define thumb specific INTERNAL_SYSCALL macro which saves r7 before making the call and pops it back after return.

17 years agoSergey Lapin says the undefined syscall numbers from unistd.h do not get propogated...
Khem Raj [Sat, 7 Oct 2006 06:40:33 +0000 (06:40 -0000)]
Sergey Lapin says the undefined syscall numbers from unistd.h do not get propogated into generated sysnum.h.

17 years agofixup from Bernd Schmidt to properly document DL_ADDR_TO_FUNC_PTR
Mike Frysinger [Sat, 7 Oct 2006 06:40:20 +0000 (06:40 -0000)]
fixup from Bernd Schmidt to properly document DL_ADDR_TO_FUNC_PTR

17 years agoBernd Schmidt writes:
Mike Frysinger [Sat, 7 Oct 2006 06:36:32 +0000 (06:36 -0000)]
Bernd Schmidt writes:
This introduces a new SEND_EARLY_STDERR macro that is to be used in
dl-startup.c before ld.so is relocated.  It is needed on Blackfin (and
frv) FDPIC since we have to use special tricks to get the address of a
string constant.

EARLY_STDERR_SPECIAL gets defined on such a machine and prevents
printing of debug strings inside the loop that relocates ld.so, since we
can't decide which of the two variants to use.

17 years agoDon't use r10 to find PIC base. In GCC 4.1.1 onwards ARM PIC handling uses pseudo...
Khem Raj [Sat, 7 Oct 2006 06:32:44 +0000 (06:32 -0000)]
Don't use r10 to find PIC base. In GCC 4.1.1 onwards ARM PIC handling uses pseudo register for PIC base so load and relocate it.

17 years agothe makefile will include elf.h for us #778
Mike Frysinger [Sat, 7 Oct 2006 06:01:37 +0000 (06:01 -0000)]
the makefile will include elf.h for us #778

17 years agoimplement support for the rest of the 32bit uid syscalls
Mike Frysinger [Thu, 28 Sep 2006 20:41:28 +0000 (20:41 -0000)]
implement support for the rest of the 32bit uid syscalls

17 years agoDo not include tls.h unless __UCLIBC_HAS_THREADS__ is defined.
Peter Kjellerstedt [Mon, 25 Sep 2006 07:38:13 +0000 (07:38 -0000)]
Do not include tls.h unless __UCLIBC_HAS_THREADS__ is defined.

17 years agofix return casts for a bunch of functions
Mike Frysinger [Sat, 23 Sep 2006 04:10:42 +0000 (04:10 -0000)]
fix return casts for a bunch of functions

17 years agograb s_lrint from glibc for C99
Mike Frysinger [Sat, 23 Sep 2006 04:05:33 +0000 (04:05 -0000)]
grab s_lrint from glibc for C99

17 years agoonly include _lfs_64.h when __UCLIBC_HAS_LFS__ is defined as pointed out by Miguel...
Mike Frysinger [Sat, 23 Sep 2006 03:44:35 +0000 (03:44 -0000)]
only include _lfs_64.h when __UCLIBC_HAS_LFS__ is defined as pointed out by Miguel Ángel

17 years agoAdded support for sysconf(_SC_MONOTONIC_CLOCK).
Peter Kjellerstedt [Fri, 22 Sep 2006 16:54:49 +0000 (16:54 -0000)]
Added support for sysconf(_SC_MONOTONIC_CLOCK).

17 years agoRemove code to define errno in this file. It is definitly not needed
Peter Kjellerstedt [Fri, 22 Sep 2006 16:40:00 +0000 (16:40 -0000)]
Remove code to define errno in this file.  It is definitly not needed
when building with thread support (which we normally do), and as far
as I can tell it should not be needed otherwise either.  And as it did
not build with the latest binutils and gcc, the choice was easy...

17 years agouse proper #APP lines so that the assembler knows when it needs to handle parsing...
Mike Frysinger [Thu, 21 Sep 2006 01:46:11 +0000 (01:46 -0000)]
use proper #APP lines so that the assembler knows when it needs to handle parsing (see sources.redhat.com/ml/binutils/2004-04/msg00665.html)

17 years agoAllow the res argument to clock_getres() to be NULL.
Peter Kjellerstedt [Tue, 19 Sep 2006 07:44:15 +0000 (07:44 -0000)]
Allow the res argument to clock_getres() to be NULL.

17 years agomerge some more FDPIC related fixes from Bernd Schmidt
Mike Frysinger [Tue, 19 Sep 2006 01:29:11 +0000 (01:29 -0000)]
merge some more FDPIC related fixes from Bernd Schmidt

17 years agoAtsushi Nemoto writes:
Eric Andersen [Mon, 11 Sep 2006 18:46:39 +0000 (18:46 -0000)]
Atsushi Nemoto writes:
The "make headers_install" in kernel 2.6.18 does not export
asm-mips/asm.h, asm-mips/regdef.h and asm-mips/sysmips.h.  Do not use
them.  We can use sys/asm.h and sys/regdef.h instead.  The sysmips.h
part of this patch is came from glibc 2.4 code.

17 years agoThe readahead syscall requires LFS/64 bit support
Eric Andersen [Mon, 11 Sep 2006 18:40:10 +0000 (18:40 -0000)]
The readahead syscall requires LFS/64 bit support

17 years agoremove version checking code and add some more comments
Mike Frysinger [Sun, 10 Sep 2006 06:10:52 +0000 (06:10 -0000)]
remove version checking code and add some more comments

17 years agomake this stuff actually readable
Mike Frysinger [Sat, 9 Sep 2006 22:35:00 +0000 (22:35 -0000)]
make this stuff actually readable

17 years agoadd some inline funcs for the mlock funcs on no-mmu
Mike Frysinger [Fri, 8 Sep 2006 23:07:54 +0000 (23:07 -0000)]
add some inline funcs for the mlock funcs on no-mmu

17 years agoFix from Joseph Myers: Save and restore iWMMXt registers in ARM setjmp/longjmp
Khem Raj [Thu, 31 Aug 2006 19:49:16 +0000 (19:49 -0000)]
Fix from Joseph Myers: Save and restore iWMMXt registers in ARM setjmp/longjmp

17 years agoMade it compile again.
Peter Kjellerstedt [Thu, 31 Aug 2006 11:39:36 +0000 (11:39 -0000)]
Made it compile again.

17 years agofix bug 1012 as noted by moschny
Eric Andersen [Wed, 30 Aug 2006 17:24:44 +0000 (17:24 -0000)]
fix bug 1012 as noted by moschny

17 years agotweak a few syscalls using varargs
Eric Andersen [Wed, 30 Aug 2006 17:12:51 +0000 (17:12 -0000)]
tweak a few syscalls using varargs

18 years agofix from psm to make sure host make is new enough
Mike Frysinger [Fri, 25 Aug 2006 04:59:43 +0000 (04:59 -0000)]
fix from psm to make sure host make is new enough

18 years agofix from psm: DODEBUG_PT is only meaningful for LINUXTHREADS_OLD, add: depends on...
Mike Frysinger [Fri, 25 Aug 2006 04:58:11 +0000 (04:58 -0000)]
fix from psm: DODEBUG_PT is only meaningful for LINUXTHREADS_OLD, add: depends on LINUXTHREADS_OLD

18 years agofix from psm: makes use of the malloc debug option in malloc-standard as well
Mike Frysinger [Fri, 25 Aug 2006 04:57:01 +0000 (04:57 -0000)]
fix from psm: makes use of the malloc debug option in malloc-standard as well

18 years agoBump SHMLBA up to a sensible size for dcache alias avoidance to coincide with
Paul Mundt [Fri, 25 Aug 2006 04:54:39 +0000 (04:54 -0000)]
Bump SHMLBA up to a sensible size for dcache alias avoidance to coincide with
the kernel's get_unmapped_area() behaviour. Ideally this should be more tightly
packed based off of the L1 dcache shape, once we're able to handle it through
the auxiliary vector.

18 years agomerge with psm: sync with common socket headers
Mike Frysinger [Fri, 25 Aug 2006 04:28:12 +0000 (04:28 -0000)]
merge with psm: sync with common socket headers

18 years agomerge fixes from upstream (rev 1.10 -> 1.13)
Mike Frysinger [Thu, 24 Aug 2006 23:47:02 +0000 (23:47 -0000)]
merge fixes from upstream (rev 1.10 -> 1.13)

18 years ago- only link asm-generic if it exists.
Bernhard Reutner-Fischer [Thu, 24 Aug 2006 21:39:49 +0000 (21:39 -0000)]
- only link asm-generic if it exists.
  PS: test for existence on Slowaris was disfunctional, last time i looked. Shouldn't matter much here, though..

18 years agofix from psm: enable readahead prototype
Mike Frysinger [Thu, 24 Aug 2006 21:15:57 +0000 (21:15 -0000)]
fix from psm: enable readahead prototype

18 years agoonly pull in errno.h when not assembler
Mike Frysinger [Thu, 24 Aug 2006 19:47:34 +0000 (19:47 -0000)]
only pull in errno.h when not assembler

18 years agoimplement readahead()
Mike Frysinger [Thu, 24 Aug 2006 19:13:14 +0000 (19:13 -0000)]
implement readahead()

18 years agofixups from psm for ASSEMBLER handling
Mike Frysinger [Thu, 24 Aug 2006 18:49:16 +0000 (18:49 -0000)]
fixups from psm for ASSEMBLER handling

18 years agouse the common huge_val.h version now
Mike Frysinger [Thu, 24 Aug 2006 18:11:33 +0000 (18:11 -0000)]
use the common huge_val.h version now

18 years agoupdate to new huge_val headers
Mike Frysinger [Thu, 24 Aug 2006 18:06:51 +0000 (18:06 -0000)]
update to new huge_val headers

18 years agofix from psm: disable unsupported features
Mike Frysinger [Thu, 24 Aug 2006 18:02:17 +0000 (18:02 -0000)]
fix from psm: disable unsupported features

18 years agofix from psm: just use common resource.h
Mike Frysinger [Thu, 24 Aug 2006 18:00:30 +0000 (18:00 -0000)]
fix from psm: just use common resource.h

18 years agojust be like every other uclibc port
Mike Frysinger [Thu, 24 Aug 2006 17:48:23 +0000 (17:48 -0000)]
just be like every other uclibc port

18 years agosync with glibc
Mike Frysinger [Thu, 24 Aug 2006 17:25:18 +0000 (17:25 -0000)]
sync with glibc

18 years agopsm says: use $(top_builddir) instead of $(top_srcdir) when accessing generated heade...
Mike Frysinger [Thu, 24 Aug 2006 03:55:55 +0000 (03:55 -0000)]
psm says: use $(top_builddir) instead of $(top_srcdir) when accessing generated header files

18 years agoadd back in HIDDEN_JUMPTARGET() as pointed out by psm
Mike Frysinger [Thu, 24 Aug 2006 03:52:27 +0000 (03:52 -0000)]
add back in HIDDEN_JUMPTARGET() as pointed out by psm

18 years agofix by Bernhard Fischer to move local prototypes to a header to keep things sane
Mike Frysinger [Thu, 24 Aug 2006 02:43:08 +0000 (02:43 -0000)]
fix by Bernhard Fischer to move local prototypes to a header to keep things sane

18 years agofix from psm: only define __ASSUME_NETLINK_SUPPORT if not defined
Mike Frysinger [Thu, 24 Aug 2006 02:32:08 +0000 (02:32 -0000)]
fix from psm: only define __ASSUME_NETLINK_SUPPORT if not defined

18 years agosync with upstream via psm
Mike Frysinger [Thu, 24 Aug 2006 02:29:56 +0000 (02:29 -0000)]
sync with upstream via psm

18 years agos/ifdef ASM/ifndef ASM/ as point out by psm
Mike Frysinger [Thu, 24 Aug 2006 02:29:27 +0000 (02:29 -0000)]
s/ifdef ASM/ifndef ASM/ as point out by psm

18 years agosync with upstream via psm
Mike Frysinger [Thu, 24 Aug 2006 00:15:09 +0000 (00:15 -0000)]
sync with upstream via psm

18 years agosync with upstream via psm
Mike Frysinger [Thu, 24 Aug 2006 00:05:09 +0000 (00:05 -0000)]
sync with upstream via psm

18 years agopsm updates: add __libc symbols for signal cancellation
Mike Frysinger [Wed, 23 Aug 2006 23:25:34 +0000 (23:25 -0000)]
psm updates: add __libc symbols for signal cancellation

18 years agosync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 23:24:24 +0000 (23:24 -0000)]
sync with upstream via psm

18 years agosync with psm: update errno handling to be the same on all arches
Mike Frysinger [Wed, 23 Aug 2006 23:20:30 +0000 (23:20 -0000)]
sync with psm: update errno handling to be the same on all arches

18 years agoonly define offsetof() if it isnt already defined
Mike Frysinger [Wed, 23 Aug 2006 23:14:49 +0000 (23:14 -0000)]
only define offsetof() if it isnt already defined

18 years agomerge from psm: hide more brk
Mike Frysinger [Wed, 23 Aug 2006 22:43:25 +0000 (22:43 -0000)]
merge from psm: hide more brk

18 years agosync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 20:28:56 +0000 (20:28 -0000)]
sync with upstream via psm

18 years agosync with upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 19:27:42 +0000 (19:27 -0000)]
sync with upstream via psm

18 years agoimport new headers from upstream via psm
Mike Frysinger [Wed, 23 Aug 2006 19:25:34 +0000 (19:25 -0000)]
import new headers from upstream via psm

18 years agofix from psm: remove unused defines/includes
Mike Frysinger [Wed, 23 Aug 2006 19:21:41 +0000 (19:21 -0000)]
fix from psm: remove unused defines/includes

18 years agofixes from psm: use new clone definition
Mike Frysinger [Wed, 23 Aug 2006 19:21:01 +0000 (19:21 -0000)]
fixes from psm: use new clone definition

18 years agofixes from psm: use __asm__/__volatile__
Mike Frysinger [Wed, 23 Aug 2006 19:19:35 +0000 (19:19 -0000)]
fixes from psm: use __asm__/__volatile__

18 years agofix from psm: remove unused defines/includes
Mike Frysinger [Wed, 23 Aug 2006 19:17:31 +0000 (19:17 -0000)]
fix from psm: remove unused defines/includes

18 years agosync with upstream glibc
Mike Frysinger [Wed, 23 Aug 2006 19:17:04 +0000 (19:17 -0000)]
sync with upstream glibc

18 years agofixes from psm: hide internal brk symbols
Mike Frysinger [Wed, 23 Aug 2006 19:16:29 +0000 (19:16 -0000)]
fixes from psm: hide internal brk symbols

18 years agofixes from psm: disable unsupported __fpu_control and sync with upstream
Mike Frysinger [Wed, 23 Aug 2006 19:13:46 +0000 (19:13 -0000)]
fixes from psm: disable unsupported __fpu_control and sync with upstream

18 years agosync with psm: add copyright notice
Mike Frysinger [Wed, 23 Aug 2006 19:02:31 +0000 (19:02 -0000)]
sync with psm: add copyright notice

18 years agopull from upstream
Mike Frysinger [Wed, 23 Aug 2006 15:28:48 +0000 (15:28 -0000)]
pull from upstream

18 years agofixes from psm so we can pull in uClibc headers properly
Mike Frysinger [Wed, 23 Aug 2006 15:26:46 +0000 (15:26 -0000)]
fixes from psm so we can pull in uClibc headers properly

18 years agofix from psm: add UCLIBC_ prefix to HAS_SHADOW option
Mike Frysinger [Wed, 23 Aug 2006 15:15:47 +0000 (15:15 -0000)]
fix from psm: add UCLIBC_ prefix to HAS_SHADOW option

18 years agoBogus page size comment for frv PAGE_SHIFT.
Paul Mundt [Wed, 23 Aug 2006 05:11:29 +0000 (05:11 -0000)]
Bogus page size comment for frv PAGE_SHIFT.

18 years agoJie Zhang writes: Fix struct kernel_stat64 for Blackfin.
Mike Frysinger [Wed, 23 Aug 2006 04:20:54 +0000 (04:20 -0000)]
Jie Zhang writes: Fix struct kernel_stat64 for Blackfin.

18 years agofix upstream blackfin page.h rather than duplicating effort here
Mike Frysinger [Wed, 23 Aug 2006 01:05:58 +0000 (01:05 -0000)]
fix upstream blackfin page.h rather than duplicating effort here

18 years agobits/profil-counter.h and bits/atomicity.h are leftovers from the old gprof
Eric Andersen [Mon, 21 Aug 2006 23:29:36 +0000 (23:29 -0000)]
bits/profil-counter.h and bits/atomicity.h are leftovers from the old gprof
based profiling I nuked ages ago since tools like oprofile are non invasive
and work so much better.

18 years agomerge fix from blackfin cvs:
Mike Frysinger [Sat, 5 Aug 2006 04:56:37 +0000 (04:56 -0000)]
merge fix from blackfin cvs:
bernds writes: Use __alignof__ instead of sizeof to get alignments.  Eliminates some warnings about misalignments when malloc debugging is enabled.

18 years agofix h_alias handling in gethostbyaddr_r() just like in gethostbyname_r()
Mike Frysinger [Mon, 31 Jul 2006 20:21:45 +0000 (20:21 -0000)]
fix h_alias handling in gethostbyaddr_r() just like in gethostbyname_r()
otherwise we get messed up alias memory and this simple test case will
segfault:
python -c 'import socket; print socket.gethostbyaddr("80.68.88.204")[2];'

see bug report in blackfin tracker for more info:
http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=1503&group_id=17&atid=141

18 years agopsm writes:
Eric Andersen [Thu, 13 Jul 2006 17:06:43 +0000 (17:06 -0000)]
psm writes:

forgotten to mention to remove glob-hooks.c and the reference in
Makefile.in (the prototypes for the 3 hooks were already removed by the
patch applied here)

Peter

18 years agopatch from psm:
Eric Andersen [Thu, 13 Jul 2006 16:32:02 +0000 (16:32 -0000)]
patch from psm:
- malloc/realloc/free are not prepared to be hidable in trunk, you can't
  use libc_hidden_proto(x) for them
- using libc_hidden_proto(x64) LFS unguarded will fail because the header
  does not provide the prototype
- if you are using libc_hidden_proto(collated_compare|prefix_array), you
  also need libc_hidden_def|_weak(x) after the function itself, the result
  being to provide a hidden __GI_collated_compare and a visible
  collated_compare, for this case I do not consider this necessary,
  especially that collated_compare is hidden already (I have chosen to
  prefix them with __ to know that they are intended to be internal only,
  against the practice in glibc, you could go without prefix as well)

18 years agoadd some fun syscall TODOs and mark cris/bfin as working again
Mike Frysinger [Fri, 7 Jul 2006 19:10:34 +0000 (19:10 -0000)]
add some fun syscall TODOs and mark cris/bfin as working again

18 years agoRemove SA_ONSTACK handling for ARM based up on glibc code as submitted by Paul Brook...
"Steven J. Hill" [Thu, 6 Jul 2006 01:40:24 +0000 (01:40 -0000)]
Remove SA_ONSTACK handling for ARM based up on glibc code as submitted by Paul Brook <paul@codesourcery.com>.

18 years agofix signed warnings with gcc-4
Mike Frysinger [Wed, 5 Jul 2006 23:35:08 +0000 (23:35 -0000)]
fix signed warnings with gcc-4

18 years agoclean subdir as well
Mike Frysinger [Wed, 5 Jul 2006 23:31:34 +0000 (23:31 -0000)]
clean subdir as well

18 years agopatch from Bernd Schmidt to abstract away initializing of relocation addresses
Mike Frysinger [Wed, 5 Jul 2006 23:21:22 +0000 (23:21 -0000)]
patch from Bernd Schmidt to abstract away initializing of relocation addresses

18 years agoremove jump relocs, with minor related cleanups
Eric Andersen [Wed, 5 Jul 2006 23:01:52 +0000 (23:01 -0000)]
remove jump relocs, with minor related cleanups

18 years agobump the version, in preparation for actually cutting a release
Eric Andersen [Wed, 5 Jul 2006 20:15:38 +0000 (20:15 -0000)]
bump the version, in preparation for actually cutting a release
at some point in the relatively near future.

18 years agobfin works again
Mike Frysinger [Wed, 5 Jul 2006 20:06:17 +0000 (20:06 -0000)]
bfin works again

18 years agoreplace my @debian.org addr with @uclibc.org. Fixup license on
Eric Andersen [Wed, 5 Jul 2006 19:52:39 +0000 (19:52 -0000)]
replace my @debian.org addr with @uclibc.org.  Fixup license on
readelf and ldd to again state that they are GPLv2

18 years agopatch from Bernd Schmidt to abstract away initializing of prog load addresses
Mike Frysinger [Wed, 5 Jul 2006 19:31:48 +0000 (19:31 -0000)]
patch from Bernd Schmidt to abstract away initializing of prog load addresses

18 years agoconvert #if 0 code to _dl_if_debug_print()
Mike Frysinger [Wed, 5 Jul 2006 19:27:41 +0000 (19:27 -0000)]
convert #if 0 code to _dl_if_debug_print()

18 years agoupdate license
Mike Frysinger [Wed, 5 Jul 2006 19:24:48 +0000 (19:24 -0000)]
update license

18 years agopatch from Bernd Schmidt to abstract away load address types
Mike Frysinger [Wed, 5 Jul 2006 19:17:19 +0000 (19:17 -0000)]
patch from Bernd Schmidt to abstract away load address types

18 years agopatch from Bernd Schmidt to abstract away load address checks
Mike Frysinger [Wed, 5 Jul 2006 19:05:55 +0000 (19:05 -0000)]
patch from Bernd Schmidt to abstract away load address checks

18 years agoadd some more rpaths to keep the tests happy
Mike Frysinger [Wed, 5 Jul 2006 19:04:29 +0000 (19:04 -0000)]
add some more rpaths to keep the tests happy

18 years agofixup my copyright notice, trim stale remnants of older notices which
Eric Andersen [Wed, 5 Jul 2006 18:53:34 +0000 (18:53 -0000)]
fixup my copyright notice, trim stale remnants of older notices which
I had clearly run search/replace on that were cluttering things up.

18 years agofixup my copyright notice, trim stale remnants of older notices which
Eric Andersen [Wed, 5 Jul 2006 18:38:37 +0000 (18:38 -0000)]
fixup my copyright notice, trim stale remnants of older notices which
I had clearly run search/replace on that were cluttering things up.

18 years agominor updates
Eric Andersen [Wed, 5 Jul 2006 18:31:40 +0000 (18:31 -0000)]
minor updates

18 years agoremove __ from function names as pointed out by Peter S. Mazinger
Mike Frysinger [Wed, 5 Jul 2006 11:23:04 +0000 (11:23 -0000)]
remove __ from function names as pointed out by Peter S. Mazinger