xref: /onnv-gate/usr/src/lib/libgrubmgmt/common/libgrub_errno.h (revision 9160:1517e6edbc6f)
1*9160SSherry.Moore@Sun.COM /*
2*9160SSherry.Moore@Sun.COM  * CDDL HEADER START
3*9160SSherry.Moore@Sun.COM  *
4*9160SSherry.Moore@Sun.COM  * The contents of this file are subject to the terms of the
5*9160SSherry.Moore@Sun.COM  * Common Development and Distribution License (the "License").
6*9160SSherry.Moore@Sun.COM  * You may not use this file except in compliance with the License.
7*9160SSherry.Moore@Sun.COM  *
8*9160SSherry.Moore@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9160SSherry.Moore@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*9160SSherry.Moore@Sun.COM  * See the License for the specific language governing permissions
11*9160SSherry.Moore@Sun.COM  * and limitations under the License.
12*9160SSherry.Moore@Sun.COM  *
13*9160SSherry.Moore@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*9160SSherry.Moore@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9160SSherry.Moore@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*9160SSherry.Moore@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*9160SSherry.Moore@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*9160SSherry.Moore@Sun.COM  *
19*9160SSherry.Moore@Sun.COM  * CDDL HEADER END
20*9160SSherry.Moore@Sun.COM  */
21*9160SSherry.Moore@Sun.COM 
22*9160SSherry.Moore@Sun.COM /*
23*9160SSherry.Moore@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*9160SSherry.Moore@Sun.COM  * Use is subject to license terms.
25*9160SSherry.Moore@Sun.COM  */
26*9160SSherry.Moore@Sun.COM 
27*9160SSherry.Moore@Sun.COM #ifndef _LIBGRUB_ERRNO_H
28*9160SSherry.Moore@Sun.COM #define	_LIBGRUB_ERRNO_H
29*9160SSherry.Moore@Sun.COM 
30*9160SSherry.Moore@Sun.COM #ifdef	__cplusplus
31*9160SSherry.Moore@Sun.COM extern "C" {
32*9160SSherry.Moore@Sun.COM #endif
33*9160SSherry.Moore@Sun.COM 
34*9160SSherry.Moore@Sun.COM /*
35*9160SSherry.Moore@Sun.COM  * libgrubmgmt specific error codes
36*9160SSherry.Moore@Sun.COM  */
37*9160SSherry.Moore@Sun.COM enum {
38*9160SSherry.Moore@Sun.COM #define	grub_errno_start(num)		num,
39*9160SSherry.Moore@Sun.COM #define	grub_errno_def(num, desc)	num,
40*9160SSherry.Moore@Sun.COM #define	grub_errno_end(num)		num
41*9160SSherry.Moore@Sun.COM #include "libgrub_errno.def"
42*9160SSherry.Moore@Sun.COM };
43*9160SSherry.Moore@Sun.COM 
44*9160SSherry.Moore@Sun.COM extern const char *grub_errname(int);
45*9160SSherry.Moore@Sun.COM 
46*9160SSherry.Moore@Sun.COM #ifdef	__cplusplus
47*9160SSherry.Moore@Sun.COM }
48*9160SSherry.Moore@Sun.COM #endif
49*9160SSherry.Moore@Sun.COM 
50*9160SSherry.Moore@Sun.COM #endif	/* _LIBGRUB_ERRNO_H */
51