2
* Copyright (C) 2007-2009 Sourcefire, Inc.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
24
#include <sys/types.h>
26
#include <netinet/in.h>
28
#include "optparser.h"
29
/* Maximum filenames under various systems - njh */
30
#ifndef NAME_MAX /* e.g. Linux */
31
# ifdef MAXNAMELEN /* e.g. Solaris */
32
# define NAME_MAX MAXNAMELEN
34
# ifdef FILENAME_MAX /* e.g. SCO */
35
# define NAME_MAX FILENAME_MAX
46
char *freshdbdir(void);
47
void print_version(const char *dbdir);
48
int check_flevel(void);
49
const char *filelist(const struct optstruct *opts, int *err);
50
int filecopy(const char *src, const char *dest);
52
const char *get_version(void);
53
int match_regex(const char *filename, const char *pattern);
54
int cli_is_abspath(const char *path);
55
unsigned int countlines(const char *filename);