version 1.28, 2014/11/26 21:40:17 |
version 1.29, 2014/11/26 23:42:14 |
|
|
.Xr gunzip 1 ; |
.Xr gunzip 1 ; |
otherwise, with |
otherwise, with |
.Xr open 2 . |
.Xr open 2 . |
|
If |
|
.Xr open 2 |
|
fails, append |
|
.Pa .gz |
|
and try with |
|
.Xr gunzip 1 . |
Return a file descriptor open for reading in |
Return a file descriptor open for reading in |
.Fa fd , |
.Fa fd , |
or -1 on failure. |
or -1 on failure. |
|
|
Parse a file or file descriptor. |
Parse a file or file descriptor. |
If |
If |
.Va fd |
.Va fd |
is -1, |
is -1, open |
.Va fname |
.Va fname |
is opened for reading. |
with |
|
.Fn mparse_open . |
Otherwise, |
Otherwise, |
.Va fname |
.Va fname |
is assumed to be the name associated with |
is assumed to be the name associated with |
.Va fd . |
.Va fd . |
This may be called multiple times with different parameters; however, |
Calls |
|
.Fn mparse_wait |
|
before returning. |
|
This function may be called multiple times with different parameters; however, |
.Fn mparse_reset |
.Fn mparse_reset |
should be invoked between parses. |
should be invoked between parses. |
Declared in |
Declared in |
|
|
.It Fn mparse_wait |
.It Fn mparse_wait |
Bury a |
Bury a |
.Xr gunzip 1 |
.Xr gunzip 1 |
child process |
child process that was spawned with |
.Fa child_pid |
|
that was spawned with |
|
.Fn mparse_open . |
.Fn mparse_open . |
To be called after the parse sequence is complete. |
To be called after the parse sequence is complete. |
|
Not needed after |
|
.Fn mparse_readfd , |
|
but does no harm in that case, either. |
Returns |
Returns |
.Dv MANDOCLEVEL_OK |
.Dv MANDOCLEVEL_OK |
on success and |
on success and |