[PATCH 1/1] [PATCH resend] need fallback to libm-test-ulps-generic

2011-04-18 Thread Jian Peng
Under test/math/, there is libm-test-ulps-generic used as fallback
in case that libm-test-ulps-$(TARGET_ARCH) does not exist.

The fallback logic is missing in test/math/Makefile.in.

Signed-off-by: Jian Peng 
---
 test/math/Makefile.in |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index e76cbdb..4ab1d93 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -23,9 +23,11 @@ EXTRA_LDFLAGS   := -lm
 
 PERL := /usr/bin/perl
 
+MATH_TARGET := $(if $(wildcard 
libm-test-ulps-$(TARGET_ARCH)),$(TARGET_ARCH),generic)
+
 $(TESTS): libm-test.c
 
-libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
-   $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) 
./libm-test.inc -o "." 2>&1 > /dev/null
+libm-test.c: libm-test-ulps-$(MATH_TARGET) libm-test.inc gen-libm-test.pl
+$(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(MATH_TARGET) 
./libm-test.inc -o "." 2>&1 > /dev/null
 
 EXTRA_CLEAN := libm-test.c libm-test-ulps.h
-- 
1.7.4.1


___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


[PATCH 1/1] [PATCH v1] math-test: missing libm-test-ulps-mips

2011-04-18 Thread Jian Peng
Under test/math, libm-test-ulps-mips is missing or build for MIPS
is broken

Simply copy it from glibc-ports-2.9/sysdeps/mips/fpu/libm-test-ulps
to fix this.

Signed-off-by: Jian Peng 
---
 test/math/libm-test-ulps-mips |  890 +
 1 files changed, 890 insertions(+), 0 deletions(-)
 create mode 100644 test/math/libm-test-ulps-mips

diff --git a/test/math/libm-test-ulps-mips b/test/math/libm-test-ulps-mips
new file mode 100644
index 000..b514496
--- /dev/null
+++ b/test/math/libm-test-ulps-mips
@@ -0,0 +1,890 @@
+# Begin of automatic generation
+
+# atan2
+Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025":
+float: 3
+ifloat: 3
+Test "atan2 (0.75, -1.0) == 2.49809154479650885165983415456218025":
+float: 3
+ifloat: 3
+Test "atan2 (1.390625, 0.9296875) == 0.981498387184244311516296577615519772":
+float: 1
+ifloat: 1
+
+# atanh
+Test "atanh (0.75) == 0.972955074527656652552676371721589865":
+float: 1
+ifloat: 1
+
+# cacosh
+Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 
- 2.141449159960199416055713254211 i":
+double: 1
+float: 7
+idouble: 1
+ifloat: 7
+Test "Imaginary part of: cacosh (-2 - 3 i) == 
1.9833870299165354323470769028940395 - 2.141449159960199416055713254211 i":
+double: 1
+float: 3
+idouble: 1
+ifloat: 3
+
+# casin
+Test "Real part of: casin (0.75 + 1.25 i) == 
0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 
i":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+
+# casinh
+Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 
- 0.96465850440760279204541105949953237 i":
+double: 5
+float: 1
+idouble: 5
+ifloat: 1
+Test "Imaginary part of: casinh (-2 - 3 i) == 
-1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 
i":
+double: 3
+float: 6
+idouble: 3
+ifloat: 6
+Test "Real part of: casinh (0.75 + 1.25 i) == 
1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 
i":
+float: 1
+ifloat: 1
+Test "Imaginary part of: casinh (0.75 + 1.25 i) == 
1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 
i":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+
+# catan
+Test "Real part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 
- 0.22907268296853876629588180294200276 i":
+float: 3
+ifloat: 3
+Test "Imaginary part of: catan (-2 - 3 i) == 
-1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 
i":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+Test "Real part of: catan (0.75 + 1.25 i) == 
1.10714871779409050301706546017853704 + 0.549306144334054845697622618461262852 
i":
+float: 4
+ifloat: 4
+
+# catanh
+Test "Real part of: catanh (-2 - 3 i) == 
-0.1469422552975204743278515471595 - 1.3389725222944935611241935759091443 
i":
+double: 4
+idouble: 4
+Test "Imaginary part of: catanh (-2 - 3 i) == 
-0.1469422552975204743278515471595 - 1.3389725222944935611241935759091443 
i":
+float: 4
+ifloat: 4
+Test "Real part of: catanh (0.75 + 1.25 i) == 
0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 
i":
+double: 1
+idouble: 1
+Test "Imaginary part of: catanh (0.75 + 1.25 i) == 
0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 
i":
+float: 6
+ifloat: 6
+
+# cbrt
+Test "cbrt (-27.0) == -3.0":
+double: 1
+idouble: 1
+Test "cbrt (0.75) == 0.908560296416069829445605878163630251":
+double: 1
+idouble: 1
+Test "cbrt (0.9921875) == 0.997389022060725270579075195353955217":
+double: 1
+idouble: 1
+
+# ccos
+Test "Imaginary part of: ccos (-2 - 3 i) == 
-4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 
i":
+float: 1
+ifloat: 1
+Test "Real part of: ccos (0.75 + 1.25 i) == 
1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 
i":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+Test "Imaginary part of: ccos (0.75 + 1.25 i) == 
1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 
i":
+float: 1
+ifloat: 1
+
+# ccosh
+Test "Real part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 
+ 0.511822569987384608834463849801875634 i":
+float: 1
+ifloat: 1
+Test "Imaginary part of: ccosh (-2 - 3 i) == 
-3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 
i":
+float: 1
+ifloat: 1
+Test "Real part of: ccosh (0.75 + 1.25 i) == 
0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 
i":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+Test "Imaginary part of: ccosh (0.75 + 1.25 i) == 
0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 
i":
+float: 1
+ifloat: 1
+
+# cexp
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == 
-0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 
i":
+float: 1
+ifloat: 1
+Test "Real part of: cexp (0.75 + 1.25 i) == 
0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 
i":
+float: 1
+

[PATCH 1/1] [PATCH v1] need fallback to libm-test-ulps-generic

2011-04-18 Thread Jian Peng
Under test/math/, there is libm-test-ulps-generic used as fallback
in case that libm-test-ulps-$(TARGET_ARCH) does not exist.

The fallback logic is missing in test/math/Makefile.in.

Signed-off-by: Jian Peng 
---
 test/math/Makefile.in |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index e76cbdb..4ab1d93 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -23,9 +23,11 @@ EXTRA_LDFLAGS   := -lm
 
 PERL := /usr/bin/perl
 
+MATH_TARGET := $(if $(wildcard 
libm-test-ulps-$(TARGET_ARCH)),$(TARGET_ARCH),generic)
+
 $(TESTS): libm-test.c
 
-libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
-   $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) 
./libm-test.inc -o "." 2>&1 > /dev/null
+libm-test.c: libm-test-ulps-$(MATH_TARGET) libm-test.inc gen-libm-test.pl
+$(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(MATH_TARGET) 
./libm-test.   inc -o "." 2>&1 > /dev/null
 
 EXTRA_CLEAN := libm-test.c libm-test-ulps.h
-- 
1.7.4.1


___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


Re: `utime(2)' marked as legacy under linux

2011-04-18 Thread Peter Mazinger
http://pubs.opengroup.org/onlinepubs/9699919799/
search for utimes (or see the sys/time.h)

http://pubs.opengroup.org/onlinepubs/9699919799/functions/utimes.html

Issue 6/SuSv3: legacy, Issue 7/SuSv4: legacy removed

Peter

 Original-Nachricht 
> Datum: Mon, 18 Apr 2011 17:10:54 -0400
> Von: Rich Felker 
> An: uclibc@uclibc.org
> Betreff: Re: `utime(2)\' marked as legacy under linux

> On Mon, Apr 18, 2011 at 01:46:27PM +0200, Peter Mazinger wrote:
> > 
> >  Original-Nachricht 
> > > Datum: Thu, 14 Apr 2011 18:14:37 +0200
> > > Von: Giuseppe Scrivano 
> > > An: Bernhard Reutner-Fischer , "Peter Mazinger"
> 
> > > CC: uclibc@uclibc.org
> > > Betreff: Re: `utime(2)\' marked as legacy under linux
> > 
> > > Thanks for your comments.
> > > 
> > > Is the following patch ok?
> > 
> > not really, utime is obsolete in SuSv4 (and the utime.h header as well)
> > utimes was legacy in SuSv3 but was "reenabled" in SuSv4
> 
> On what are you basing this information? I can't find utimes in SUSv4
> at all? It seems to have been completely removed. The non-obsolete
> functions are "futimens" and "utimensat", declared in sys/stat.h.
> 
> Wait, "utimes" is also in the documentation for the above, under the
> XSI option, but it does not appear in the ToC. I suppose this is an
> error. In any case, I think only "futimens" and "utimensat" should be
> used, especially since they're the only ones which can access the full
> nanosecond precision.
> 
> Rich
> ___
> uClibc mailing list
> uClibc@uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


Re: `utime(2)' marked as legacy under linux

2011-04-18 Thread Rich Felker
On Mon, Apr 18, 2011 at 01:46:27PM +0200, Peter Mazinger wrote:
> 
>  Original-Nachricht 
> > Datum: Thu, 14 Apr 2011 18:14:37 +0200
> > Von: Giuseppe Scrivano 
> > An: Bernhard Reutner-Fischer , "Peter Mazinger" 
> > 
> > CC: uclibc@uclibc.org
> > Betreff: Re: `utime(2)\' marked as legacy under linux
> 
> > Thanks for your comments.
> > 
> > Is the following patch ok?
> 
> not really, utime is obsolete in SuSv4 (and the utime.h header as well)
> utimes was legacy in SuSv3 but was "reenabled" in SuSv4

On what are you basing this information? I can't find utimes in SUSv4
at all? It seems to have been completely removed. The non-obsolete
functions are "futimens" and "utimensat", declared in sys/stat.h.

Wait, "utimes" is also in the documentation for the above, under the
XSI option, but it does not appear in the ToC. I suppose this is an
error. In any case, I think only "futimens" and "utimensat" should be
used, especially since they're the only ones which can access the full
nanosecond precision.

Rich
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


test

2011-04-18 Thread Carmelo AMOROSO
Hi,
sorry it's just a test for the antispoofing.

Carmelo
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


Re: `utime(2)' marked as legacy under linux

2011-04-18 Thread Peter Mazinger

 Original-Nachricht 
> Datum: Thu, 14 Apr 2011 18:14:37 +0200
> Von: Giuseppe Scrivano 
> An: Bernhard Reutner-Fischer , "Peter Mazinger" 
> 
> CC: uclibc@uclibc.org
> Betreff: Re: `utime(2)\' marked as legacy under linux

> Thanks for your comments.
> 
> Is the following patch ok?

not really, utime is obsolete in SuSv4 (and the utime.h header as well)
utimes was legacy in SuSv3 but was "reenabled" in SuSv4

Peter
> 
> Cheers,
> Giuseppe
> 
> 
> 
> From f9b2362086445622536d6521dccd236175121899 Mon Sep 17 00:00:00 2001
> From: Giuseppe Scrivano 
> Date: Thu, 14 Apr 2011 17:44:23 +0200
> Subject: [PATCH] utime: do not mark as obsolescent.
> 
> ---
>  Makefile.in   |2 +-
>  libc/sysdeps/linux/common/Makefile.in |3 +--
>  libc/sysdeps/linux/common/utime.c |1 -
>  3 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/Makefile.in b/Makefile.in
> index 0c1f414..e2dec0f 100644
> --- a/Makefile.in
> +++ b/Makefile.in
> @@ -280,7 +280,7 @@ HEADERS_RM-$(UCLIBC_LINUX_SPECIFIC)  +=
> sys/fsuid.h sys/inotify.h sys/pe
>  HEADERS_RM-$(UCLIBC_SUPPORT_AI_ADDRCONFIG)   += ifaddrs.h
>  HEADERS_RM-$(UCLIBC_SV4_DEPRECATED)  += ustat.h sys/ustat.h
> bits/ustat.h
>  HEADERS_RM-$(UCLIBC_SUSV3_LEGACY)+= sys/timeb.h regexp.h
> -HEADERS_RM-$(UCLIBC_SUSV4_LEGACY)+= utime.h ucontext.h
> +HEADERS_RM-$(UCLIBC_SUSV4_LEGACY)+= ucontext.h
>  
>  ifneq ($(findstring install,$(MAKECMDGOALS)),)
>  $(addprefix $(PREFIX)$(DEVEL_PREFIX),include $(MULTILIB_DIR)):
> diff --git a/libc/sysdeps/linux/common/Makefile.in
> b/libc/sysdeps/linux/common/Makefile.in
> index b0754df..f7affc1 100644
> --- a/libc/sysdeps/linux/common/Makefile.in
> +++ b/libc/sysdeps/linux/common/Makefile.in
> @@ -31,7 +31,7 @@ ifeq
> ($(UCLIBC_LINUX_SPECIFIC)$(UCLIBC_HAS_THREADS_NATIVE),yy)
>  CSRC-y += madvise.c
>  endif
>  ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
> -CSRC- += fork.c getpid.c raise.c open.c close.c read.c write.c
> +CSRC- += fork.c getpid.c raise.c open.c close.c read.c write.c utime.c
>  CSRC- += $(if $(findstring =arm=,=$(TARGET_ARCH)=),vfork.c)
>  CSRC- += $(if $(findstring =x86_64=,=$(TARGET_ARCH)=),vfork.c)
>  CSRC- += $(if $(findstring
> =mips=y=,=$(TARGET_ARCH)=$(CONFIG_MIPS_O32_ABI)=),waitpid.c)
> @@ -49,7 +49,6 @@ CSRC-$(UCLIBC_HAS_REALTIME) += clock_getres.c
> clock_gettime.c clock_settime.c \
>   sched_rr_get_interval.c sched_setparam.c sched_setscheduler.c sigqueue.c
>  #
> clock_getcpuclockid|clock_nanosleep|mq_timedreceive|mq_timedsend|posix_fadvise|posix_fallocate|posix_madvise|posix_memalign|posix_mem_offset|posix_spawnattr_destroy|posix_spawnattr_init|posix_spawnattr_getflags|posix_spawnattr_setflags|posix_spawnattr_getpgroup|posix_spawnattr_setpgroup|posix_spawnattr_getschedparam|posix_spawnattr_setschedparam|posix_spawnattr_getschedpolicy|posix_spawnattr_setschedpolicy|posix_spawnattr_getsigdefault|posix_spawnattr_setsigdefault|posix_spawnattr_getsigmask|posix_spawnattr_setsigmask|posix_spawnattr_init|posix_spawnattr_setflags|posix_spawnattr_setpgroup|posix_spawnattr_setschedparam|posix_spawnattr_setschedpolicy|posix_spawnattr_setsigdefault|posix_spawnattr_setsigmask|posix_spawn_file_actions_addclose|posix_spawn_file_actions_addopen|posix_spawn_file_actions_adddup2|posix_spawn_file_actions_addopen|posix_spawn_file_actions_destroy|posix_spawn_file_actions_init|posix_spawn_file_actions_init|posix_spawn|posix_spawnp|posix_spawnp|posix_type
 d_mem_get_info|pthread_mutex_timedlock|sem_timedwait
>  CSRC-$(UCLIBC_HAS_ADVANCED_REALTIME) += posix_fadvise64.c posix_fadvise.c
> -CSRC-$(UCLIBC_SUSV4_LEGACY) += utime.c
>  CSRC-$(UCLIBC_HAS_EPOLL) += epoll.c
>  CSRC-$(UCLIBC_HAS_XATTR) += xattr.c
>  CSRC-$(UCLIBC_HAS_PROFILING) += noophooks.c #pcprofile.c
> diff --git a/libc/sysdeps/linux/common/utime.c
> b/libc/sysdeps/linux/common/utime.c
> index c9fd1bf..a9f988a 100644
> --- a/libc/sysdeps/linux/common/utime.c
> +++ b/libc/sysdeps/linux/common/utime.c
> @@ -31,5 +31,4 @@ int utime(const char *file, const struct utimbuf *times)
>   return utimes(file, times ? timevals : NULL);
>  }
>  #endif
> -link_warning(utime, "the use of OBSOLESCENT `utime' is discouraged, use
> `utimes'")
>  libc_hidden_def(utime)
> -- 
> 1.7.4.1

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


Re: [PATCH 1/2] dl-startup: fix typos in block comment

2011-04-18 Thread Carmelo AMOROSO
On 4/16/2011 7:02 PM, Kevin Cernekee wrote:
> Signed-off-by: Kevin Cernekee 
> ---
>  ldso/ldso/dl-startup.c |   16 
>  1 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/ldso/ldso/dl-startup.c b/ldso/ldso/dl-startup.c
> index a51b583..4492660 100644
> --- a/ldso/ldso/dl-startup.c
> +++ b/ldso/ldso/dl-startup.c
> @@ -32,8 +32,8 @@
>  
>  /*
>   * The main trick with this program is that initially, we ourselves are not
> - * dynamicly linked.  This means that we cannot access any global variables 
> or
> - * call any functions.  No globals initially, since the Global Offset Table
> + * dynamically linked.  This means that we cannot access any global variables
> + * or call any functions.  No globals initially, since the Global Offset 
> Table
>   * (GOT) is initialized by the linker assuming a virtual address of 0, and no
>   * function calls initially since the Procedure Linkage Table (PLT) is not 
> yet
>   * initialized.
> @@ -55,12 +55,12 @@
>   *
>   * Fortunately, the linker itself leaves a few clues lying around, and when 
> the
>   * kernel starts the image, there are a few further clues.  First of all, 
> there
> - * is Auxiliary Vector Table information sitting on which is provided to us 
> by
> - * the kernel, and which includes information about the load address that the
> - * program interpreter was loaded at, the number of sections, the address the
> - * application was loaded at and so forth.  Here this information is stored 
> in
> - * the array auxvt.  For details see linux/fs/binfmt_elf.c where it calls
> - * NEW_AUX_ENT() a bunch of time
> + * is Auxiliary Vector Table information sitting on the stack which is 
> provided
> + * to us by the kernel, and which includes information about the address
> + * that the program interpreter was loaded at, the number of sections, the
> + * address the application was loaded at, and so forth.  Here this 
> information
> + * is stored in the array auxvt.  For details see linux/fs/binfmt_elf.c where
> + * it calls NEW_AUX_ENT() a bunch of times
>   *
>   * Next, we need to find the GOT.  On most arches there is a register 
> pointing
>   * to the GOT, but just in case (and for new ports) I've added some (slow) C

Applied, thanks.

Carmelo

___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc