1 /*
2 * check_mandirs.h: Interface to updating database caches
3 *
4 * Copyright (C) 2001, 2002 Colin Watson.
5 *
6 * This file is part of man-db.
7 *
8 * man-db is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * man-db is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with man-db; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include <stdbool.h>
24
25 #include "mydbm.h"
26
27 /* check_mandirs.c */
28 extern void test_manfile (MYDBM_FILE dbf, const char *file, const char *path);
29 extern void chown_if_possible (const char *path);
30 extern int create_db (MYDBM_FILE dbf,
31 const char *manpath, const char *catpath);
32 extern int update_db (MYDBM_FILE dbf,
33 const char *manpath, const char *catpath);
34 extern void purge_pointers (MYDBM_FILE dbf, const char *name);
35 extern int purge_missing (MYDBM_FILE dbf,
36 const char *manpath, const char *catpath);