xref: /titanic_41/usr/src/lib/libadm/inc/libadm.h (revision 6a3e8e8695d5c7d1d18c6800d676990d7f61a2a4)
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 #include <valtools.h>
36 #include <stdio.h>
37 #include <pkginfo.h>
38 
39 #ifdef	__cplusplus
40 extern "C" {
41 #endif
42 
43 extern int ckquit;
44 extern int ckwidth;
45 extern int ckindent;
46 
47 extern int _getvol(char *, char *, int, char *, char *);
48 extern CKMENU *allocmenu(char *, int);
49 extern int ckdate(char *, char *, char *, char *, char *, char *);
50 extern int ckdate_err(char *, char *);
51 extern int ckdate_hlp(char *, char *);
52 extern int ckdate_val(char *, char *);
53 extern int ckgid(char *, short, char *, char *, char *, char *);
54 extern int ckgid_dsp(void);
55 extern void ckgid_err(int, char *);
56 extern void ckgid_hlp(int, char *);
57 extern int ckgid_val(char *);
58 extern int ckgrpfile(void);
59 extern int ckint(long *, short, char *, char *, char *, char *);
60 extern void ckint_err(short, char *);
61 extern void ckint_hlp(short, char *);
62 extern int ckint_val(char *, short);
63 extern void ckitem_err(CKMENU *, char *);
64 extern void ckitem_hlp(CKMENU *, char *);
65 extern int ckitem(CKMENU *, char **, short, char *, char *, char *, char *);
66 extern int ckkeywd(char *, char **, char *, char *, char *, char *);
67 extern int ckpath(char *, int, char *, char *, char *, char *);
68 extern void ckpath_err(int, char *, char *);
69 extern void ckpath_hlp(int, char *);
70 extern int ckpath_stx(int);
71 extern int ckpath_val(char *, int);
72 extern int ckpwdfile(void);
73 extern int ckrange(long *, long, long, short, char *, char *, char *, char *);
74 extern void ckrange_err(long, long, int, char *);
75 extern void ckrange_hlp(long, long, int, char *);
76 extern int ckrange_val(long, long, int, char *);
77 extern int ckstr(char *, char **, int, char *, char *, char *, char *);
78 extern void ckstr_err(char **, int, char *, char *);
79 extern void ckstr_hlp(char **, int, char *);
80 extern int ckstr_val(char **, int, char *);
81 extern int cktime(char *, char *, char *, char *, char *, char *);
82 extern int cktime_val(char *, char *);
83 extern int cktime_err(char *, char *);
84 extern int cktime_hlp(char *, char *);
85 extern int ckuid(char *, short, char *, char *, char *, char *);
86 extern int ckuid_dsp(void);
87 extern void ckuid_err(short, char *);
88 extern void ckuid_hlp(int, char *);
89 extern int ckuid_val(char *);
90 extern int ckyorn(char *, char *, char *, char *, char *);
91 extern void ckyorn_err(char *);
92 extern void ckyorn_hlp(char *);
93 extern int ckyorn_val(char *);
94 extern void doremovecmd(char *, int);
95 extern int fpkginfo(struct pkginfo *, char *);
96 extern char *fpkginst(char *, ...);
97 extern char *fpkgparam(FILE *, char *);
98 extern char *get_PKGADM(void);
99 extern char *get_PKGLOC(void);
100 extern int getinput(char *);
101 extern char *getfullblkname(char *);
102 extern char *getfullrawname(char *);
103 extern int pkginfofind(char *, char *, char *);
104 extern FILE *pkginfopen(char *, char *);
105 extern void puterror(FILE *, char *, char *);
106 extern void puthelp(FILE *, char *, char *);
107 extern void putprmpt(FILE *, char *, char **, char *);
108 extern int puttext(FILE *, char *, int, int);
109 extern void printmenu(CKMENU *);
110 extern int setinvis(CKMENU *, char *);
111 extern int setitem(CKMENU *, char *);
112 extern void set_PKGADM(char *);
113 extern void set_PKGLOC(char *);
114 extern void set_PKGpaths(char *);
115 extern void set_ABI_namelngth(void);
116 extern int get_ABI_namelngth(void);
117 extern void set_install_root(char *path);
118 extern char *get_install_root(void);
119 
120 
121 #ifdef	__cplusplus
122 }
123 #endif
124 
125 #endif /* _LIBADM_H */
126