From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 6BF872F433 for ; Sat, 26 Oct 2024 03:57:29 +0200 (CEST) Received: (qmail 1137 invoked by uid 550); 26 Oct 2024 01:57:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com x-ms-reactions: disallow Received: (qmail 1099 invoked from network); 26 Oct 2024 01:57:23 -0000 Date: Sat, 26 Oct 2024 03:57:15 +0200 (CEST) From: Thorsten Glaser To: musl@lists.openwall.com In-Reply-To: Message-ID: References: <878quc7xzy.fsf@alyssa.is> <20241025201011.GY10433@brightrain.aerifal.cx> <874j4zoob8.fsf@alyssa.is> Content-Language: de-Zsym-DE-1901-u-em-text-rg-denw-tz-utc, en-Zsym-GB-u-cu-eur-em-text-fw-mon-hc-h23-ms-metric-mu-celsius-rg-denw-tz-utc-va-posix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [musl] Prototypes without implementations On Sat, 26 Oct 2024, Laurent Bercot wrote: > I'd rather have libcs omit stub implementations entirely, so that > applications can test for functionality without having to run anything. > Stub implementations make tests and integration of replacement Fully agreed. It=E2=80=99s easy to make a compile+link test; my autoconf replacement depends on it (and does that right) but runtime is a whole other issue. I don=E2=80=99t even mind about headers declaring functions that aren=E2=80= =99t there because only a fool tool would look at headers only=E2=80=A6 though omitting them when it=E2=80=99s easy to know (e.g. via cpp predefs) it=E2= =80=99s not there is of course better. bye, //mirabilos --=20 11:56=E2=8E=9C=C2=ABliwakura:#!/bin/mksh=C2=BB also, i wanted to add mksh t= o my own distro =E2=94=82 i was disappointed that there is no makefile =E2=94=82 but somehow the Buil= d.sh is the least painful built system i've ever seen =E2=94=82 honours CC, {CPP,C,= LD}FLAGS properly =E2=94=82 looks cleary like done by someone who knows what they ar= e doing