Bug 282306: Update spelling of "non-zero" to "nonzero" for C23 compliance
C23 (ISO/IEC 9899:2024) standard specifies the spelling "nonzero" instead of "non-zero." This PR updates all occurrences of "non-zero" in the codebase (excluding man pages originating outside of FreeBSD itself) to align with the standard.
PR: 282306
Done.
Sorry for my oversight, it should have Reported by: kargl in the commit log too.
Done.
@concussious you have commit access, right? Or do you need somebody else to commit this?
Im pretty sure most of these are an incorrect application of this spelling.
Specifically, returns nonzero is right, but non-zero number is also right because non modifies more than one word.
@asomers If my mentors @sergio-carlavilla and/or @mhorne consent, then yes I can. However, I don't understand if @bsdimp is saying that we could but maybe shouldn't do this.
I'm saying that the style I've seen is that non-zero is hyphenated only when it modifies a noun, but not when used as a noun or on it's own. That means about some significant number of the changes are wrong by that style.
However, other places I see other advice. So I'd punt the question to doceng@ to make a ruling on which style to use.
C23 uses nonzero consistently. POSIX.1-2024 uses both non-zero and nonzero.