version 1.30, 2012/03/24 00:31:55 |
version 1.32.2.1, 2013/10/02 21:03:26 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
|
|
#include "config.h" |
#include "config.h" |
#endif |
#endif |
|
|
|
#include <sys/param.h> |
|
|
#include <assert.h> |
#include <assert.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <regex.h> |
#include <regex.h> |
|
|
# include <libkern/OSByteOrder.h> |
# include <libkern/OSByteOrder.h> |
# include <db.h> |
# include <db.h> |
#else |
#else |
|
# include <sys/endian.h> |
# include <db.h> |
# include <db.h> |
#endif |
#endif |
|
|
Line 426 apropos_search(int pathsz, char **paths, const struct |
|
Line 429 apropos_search(int pathsz, char **paths, const struct |
|
*/ |
*/ |
|
|
for (i = 0; i < pathsz; i++) { |
for (i = 0; i < pathsz; i++) { |
|
assert('/' == paths[i][0]); |
if (chdir(paths[i])) |
if (chdir(paths[i])) |
continue; |
continue; |
if (single_search(&tree, opts, expr, terms, mc, i)) |
if (single_search(&tree, opts, expr, terms, mc, i)) |