From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4866 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Preparing for releases 1.1.0 and 1.0.1 Date: Thu, 10 Apr 2014 15:11:23 +0200 Message-ID: <20140410131122.GR3034@port70.net> References: <20140410024045.GA6538@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1397135502 25651 80.91.229.3 (10 Apr 2014 13:11:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2014 13:11:42 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4870-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 10 15:11:36 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WYElT-0006hh-Ow for gllmg-musl@plane.gmane.org; Thu, 10 Apr 2014 15:11:35 +0200 Original-Received: (qmail 27723 invoked by uid 550); 10 Apr 2014 13:11:34 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27715 invoked from network); 10 Apr 2014 13:11:34 -0000 Content-Disposition: inline In-Reply-To: <20140410024045.GA6538@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4866 Archived-At: * Rich Felker [2014-04-09 22:40:45 -0400]: > The commits which I plan to cherry-pick into the 1.0.1 release are: > > 30c1205acd73c8481ca34f0a41de1d41884d07b5 > 0a8d98285f46f721dabf38485df916c02d6a4675 > 91d5aa06572d2660122f9a06ed242fef0383f292 > 109048e031f39fbb370211fde44ababf6c04c8fb > 89740868c9f1c84b8ee528468d12df1fa72cd392 > e94d0692864ecf9522fd6a97610a47a2f718d3de > 6fbdeff0e51f6afc38fbb1476a4db81322779da4 looks ok > - Testing x32 and/or sh ports to determine if they're of sufficient > quality to promote up from "experimental" to the list of officially > supported archs. > > - Informing me of any pending patches or trivial fix requests I might > have misplaced that could be committed before release. i have some uncommitted local modifications/todo items none of them are critical * x32 timex is broken (should use long long on x32) diff --git a/include/sys/timex.h b/include/sys/timex.h index 2e68888..e404e8b 100644 --- a/include/sys/timex.h +++ b/include/sys/timex.h @@ -17,6 +17,9 @@ struct ntptimeval { }; struct timex { +// TODO: x32 +// 7fb30128527a4220f181c2867edd9ac178175a87 2013-12-27 +// x32 adjtimex system call is the same as x86-64 adjtimex system call, unsigned modes; long offset, freq, maxerror, esterror; int status; * math alias issues on non-x86 archs (about +80bytes) (either this or __may_alias__) diff --git a/src/math/modfl.c b/src/math/modfl.c index f736bba..4b03a4b 100644 --- a/src/math/modfl.c +++ b/src/math/modfl.c @@ -3,7 +3,12 @@ #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long double modfl(long double x, long double *iptr) { - return modf(x, (double *)iptr); + double d; + long double r; + + r = modf(x, &d); + *iptr = d; + return r; } #elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384 #if LDBL_MANT_DIG == 64 diff --git a/src/math/sincosl.c b/src/math/sincosl.c index 2c60080..d3ac1c4 100644 --- a/src/math/sincosl.c +++ b/src/math/sincosl.c @@ -4,7 +4,10 @@ #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 void sincosl(long double x, long double *sin, long double *cos) { - sincos(x, (double *)sin, (double *)cos); + double sind, cosd; + sincos(x, &sind, &cosd); + *sin = sind; + *cos = cosd; } #elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384 void sincosl(long double x, long double *sin, long double *cos) * use 1/eps for rounding check (with *4 it's nicer, ymmv) diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index f6e7f38..6e50965 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -343,12 +343,12 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) x = *d % i; /* Are there any significant digits past j? */ if (x || d+1!=z) { - long double round = CONCAT(0x1p,LDBL_MANT_DIG); + long double round = 4/LDBL_EPSILON; long double small; - if (*d/i & 1) round += 2; - if (x>=5) template[i] = 'A'+(r&15)+(r&16)*2; * broken legacy header.. diff --git a/include/sys/procfs.h b/include/sys/procfs.h index f7936c4..a1fcabf 100644 --- a/include/sys/procfs.h +++ b/include/sys/procfs.h @@ -40,7 +40,7 @@ struct elf_prpsinfo char pr_zomb; char pr_nice; unsigned long int pr_flag; -#if UINTPTR_MAX == 0xffffffff +#if UINTPTR_MAX == 0xffffffff && !defined __powerpc__ unsigned short int pr_uid; unsigned short int pr_gid; #else * linux 3.14 stuff (sched_setattr/sched_getattr syscall numbers, new sockopt flag, new arphdr type) * makefile/config changes for out-of-tree build