| 1 |
/* exit() exit codes for some BSD system programs. |
| 2 |
Copyright (C) 2003, 2006-2026 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is free software: you can redistribute it and/or modify |
| 5 |
it under the terms of the GNU Lesser General Public License as |
| 6 |
published by the Free Software Foundation; either version 2.1 of the |
| 7 |
License, or (at your option) any later version. |
| 8 |
|
| 9 |
This file is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU Lesser General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU Lesser General Public License |
| 15 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 16 |
|
| 17 |
/* Written by Simon Josefsson based on sysexits(3) man page */ |
| 18 |
|
| 19 |
#ifndef _@GUARD_PREFIX@_SYSEXITS_H |
| 20 |
|
| 21 |
#if __GNUC__ >= 3 |
| 22 |
@PRAGMA_SYSTEM_HEADER@ |
| 23 |
#endif |
| 24 |
@PRAGMA_COLUMNS@ |
| 25 |
|
| 26 |
#if @HAVE_SYSEXITS_H@ |
| 27 |
|
| 28 |
/* The include_next requires a split double-inclusion guard. */ |
| 29 |
# @INCLUDE_NEXT@ @NEXT_SYSEXITS_H@ |
| 30 |
|
| 31 |
/* HP-UX 11 <sysexits.h> ends at EX_NOPERM. */ |
| 32 |
# ifndef EX_CONFIG |
| 33 |
# define EX_CONFIG 78 |
| 34 |
# endif |
| 35 |
|
| 36 |
#endif |
| 37 |
|
| 38 |
#ifndef _@GUARD_PREFIX@_SYSEXITS_H |
| 39 |
#define _@GUARD_PREFIX@_SYSEXITS_H |
| 40 |
|
| 41 |
#if !(@HAVE_SYSEXITS_H@ && defined EX_USAGE) |
| 42 |
|
| 43 |
# define EX_OK 0 /* same value as EXIT_SUCCESS */ |
| 44 |
|
| 45 |
# define EX_USAGE 64 |
| 46 |
# define EX_DATAERR 65 |
| 47 |
# define EX_NOINPUT 66 |
| 48 |
# define EX_NOUSER 67 |
| 49 |
# define EX_NOHOST 68 |
| 50 |
# define EX_UNAVAILABLE 69 |
| 51 |
# define EX_SOFTWARE 70 |
| 52 |
# define EX_OSERR 71 |
| 53 |
# define EX_OSFILE 72 |
| 54 |
# define EX_CANTCREAT 73 |
| 55 |
# define EX_IOERR 74 |
| 56 |
# define EX_TEMPFAIL 75 |
| 57 |
# define EX_PROTOCOL 76 |
| 58 |
# define EX_NOPERM 77 |
| 59 |
# define EX_CONFIG 78 |
| 60 |
|
| 61 |
#endif |
| 62 |
|
| 63 |
#endif /* _@GUARD_PREFIX@_SYSEXITS_H */ |
| 64 |
#endif /* _@GUARD_PREFIX@_SYSEXITS_H */ |