Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (64 sloc) 2.256 kb
157c747 @mrash minor comment fixes
authored
1 /*
2 ********************************************************************************
3 *
4 * File: psad.h
5 *
88e1e10 @mrash changed all cipherdyne.com references to cipherdyne.org
authored
6 * Author: Michael Rash (mbr@cipherdyne.org)
157c747 @mrash minor comment fixes
authored
7 *
8 * Purpose: psad.h include appropriate system header files, and defines file
9 * paths, function prototypes, and constants that are needed by
10 * the C versions of psad.
11 *
12 * Credits: (see the CREDITS file)
13 *
39c84b6 @mrash minor copyright date updates
authored
14 * Copyright (C) 1999-2006 Michael Rash (mbr@cipherdyne.org)
157c747 @mrash minor comment fixes
authored
15 *
16 * License (GNU Public License):
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 * USA
27 *
28 ********************************************************************************
29 *
30 * $Id$
31 */
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
32
33 #ifndef __PSAD_H__
34 #define __PSAD_H__
35
157c747 @mrash minor comment fixes
authored
36 /* INCLUDES *******************************************************************/
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
37 #include <stdio.h>
38 #include <stdlib.h>
39 #include <string.h>
40 #include <unistd.h> /* read(), write(), and close() */
41 #include <fcntl.h> /* open() */
42 #include <sys/stat.h> /* umask */
317513c @mrash added send_alert_email()
authored
43 #include <sys/wait.h>
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
44 #include <sys/types.h>
45 #include <signal.h>
2289e79 @mrash include syslog.h, added slogr() prototype
authored
46 #include <syslog.h>
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
47
157c747 @mrash minor comment fixes
authored
48 /* DEFINES ********************************************************************/
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
49 #define MAX_LINE_BUF 1024
7edcdb7 @mrash -Extended constants to remove need for +1 in the code.
authored
50 #define MAX_PID_SIZE 6
51 #define MAX_PATH_LEN 100
6b93d6a @mrash interim commit... sending emails from psadwatchd works now
authored
52 #define MAX_MSG_LEN 120
53 #define MAX_GEN_LEN 80
317513c @mrash added send_alert_email()
authored
54 #define MAX_ARG_LEN 30
7edcdb7 @mrash -Extended constants to remove need for +1 in the code.
authored
55 #define MAX_NUM_LEN 6
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
56
157c747 @mrash minor comment fixes
authored
57 /* PROTOTYPES *****************************************************************/
2289e79 @mrash include syslog.h, added slogr() prototype
authored
58 void slogr(const char *, const char *);
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
59 void check_unique_pid(const char *, const char *);
60 void write_pid(const char *, pid_t);
61 void daemonize_process(const char *);
317513c @mrash added send_alert_email()
authored
62 void send_alert_email(const char *, const char *, const char *);
90ba5ff @mrash added integer return value for find_char_var()
authored
63 int find_char_var(char *, char *, char *);
4566dc1 @mrash added check_import_config()
authored
64 int check_import_config(time_t *config_mtime, char *config_file);
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
65
7edcdb7 @mrash -Extended constants to remove need for +1 in the code.
authored
66 /* From OpenBSD */
67 size_t strlcpy(char *, const char *, size_t);
68 size_t strlcat(char *, const char *, size_t);
69
dd11008 @mrash moved original kmsgsd to kmsgsd_perl, and added kmsgsd.c along with some...
authored
70 #endif /* __PSAD_H__ */
Something went wrong with that request. Please try again.