Page MenuHomeFreeBSD

style(9): Add advice about $FreeBSD$
ClosedPublic

Authored by imp on Jun 16 2021, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 2:50 AM
Unknown Object (File)
Sun, Oct 20, 10:12 AM
Unknown Object (File)
Sun, Oct 20, 10:12 AM
Unknown Object (File)
Sun, Oct 20, 10:12 AM
Unknown Object (File)
Sun, Oct 20, 10:12 AM
Unknown Object (File)
Sep 29 2024, 11:26 AM
Unknown Object (File)
Sep 29 2024, 11:17 AM
Unknown Object (File)
Sep 29 2024, 11:16 AM

Details

Summary

Codify our standard practice with $FreeBSD$
o New code only needs it if it might land in stable/12
o Old code should retain it until stable/12 is unsupported
o We'll do a bulk remove in the future: don't do it proactively.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jun 16 2021, 3:39 PM

Minor nit, thanks for the update.

share/man/man9/style.9
154

s/Otherwise/Otherwise,/

Wording tweak from bcr
Use .Li markup as used elsewhere for $FreeBSD$
Add ", if applicable" to an earlier mention of $FreeBSD$

imp marked an inline comment as done.Jun 16 2021, 5:21 PM

Tweaked a little.
A bit torn on whether to move the bulk of the wording changes up or not...

Add some additional, relevant advice.

allanjude added inline comments.
share/man/man9/style.9
118–119

Possibly as a separate commit:

For non C/C++ language source files, if applicable, add
.Li $\&FreeBSD$
after any copyright and license comment.

This revision is now accepted and ready to land.Jun 17 2021, 2:00 PM

take up allanjude's suggestion, with a tweak or two (sorry allan,
I did this before I saw your review :)

This revision now requires review to proceed.Jun 17 2021, 2:55 PM
ceri added inline comments.
share/man/man9/style.9
119–124

This is a little unclear. Do C/C++ source files need to follow the same rules about including/not including $FreeBSD$? If so, why is this highlighted text where it is?

Try to address ceri's concern

share/man/man9/style.9
119–124

I did a reorder to mention both cases, which should clear things up.

This revision is now accepted and ready to land.Jun 17 2021, 6:22 PM
This revision was automatically updated to reflect the committed changes.