cvs commit: src/share/examples/mdoc example.9
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Sep 27 01:39:01 PDT 2006
pjd 2006-09-27 08:39:00 UTC
FreeBSD src repository
Modified files:
share/examples/mdoc example.9
Log:
- Use existing functions mtx_lock() and mtx_unlock().
- 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
Revision Changes Path
1.4 +9 -8 src/share/examples/mdoc/example.9
More information about the cvs-src
mailing list