summaryrefslogtreecommitdiffstats
path: root/share/man/man9/style.9 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* some Bx/Ox conversion;jmc2013-08-141-5/+4
| | | | From: Jan Stary
* no longer any need to quote macro lines with >9 args;jmc2013-08-141-3/+3
| | | | From: Jan Stary
* replace "err(1, (char *)NULL);" with "err(1, NULL);"jmc2012-11-021-3/+3
| | | | | | from Rafael ok haesbaert ratchov
* Recommend using "unsigned int" instead of just "unsigned".ratchov2012-04-111-2/+8
| | | | ok deraadt@, tweaks from jmc@ and todd@
* no more lint;jmc2012-04-081-4/+3
|
* remove mdoc.samples(7): all info already is in mdoc(7)schwarze2011-09-171-4/+4
| | | | feedback and ok jmc@
* the warnings produced by -Wtraditional are not interesting, so remove it.tedu2008-11-141-9/+4
| | | | ok jmc otto
* make clear that the usage and synopsis take the same formsobrado2007-09-281-3/+3
| | | | | | problem noticed by jakemsr@; rewording suggested by jmc@ ok jakemsr@, jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* delete some overly fascist rules.. prodded by tom/jmcderaadt2007-05-291-7/+2
|
* forever loops may be done with for or while, it doesnt matter;thib2007-02-151-5/+1
| | | | | | so remove a line that says it matters. ok deraadt@
* remove bogus non-style advice that just causes "discussions"deraadt2006-05-271-12/+1
|
* Encourage using strtonum(3).ray2006-03-211-9/+6
| | | | | | Sync variable declarations with variables used in getopt(3) loop. OK otto@
* Remove case '?': from getopt example.ray2006-03-191-2/+1
| | | | OK otto@
* make the example more likely to compile, ha ha; maticd@gmail.comderaadt2005-10-271-2/+2
|
* lclint is not in the ports tree anymore, splint is. OK jmc@.xsa2005-08-081-2/+2
|
* note that documentation has its own style guide, mdoc.samples(7);jmc2005-07-091-2/+7
| | | | suggested by beck@, ok tdeval@
* Update style recommendation around NULL usage, especially in functionkrw2005-05-151-6/+3
| | | | | | | parameters, after discussions a while ago with mickey@, deraadt@, millert@. Verbiage by millert@, ok millert@.
* specify an indent for displays, plus some grammar;jmc2004-04-101-127/+123
| | | | ok deraadt@
* add FILES section documenting license.template;jmc2004-02-241-2/+6
| | | | | | from Nick Nauwelaerts; ok deraadt@
* describe `volatile' as type-qualifier, not specifier;jmc2004-02-101-2/+2
| | | | from Mathias K. Straede (PR 3681);
* Note that for usage(), numbers (as options) come first, followed byjmc2003-10-041-2/+8
| | | | | | | | alphabetical order (uppercase takes precedence over lower). Man page option descriptions also appear in this order. This is in line with NetBSD/FreeBSD pages. Discussed with millert@ and deraadt@
* /usr include files -> /usr/include files;jmc2003-09-291-5/+5
| | | | | | from FreeBSD (rev. 1.103); ok deraadt@ miod@
* swap .Pa Aq -> .Aq Pa to make both macros expand;jmc2003-06-291-7/+7
|
* typos;jmc2003-04-201-3/+3
|
* start new sentence on a new linedavid2003-02-261-3/+3
| | | | ok mpech@
* double word typos;jmc2003-02-251-2/+2
| | | | all from David Krause - thanks!
* Style, punctuation and grammar fixups from Ted Unangst on bugs@.hugh2003-01-211-6/+6
|
* Add a bit on volatile vs volatile pointers. OK jason@ millert@marc2002-10-111-6/+30
|
* use void keyword in usage example. ok theokjell2002-06-031-2/+2
|
* 'SEE ALSO' audit in 'share/man/':mpech2002-05-231-2/+2
| | | | | | | | o) sort; o) "," is separator of entries; o) don't use "." or "," in the last entry; millert@ ok
* recommending sysexits.h has been ridiculous from the startderaadt2002-04-011-7/+4
|
* Deprecate __Pmillert2002-02-171-8/+6
|
* o Don't use register except in conjunction with assemblermillert2002-01-121-1/+52
| | | | | o use volatile to avoid clobbering by longjmp or vfork o variables to be modified in signal handlers should be volatile sig_atomic_t
* Powered by @mantoya:mpech2001-10-051-2/+3
| | | | | | | | o) start new sentence on a new line; o) minor mdoc fixes; millert@ ok Tip of the day: www.mpechismazohist.com
* e.g. and i.e. cleanupwilfried2001-10-041-4/+4
|
* speling; jsyn@nthought.commillert2001-06-281-3/+4
|
* No variable names associated with prototype parameters, even in the kernel.millert2001-06-241-7/+10
| | | | By general consensus...
* No space between function name and parenthesized arg types in a functionmillert2001-06-241-6/+6
| | | | prototype. Also nuke some __P's while I am in here.
* As discussed ages ago we prefer ANSI for new code.millert2001-06-181-31/+23
|
* Remove lies about printf vs. puts/fputs/putchar.millert2001-04-101-6/+1
|
* Correct getopt usage in sample code; fixes PR/1729.aaron2001-03-141-2/+2
|
* first sweep ...brad2001-03-061-2/+2
| | | | | | | | OpenBSD -> .Ox NetBSD -> .Nx FreeBSD -> .Fx -- Ok'd by aaron@
* Put KNF in the NAME field so apropos/man -k will find it.jason2001-02-041-2/+2
|
* Clarify that local variable declarations should be sorted by size largest toaaron2001-01-251-4/+4
| | | | smallest; smart@monkey.org
* Revert the previous commit: it made sense for human consumption, but lint(1)aaron2000-12-211-5/+2
| | | | | and other code checkers don't like this special case. Pointed out by espie@ and michaels@inet.no.
* Mention that /* NOTREACHED */ is unncessary following an exit(3) call, where itaaron2000-12-201-2/+5
| | | | is obvious.
* Various fixes; from gluk@ptci.ruaaron2000-10-251-3/+3
|
* General man page cleanups, mostly to remove trailing whitespace, hardaaron2000-10-121-63/+73
| | | | sentence breaks, and other such things.
* Do not leave `(' characters dangling at the end of lines; instead, use theaaron2000-03-061-3/+3
| | | | appropriate mdoc macros to handle these cases.