OSDN Git Service

uclinux-h8/uclibc-ng.git
9 years agoARC: Add GNU glob to ARC defconfigs
Anton Kolesov [Wed, 4 Feb 2015 12:34:51 +0000 (15:34 +0300)]
ARC: Add GNU glob to ARC defconfigs

GNU glob is required by make.

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>
Cc: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: add setns()
Bernhard Reutner-Fischer [Tue, 17 Feb 2015 22:41:47 +0000 (23:41 +0100)]
libc: add setns()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoAdd eventfd_read() and eventfd_write()
Khem Raj [Thu, 20 Feb 2014 08:30:18 +0000 (00:30 -0800)]
Add eventfd_read() and eventfd_write()

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoRevert "xtensa: add support for NPTL"
Waldemar Brodkorb [Tue, 17 Feb 2015 05:44:26 +0000 (23:44 -0600)]
Revert "xtensa: add support for NPTL"

This reverts commit 4c3023bc803012656cf45749960282351efc8020.

9 years agosignal.h: elide memset from sigemptyset
Vineet Gupta [Sat, 14 Feb 2015 09:55:44 +0000 (15:25 +0530)]
signal.h: elide memset from sigemptyset

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: sigaction: inline syscall trap
Vineet Gupta [Sat, 14 Feb 2015 09:55:42 +0000 (15:25 +0530)]
ARC: sigaction: inline syscall trap

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: sigaction: fold default sigrestorer into "C"
Vineet Gupta [Sat, 14 Feb 2015 09:55:43 +0000 (15:25 +0530)]
ARC: sigaction: fold default sigrestorer into "C"

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: siagction: opencode memcpy
Vineet Gupta [Sat, 14 Feb 2015 09:55:41 +0000 (15:25 +0530)]
ARC: siagction: opencode memcpy

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: remove stale TRUNCATE64_HAS_4_ARGS
Vineet Gupta [Sat, 14 Feb 2015 09:55:40 +0000 (15:25 +0530)]
ARC: remove stale TRUNCATE64_HAS_4_ARGS

Not relevant anymore since commit e8cc14e59ed3f66b84e,
"libc: rename TRUNCATE64_HAS_4_ARGS to SYSCALL_ALIGN_64BIT"

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC defconfigs: enable some items
Alexey Brodkin [Sat, 14 Feb 2015 09:55:39 +0000 (15:25 +0530)]
ARC defconfigs: enable some items

perf: UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
elfutils: UCLIBC_HAS_PROGRAM_INVOCATION_NAME

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: add configuration option for MMU page size
Alexey Brodkin [Sat, 14 Feb 2015 09:55:38 +0000 (15:25 +0530)]
ARC: add configuration option for MMU page size

ARC CPU may have MMU page size of 4/8(default)/16k.
uClibc needs to have page size configured accodring to HW it will be run on.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoARC: Conditionalise certain relocations as provided by TLS tools only
Vineet Gupta [Sat, 14 Feb 2015 09:55:37 +0000 (15:25 +0530)]
ARC: Conditionalise certain relocations as provided by TLS tools only

uClibc mainline supports NPTL which in turns depends on TLS support in
the tools (gcc/binutils), which is yet to be merged in dev branches.

However there is some non NPTL code in uClibc, added as part of NPTL
effort, which relies on certain relocations only provided by NPTL
binutils. As a result building the current upstream even for LT.old
breaks.

So conditionalize that code on tools, bu tin lack of specific versions,
we use NPTL enabling as a sign the tools are equipped to handle those
relos.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobad merge, remove unused
Waldemar Brodkorb [Mon, 16 Feb 2015 05:52:14 +0000 (23:52 -0600)]
bad merge, remove unused

9 years agomerge uClibc changes
Waldemar Brodkorb [Mon, 16 Feb 2015 05:46:52 +0000 (23:46 -0600)]
merge uClibc changes

9 years agosignal.h: elide memset from sigemptyset
Vineet Gupta [Sat, 14 Feb 2015 09:55:44 +0000 (15:25 +0530)]
signal.h: elide memset from sigemptyset

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC: sigaction: fold default sigrestorer into "C"
Vineet Gupta [Sat, 14 Feb 2015 09:55:43 +0000 (15:25 +0530)]
ARC: sigaction: fold default sigrestorer into "C"

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC: sigaction: inline syscall trap
Vineet Gupta [Sat, 14 Feb 2015 09:55:42 +0000 (15:25 +0530)]
ARC: sigaction: inline syscall trap

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC: siagction: opencode memcpy
Vineet Gupta [Sat, 14 Feb 2015 09:55:41 +0000 (15:25 +0530)]
ARC: siagction: opencode memcpy

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC: remove stale TRUNCATE64_HAS_4_ARGS
Vineet Gupta [Sat, 14 Feb 2015 09:55:40 +0000 (15:25 +0530)]
ARC: remove stale TRUNCATE64_HAS_4_ARGS

Not relevant anymore since commit e8cc14e59ed3f66b84e,
"libc: rename TRUNCATE64_HAS_4_ARGS to SYSCALL_ALIGN_64BIT"

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC defconfigs: enable some items
Alexey Brodkin [Sat, 14 Feb 2015 09:55:39 +0000 (15:25 +0530)]
ARC defconfigs: enable some items

perf: UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
elfutils: UCLIBC_HAS_PROGRAM_INVOCATION_NAME

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC: add configuration option for MMU page size
Alexey Brodkin [Sat, 14 Feb 2015 09:55:38 +0000 (15:25 +0530)]
ARC: add configuration option for MMU page size

ARC CPU may have MMU page size of 4/8(default)/16k.
uClibc needs to have page size configured accodring to HW it will be run on.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agoARC: Conditionalise certain relocations as provided by TLS tools only
Vineet Gupta [Sat, 14 Feb 2015 09:55:37 +0000 (15:25 +0530)]
ARC: Conditionalise certain relocations as provided by TLS tools only

uClibc mainline supports NPTL which in turns depends on TLS support in
the tools (gcc/binutils), which is yet to be merged in dev branches.

However there is some non NPTL code in uClibc, added as part of NPTL
effort, which relies on certain relocations only provided by NPTL
binutils. As a result building the current upstream even for LT.old
breaks.

So conditionalize that code on tools, bu tin lack of specific versions,
we use NPTL enabling as a sign the tools are equipped to handle those
relos.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
9 years agosome linuxthreads conversion fixups
Waldemar Brodkorb [Sun, 15 Feb 2015 06:54:21 +0000 (00:54 -0600)]
some linuxthreads conversion fixups

Maybe my grep is broken, so that I missed it. ;)

9 years agoenable for further analysis
Waldemar Brodkorb [Sun, 15 Feb 2015 05:30:39 +0000 (23:30 -0600)]
enable for further analysis

9 years agogood by nios
Waldemar Brodkorb [Sun, 15 Feb 2015 05:23:50 +0000 (23:23 -0600)]
good by nios

Get rid of NIOS support. We try to support NIOSII.

9 years agogood by e1
Waldemar Brodkorb [Sun, 15 Feb 2015 05:19:38 +0000 (23:19 -0600)]
good by e1

It is marked as broken and it seems you can't get
any hardware for that anymore.

9 years agogood bye vax
Waldemar Brodkorb [Sun, 15 Feb 2015 05:11:05 +0000 (23:11 -0600)]
good bye vax

I mailed with Jan-Benedict Glaw, it seems VAX on Linux
is really a lot of work todo and uClibc support didn't work ever.

9 years agoresolve merge
Waldemar Brodkorb [Sun, 15 Feb 2015 05:00:19 +0000 (23:00 -0600)]
resolve merge

9 years agouncomment nios2
Waldemar Brodkorb [Fri, 13 Feb 2015 19:04:01 +0000 (13:04 -0600)]
uncomment nios2

9 years agoUpdate MIPS configuration rules.
Steve Ellcey [Wed, 28 Jan 2015 22:56:07 +0000 (14:56 -0800)]
Update MIPS configuration rules.

Add a configuration choice for the NaN format on MIPS (either the
standard (legacy) format or the newer IEEE 2008 format.

Change how CPU_LDFLAGS are set for MIPS.  Use the same value as
CPU_CFLAGS since CC is used to do linking.  This ensures consistency
between compiles and links and adds support for N32 ABI to linking.

Signed-off-by: Steve Ellcey <sellcey@imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agounbreak support for ARM no MMU case
Waldemar Brodkorb [Thu, 12 Feb 2015 20:06:43 +0000 (14:06 -0600)]
unbreak support for ARM no MMU case

As suggested on the uCLibc mailing list:
http://lists.uclibc.org/pipermail/uclibc/2014-November/048702.html
http://lists.uclibc.org/pipermail/uclibc/2014-November/048703.html
http://lists.uclibc.org/pipermail/uclibc/2014-November/048704.html

9 years agoresolve merge conflict
Waldemar Brodkorb [Thu, 12 Feb 2015 20:03:55 +0000 (14:03 -0600)]
resolve merge conflict

9 years agoreally fix tests after getopt long changes
Waldemar Brodkorb [Thu, 12 Feb 2015 20:01:52 +0000 (14:01 -0600)]
really fix tests after getopt long changes

uClibc changed getopt handling for testsuite, last
merge with uClibc breaked it again for uClibc-ng.

9 years agomark for development
Waldemar Brodkorb [Mon, 9 Feb 2015 04:01:23 +0000 (22:01 -0600)]
mark for development

9 years agoUse executables RPATH/RUNPATH when searching for libraries.
Waldemar Brodkorb [Sun, 8 Feb 2015 14:06:11 +0000 (15:06 +0100)]
Use executables RPATH/RUNPATH when searching for libraries.

Patch by Steve Ellcey <sellcey@imgtec.com> on uClibc mailinglist.

9 years agoonly advertise when choosen
Waldemar Brodkorb [Sat, 7 Feb 2015 08:54:24 +0000 (09:54 +0100)]
only advertise when choosen

As discussed on the uClibc mailinglist, do not advertise
when not activated.
See this thread:
http://lists.uclibc.org/pipermail/uclibc/2015-February/048766.html

9 years agomark 1.0.0 release
Waldemar Brodkorb [Mon, 2 Feb 2015 06:06:34 +0000 (07:06 +0100)]
mark 1.0.0 release

9 years agobuildsys: fix IS_IN_lib* for out-of-tree builds
Bernhard Reutner-Fischer [Wed, 28 Jan 2015 09:50:34 +0000 (10:50 +0100)]
buildsys: fix IS_IN_lib* for out-of-tree builds

41537a770b46f2376e74af58ba4885749339e81e erroneously stripped the
top_builddir off the per-directory flag setting which works fine for
in-tree builds but is not correct for O=
Just use the full path of the target files to apply the flags to fix
that thinko.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agomerge upstream changes
Waldemar Brodkorb [Mon, 26 Jan 2015 17:22:42 +0000 (11:22 -0600)]
merge upstream changes

9 years agolibc: sync_file_range missing comma
Bernhard Reutner-Fischer [Mon, 26 Jan 2015 15:50:29 +0000 (16:50 +0100)]
libc: sync_file_range missing comma

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd support for $ORIGIN
Waldemar Brodkorb [Sun, 25 Jan 2015 08:20:43 +0000 (02:20 -0600)]
add support for $ORIGIN

This is for example required, used and tested with OpenJDK 7.
No regressions found, while running the testsuite with embedded-test.

9 years agolibc: ppc64 etc: Fix sync_file_range
Bernhard Reutner-Fischer [Sat, 24 Jan 2015 19:50:02 +0000 (20:50 +0100)]
libc: ppc64 etc: Fix sync_file_range

Fix copy'n paste error for ppc64 and other sync_file_range2 arches

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoxtensa: ldso: drop unused address calculation from _dl_linux_resolve
Max Filippov [Sat, 10 Jan 2015 03:48:37 +0000 (06:48 +0300)]
xtensa: ldso: drop unused address calculation from _dl_linux_resolve

The result of the calculation in register a12 is never used as the
function _dl_linux_resolver only accepts 2 arguments. Drop it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoxtensa: ldso: coalesce dl_mprotect address ranges
Max Filippov [Sat, 10 Jan 2015 01:42:42 +0000 (04:42 +0300)]
xtensa: ldso: coalesce dl_mprotect address ranges

This noticeably lowers the number of mprotect calls at program startup,
e.g. for busybox: 7 calls vs 1835 calls.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd argument check in mknod
Wang Yufen [Tue, 11 Nov 2014 07:59:11 +0000 (15:59 +0800)]
add argument check in mknod

mknod() in glibc/eglibc will check the argument, like this,
  ...
  if (k_dev != dev) {
      __set_errno (EINVAL);
      return -1;
   }
  ...
So add argument check in uclibc's mknod() too.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd argument check in setenv()
Xishi Qiu [Tue, 4 Nov 2014 11:26:28 +0000 (19:26 +0800)]
add argument check in setenv()

setenv() in glibc/eglibc will check the argument, like this,
  ...
  if (name == NULL || *name == '\0' || strchr (name, '=') != NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }
  ...
So add argument check in uclibc's setenv() too.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agonptl: compile pt-vfork in ARM-mode
Bernhard Reutner-Fischer [Fri, 23 Jan 2015 14:47:02 +0000 (15:47 +0100)]
nptl: compile pt-vfork in ARM-mode

amending commit 49a67cf67d5a7194214566bc730ee7e28d55bbe1
could need a thumb implementation..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibc: Avoid redundant setting of ENOMEM
Bernhard Reutner-Fischer [Mon, 19 Jan 2015 21:49:10 +0000 (22:49 +0100)]
libc: Avoid redundant setting of ENOMEM

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agolibcrypt: return NULL on unsupported salt
Bernhard Reutner-Fischer [Mon, 19 Jan 2015 16:24:19 +0000 (17:24 +0100)]
libcrypt: return NULL on unsupported salt

BZ #7808 asks us not to fallback to DES if the optional SHA are disabled
but requested by the user.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoremove API dir. tests are disabled anyway.
Waldemar Brodkorb [Tue, 13 Jan 2015 21:50:58 +0000 (22:50 +0100)]
remove API dir. tests are disabled anyway.

9 years agoenable microblaze. at least toolchain creation is working without NPTL
Waldemar Brodkorb [Sat, 10 Jan 2015 02:51:17 +0000 (20:51 -0600)]
enable microblaze. at least toolchain creation is working without NPTL

9 years agotest: Adjust passed options
Bernhard Reutner-Fischer [Wed, 7 Jan 2015 12:26:42 +0000 (13:26 +0100)]
test: Adjust passed options

to follow suit 067637375658047d70c296606ae17ef0bc86499d

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoadd -fPIC to some tests.
Waldemar Brodkorb [Sun, 4 Jan 2015 15:05:12 +0000 (09:05 -0600)]
add -fPIC to some tests.

This is required to avoid a assertion error in binutils 2.24
for m68k.

9 years agomaybe fix an "noreturn function does return" warning
Thorsten Glaser [Thu, 1 Jan 2015 20:47:28 +0000 (20:47 +0000)]
maybe fix an "noreturn function does return" warning

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoshut up GCC, part 2
Thorsten Glaser [Thu, 1 Jan 2015 20:43:00 +0000 (20:43 +0000)]
shut up GCC, part 2

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agofix cast warning
Thorsten Glaser [Thu, 1 Jan 2015 19:44:26 +0000 (19:44 +0000)]
fix cast warning

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoshut up GCC
Thorsten Glaser [Thu, 1 Jan 2015 19:35:06 +0000 (19:35 +0000)]
shut up GCC

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoI think this is what you mean
Thorsten Glaser [Thu, 1 Jan 2015 19:34:08 +0000 (19:34 +0000)]
I think this is what you mean

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agosilence GCC
Thorsten Glaser [Thu, 1 Jan 2015 19:25:16 +0000 (19:25 +0000)]
silence GCC

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoremove apparently unused code, this time for real
Thorsten Glaser [Thu, 1 Jan 2015 19:13:18 +0000 (19:13 +0000)]
remove apparently unused code, this time for real

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoexplicitly cast (even though this casting is not very nice)
Thorsten Glaser [Thu, 1 Jan 2015 19:09:51 +0000 (19:09 +0000)]
explicitly cast (even though this casting is not very nice)

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agomake __dl_start, whose address is taken, into a real object type
Thorsten Glaser [Thu, 1 Jan 2015 19:08:07 +0000 (19:08 +0000)]
make __dl_start, whose address is taken, into a real object type

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
9 years agoremove unused Linux 2.0 compat code, otherwise c6x without NPTL is broken
Waldemar Brodkorb [Thu, 1 Jan 2015 19:34:18 +0000 (13:34 -0600)]
remove unused Linux 2.0 compat code, otherwise c6x without NPTL is broken

9 years agobe sure to use EXTRA_CFLAGS for tests, too
Waldemar Brodkorb [Tue, 30 Dec 2014 21:25:59 +0000 (22:25 +0100)]
be sure to use EXTRA_CFLAGS for tests, too

9 years agoremove another two warnings.
Waldemar Brodkorb [Tue, 30 Dec 2014 20:28:10 +0000 (21:28 +0100)]
remove another two warnings.

9 years agoMerge branch 'master' of git+ssh://openadk.org/git/uclibc-ng
Waldemar Brodkorb [Tue, 30 Dec 2014 17:34:38 +0000 (18:34 +0100)]
Merge branch 'master' of git+ssh://openadk.org/git/uclibc-ng

9 years agoreenable c6x for toolchain testing without NPTL
Waldemar Brodkorb [Tue, 30 Dec 2014 17:34:30 +0000 (18:34 +0100)]
reenable c6x for toolchain testing without NPTL

9 years agoremove comment
Waldemar Brodkorb [Mon, 29 Dec 2014 05:08:54 +0000 (23:08 -0600)]
remove comment

9 years agoreduce some unneeded warnings.
Waldemar Brodkorb [Mon, 29 Dec 2014 05:05:39 +0000 (23:05 -0600)]
reduce some unneeded warnings.

9 years agoremove hidden warning option, not useful for others.
Waldemar Brodkorb [Mon, 29 Dec 2014 04:55:38 +0000 (22:55 -0600)]
remove hidden warning option, not useful for others.

9 years agofix warning when doing make clean
Waldemar Brodkorb [Mon, 29 Dec 2014 04:51:58 +0000 (22:51 -0600)]
fix warning when doing make clean

9 years agoupdate INSTALL
Waldemar Brodkorb [Mon, 29 Dec 2014 04:51:11 +0000 (22:51 -0600)]
update INSTALL

9 years agorevert getopt changes to tests
Waldemar Brodkorb [Mon, 29 Dec 2014 04:10:35 +0000 (22:10 -0600)]
revert getopt changes to tests

The upstream changes are not complete and let the tests
fail. Revert the changes for now, may be upstream will make
a better fix later.

9 years agofor mips64 with N32 ABI we need to use newfstatat
Waldemar Brodkorb [Sun, 28 Dec 2014 20:33:35 +0000 (21:33 +0100)]
for mips64 with N32 ABI we need to use newfstatat

Fixes compile errors with latest util-linux.

9 years agorelocation fixes
Waldemar Brodkorb [Sun, 28 Dec 2014 16:09:15 +0000 (17:09 +0100)]
relocation fixes

From OpenWrt:
https://dev.openwrt.org/browser/trunk/toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch

9 years agosparc64 support was removed recently
Waldemar Brodkorb [Sun, 28 Dec 2014 16:02:28 +0000 (17:02 +0100)]
sparc64 support was removed recently

Remove leftover code.

9 years agodon't optimize for special mips cpu
Waldemar Brodkorb [Fri, 26 Dec 2014 17:43:07 +0000 (18:43 +0100)]
don't optimize for special mips cpu

When building optimized code for Lemote Yeelong system, a conflict
occurs. Better use optimized flags in your buildsystem, not in uClibc-ng.

9 years agomerge upstream changes
Waldemar Brodkorb [Thu, 25 Dec 2014 21:48:20 +0000 (22:48 +0100)]
merge upstream changes

9 years agosync tcp header with glibc
Waldemar Brodkorb [Thu, 25 Dec 2014 06:28:36 +0000 (07:28 +0100)]
sync tcp header with glibc

Nginx tries to find TCP_FASTOPEN, which is missing here.

9 years agomkostemp: fix implementation
Anthony G. Basile [Mon, 27 Oct 2014 20:13:34 +0000 (16:13 -0400)]
mkostemp: fix implementation

mkostemp(char *template, int flags) generates a unique temporary
filename from a template.  The flags parameter accepts three of
the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC.  The
current implementation of mkostemp(3) does not respect the flags
and in fact confuses the flags with the file mode which should
always be S_IRUSR | S_IWUSR.  This patch corrects this issue.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agotest: Some more tests under conditionals
Bernhard Reutner-Fischer [Mon, 15 Dec 2014 16:32:57 +0000 (17:32 +0100)]
test: Some more tests under conditionals

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agostdio: Fix printing 0.0
Bernhard Reutner-Fischer [Mon, 15 Dec 2014 15:13:01 +0000 (16:13 +0100)]
stdio: Fix printing 0.0

We were relying on FE_DIVBYZERO being turned off when printing
"%f", +-.0
Avoid the whole issue by looking at the sign-bit (in a rough
approximation).

Note that we do not handle gracefully:
  printf ("\n%llf\n", -0.0);
  printf ("\n%llf\n",  0.0);
nor %Lf for both when NOT cast to long double. Avoiding an FPE due to
broken numbers like these does not make sense to me.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agounistd: allow to turn off getopt_long
Bernhard Reutner-Fischer [Fri, 12 Dec 2014 15:18:12 +0000 (16:18 +0100)]
unistd: allow to turn off getopt_long

The GNU variant of getopt() previously had no way to turn off
getopt_long() support.

9 years agotest: disable ptytest unless HAS_PTY
Bernhard Reutner-Fischer [Fri, 12 Dec 2014 15:06:17 +0000 (16:06 +0100)]
test: disable ptytest unless HAS_PTY

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoconfig: move STDIO_FUTEXES up a bit
Bernhard Reutner-Fischer [Fri, 12 Dec 2014 13:43:55 +0000 (14:43 +0100)]
config: move STDIO_FUTEXES up a bit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agodisable test for noMMU
Waldemar Brodkorb [Wed, 10 Dec 2014 19:05:43 +0000 (13:05 -0600)]
disable test for noMMU

9 years agomkostemp: fix implementation
Anthony G. Basile [Mon, 27 Oct 2014 20:13:34 +0000 (16:13 -0400)]
mkostemp: fix implementation

mkostemp(char *template, int flags) generates a unique temporary
filename from a template.  The flags parameter accepts three of
the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC.  The
current implementation of mkostemp(3) does not respect the flags
and in fact confuses the flags with the file mode which should
always be S_IRUSR | S_IWUSR.  This patch corrects this issue.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
9 years agoadd argument check in mknod
wangyufen [Tue, 11 Nov 2014 07:59:11 +0000 (15:59 +0800)]
add argument check in mknod

mknod() in glibc/eglibc will check the argument, like this,
  ...
  if (k_dev != dev) {
      __set_errno (EINVAL);
      return -1;
   }
  ...
So add argument check in uclibc's mknod() too.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Tue, 9 Dec 2014 14:06:31 +0000 (15:06 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agosigaction: Fix !HAS_REALTIME compilation
Bernhard Reutner-Fischer [Tue, 9 Dec 2014 13:30:39 +0000 (14:30 +0100)]
sigaction: Fix !HAS_REALTIME compilation

In file included from ./include/signal.h:279:0,
 from libc/sysdeps/linux/x86_64/sigaction.c:22:
./include/bits/sigaction.h:32:29: error: unknown type name 'siginfo_t'
   void (*sa_sigaction)(int, siginfo_t *, void *);

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoremove text files not useful for uClibc-ng
Waldemar Brodkorb [Mon, 8 Dec 2014 05:56:29 +0000 (06:56 +0100)]
remove text files not useful for uClibc-ng

9 years agoarm: add RESET_PID in the clone impl
Wang Yufen [Fri, 5 Sep 2014 07:19:21 +0000 (15:19 +0800)]
arm: add RESET_PID in the clone impl

Called getpid() When creating a new process with clone(), getpid() returns
the father_process's value. It should be child_process's value.
The reason is missing a RESET_PID in the arm clone impl.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Thu, 4 Dec 2014 18:34:29 +0000 (19:34 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agomips: rename siginfo _timer members
Bernhard Reutner-Fischer [Wed, 3 Dec 2014 16:43:25 +0000 (17:43 +0100)]
mips: rename siginfo _timer members

Rename _timer[12] to si_tid and si_overrun to fix compilation of
strace-4.9+

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agobuildsys: remove some obsolete optimization CFLAGS
Bernhard Reutner-Fischer [Wed, 3 Dec 2014 15:18:54 +0000 (16:18 +0100)]
buildsys: remove some obsolete optimization CFLAGS

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Mon, 1 Dec 2014 19:47:00 +0000 (20:47 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agolocale: Add wcsftime()
Bernhard Reutner-Fischer [Tue, 18 Nov 2014 17:27:47 +0000 (18:27 +0100)]
locale: Add wcsftime()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Thu, 13 Nov 2014 22:27:23 +0000 (23:27 +0100)]
Merge remote-tracking branch 'origin/upstream'

9 years agonptl: compile pt-vfork in ARM-mode
Bernhard Reutner-Fischer [Thu, 13 Nov 2014 19:58:52 +0000 (20:58 +0100)]
nptl: compile pt-vfork in ARM-mode

could need a thumb implementation..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 years agoMerge remote-tracking branch 'origin/upstream'
Waldemar Brodkorb [Tue, 11 Nov 2014 19:58:19 +0000 (20:58 +0100)]
Merge remote-tracking branch 'origin/upstream'