[Bug 268479] lib/libc/stdlib/getenv.c may have a problem with putenv()
Date: Tue, 27 Dec 2022 06:09:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268479 Dennis Clarke <dclarke@blastwave.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug Status|New |Closed --- Comment #17 from Dennis Clarke <dclarke@blastwave.org> --- (In reply to Mark Millard from comment #15) I have to agree fully and I think this topic has been hammered down neatly with nothing further needs to be said. You say "I find no evidence that posix requires the kind of interpretation you are expecting" and I must fully agree here. There really is no statement from the OpenGroup et. al. which would claim that the uname struct members need be anything portable or even dare I say it "standards conforming". I know that I hand waving around "cannot be used portably" without the real detailed digging that you have done. With regards to uname() I must agree that "FreeBSD is not violating POSIX via FreeBSD's behavior" entirely. This means that I will need to wrap some code in "ifdef" stuff and then drag out sysctl and friends. I will begin work on that immediately and also cease and desist the usage of uname() everywhere else. It may work on NetBSD and Solaris systems but we now know there is no such promise across multiple implementations. Such is the state of affairs. To echo Warner Losh in full hand waving "wow let's stop this now" because : "Yea, POSIX doesn't say what the values mean, so anything we return is standard conforming, so therefore we're standards compliant. It might not be useful, but it is standards compliant. :)" Yea verily I say unto you all : I would like to close this as "Not a Bug" with "It never was anyways!" Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional -- You are receiving this mail because: You are the assignee for the bug.