summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-10-08 11:37:27 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-10-08 11:37:27 +0000
commit883b5b98624dbbe866921a6a986a1e617463fc8c (patch)
treee81e1e3da75022d87cf77c1f2924a88c031904d3
parent2b2db95658bfed58d248fb00c7ac9adce2088396 (diff)
downloadmandoc-883b5b98624dbbe866921a6a986a1e617463fc8c.tar.gz
Implement a basic -Tman `Rv', like `Ex'.
-rw-r--r--mdoc_man.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index b23aad88..1fd97438 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -103,8 +103,11 @@ static const struct manact manacts[MDOC_MAX + 1] = {
{ cond_body, pre_enc, post_enc, "[", "]" }, /* Op */
{ NULL, NULL, NULL, NULL, NULL }, /* _Ot */
{ NULL, pre_enc, post_enc, "\\fI", "\\fP" }, /* _Pa */
- { NULL, NULL, NULL, NULL, NULL }, /* _Rv */
- /* FIXME: low-hanging `Rv' fruit. */
+ { NULL, pre_enc, post_enc, "The \\fB",
+ "\\fP\nfunction returns the value 0 if successful;\n"
+ "otherwise the value -1 is returned and the global\n"
+ "variable \\fIerrno\\fP is set to indicate the error."
+ }, /* Rv */
{ NULL, NULL, NULL, NULL, NULL }, /* _St */
{ NULL, NULL, NULL, NULL, NULL }, /* _Va */
{ NULL, NULL, NULL, NULL, NULL }, /* _Vt */