Open Lighting Architecture: include/ola/base/SysExits.h Source File

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
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
31
38
39#ifndef INCLUDE_OLA_BASE_SYSEXITS_H_
40#define INCLUDE_OLA_BASE_SYSEXITS_H_
41
42namespace ola {
43
48
49extern const int EXIT_OK;
50extern const int EXIT__BASE;
51extern const int EXIT_USAGE;
52extern const int EXIT_DATAERR;
53extern const int EXIT_NOINPUT;
54extern const int EXIT_NOUSER;
55extern const int EXIT_NOHOST;
56extern const int EXIT_UNAVAILABLE;
57extern const int EXIT_SOFTWARE;
58extern const int EXIT_OSERR;
59extern const int EXIT_OSFILE;
60extern const int EXIT_CANTCREAT;
61extern const int EXIT_IOERR;
62extern const int EXIT_TEMPFAIL;
63extern const int EXIT_PROTOCOL;
64extern const int EXIT_NOPERM;
65extern const int EXIT_CONFIG;
66extern const int EXIT__MAX;
67
69} // namespace ola
70#endif // INCLUDE_OLA_BASE_SYSEXITS_H_
ola::EXIT_NOUSER
const int EXIT_NOUSER
addresses unknown
Definition SysExits.cpp:90
ola::EXIT_OK
const int EXIT_OK
successful termination
Definition SysExits.cpp:85
ola::EXIT__MAX
const int EXIT__MAX
maximum listed value
Definition SysExits.cpp:102
ola::EXIT_TEMPFAIL
const int EXIT_TEMPFAIL
temp failure; user can rety
Definition SysExits.cpp:98
ola::EXIT_SOFTWARE
const int EXIT_SOFTWARE
internal software error
Definition SysExits.cpp:93
ola::EXIT_NOINPUT
const int EXIT_NOINPUT
cannot open input
Definition SysExits.cpp:89
ola::EXIT_OSFILE
const int EXIT_OSFILE
critical OS file missing
Definition SysExits.cpp:95
ola::EXIT_PROTOCOL
const int EXIT_PROTOCOL
remote error in protocol
Definition SysExits.cpp:99
ola::EXIT_NOHOST
const int EXIT_NOHOST
host name unknown
Definition SysExits.cpp:91
ola::EXIT_USAGE
const int EXIT_USAGE
command line usage error
Definition SysExits.cpp:87
ola::EXIT_OSERR
const int EXIT_OSERR
system error (e.g can't fork)
Definition SysExits.cpp:94
ola::EXIT_DATAERR
const int EXIT_DATAERR
data format error
Definition SysExits.cpp:88
ola::EXIT_IOERR
const int EXIT_IOERR
input/output error
Definition SysExits.cpp:97
ola::EXIT__BASE
const int EXIT__BASE
base value for error messages
Definition SysExits.cpp:86
ola::EXIT_NOPERM
const int EXIT_NOPERM
permission denied
Definition SysExits.cpp:100
ola::EXIT_UNAVAILABLE
const int EXIT_UNAVAILABLE
service unavailable
Definition SysExits.cpp:92
ola::EXIT_CONFIG
const int EXIT_CONFIG
configuration error
Definition SysExits.cpp:101
ola::EXIT_CANTCREAT
const int EXIT_CANTCREAT
can't create (user) output file
Definition SysExits.cpp:96
ola
The namespace containing all OLA symbols.
Definition Credentials.cpp:44