xref: /titanic_44/usr/src/cmd/format/menu_partition.h (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1991-2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_MENU_PARTITION_H
28 #define	_MENU_PARTITION_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 
37 /*
38  *	Prototypes for ANSI C compilers
39  */
40 int	p_apart(void);
41 int	p_bpart(void);
42 int	p_cpart(void);
43 int	p_dpart(void);
44 int	p_epart(void);
45 int	p_fpart(void);
46 int	p_gpart(void);
47 int	p_hpart(void);
48 int	p_ipart(void);
49 
50 #if defined(i386)
51 int	p_jpart(void);
52 #endif			/* defined(i386) */
53 
54 int	p_select(void);
55 int	p_modify(void);
56 int	p_name(void);
57 int	p_print(void);
58 
59 void	print_map(struct partition_info *map);
60 void	print_partition(struct partition_info *pinfo, int partnum,
61 		int want_header);
62 void	print_efi_partition(struct dk_gpt *map, int partnum,
63 		int want_header);
64 
65 int	chk_volname(struct disk_info *);
66 void	print_volname(struct disk_info *);
67 
68 #ifdef	__cplusplus
69 }
70 #endif
71 
72 #endif	/* _MENU_PARTITION_H */
73