shared/misc.h
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);
7b304dee
 void print_version(void);
63abd169
 int filecopy(const char *src, const char *dest);
5fabe557
 int isnumb(const char *str);
88661e6a
 int dircopy(const char *src, const char *dest);
91e39258
 int cvd_unpack(const char *cvd, const char *destdir);
a889f40e
 void daemonize(void);
7b304dee
 
 #endif