Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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_
const int EXIT_OSERR
system error (e.g can't fork)
Definition: SysExits.cpp:94
const int EXIT_PROTOCOL
remote error in protocol
Definition: SysExits.cpp:99
const int EXIT_CANTCREAT
can't create (user) output file
Definition: SysExits.cpp:96
const int EXIT_IOERR
input/output error
Definition: SysExits.cpp:97
const int EXIT_NOINPUT
cannot open input
Definition: SysExits.cpp:89
const int EXIT_CONFIG
configuration error
Definition: SysExits.cpp:101
const int EXIT_TEMPFAIL
temp failure; user can rety
Definition: SysExits.cpp:98
const int EXIT_OSFILE
critical OS file missing
Definition: SysExits.cpp:95
const int EXIT__BASE
base value for error messages
Definition: SysExits.cpp:86
const int EXIT_SOFTWARE
internal software error
Definition: SysExits.cpp:93
const int EXIT_NOUSER
addresses unknown
Definition: SysExits.cpp:90
const int EXIT_UNAVAILABLE
service unavailable
Definition: SysExits.cpp:92
const int EXIT_NOPERM
permission denied
Definition: SysExits.cpp:100
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
const int EXIT_DATAERR
data format error
Definition: SysExits.cpp:88
const int EXIT_OK
successful termination
Definition: SysExits.cpp:85
const int EXIT_USAGE
command line usage error
Definition: SysExits.cpp:87
const int EXIT__MAX
maximum listed value
Definition: SysExits.cpp:102
const int EXIT_NOHOST
host name unknown
Definition: SysExits.cpp:91