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