version 1.3, 2017/02/06 19:02:37 |
version 1.7, 2018/12/13 11:55:46 |
|
|
*/ |
*/ |
#include "config.h" |
#include "config.h" |
|
|
|
#if HAVE_CMSG_XPG42 |
|
#define _XPG4_2 |
|
#endif |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
|
|
|
|
#include "roff.h" |
#include "roff.h" |
#include "mdoc.h" |
#include "mdoc.h" |
#include "man.h" |
#include "man.h" |
|
#include "mandoc_parse.h" |
#include "main.h" |
#include "main.h" |
#include "manconf.h" |
#include "manconf.h" |
|
|
|
|
|
|
static void process(struct mparse *, enum outt, void *); |
static void process(struct mparse *, enum outt, void *); |
static int read_fds(int, int *); |
static int read_fds(int, int *); |
static void usage(void) __attribute__((noreturn)); |
static void usage(void) __attribute__((__noreturn__)); |
|
|
|
|
#define NUM_FDS 3 |
#define NUM_FDS 3 |
Line 167 main(int argc, char *argv[]) |
|
Line 172 main(int argc, char *argv[]) |
|
|
|
mchars_alloc(); |
mchars_alloc(); |
parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1, |
parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1, |
MANDOCLEVEL_BADARG, NULL, defos); |
MANDOCERR_MAX, NULL, MANDOC_OS_OTHER, defos); |
|
|
memset(&options, 0, sizeof(options)); |
memset(&options, 0, sizeof(options)); |
switch (outtype) { |
switch (outtype) { |