Lines Matching refs:search
119 struct mansearch search;
172 memset(&search, 0, sizeof(struct mansearch));
173 search.outkey = "Nd";
177 search.argmode = ARG_NAME;
179 search.argmode = ARG_EXPR;
181 search.argmode = ARG_WORD;
183 search.argmode = ARG_NAME;
185 search.argmode = ARG_FILE;
201 if (c == 'i' && search.argmode == ARG_EXPR) {
216 search.argmode = ARG_WORD;
239 search.argmode = ARG_EXPR;
242 search.argmode = ARG_FILE;
255 search.arch = optarg;
258 search.sec = optarg;
278 usage(search.argmode);
283 switch (search.argmode) {
299 search.outkey = oarg;
349 if (search.argmode == ARG_NAME) {
360 search.sec = (char *)uc;
364 if (search.arch == NULL)
365 search.arch = getenv("MACHINE");
367 if (search.arch == NULL)
368 search.arch = MACHINE;
374 * using it as a search term for man(1) or apropos(1).
378 tagarg = argc > 0 && search.argmode == ARG_EXPR ?
385 if (search.argmode != ARG_FILE) {
386 if (search.argmode == ARG_NAME &&
388 search.firstmatch = 1;
393 if ( ! mansearch(&search, &conf.manpath,
395 usage(search.argmode);
397 if (sz == 0 && search.argmode == ARG_NAME)
398 fs_search(&search, &conf.manpath,
401 if (search.argmode == ARG_NAME) {
422 if (search.argmode != ARG_NAME)
488 if (search.argmode == ARG_FILE)
604 if (search.argmode != ARG_FILE) {
907 struct mansearch search;
917 search.arch = NULL;
918 search.sec = xr->sec;
919 search.outkey = NULL;
920 search.argmode = ARG_NAME;
921 search.firstmatch = 1;
922 if (mansearch(&search, &paths, 1, &xr->name, NULL, &sz))
924 if (fs_search(&search, &paths, 1, &xr->name, NULL, &sz))