1 /* @(#) $Id: setup-shared.h,v 1.4 2009/06/24 18:53:10 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
17 #include <sys/types.h>
21 #include "os_regex/os_regex.h"
22 #include "headers/file_op.h"
24 #define OSSECCONF "ossec.conf"
25 #define OSSECDEF "default-ossec.conf"
26 #define OSSECLAST "ossec.conf.bak"
27 #define CLIENTKEYS "client.keys"
28 #define OS_MAXSTR 1024
31 /* Checks if a file exist. */
32 int fileexist(char *file);
34 /* Grep for a string in a file. */
35 int dogrep(char *file, char *str);
37 /* Check if dir exists */
38 int direxist(char *dir);
40 /* Get Windows main directory */
41 void get_win_dir(char *file, int f_size);