xref: /netbsd-src/sbin/fsck/exitvalues.h (revision 68072c6ae8def4015ca178145c970597e331d056)
1*68072c6aSdholland /*	$NetBSD: exitvalues.h,v 1.3 2015/06/21 03:33:22 dholland Exp $	*/
2742b48d5Schristos /*-
3742b48d5Schristos  * Copyright (c) 2008 The NetBSD Foundation, Inc.
4742b48d5Schristos  * All rights reserved.
5742b48d5Schristos  *
6742b48d5Schristos  * This code is derived from software contributed to The NetBSD Foundation
7742b48d5Schristos  * by Christos Zoulas.
8742b48d5Schristos  *
9742b48d5Schristos  * Redistribution and use in source and binary forms, with or without
10742b48d5Schristos  * modification, are permitted provided that the following conditions
11742b48d5Schristos  * are met:
12742b48d5Schristos  * 1. Redistributions of source code must retain the above copyright
13742b48d5Schristos  *    notice, this list of conditions and the following disclaimer.
14742b48d5Schristos  * 2. Redistributions in binary form must reproduce the above copyright
15742b48d5Schristos  *    notice, this list of conditions and the following disclaimer in the
16742b48d5Schristos  *    documentation and/or other materials provided with the distribution.
17742b48d5Schristos  *
18742b48d5Schristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19742b48d5Schristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20742b48d5Schristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21742b48d5Schristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22742b48d5Schristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23742b48d5Schristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24742b48d5Schristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25742b48d5Schristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26742b48d5Schristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27742b48d5Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28742b48d5Schristos  * POSSIBILITY OF SUCH DAMAGE.
29742b48d5Schristos  */
30*68072c6aSdholland 
31742b48d5Schristos #define	FSCK_EXIT_OK			0
32742b48d5Schristos #define	FSCK_EXIT_USAGE			1
33742b48d5Schristos #define	FSCK_EXIT_UNRESOLVED		2
34742b48d5Schristos #define	FSCK_EXIT_ROOT_CHANGED		4
35742b48d5Schristos #define	FSCK_EXIT_CHECK_FAILED		8
36742b48d5Schristos #define	FSCK_EXIT_SIGNALLED		12
37