xref: /onnv-gate/usr/src/cmd/svr4pkg/pkginstall/pkginstall.h (revision 12734:76969fc28795)
19781SMoriah.Waterland@Sun.COM /*
29781SMoriah.Waterland@Sun.COM  * CDDL HEADER START
39781SMoriah.Waterland@Sun.COM  *
49781SMoriah.Waterland@Sun.COM  * The contents of this file are subject to the terms of the
59781SMoriah.Waterland@Sun.COM  * Common Development and Distribution License (the "License").
69781SMoriah.Waterland@Sun.COM  * You may not use this file except in compliance with the License.
79781SMoriah.Waterland@Sun.COM  *
89781SMoriah.Waterland@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99781SMoriah.Waterland@Sun.COM  * or http://www.opensolaris.org/os/licensing.
109781SMoriah.Waterland@Sun.COM  * See the License for the specific language governing permissions
119781SMoriah.Waterland@Sun.COM  * and limitations under the License.
129781SMoriah.Waterland@Sun.COM  *
139781SMoriah.Waterland@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
149781SMoriah.Waterland@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159781SMoriah.Waterland@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
169781SMoriah.Waterland@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
179781SMoriah.Waterland@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
189781SMoriah.Waterland@Sun.COM  *
199781SMoriah.Waterland@Sun.COM  * CDDL HEADER END
209781SMoriah.Waterland@Sun.COM  */
219781SMoriah.Waterland@Sun.COM 
229781SMoriah.Waterland@Sun.COM /*
23*12734Sgary.pennington@oracle.com  * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
249781SMoriah.Waterland@Sun.COM  */
259781SMoriah.Waterland@Sun.COM 
269781SMoriah.Waterland@Sun.COM #ifndef __PKG_PKGINSTALL_H__
279781SMoriah.Waterland@Sun.COM #define	__PKG_PKGINSTALL_H__
289781SMoriah.Waterland@Sun.COM 
299781SMoriah.Waterland@Sun.COM 
309781SMoriah.Waterland@Sun.COM #ifdef __cplusplus
319781SMoriah.Waterland@Sun.COM extern "C" {
329781SMoriah.Waterland@Sun.COM #endif
339781SMoriah.Waterland@Sun.COM 
349781SMoriah.Waterland@Sun.COM /* cppath() variables */
359781SMoriah.Waterland@Sun.COM #define	DIR_DISPLAY	0x0001	/* display implied directories created */
369781SMoriah.Waterland@Sun.COM #define	MODE_SRC	0x0002	/* set mode to mode of source file */
379781SMoriah.Waterland@Sun.COM #define	MODE_SET	0x0004	/* set mode to mode passed in as argument */
389781SMoriah.Waterland@Sun.COM #define	MODE_0666	0x0008	/* force mode to 0666 */
399781SMoriah.Waterland@Sun.COM 
409781SMoriah.Waterland@Sun.COM /* special stdin for request scripts */
419781SMoriah.Waterland@Sun.COM #define	REQ_STDIN	"/dev/tty"
429781SMoriah.Waterland@Sun.COM 
439781SMoriah.Waterland@Sun.COM /* response file writability status */
449781SMoriah.Waterland@Sun.COM #define	RESP_WR		0	/* Response file is writable. */
459781SMoriah.Waterland@Sun.COM #define	RESP_RO		1	/* Read only. */
469781SMoriah.Waterland@Sun.COM 
479781SMoriah.Waterland@Sun.COM #ifdef __STDC__
489781SMoriah.Waterland@Sun.COM #ifndef __P
499781SMoriah.Waterland@Sun.COM #define	__P(x)	x
509781SMoriah.Waterland@Sun.COM #endif
519781SMoriah.Waterland@Sun.COM #else
529781SMoriah.Waterland@Sun.COM #ifndef __P
539781SMoriah.Waterland@Sun.COM #define	__P(x)	()
549781SMoriah.Waterland@Sun.COM #endif
559781SMoriah.Waterland@Sun.COM #endif /* __STDC__ */
569781SMoriah.Waterland@Sun.COM 
579781SMoriah.Waterland@Sun.COM extern int	cppath __P((int ctrl, char *f1, char *f2, mode_t mode));
589781SMoriah.Waterland@Sun.COM extern void	backup __P((char *path, int mode));
599781SMoriah.Waterland@Sun.COM extern void	pkgvolume __P((struct pkgdev *devp, char *pkg, int part,
609781SMoriah.Waterland@Sun.COM 		    int nparts));
619781SMoriah.Waterland@Sun.COM extern void	quit __P((int exitval));
629781SMoriah.Waterland@Sun.COM extern void	ckreturn __P((int retcode, char *msg));
639781SMoriah.Waterland@Sun.COM extern int	sortmap __P((struct cfextra ***extlist, VFP_T *pkgmapVfp,
649869SCasper.Dik@Sun.COM 			PKGserver serv, VFP_T *tmpvfp, char *a_zoneName));
659781SMoriah.Waterland@Sun.COM extern void merginfo __P((struct cl_attr **pclass, int install_from_pspool));
669781SMoriah.Waterland@Sun.COM extern void	set_infoloc __P((char *real_pkgsav));
679781SMoriah.Waterland@Sun.COM extern int	pkgenv __P((char *pkginst, char *p_pkginfo, char *p_pkgmap));
689781SMoriah.Waterland@Sun.COM extern void	instvol __P((struct cfextra **extlist, char *srcinst, int part,
699869SCasper.Dik@Sun.COM 			int nparts, PKGserver server, VFP_T **a_cfTmpVfp,
70*12734Sgary.pennington@oracle.com 			char **r_updated, char *a_zoneName));
719781SMoriah.Waterland@Sun.COM extern int	reqexec __P((int update, char *script, int non_abi_scripts,
729781SMoriah.Waterland@Sun.COM 			boolean_t enable_root_user));
739781SMoriah.Waterland@Sun.COM extern int	chkexec __P((int update, char *script));
749781SMoriah.Waterland@Sun.COM extern int	rdonly_respfile __P((void));
759781SMoriah.Waterland@Sun.COM extern int	is_a_respfile __P((void));
769781SMoriah.Waterland@Sun.COM extern char	*get_respfile __P((void));
779781SMoriah.Waterland@Sun.COM extern int	set_respfile __P((char *respfile, char *pkginst,
789781SMoriah.Waterland@Sun.COM 		    int resp_stat));
799781SMoriah.Waterland@Sun.COM extern void	predepend __P((char *oldpkg));
809781SMoriah.Waterland@Sun.COM extern void	cksetPreinstallCheck __P((boolean_t a_preinstallCheck));
819781SMoriah.Waterland@Sun.COM extern void	cksetZoneName __P((char *a_zoneName));
829781SMoriah.Waterland@Sun.COM extern int	cksetuid __P((void));
839781SMoriah.Waterland@Sun.COM extern int	ckconflct __P((void));
849781SMoriah.Waterland@Sun.COM extern int	ckpkgdirs __P((void));
859781SMoriah.Waterland@Sun.COM extern int	ckspace __P((void));
869781SMoriah.Waterland@Sun.COM extern int	ckdepend __P((void));
879781SMoriah.Waterland@Sun.COM extern int	ckrunlevel __P((void));
889781SMoriah.Waterland@Sun.COM extern int	ckpartial __P((void));
899781SMoriah.Waterland@Sun.COM extern int	ckpkgfiles __P((void));
909781SMoriah.Waterland@Sun.COM extern int	ckpriv __P((void));
919781SMoriah.Waterland@Sun.COM extern void	is_WOS_arch __P((void));
929781SMoriah.Waterland@Sun.COM extern void	ckdirs __P((void));
939781SMoriah.Waterland@Sun.COM extern char	*getinst __P((int *updatingExisting, struct pkginfo *info,
949781SMoriah.Waterland@Sun.COM 			int npkgs, boolean_t a_preinstallCheck));
959781SMoriah.Waterland@Sun.COM extern int	is_samepkg __P((void));
969781SMoriah.Waterland@Sun.COM extern int	dockspace __P((char *spacefile));
979781SMoriah.Waterland@Sun.COM 
989781SMoriah.Waterland@Sun.COM extern int	special_contents_add(int, struct cfextra **, const char *);
999781SMoriah.Waterland@Sun.COM extern boolean_t	rm_all_pkg_entries(char *, char *);
1009781SMoriah.Waterland@Sun.COM 
1019781SMoriah.Waterland@Sun.COM #ifdef __cplusplus
1029781SMoriah.Waterland@Sun.COM }
1039781SMoriah.Waterland@Sun.COM #endif
1049781SMoriah.Waterland@Sun.COM 
1059781SMoriah.Waterland@Sun.COM #endif	/* __PKG_PKGINSTALL_H__ */
106