From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1348 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 10/10] More glibc ABI compatability Date: Sun, 22 Jul 2012 18:40:33 -0700 Message-ID: <20120722184033.79886996@newbook> References: <20120722181332.191d4fa5@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/N.mOGcTW5uco7U8=L+3TW7." X-Trace: dough.gmane.org 1343007650 12044 80.91.229.3 (23 Jul 2012 01:40:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 01:40:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1349-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 23 03:40:51 2012 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 1St7di-0000GB-1c for gllmg-musl@plane.gmane.org; Mon, 23 Jul 2012 03:40:50 +0200 Original-Received: (qmail 23804 invoked by uid 550); 23 Jul 2012 01:40:49 -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 23796 invoked from network); 23 Jul 2012 01:40:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=cBEC8pRURFE8XNFxyAEwre/Q5TGsg46wo2Gn2O0Aa/Sx7AYh0o48+81D8FEzo8pOOOdurcKBth1f5RR+Q7b2wBP7KTAWRWlOIObJUAUvxuY18Xo5dlP2y6rnPZMnnTyIaB5hONgpfafi7FSx8GfsK6eo4sNUQeE6hllTS4s4xTk=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type; In-Reply-To: <20120722181332.191d4fa5@newbook> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1348 Archived-At: --MP_/N.mOGcTW5uco7U8=L+3TW7. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, 22 Jul 2012 18:13:32 -0700 Isaac Dunham wrote: > This patch series is basically a reworked version of orc's previous > patch. > From what orc said, the first patch should provide enough to build > Xorg; I haven't tested this yet. > A few more patches are syscall wrappers (splice) or trivial > functions (finite). > Finally, there are several aliases. This has the __*_internal aliases, for more ABI compatability with glibc. Isaac Dunham --MP_/N.mOGcTW5uco7U8=L+3TW7. Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=10-_internal.diff diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index 1886efa..f923f38 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -2,6 +2,7 @@ #include "shgetc.h" #include "floatscan.h" #include "stdio_impl.h" +#include "libc.h" static long double strtox(const char *s, char **p, int prec) { @@ -30,3 +31,5 @@ long double strtold(const char *s, char **p) { return strtox(s, p, 2); } + +weak_alias(strtod, __strtod_internal); diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 4a949cb..490cf21 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -1,6 +1,7 @@ #include "stdio_impl.h" #include "intscan.h" #include "shgetc.h" +#include "libc.h" static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim) { @@ -51,3 +52,8 @@ uintmax_t strtoumax(const char *s, char **p, int base) { return strtoull(s, p, base); } + +weak_alias(strtoll, __strtoll_internal); +weak_alias(strtol, __strtol_internal); +weak_alias(strtoul, __strtoul_internal); +weak_alias(strtoull, __strtoull_internal); --MP_/N.mOGcTW5uco7U8=L+3TW7.--