7b304dee |
/* |
98ce643b |
* Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net> |
7b304dee |
*
* This program is free software; you can redistribute it and/or modify |
bb34cb31 |
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. |
7b304dee |
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software |
48b7b4a7 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA. |
7b304dee |
*/
#ifndef __MISC_H
#define __MISC_H
|
53725d8c |
/* Maximum filenames under various systems - njh */
#ifndef NAME_MAX /* e.g. Linux */
# ifdef MAXNAMELEN /* e.g. Solaris */
# define NAME_MAX MAXNAMELEN
# else
# ifdef FILENAME_MAX /* e.g. SCO */
# define NAME_MAX FILENAME_MAX
# endif
# endif
#endif
|
7b304dee |
#include "cfgparser.h"
|
98ce643b |
char *freshdbdir(void); |
0aa3ba06 |
void print_version(const char *dbdir); |
63abd169 |
int filecopy(const char *src, const char *dest); |
88661e6a |
int dircopy(const char *src, const char *dest); |
91e39258 |
int cvd_unpack(const char *cvd, const char *destdir); |
587d344b |
int daemonize(void); |
add738d2 |
const char *get_version(void); |
5cd3f734 |
int match_regex(const char *filename, const char *pattern); |
7b304dee |
#endif |