From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4915 Path: news.gmane.org!not-for-mail From: M Farkas-Dyck Newsgroups: gmane.linux.lib.musl.general Subject: Re: __xmknod, __sysv_signal Date: Fri, 18 Apr 2014 22:11:02 -0500 Message-ID: References: <20140419025204.GS26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1397877082 32729 80.91.229.3 (19 Apr 2014 03:11:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 03:11:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4919-gllmg-musl=m.gmane.org@lists.openwall.com Sat Apr 19 05:11:16 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 1WbLgQ-0001Ne-Sq for gllmg-musl@plane.gmane.org; Sat, 19 Apr 2014 05:11:14 +0200 Original-Received: (qmail 30431 invoked by uid 550); 19 Apr 2014 03:11:14 -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 30423 invoked from network); 19 Apr 2014 03:11:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=g0aVIRCxSVk8OCs1MUz996u5fGvHoAUhk1Y5Q16DJzM=; b=ceEWv99p/JZyb4B9d4Q8Rm/Gv21bF0VwmVHb+FpWsClz9afqdgXa98TyZQKs1DxV3y figFf7fGK8HzRtikEHc9T+HLtXVzUCrHsqiiwbiXNxF5WZY9hODA3FDt9L9HOW2ivvqY C1/66oon9p3frQyTI4by3FPpdbz0VYhipv0el9jfjS/zudeTvDRHp9DnaJ5oMH1Cdo7K 8HuiETYVydWFq2z/XncfSZuAF0j7Vq7pr/uZRJSXC4r+uGUUSVGt5ZyS4M5TzMKKyVL4 io2hHGyGVHEUJeWKOYlP96eNd4Po5kbegyxTERZFld2sikjaIa5bdy836J+prfCVJAwR u6kg== X-Received: by 10.180.8.195 with SMTP id t3mr4735000wia.23.1397877062621; Fri, 18 Apr 2014 20:11:02 -0700 (PDT) In-Reply-To: <20140419025204.GS26358@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4915 Archived-At: On 18/04/2014, Rich Felker wrote: > For __xmknod, I think this is just the ABI symbol glibc uses for > mknod, and we could certainly add it (though I question whether there > are any useful programs using it that couldn't just be rebuilt against > musl). I wish to build ghc against musl, but it's like making yogurt: I need ghc to build ghc, and the ghc folks in their great wisdom distribute binaries... dynamic-linked against GNU turds. I myself doubt whether we ought to include them and pollute the ABI, but I thought that others might be in a like situation, which is why I ask. I am now using ghc with a locally-patched musl, so I hope to not need these symbols further myself, but the ultimate choice is yours. --- src/stat/__xmknod.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/stat/__xmknod.c diff --git a/src/stat/__xmknod.c b/src/stat/__xmknod.c new file mode 100644 index 0000000..62499de --- /dev/null +++ b/src/stat/__xmknod.c @@ -0,0 +1,6 @@ +#include + +int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev) +{ + return mknod (path, mode, dev); +} -- 1.8.5.2 --- src/signal/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/signal/signal.c b/src/signal/signal.c index c0f063e..29e03c8 100644 --- a/src/signal/signal.c +++ b/src/signal/signal.c @@ -13,3 +13,4 @@ void (*signal(int sig, void (*func)(int)))(int) } weak_alias(signal, bsd_signal); +weak_alias(signal, __sysv_signal); -- 1.8.5.2