version 1.319, 2019/03/03 13:02:11 |
version 1.322, 2019/03/06 10:18:58 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
#include <sys/param.h> /* MACHINE */ |
#include <sys/param.h> /* MACHINE */ |
#include <sys/termios.h> |
|
#include <sys/wait.h> |
#include <sys/wait.h> |
|
|
#include <assert.h> |
#include <assert.h> |
|
|
#include <stdint.h> |
#include <stdint.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
#include <termios.h> |
#include <time.h> |
#include <time.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
Line 797 fs_search(const struct mansearch *cfg, const struct ma |
|
Line 797 fs_search(const struct mansearch *cfg, const struct ma |
|
} |
} |
if (res != NULL && *ressz == lastsz && |
if (res != NULL && *ressz == lastsz && |
strchr(*argv, '/') == NULL) { |
strchr(*argv, '/') == NULL) { |
if (cfg->sec == NULL) |
if (cfg->arch != NULL && |
|
arch_valid(cfg->arch, OSENUM) == 0) |
|
warnx("Unknown architecture \"%s\".", |
|
cfg->arch); |
|
else if (cfg->sec == NULL) |
warnx("No entry for %s in the manual.", |
warnx("No entry for %s in the manual.", |
*argv); |
*argv); |
else |
else |
Line 1157 spawn_pager(struct tag_files *tag_files) |
|
Line 1161 spawn_pager(struct tag_files *tag_files) |
|
char *argv[MAX_PAGER_ARGS]; |
char *argv[MAX_PAGER_ARGS]; |
const char *pager; |
const char *pager; |
char *cp; |
char *cp; |
|
#if HAVE_LESS_T |
size_t cmdlen; |
size_t cmdlen; |
|
#endif |
int argc, use_ofn; |
int argc, use_ofn; |
pid_t pager_pid; |
pid_t pager_pid; |
|
|
Line 1189 spawn_pager(struct tag_files *tag_files) |
|
Line 1195 spawn_pager(struct tag_files *tag_files) |
|
/* For less(1), use the tag file. */ |
/* For less(1), use the tag file. */ |
|
|
use_ofn = 1; |
use_ofn = 1; |
|
#if HAVE_LESS_T |
if ((cmdlen = strlen(argv[0])) >= 4) { |
if ((cmdlen = strlen(argv[0])) >= 4) { |
cp = argv[0] + cmdlen - 4; |
cp = argv[0] + cmdlen - 4; |
if (strcmp(cp, "less") == 0) { |
if (strcmp(cp, "less") == 0) { |
Line 1201 spawn_pager(struct tag_files *tag_files) |
|
Line 1208 spawn_pager(struct tag_files *tag_files) |
|
} |
} |
} |
} |
} |
} |
|
#endif |
if (use_ofn) |
if (use_ofn) |
argv[argc++] = tag_files->ofn; |
argv[argc++] = tag_files->ofn; |
argv[argc] = NULL; |
argv[argc] = NULL; |