aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-11 08:45:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-11 08:45:02 +0000
commitcba067a1683b887c2f67855698dc6ccd235c14a5 (patch)
tree9c4411e1d114d1e5786b7cbbc0139d8d8ce65b42
parentdd9f5fd79b03dfad93430831db5b5be5cb3b98ec (diff)
downloadmandoc-cba067a1683b887c2f67855698dc6ccd235c14a5.tar.gz
mandoc-cba067a1683b887c2f67855698dc6ccd235c14a5.tar.zst
mandoc-cba067a1683b887c2f67855698dc6ccd235c14a5.zip
Be more specific about `Dv', `Er', and `Ev'.
-rw-r--r--mdoc.726
1 files changed, 20 insertions, 6 deletions
diff --git a/mdoc.7 b/mdoc.7
index 5bd8aa10..b353f66f 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.188 2011/05/26 09:26:16 kristaps Exp $
+.\" $Id: mdoc.7,v 1.189 2011/07/11 08:45:02 kristaps Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 26 2011 $
+.Dd $Mdocdate: July 11 2011 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -1691,14 +1691,21 @@ See also
and
.Sx \&Os .
.Ss \&Dv
-Defined variables such as preprocessor constants.
+Defined variables such as preprocessor constants, constant symbols,
+enumeration values, and so on.
.Pp
Examples:
+.Dl \&.Dv NULL
.Dl \&.Dv BUFSIZ
.Dl \&.Dv STDOUT_FILENO
.Pp
See also
-.Sx \&Er .
+.Sx \&Er
+and
+.Sx \&Ev
+for special-purpose constants and
+.Sx \&Va
+for variable symbols.
.Ss \&Dx
Format the DragonFly BSD version provided as an argument, or a default
value if no argument is provided.
@@ -1774,14 +1781,17 @@ argument is used as the enclosure head, for example, specifying \e(lq
will emulate
.Sx \&Do .
.Ss \&Er
-Display error constants.
+Error constants for definitions of the
+.Va errno
+libc global variable.
.Pp
Examples:
.Dl \&.Er EPERM
.Dl \&.Er ENOENT
.Pp
See also
-.Sx \&Dv .
+.Sx \&Dv
+for general constants.
.Ss \&Es
This macro is obsolete and not implemented.
.Ss \&Ev
@@ -1791,6 +1801,10 @@ Environmental variables such as those specified in
Examples:
.Dl \&.Ev DISPLAY
.Dl \&.Ev PATH
+.Pp
+See also
+.Sx \&Dv
+for general constants.
.Ss \&Ex
Insert a standard sentence regarding exit values.
Its syntax is as follows: