xapian-core  1.4.26
safesysexits.h
Go to the documentation of this file.
1 
4 /* Copyright (C) 2023 Olly Betts
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef XAPIAN_INCLUDED_SAFESYSEXITS_H
22 #define XAPIAN_INCLUDED_SAFESYSEXITS_H
23 
24 #ifndef PACKAGE
25 # error config.h must be included first in each C++ source file
26 #endif
27 
28 #ifdef HAVE_SYSEXITS_H
29 # include <sysexits.h>
30 #endif
31 
32 #ifndef EX_UNAVAILABLE
33 # define EX_UNAVAILABLE 69
34 #endif
35 #ifndef EX_OSERR
36 # define EX_OSERR 71
37 #endif
38 #ifndef EX_TEMPFAIL
39 # define EX_TEMPFAIL 75
40 #endif
41 #ifndef EX_NOPERM
42 # define EX_NOPERM 77
43 #endif
44 
45 #endif // XAPIAN_INCLUDED_SAFESYSEXITS_H