Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SysExits.h
Go to the documentation of this file.
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with this library; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15  *
16  * SysExits.h
17  * Exit codes.
18  *
19  * Some platforms (android) don't provide sysexits.h. To work around this we
20  * define our own exit codes, which use the system values if provided, or
21  * otherwise default values.
22  */
23 
39 #ifndef INCLUDE_OLA_BASE_SYSEXITS_H_
40 #define INCLUDE_OLA_BASE_SYSEXITS_H_
41 
42 namespace ola {
43 
49 extern const int EXIT_OK;
50 extern const int EXIT__BASE;
51 extern const int EXIT_USAGE;
52 extern const int EXIT_DATAERR;
53 extern const int EXIT_NOINPUT;
54 extern const int EXIT_NOUSER;
55 extern const int EXIT_NOHOST;
56 extern const int EXIT_UNAVAILABLE;
57 extern const int EXIT_SOFTWARE;
58 extern const int EXIT_OSERR;
59 extern const int EXIT_OSFILE;
60 extern const int EXIT_CANTCREAT;
61 extern const int EXIT_IOERR;
62 extern const int EXIT_TEMPFAIL;
63 extern const int EXIT_PROTOCOL;
64 extern const int EXIT_NOPERM;
65 extern const int EXIT_CONFIG;
66 extern const int EXIT__MAX;
69 } // namespace ola
70 #endif // INCLUDE_OLA_BASE_SYSEXITS_H_