Imported Upstream version 2.5.1
[ossec-hids.git] / src / headers / os_err.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
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 2) as published by the FSF - Free Software 
9  * Foundation
10  */
11
12 /* Basic err codes
13  *
14  */
15
16 #ifndef __OS_ERR /* Definition of the __OS_ERR */
17 #define __OS_ERR
18
19 #define OS_SUCCESS       0      /* Success */
20 #define OS_INVALID      -1      /* Invalid entry */
21 #define OS_NOTFOUND     -2      /* Entry not found */
22 #define OS_FILERR       -3      /* Error in the file */
23 #define OS_SIZELIM      -4      /* Size limit problem */
24 #define OS_CFGERR       -5      /* Configuration error */
25 #define OS_SOCKTERR     -6      /* Socket error */
26 #define OS_MISVALUE     -7      /* There are values missing */
27 #define OS_CONNERR      -8      /* Connection failed */
28 #define OS_UNDEF        -9      /* Uknown error */
29 #define OS_MEMERR       -10     /* Memory Error */
30 #define OS_SOCKBUSY -11 /* Socket busy -- try again */
31
32 #define OS_ENDFILE      -20     /* End of file */
33 #define OS_FINISH       -21     /* Finished this task */
34
35 #endif /* __OS_ERR */