=================================================================== RCS file: /cvs/mandoc/mandoc.3,v retrieving revision 1.29 retrieving revision 1.30 diff -u -p -r1.29 -r1.30 --- mandoc/mandoc.3 2014/11/26 23:42:14 1.29 +++ mandoc/mandoc.3 2015/01/15 02:29:26 1.30 @@ -1,4 +1,4 @@ -.\" $Id: mandoc.3,v 1.29 2014/11/26 23:42:14 schwarze Exp $ +.\" $Id: mandoc.3,v 1.30 2015/01/15 02:29:26 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2010 Ingo Schwarze @@ -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: November 26 2014 $ +.Dd $Mdocdate: January 15 2015 $ .Dt MANDOC 3 .Os .Sh NAME @@ -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.