aboutsummaryrefslogtreecommitdiff
path: root/share/examples/mdoc/example.9
Commit message (Collapse)AuthorAgeFilesLines
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Remove misleading macros from -width argumentsMateusz Piotrowski2020-12-281-2/+0
| | | | | | Also, remove $FreeBSD$ tag from manual page examples. MFC after: 1 week
* Remove macros from the width arguments passed to Bl macrosMateusz Piotrowski2020-11-121-1/+1
| | | | | | | | | I've not removed the Er macro from one of the lists in example.9, however, because it seems to be doing some special kind of magic. Let's leave it there for now. Notes: svn path=/head/; revision=367621
* Add SPDX tags to example manual pages and POSIX copyright.Mateusz Piotrowski2018-07-201-0/+3
| | | | | | | | | Reviewed by: eadler Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D14958 Notes: svn path=/head/; revision=336546
* Remove 'All Rights Reserved' from the collection copyright and templates.Warner Losh2018-05-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original Berkeley Software Distributions were made in the 1980's and 1990's. At that time, the Buenos Ares Convention of 1910 was in force in most of the countries in the Americas. It required an affirmative statement of rights reservation, typically using 'All Rights Reserved.' The Regents included this phrase in their copyright notices to invoke this treaty to ensure maximal copyright protection. In the 1990's, Latin America coutries ratifeid the Berne Convention on copyrights which prohibited them from requiring an affirmative statement to reserve the rights. When Nicaragua ratified in 2000, the Buenos Ares Convention of 1910 was effectively repealed. This made all the 'All Rights Reserved' phrases obsolete and legal deadweight most of the time, and certainly in the cases removed here. Since it's no longer required, and is in fact meaningless, core has decided to dropped it from the project's collection copyright and sample templates. It encourages other rights holders to do the same after consultation with their legal department. More see https://en.wikipedia.org/wiki/Buenos_Aires_Convention for more information. Approved by: core@ (emaste@, jhb@) Differential Review: https://reviews.freebsd.org/D15264 Notes: svn path=/head/; revision=333391
* use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* - Use existing functions mtx_lock() and mtx_unlock().Pawel Jakub Dawidek2006-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 Notes: svn path=/head/; revision=162692
* Move the LOCKING section to before the EXAMPLES section.Joseph Koshy2005-01-151-18/+22
| | | | | | | | | Make example locking calls in the EXAMPLES section. Reviewed by: keramida Notes: svn path=/head/; revision=140302
* A few more mdoc fixes I missed in the suggestions of Ruslan.Giorgos Keramidas2005-01-121-2/+2
| | | | Notes: svn path=/head/; revision=140139
* Add a sample manpage for section 9.Giorgos Keramidas2005-01-121-0/+338
Suggested by: simon Reviewed by: ru Notes: svn path=/head/; revision=140133