exit-status.h revision b6e2f3293d0f9a821819d96038eec2a19062151f
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering This file is part of systemd.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Copyright 2010 Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is free software; you can redistribute it and/or modify it
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering under the terms of the GNU Lesser General Public License as published by
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering (at your option) any later version.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is distributed in the hope that it will be useful, but
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Lesser General Public License for more details.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering You should have received a copy of the GNU Lesser General Public License
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* EXIT_SUCCESS defined by libc */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* EXIT_FAILURE defined by libc */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* The LSB suggests that error codes >= 200 are "reserved". We
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering * use them here under the assumption that they hence are
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering * unused by init scripts.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering * http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html */
a407657425a3e47fd2b559cd3bc800f791303f63Lennart Poetteringconst char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) _const_;
a407657425a3e47fd2b559cd3bc800f791303f63Lennart Poetteringbool is_clean_exit(int code, int status, ExitStatusSet *success_status);
typedef enum ShowStatus {
SHOW_STATUS_NO = 0,
} ShowStatus;