version 1.225, 2015/03/10 13:50:03 |
version 1.226, 2015/03/17 07:33:07 |
|
|
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <glob.h> |
#include <glob.h> |
|
#include <signal.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdint.h> |
#include <stdint.h> |
#include <stdlib.h> |
#include <stdlib.h> |
Line 92 static int fs_lookup(const struct manpaths *, |
|
Line 93 static int fs_lookup(const struct manpaths *, |
|
static void fs_search(const struct mansearch *, |
static void fs_search(const struct mansearch *, |
const struct manpaths *, int, char**, |
const struct manpaths *, int, char**, |
struct manpage **, size_t *); |
struct manpage **, size_t *); |
|
static void handle_sigpipe(int); |
static int koptions(int *, char *); |
static int koptions(int *, char *); |
#if HAVE_SQLITE3 |
#if HAVE_SQLITE3 |
int mandocdb(int, char**); |
int mandocdb(int, char**); |
Line 111 static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2 |
|
Line 113 static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2 |
|
static char help_arg[] = "help"; |
static char help_arg[] = "help"; |
static char *help_argv[] = {help_arg, NULL}; |
static char *help_argv[] = {help_arg, NULL}; |
static const char *progname; |
static const char *progname; |
|
static enum mandoclevel rc; |
|
|
|
|
int |
int |
Line 127 main(int argc, char *argv[]) |
|
Line 130 main(int argc, char *argv[]) |
|
size_t isec, i, sz; |
size_t isec, i, sz; |
int prio, best_prio, synopsis_only; |
int prio, best_prio, synopsis_only; |
char sec; |
char sec; |
enum mandoclevel rc, rctmp; |
enum mandoclevel rctmp; |
enum outmode outmode; |
enum outmode outmode; |
int fd; |
int fd; |
int show_usage; |
int show_usage; |
Line 940 mmsg(enum mandocerr t, enum mandoclevel lvl, |
|
Line 943 mmsg(enum mandocerr t, enum mandoclevel lvl, |
|
fputc('\n', stderr); |
fputc('\n', stderr); |
} |
} |
|
|
|
static void |
|
handle_sigpipe(int signum) |
|
{ |
|
|
|
exit(rc); |
|
} |
|
|
static pid_t |
static pid_t |
spawn_pager(void) |
spawn_pager(void) |
{ |
{ |
Line 972 spawn_pager(void) |
|
Line 982 spawn_pager(void) |
|
exit((int)MANDOCLEVEL_SYSERR); |
exit((int)MANDOCLEVEL_SYSERR); |
} |
} |
close(fildes[1]); |
close(fildes[1]); |
|
signal(SIGPIPE, handle_sigpipe); |
return(pager_pid); |
return(pager_pid); |
} |
} |
|
|