summaryrefslogtreecommitdiffstats
path: root/mandoc.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-15 02:29:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-15 02:29:26 +0000
commit23a511d07a0f2e04178f507d768c9e5e7e86f858 (patch)
tree1a41dc23d0f52a238fdb1ca33e2e52b10668a919 /mandoc.3
parentb0031dfe9b9cc55f4b61c2a1d9e68a6348a85adb (diff)
downloadmandoc-23a511d07a0f2e04178f507d768c9e5e7e86f858.tar.gz
downgrade .so failure from FATAL to ERROR
Diffstat (limited to 'mandoc.3')
-rw-r--r--mandoc.319
1 files changed, 8 insertions, 11 deletions
diff --git a/mandoc.3 b/mandoc.3
index af48348a..5277f505 100644
--- a/mandoc.3
+++ b/mandoc.3
@@ -176,7 +176,9 @@ initiate a parsing sequence with
and
.Fn mparse_alloc ;
.It
-parse files or file descriptors with
+parse files with
+.Fn mparse_open
+and
.Fn mparse_readfd ;
.It
retrieve a parsed syntax tree, if the parse was successful, with
@@ -413,17 +415,12 @@ Declared in
implemented in
.Pa read.c .
.It Fn mparse_readfd
-Parse a file or file descriptor.
-If
-.Va fd
-is -1, open
-.Va fname
-with
+Parse a file descriptor opened with
+.Xr open 2
+or
.Fn mparse_open .
-Otherwise,
-.Va fname
-is assumed to be the name associated with
-.Va fd .
+Pass the associated filename in
+.Va fname .
Calls
.Fn mparse_wait
before returning.