summaryrefslogtreecommitdiffstats
path: root/share/examples/mdoc/example.9
Commit message (Collapse)AuthorAgeFilesLines
* - Use existing functions mtx_lock() and mtx_unlock().pjd2006-09-271-8/+9
| | | | | | | | | | | | | | | | | | | - Change variable name to 'error', as this is what is mostly used for functions that return an error. - Add mutex(9) to the SEE ALSO section. - Bump the date. I don't really like the example code. I'd prefer symmetry where possible, eg. mtx_lock(&example_lock); error = example(NULL, EXAMPLE_ONE); mtx_unlock(&example_lock); if (error != 0) return (error); But I'll leave it as it is for now. Reviewed by: simon
* Move the LOCKING section to before the EXAMPLES section.jkoshy2005-01-151-18/+22
| | | | | | Make example locking calls in the EXAMPLES section. Reviewed by: keramida
* A few more mdoc fixes I missed in the suggestions of Ruslan.keramida2005-01-121-2/+2
|
* Add a sample manpage for section 9.keramida2005-01-121-0/+338
Suggested by: simon Reviewed by: ru
OpenPOWER on IntegriCloud