1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
14 #include <sys/types.h>
18 #include "os_regex/os_regex.h"
19 #include "headers/file_op.h"
21 #define OSSECCONF "ossec.conf"
22 #define OSSECDEF "default-ossec.conf"
23 #define OSSECLAST "ossec.conf.bak"
24 #define CLIENTKEYS "client.keys"
25 #define OS_MAXSTR 1024
28 /* Check if a file exists */
29 int fileexist(char *file);
31 /* Grep for a string in a file */
32 int dogrep(char *file, char *str);
34 /* Check if dir exists */
35 int direxist(char *dir);
37 /* Get Windows main directory */
38 void get_win_dir(char *file, int f_size);