Suggested by: Alexander Ziaee
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 68102 Build 64985: arc lint + arc unit
Event Timeline
Hey, thanks for doing this. Initial bikeshed:
| share/man/man5/style.mdoc.5 | ||
|---|---|---|
| 230 | This is very broad. According to mdoc(7), it's very specifically: "Documents the utility invocation syntax, function call syntax, or *device configuration*." So, OtherBSDs interpret "device configuration" to mean exclusively the config(8) declarations, but in FreeBSD for drivers only (afaik), we've seemingly always interpreted this to also include the files that configure devices at runtime. | |
| 236 | ||
| share/man/man5/style.mdoc.5 | ||
|---|---|---|
| 230 | Hey! I've read mdoc's take on this as well. I just thought that it would be nice to document what we already do. I couldn't think of a better phrase for now than "all kinds of relevant information". Perhaps we could just list what's allowed, which would be:
anything else? | |
- Improve the descirption. Point the reader to mdoc(5) for the defaults and additionally allow very specific files.
- Use X instead of %d.
| share/man/man5/style.mdoc.5 | ||
|---|---|---|
| 231 | 5 would make sense as a file format, but its a 7 as a language specifier. | |
| 232 | I wish we could say something that sounds less exclusive. I feel like this is going to be used against us like "well style.mdoc says a b or c". | |
| 242 | This also doesn't need to be quoted, so maybe we shouldn't tell them to quote it so we don't promote cargo culting, especially since it's a whole line argument macro | |
| share/man/man5/style.mdoc.5 | ||
|---|---|---|
| 253 | We would be if that was the only place we used it, but the synopsis isnt the only place its put in the manual. It get enumerated in the synopsis but still has to be explained usually in SYSCTLS or SYSCTL VARIABLES (the latter is more common but also a bit redundant). But, this is what we've been doing. If we use something other than Cd, you'll have to abuse the formatting with low level roff escapes too, which we do not do and I do not want to recommend. | |
| share/man/man5/style.mdoc.5 | ||
|---|---|---|
| 237 | We also use device hints, see ppc(4) | |