From nobody Sun Sep 28 11:17:29 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cZMHH6fj4z68Wr2; Sun, 28 Sep 2025 11:17:31 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cZMHH60Kxz3Vv2; Sun, 28 Sep 2025 11:17:31 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759058251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9zw0LiomytCRLV8oMiLxnIbEdF3fW4TTsgYvvB9Xd8A=; b=MDtdlyGoJa7bMrwUFLIeRLS/d8GsMZjPZKD3D3xTwnsPfQX7xCzH48nUpWgt5As5NRM3Pl 9TpVduSYkFibIUqyajLYAwnLmHjBCZA2MkMoiUWbsJiUf6t4knYyrtkZON8YhKhoeKtcjs KsuYFHZusa4enqZ34TaXUz3ekvh20UaGar8ADCoa5TJRXj6z4hJ/EG0QCYaaaJbipWZo09 S5XrP74fjgQlz7jLVk6lxWVLZu5/oTxUYuGgsQs3hfGB8MginRBa2aq1aDVcOO8yClU8Qn MbI9Ar/0Zchol4GW7lMKrvFM0+gXzBCJ/odkggz3ym0RVZcrMn+Lf7TKIxzSrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759058251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9zw0LiomytCRLV8oMiLxnIbEdF3fW4TTsgYvvB9Xd8A=; b=F8k7woI7vJIYKpR6eVGqhFjDtcSYoCipkUrcs9DJa4u5Oy3XVaglwQl9dfbc+jb/xzZCEL juP6j4tlYZD9xaI5UeEX7m3Hnkql90M2qzGufjGB9Q2wbpHJ2tbOb+48advnzSUPSZahTq WTav/H1h83Op1uclKI1wvKJMISpAvTC2RVMeMeEsfhk/ACiqnnNGZuud7DpMNY6yukEfyL y+982GuRdrVNMwnXaR6fv9eQArs8TwXN1yYYq93tQ12edZV8lXRGGhsrpeLKWfR3RBUjPv rjCUPLE3Ls97iejT3YstKHGRaO0o89PZdpXKNoHDmCpsz7qK96jt0aBfiAtq3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759058251; a=rsa-sha256; cv=none; b=OC7V5QsZr3p8HIw8UQnDjwkB73ZDtoTQOf3s/8hXLJ2euHEsmMBkmJcnckDHMoPc0pNbF3 69vsOOVUET/q2PLgAjND0ouSwAIAwtAyzjCKuFg122VyCESwug4B//4/fgvAeNBAAShgQt dzZZuUnc8HhkuOHApoP/HNgy5shLYcEFxxtOGqfcT5wYq5ivroxHSJ62ei24fFZ99ZGhrp mQZchAYr94lhh0CIRTktwDAQVTqqHVh42nKHeYAOsXJDbkxor15zlwrXHdKHHw/Po1iBXy l3YP6WYdHRsO2O7Ho00CoM7TIGnMuOhlelAAilkS8St86zz1+yWhEz2gGFYx/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ltc.des.dev (88-177-82-251.subs.proxad.net [88.177.82.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4cZMHH4YYLzmGk; Sun, 28 Sep 2025 11:17:31 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id A43E988375; Sun, 28 Sep 2025 13:17:29 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Konstantin Belousov Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: d58339f39874 - main - tzcode: Drop libc namespace In-Reply-To: (Konstantin Belousov's message of "Sat, 27 Sep 2025 23:25:12 +0300") References: <202509271707.58RH7ajb090983@gitrepo.freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sun, 28 Sep 2025 13:17:29 +0200 Message-ID: <86frc6bzcm.fsf@ltc.des.dev> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Konstantin Belousov writes: > It does change the behavior. Now a user-provided open/fstat/pthread_* > functions can interpose the system functions, making tz code doing someth= ing > that was not intended. > > In other words, namespacing guaranteed that tzcode was not affected by > the app playing with libc namespace. That is a side effect of namespace.h but not its original purpose, which was to allow libc to call pthread functions, which would be stubbed out when libc_r was not loaded. This is no longer needed, and namespace.h has bitrotted and is missing a bunch of syscalls and functions (including nearly every *at() system call, with the sole exception of openat()). If we really want to do what you suggest, there are better ways (like what macOS does). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org