From nobody Mon Dec 26 20:36:23 2022 X-Original-To: standards@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 4NgqLv54xxz1HfC3 for ; Mon, 26 Dec 2022 20:36:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NgqLv2mtjz42Ks for ; Mon, 26 Dec 2022 20:36:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672086983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ks+hzEMcLymrm/hbAwcBUsPcVAlfv9A/HEGBk7LrQ4E=; b=B+zpFGMyeutb36SdMLKVFkLpkhrVfdnkC0r5eKONgHp/DU/s1VCytWMeOwanpuBawB6IZq QbUuhdE1BcNdBN8rtfqTv0uBp6cVCnyI+AW6X70F4yYZyDV6JX6VIr+kvzt0aZiY72XaCf SH0mORPxoH/ml0UaIMJEAqlqRjq5ft4hxfqDvy5y6ZQsPTZU7Q++4bxk/7z05algaBrGGh bSMa+IaTtiA/9+0j/loQhkCWQeby95d53qNm/xJD8lbZPFY2wRE/GdfNUJxvmNSvALjYT2 258bnA9C9hZHst9GC4+GiUmSl00+7c/ttPqLeCovi5xnoZCkj0A40hwAkutPHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672086983; a=rsa-sha256; cv=none; b=ODqVQRYFH0JYhVMgO6eTmBfcccnyD+UFb26CBosjoD8INNYY1fUZqOOBagjuVMl8QsFgNe x4hO2mXq1pnrW8ryvT3N+LXR41F9uiKjDKFmD31QM9a7vUCfCVMRfsW1PpLH63TIYdSIYn y2pTWhmTxOPemDmt0coELBCK6vgagontJiA8StuSAe/NqrHb5ysym+e1OZ64Y7Fq9BhmTN ifkU+z+3JHzznJ2c/JuFqhLWfso/hSVdTMKvsf+29n4sdxAfqgOMAvuV9suNCm7u8t8aug KMFZLhM7ESAQAnJipjbrBbtKel2k1zIsbR42xeOaqmhBNTkwsHjrj0i9KHZ/3A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NgqLv1Zt5zkGP for ; Mon, 26 Dec 2022 20:36:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BQKaNfh069440 for ; Mon, 26 Dec 2022 20:36:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BQKaNGL069439 for standards@FreeBSD.org; Mon, 26 Dec 2022 20:36:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 268479] lib/libc/stdlib/getenv.c may have a problem with putenv() Date: Mon, 26 Dec 2022 20:36:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268479 --- Comment #15 from Mark Millard --- (In reply to Mark Millard from comment #14) The informative part of the https://pubs.opengroup.org/onlinepubs/969991979= 9/ for the uname command reports: QUOTE It was suggested that this utility cannot be used portably since the format of the symbols is implementation-defined. The POSIX.1 working group could not achieve consensus on defining these formats in the underlying uname() function, and there was no expectation that this volume of POSIX.1-2017 would be any more successful. END QUOTE The informative material for the subroutine reports: QUOTE The values of the structure members are not constrained to have any relation to the version of this volume of POSIX.1-2017 implemented in the operating system. . . . The uname() function originated in System III, System V, and related implementations, and it does not exist in Version 7 or 4.3 BSD. The values it returns are set at system compile time in those historical implementations. END QUOTE I find no evidence that posix requires the kind of interpretation you are expecting. The "cannot be used portably" status, "lack of any relation" for the values to POSIX.1-2017, and the not-set-at-compile-time implementations that came after the initial ones would be examples that tend to confirm that FreeBSD is not violating POSIX via FreeBSD's behavior. I'm afraid that you can not look to POSIX to give you the kind of guarantees that you are looking for. It is more OS specific as to what, if any, interface(s) provide the kind of guarantees you are looking for. (sysctl for FreeBSD seems to cover some of it via some of its read-only content.) It is true that some systems could choose to define uname in a way that, for that kind of system, would have the properties. --=20 You are receiving this mail because: You are the assignee for the bug.=