1 /* @(#) $Id: file_op.h,v 1.14 2009/06/24 17:06:26 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
12 /* Part of the OSSEC HIDS
13 * Available at http://www.ossec.net/hids/
16 /* Functions to handle operation with files
23 #define OS_PIDFILE "/var/run"
25 /* Set the program name. Must be done before **anything** else */
26 void OS_SetName(char *name);
28 int File_DateofChange(char *file);
30 int IsDir(char *file);
32 int CreatePID(char *name, int pid);
34 int DeletePID(char *name);
36 int MergeFiles(char *finalpath, char **files);
38 int MergeAppendFile(char *finalpath, char *files);
40 int UnmergeFiles(char *finalpath, char *optdir);
42 /* daemonize a process */
45 /* daemonize a process without closing stdin/stdou/stderr */
48 /* not really a file operation, but returns the uname */
51 /* Checks for vista. */