xref: /onnv-gate/usr/src/lib/libadm/inc/libadm.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*
23*0Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*0Sstevel@tonic-gate  * Use is subject to license terms.
25*0Sstevel@tonic-gate  */
26*0Sstevel@tonic-gate 
27*0Sstevel@tonic-gate /*
28*0Sstevel@tonic-gate  * This is where all the interfaces that are internal to libadm
29*0Sstevel@tonic-gate  * which do not have a better home live
30*0Sstevel@tonic-gate  */
31*0Sstevel@tonic-gate 
32*0Sstevel@tonic-gate #ifndef	_LIBADM_H
33*0Sstevel@tonic-gate #define	_LIBADM_H
34*0Sstevel@tonic-gate 
35*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
36*0Sstevel@tonic-gate 
37*0Sstevel@tonic-gate #include <valtools.h>
38*0Sstevel@tonic-gate #include <stdio.h>
39*0Sstevel@tonic-gate #include <pkginfo.h>
40*0Sstevel@tonic-gate 
41*0Sstevel@tonic-gate #ifdef	__cplusplus
42*0Sstevel@tonic-gate extern "C" {
43*0Sstevel@tonic-gate #endif
44*0Sstevel@tonic-gate 
45*0Sstevel@tonic-gate extern int ckquit;
46*0Sstevel@tonic-gate extern int ckwidth;
47*0Sstevel@tonic-gate extern int ckindent;
48*0Sstevel@tonic-gate 
49*0Sstevel@tonic-gate extern int _getvol(char *, char *, int, char *, char *);
50*0Sstevel@tonic-gate extern CKMENU *allocmenu(char *, int);
51*0Sstevel@tonic-gate extern int ckdate(char *, char *, char *, char *, char *, char *);
52*0Sstevel@tonic-gate extern int ckdate_err(char *, char *);
53*0Sstevel@tonic-gate extern int ckdate_hlp(char *, char *);
54*0Sstevel@tonic-gate extern int ckdate_val(char *, char *);
55*0Sstevel@tonic-gate extern int ckgid(char *, short, char *, char *, char *, char *);
56*0Sstevel@tonic-gate extern int ckgid_dsp(void);
57*0Sstevel@tonic-gate extern void ckgid_err(int, char *);
58*0Sstevel@tonic-gate extern void ckgid_hlp(int, char *);
59*0Sstevel@tonic-gate extern int ckgid_val(char *);
60*0Sstevel@tonic-gate extern int ckgrpfile(void);
61*0Sstevel@tonic-gate extern int ckint(long *, short, char *, char *, char *, char *);
62*0Sstevel@tonic-gate extern void ckint_err(short, char *);
63*0Sstevel@tonic-gate extern void ckint_hlp(short, char *);
64*0Sstevel@tonic-gate extern int ckint_val(char *, short);
65*0Sstevel@tonic-gate extern void ckitem_err(CKMENU *, char *);
66*0Sstevel@tonic-gate extern void ckitem_hlp(CKMENU *, char *);
67*0Sstevel@tonic-gate extern int ckitem(CKMENU *, char **, short, char *, char *, char *, char *);
68*0Sstevel@tonic-gate extern int ckkeywd(char *, char **, char *, char *, char *, char *);
69*0Sstevel@tonic-gate extern int ckpath(char *, int, char *, char *, char *, char *);
70*0Sstevel@tonic-gate extern void ckpath_err(int, char *, char *);
71*0Sstevel@tonic-gate extern void ckpath_hlp(int, char *);
72*0Sstevel@tonic-gate extern int ckpath_stx(int);
73*0Sstevel@tonic-gate extern int ckpath_val(char *, int);
74*0Sstevel@tonic-gate extern int ckpwdfile(void);
75*0Sstevel@tonic-gate extern int ckrange(long *, long, long, short, char *, char *, char *, char *);
76*0Sstevel@tonic-gate extern void ckrange_err(long, long, int, char *);
77*0Sstevel@tonic-gate extern void ckrange_hlp(long, long, int, char *);
78*0Sstevel@tonic-gate extern int ckrange_val(long, long, int, char *);
79*0Sstevel@tonic-gate extern int ckstr(char *, char **, int, char *, char *, char *, char *);
80*0Sstevel@tonic-gate extern void ckstr_err(char **, int, char *, char *);
81*0Sstevel@tonic-gate extern void ckstr_hlp(char **, int, char *);
82*0Sstevel@tonic-gate extern int ckstr_val(char **, int, char *);
83*0Sstevel@tonic-gate extern int cktime(char *, char *, char *, char *, char *, char *);
84*0Sstevel@tonic-gate extern int cktime_val(char *, char *);
85*0Sstevel@tonic-gate extern int cktime_err(char *, char *);
86*0Sstevel@tonic-gate extern int cktime_hlp(char *, char *);
87*0Sstevel@tonic-gate extern int ckuid(char *, short, char *, char *, char *, char *);
88*0Sstevel@tonic-gate extern int ckuid_dsp(void);
89*0Sstevel@tonic-gate extern void ckuid_err(short, char *);
90*0Sstevel@tonic-gate extern void ckuid_hlp(int, char *);
91*0Sstevel@tonic-gate extern int ckuid_val(char *);
92*0Sstevel@tonic-gate extern int ckyorn(char *, char *, char *, char *, char *);
93*0Sstevel@tonic-gate extern void ckyorn_err(char *);
94*0Sstevel@tonic-gate extern void ckyorn_hlp(char *);
95*0Sstevel@tonic-gate extern int ckyorn_val(char *);
96*0Sstevel@tonic-gate extern void doremovecmd(char *, int);
97*0Sstevel@tonic-gate extern int fpkginfo(struct pkginfo *, char *);
98*0Sstevel@tonic-gate extern char *fpkginst(char *, ...);
99*0Sstevel@tonic-gate extern char *fpkgparam(FILE *, char *);
100*0Sstevel@tonic-gate extern char *get_PKGADM(void);
101*0Sstevel@tonic-gate extern char *get_PKGLOC(void);
102*0Sstevel@tonic-gate extern char *get_PKGOLD(void);
103*0Sstevel@tonic-gate extern int getinput(char *);
104*0Sstevel@tonic-gate extern char *getfullblkname(char *);
105*0Sstevel@tonic-gate extern char *getfullrawname(char *);
106*0Sstevel@tonic-gate extern int pkginfofind(char *, char *, char *);
107*0Sstevel@tonic-gate extern FILE *pkginfopen(char *, char *);
108*0Sstevel@tonic-gate extern void puterror(FILE *, char *, char *);
109*0Sstevel@tonic-gate extern void puthelp(FILE *, char *, char *);
110*0Sstevel@tonic-gate extern void putprmpt(FILE *, char *, char **, char *);
111*0Sstevel@tonic-gate extern int puttext(FILE *, char *, int, int);
112*0Sstevel@tonic-gate extern void printmenu(CKMENU *);
113*0Sstevel@tonic-gate extern int setinvis(CKMENU *, char *);
114*0Sstevel@tonic-gate extern int setitem(CKMENU *, char *);
115*0Sstevel@tonic-gate extern void set_PKGADM(char *);
116*0Sstevel@tonic-gate extern void set_PKGLOC(char *);
117*0Sstevel@tonic-gate extern void set_PKGpaths(char *);
118*0Sstevel@tonic-gate extern void set_ABI_namelngth(void);
119*0Sstevel@tonic-gate extern int get_ABI_namelngth(void);
120*0Sstevel@tonic-gate extern void set_install_root(char *path);
121*0Sstevel@tonic-gate extern char *get_install_root(void);
122*0Sstevel@tonic-gate 
123*0Sstevel@tonic-gate 
124*0Sstevel@tonic-gate #ifdef	__cplusplus
125*0Sstevel@tonic-gate }
126*0Sstevel@tonic-gate #endif
127*0Sstevel@tonic-gate 
128*0Sstevel@tonic-gate #endif /* _LIBADM_H */
129