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=-2.9 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE 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 BA5492733A for ; Mon, 11 Mar 2024 21:36:12 +0100 (CET) Received: (qmail 19514 invoked by uid 550); 11 Mar 2024 20:31:22 -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 Received: (qmail 19475 invoked from network); 11 Mar 2024 20:31:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710189319; x=1710794119; darn=lists.openwall.com; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tvr/1MYQ8T2F/Kc9yUEFfcTd5mAfEtL8LTVwlORaraU=; b=M6xSJCu7Nm1EbFhNvFE0HETTmClJ4ixoLmxOaIbeD+yZCk8HgIdd0hPk6cDOimWLEO BXIyUIRRUyFWA7A8aNXu4G+bHn6eAGME42BM1H2korWeTzkJgaSVB+LOqsuScjgFPrf4 A4u1NV5xR3zdeTOhG2CeH+6IRa1YwrQGF0VXGnklmMPPpGBz/rYl+xp46C8yW+b5rmxq X7DJsejPi97mSFUsyeOIoX81NjVtN8v6/rdFqhtO93qCEndTGVzZiib4HncOAhHdAtFY rRfes4JUeLjuL9jrwfC8W1FHXa4rJY/yqp+unt0QyhfyY4vHy3QG7L00F1eOS2zObv5x oOnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710189319; x=1710794119; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tvr/1MYQ8T2F/Kc9yUEFfcTd5mAfEtL8LTVwlORaraU=; b=QpNLUq6YPcIA0J5U6QXnyl4bvscTf7fDP4AdvK30JHG8TQYEuOFJGbPEaJMGHm709c AYkt823tBcYLp1q65BwA9e/UpkLs9zqHWBeKDpqU0mo2Yi2qlN9Z4wOai0ebu45yDo1M 5dLNKiMVLLAkHXbCHPqd4wFWYiuuq/3lWzo+hrA8yl0e0mFioNBAsuJwFr9c4MCZRy7D rNECCIQdsP8cf447qvnWAZDbJ03O50712V/8W6BXMi+jI3h0TCKeYFsyh0h8+MqHYKaq EM5n5lLrEGai1HNIFcLMV99mh/5cW27oA3kXOJ8WGnqpLUee5gWvRlLKwu2qJw1u0lcK ceDg== X-Forwarded-Encrypted: i=1; AJvYcCU2av4ecuEQKawvpYg9HXNWBq6XjKuOueJFCQP6teqyCVGanXrocHA2e4Zk5a2gYfNx0UDQiS7Q9eOsgmquRhvIw2LYisX8ng== X-Gm-Message-State: AOJu0Yycxseej1oeJ+ArAYUEDaHEC1OXNB+WsvXmU5K1l0D8KUSq0YyE 0mLpXQplKbxTeqF6EBxeWV5+5qrwPxXoUJVhKwaOkS8YIU/D7ikzqXXSiMwEYU8b7zUYYyS3480 men2zbkCcdD0K5ojKAgTkizNQD1RzzJTLuuOq X-Google-Smtp-Source: AGHT+IEfFVh4wzZoVN5RQMbBaUFYWkZP6v0hTlC5Vtys/Z4arJr+55dPpHVkUnOVRGzIeQENYIEXmChvcWpVvRD/Ec4= X-Received: by 2002:a0c:c24a:0:b0:68c:92ca:fec5 with SMTP id w10-20020a0cc24a000000b0068c92cafec5mr7622616qvh.51.1710189319236; Mon, 11 Mar 2024 13:35:19 -0700 (PDT) MIME-Version: 1.0 References: <20240310234410.GW4163@brightrain.aerifal.cx> <875xxsljax.fsf@oldenburg.str.redhat.com> <20240311194435.GX4163@brightrain.aerifal.cx> In-Reply-To: <20240311194435.GX4163@brightrain.aerifal.cx> From: enh Date: Mon, 11 Mar 2024 13:35:07 -0700 Message-ID: To: Rich Felker Cc: sjf5462@rit.edu, Florian Weimer , Andreas Schwab , Alejandro Colomar , Thorsten Glaser , musl@lists.openwall.com, NRK , Guillem Jover , libc-alpha@sourceware.org, libbsd@lists.freedesktop.org, "Serge E. Hallyn" , Iker Pedrosa , Christian Brauner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] Re: Tweaking the program name for functions On Mon, Mar 11, 2024 at 12:44=E2=80=AFPM Rich Felker wrot= e: > > On Mon, Mar 11, 2024 at 12:05:11PM -0700, enh wrote: > > Android's libc actually does do this for everything except for > > first-stage `init`, the one process that doesn't have a /dev/null > > equivalent available yet: > > https://android.googlesource.com/platform/bionic/+/master/libc/bionic/l= ibc_init_common.cpp#358 > > In the absence of /dev/null, you could probably call pipe() and close > the unwanted end. This works with no fs available, and has the "bonus" > that you'll get a nice SIGPIPE crash if you accidentally try to write > anything to it. (that's an interesting idea. i'll have to think about that...) > Rich