History log of /freebsd-10-stable/share/examples/mdoc/example.9
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 307403 16-Oct-2016 sevan

MFC r267667:
use .Mt to mark up email addresses consistently (part1)

PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 162692 27-Sep-2006 pjd

- 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


# 140302 15-Jan-2005 jkoshy

Move the LOCKING section to before the EXAMPLES section.
Make example locking calls in the EXAMPLES section.

Reviewed by: keramida


# 140139 12-Jan-2005 keramida

A few more mdoc fixes I missed in the suggestions of Ruslan.


# 140133 12-Jan-2005 keramida

Add a sample manpage for section 9.

Suggested by: simon
Reviewed by: ru