xref: /titanic_50/usr/src/lib/libadm/inc/libadm.h (revision e07d9cb85217949d497b02d7211de8a197d2f2eb)
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 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*
28  * This is where all the interfaces that are internal to libadm
29  * which do not have a better home live
30  */
31 
32 #ifndef	_LIBADM_H
33 #define	_LIBADM_H
34 
35 #pragma ident	"%Z%%M%	%I%	%E% SMI"
36 
37 #include <valtools.h>
38 #include <stdio.h>
39 #include <pkginfo.h>
40 
41 #ifdef	__cplusplus
42 extern "C" {
43 #endif
44 
45 extern int ckquit;
46 extern int ckwidth;
47 extern int ckindent;
48 
49 extern int _getvol(char *, char *, int, char *, char *);
50 extern CKMENU *allocmenu(char *, int);
51 extern int ckdate(char *, char *, char *, char *, char *, char *);
52 extern int ckdate_err(char *, char *);
53 extern int ckdate_hlp(char *, char *);
54 extern int ckdate_val(char *, char *);
55 extern int ckgid(char *, short, char *, char *, char *, char *);
56 extern int ckgid_dsp(void);
57 extern void ckgid_err(int, char *);
58 extern void ckgid_hlp(int, char *);
59 extern int ckgid_val(char *);
60 extern int ckgrpfile(void);
61 extern int ckint(long *, short, char *, char *, char *, char *);
62 extern void ckint_err(short, char *);
63 extern void ckint_hlp(short, char *);
64 extern int ckint_val(char *, short);
65 extern void ckitem_err(CKMENU *, char *);
66 extern void ckitem_hlp(CKMENU *, char *);
67 extern int ckitem(CKMENU *, char **, short, char *, char *, char *, char *);
68 extern int ckkeywd(char *, char **, char *, char *, char *, char *);
69 extern int ckpath(char *, int, char *, char *, char *, char *);
70 extern void ckpath_err(int, char *, char *);
71 extern void ckpath_hlp(int, char *);
72 extern int ckpath_stx(int);
73 extern int ckpath_val(char *, int);
74 extern int ckpwdfile(void);
75 extern int ckrange(long *, long, long, short, char *, char *, char *, char *);
76 extern void ckrange_err(long, long, int, char *);
77 extern void ckrange_hlp(long, long, int, char *);
78 extern int ckrange_val(long, long, int, char *);
79 extern int ckstr(char *, char **, int, char *, char *, char *, char *);
80 extern void ckstr_err(char **, int, char *, char *);
81 extern void ckstr_hlp(char **, int, char *);
82 extern int ckstr_val(char **, int, char *);
83 extern int cktime(char *, char *, char *, char *, char *, char *);
84 extern int cktime_val(char *, char *);
85 extern int cktime_err(char *, char *);
86 extern int cktime_hlp(char *, char *);
87 extern int ckuid(char *, short, char *, char *, char *, char *);
88 extern int ckuid_dsp(void);
89 extern void ckuid_err(short, char *);
90 extern void ckuid_hlp(int, char *);
91 extern int ckuid_val(char *);
92 extern int ckyorn(char *, char *, char *, char *, char *);
93 extern void ckyorn_err(char *);
94 extern void ckyorn_hlp(char *);
95 extern int ckyorn_val(char *);
96 extern void doremovecmd(char *, int);
97 extern int fpkginfo(struct pkginfo *, char *);
98 extern char *fpkginst(char *, ...);
99 extern char *fpkgparam(FILE *, char *);
100 extern char *get_PKGADM(void);
101 extern char *get_PKGLOC(void);
102 extern char *get_PKGOLD(void);
103 extern int getinput(char *);
104 extern char *getfullblkname(char *);
105 extern char *getfullrawname(char *);
106 extern int pkginfofind(char *, char *, char *);
107 extern FILE *pkginfopen(char *, char *);
108 extern void puterror(FILE *, char *, char *);
109 extern void puthelp(FILE *, char *, char *);
110 extern void putprmpt(FILE *, char *, char **, char *);
111 extern int puttext(FILE *, char *, int, int);
112 extern void printmenu(CKMENU *);
113 extern int setinvis(CKMENU *, char *);
114 extern int setitem(CKMENU *, char *);
115 extern void set_PKGADM(char *);
116 extern void set_PKGLOC(char *);
117 extern void set_PKGpaths(char *);
118 extern void set_ABI_namelngth(void);
119 extern int get_ABI_namelngth(void);
120 extern void set_install_root(char *path);
121 extern char *get_install_root(void);
122 
123 
124 #ifdef	__cplusplus
125 }
126 #endif
127 
128 #endif /* _LIBADM_H */
129