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 (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2018 Peter Tribble.
24 */
25
26/*
27 * Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
28 */
29
30#ifndef	__HDRS_LIBINST_H__
31#define	__HDRS_LIBINST_H__
32
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#include <stdio.h>
39#include <fcntl.h>
40#include <sys/types.h>
41#include <sys/stat.h>
42#include <pkgstrct.h>
43#include <pkginfo.h>
44#include "pkglib.h"
45#include <cfext.h>
46#include "install.h"
47
48#define	DEF_NONE_SCR	"i.CompCpio"
49
50#define	BL_ALL		-1	/* refers to all allocated lists */
51
52/* signal handler function definition */
53
54typedef void (sighdlrFunc_t)(int);
55
56/* maximum parameter length */
57
58#define	MAX_PKG_PARAM_LENGTH	(64+1)	/* +1 for null termination */
59
60/* flag for check_applicability */
61
62typedef unsigned long CAF_T;
63
64/* flags for check_applicability */
65
66#define	CAF_IN_GLOBAL_ZONE	0x00000001	/* in global zone */
67#define	CAF_SCOPE_GLOBAL	0x00000002	/* -G specified */
68
69/* path to the request file in the package directory */
70
71#define	REQUEST_FILE	"install/request"
72
73/* path to the copyright file in the package directory */
74
75#define	COPYRIGHT_FILE	"install/copyright"
76
77/* path to the depend file in the package directory */
78
79#define	DEPEND_FILE	"install/depend"
80
81/*
82 * name of environment variable set to non-global zone name being installed:
83 * pkgadd/pkginstall expects this name and passes it on to any scripts that
84 * are run if it is set.
85 */
86
87#define	PKG_ZONENAME_VARIABLE	"SUNW_PKG_INSTALL_ZONENAME"
88
89/*
90 * name of environment variable set to indicate this package should be installed
91 * in the current zone only - see PSARC/2004/789 - New Pkginfo(4) attributes
92 * for zones
93 */
94
95#define	PKG_THISZONE_VARIABLE	"SUNW_PKG_THISZONE"
96
97/*
98 * name of environment variable set to indicate this package should be installed
99 * in all zones, and only from the global zone - see PSARC/2003/460
100 */
101
102#define	PKG_ALLZONES_VARIABLE	"SUNW_PKG_ALLZONES"
103
104/*
105 * name of environment variable set to indicate this package should be installed
106 * hollow (db update only) when installed in nonglobal zone - see PSARC/2003/460
107 */
108
109#define	PKG_HOLLOW_VARIABLE	"SUNW_PKG_HOLLOW"
110
111/*
112 * General purpose return codes used for functions which don't return a basic
113 * success or failure. For those functions wherein a yes/no result is
114 * possible, then 1 means OK and 0 means FAIL.
115 */
116#define	RESULT_OK	0x0
117#define	RESULT_WRN	0x1
118#define	RESULT_ERR	0x2
119
120/* These are the file status indicators for the contents file */
121#define	INST_RDY	'+'	/* entry is ready to installf -f */
122#define	RM_RDY		'-'	/* entry is ready for removef -f */
123#define	NOT_FND		'!'	/* entry (or part of entry) was not found */
124#define	SERVED_FILE	'%'	/* using the file server's RO partition */
125#define	STAT_NEXT	'@'	/* this is awaiting eptstat */
126#define	DUP_ENTRY	'#'	/* there's a duplicate of this */
127#define	CONFIRM_CONT	'*'	/* need to confirm contents */
128#define	CONFIRM_ATTR	'~'	/* need to confirm attributes */
129#define	ENTRY_OK	'\0'	/* entry is a confirmed file */
130
131/* control bits for pkgdbmerg() */
132#define	NO_COPY		0x0001
133#define	CLIENT_PATHS	0x0002	/* working with a client database */
134
135/* control bits for file verification by class */
136#define	DEFAULT		0x0	/* standard full verification */
137#define	NOVERIFY	0x1	/* do not verify */
138#define	QKVERIFY	0x2	/* do a quick verification instead */
139
140/* control bit for path type to pass to CAS */
141#define	DEFAULT		0x0	/* standard server-relative absolute path */
142#define	REL_2_CAS	0x1	/* pass pkgmap-type relative path */
143
144/* findscripts() argument */
145#define	I_ONLY		0x0	/* find install class action scripts */
146#define	R_ONLY		0x1	/* find removal class action scripts */
147
148struct cl_attr {
149	char	name[CLSSIZ+1];	/* name of class */
150	char	*inst_script;	/* install class action script */
151	char	*rem_script;	/* remove class action script */
152	unsigned	src_verify:3;	/* source verification level */
153	unsigned 	dst_verify:4;	/* destination verification level */
154	unsigned	relpath_2_CAS:1;	/* CAS gets relative paths */
155};
156
157#if defined(__STDC__)
158#define	__P(protos) protos
159#else	/* __STDC__ */
160#define	__P(protos) ()
161#endif	/* __STDC__ */
162
163/* Common quit declaration used across many package commands */
164extern void	quit(int) __NORETURN;
165
166
167/* listmgr.c */
168extern int	bl_create __P((int count_per_block, int struct_size,
169		    char *desc));
170extern char	*bl_next_avail __P((int list_handle));
171extern char	*bl_get_record __P((int list_handle, int recno));
172extern void	bl_free __P((int list_handle));
173extern int	ar_create __P((int count_per_block, int struct_size,
174		    char *desc));
175extern char	**ar_next_avail __P((int list_handle));
176extern char	**ar_get_head __P((int list_handle));
177extern int	ar_delete __P((int list_handle, int index));
178extern void	ar_free __P((int list_handle));
179
180/* doulimit.c */
181extern int	set_ulimit __P((char *script, char *err_msg));
182extern int	clr_ulimit __P((void));
183extern int	assign_ulimit __P((char *fslimit));
184
185/* dryrun.c */
186extern void	set_continue_not_ok __P((void));
187extern int	continue_is_ok __P((void));
188extern int	in_dryrun_mode __P((void));
189extern int	in_continue_mode __P((void));
190extern void	init_dryrunfile __P((char *dr_dir));
191extern void	init_contfile __P((char *cn_dir));
192extern void	set_dr_exitmsg __P((char *value));
193extern void	set_dr_info __P((int type, int value));
194extern void	write_dryrun_file __P((struct cfextra **extlist));
195
196/* instvol.c */
197extern void	regfiles_free __P((void));
198
199/* lockinst.c */
200extern int	lockinst __P((char *util_name, char *pkg_name, char *place));
201extern void	lockupd __P((char *place));
202extern void	unlockinst __P((void));
203
204extern char	*pathdup __P((char *s));
205extern char	*pathalloc __P((int n));
206extern char	*fixpath __P((char *path));
207extern char	*get_info_basedir __P((void));
208extern char	*get_basedir __P((void));
209extern char	*get_client_basedir __P((void));
210extern int	set_basedirs __P((int reloc, char *adm_basedir,
211		    char *pkginst, int nointeract));
212extern int	eval_path __P((char **server_ptr, char **client_ptr,
213		    char **map_ptr, char *path));
214extern int	get_orig_offset __P((void));
215extern char	*get_inst_root __P((void));
216extern char	*get_mount_point __P((uint32_t n));
217extern char	*get_remote_path __P((uint32_t n));
218extern void	set_env_cbdir __P((void));
219extern int	set_inst_root __P((char *path));
220extern void	put_path_params __P((void));
221extern int	mkpath __P((char *p));
222extern void	mkbasedir __P((int flag, char *path));
223extern int	is_an_inst_root __P((void));
224extern int	is_a_basedir __P((void));
225extern int	is_a_cl_basedir __P((void));
226extern int	is_relocatable __P((void));
227extern char	*orig_path __P((char *path));
228extern char	*orig_path_ptr __P((char *path));
229extern char	*qreason __P((int caller, int retcode, int started,
230			int includeZonename));
231extern char	*qstrdup __P((char *s));
232extern char	*srcpath __P((char *d, char *p, int part, int nparts));
233extern char	*trans_srcp_pi __P((char *local_path));
234extern int	copyf __P((char *from, char *to, time_t mytime));
235extern int	copyFile __P((int, int, char *, char *, struct stat *, long));
236extern int	openLocal __P((char *a_path, int a_oflag, char *a_tmpdir));
237extern int	dockdeps __P((char *depfile, int removeFlag,
238			boolean_t a_preinstallCheck));
239extern int	finalck __P((struct cfent *ept, int attrchg, int contchg,
240			boolean_t a_warning));
241
242/* dockdeps.c */
243extern void setUpdate __P((void));
244extern int  isUpdate __P((void));
245
246/* mntinfo.c */
247extern int	get_mntinfo __P((int map_client, char *vfstab_file));
248extern uint32_t	fsys __P((char *path));
249extern struct fstable *get_fs_entry __P((uint32_t n));
250extern int	mount_client __P((void));
251extern int	unmount_client __P((void));
252extern uint32_t	resolved_fsys __P((char *path));
253extern char	*get_server_host __P((uint32_t n));
254extern char	*server_map __P((char *path, uint32_t fsys_value));
255extern int	use_srvr_map __P((char *path, uint32_t *fsys_value));
256extern int	use_srvr_map_n __P((uint32_t n));
257extern int	is_fs_writeable __P((char *path, uint32_t *fsys_value));
258extern int	is_remote_fs __P((char *path, uint32_t *fsys_value));
259extern int	is_served __P((char *path, uint32_t *fsys_value));
260extern int	is_mounted __P((char *path, uint32_t *fsys_value));
261extern int	is_fs_writeable_n __P((uint32_t n));
262extern int	is_remote_fs_n __P((uint32_t n));
263extern int	is_served_n __P((uint32_t n));
264extern int	is_mounted_n __P((uint32_t n));
265extern fsblkcnt_t	get_blk_size_n __P((uint32_t n));
266extern fsblkcnt_t	get_frag_size_n __P((uint32_t n));
267extern fsblkcnt_t	get_blk_used_n __P((uint32_t n));
268extern fsblkcnt_t	get_blk_free_n __P((uint32_t n));
269extern fsblkcnt_t	get_inode_used_n __P((uint32_t n));
270extern fsblkcnt_t	get_inode_free_n __P((uint32_t n));
271extern void	set_blk_used_n __P((uint32_t n, fsblkcnt_t value));
272extern char	*get_source_name_n __P((uint32_t n));
273extern char	*get_fs_name_n __P((uint32_t n));
274extern int	load_fsentry __P((struct fstable *fs_entry, char *name,
275		    char *fstype, char *remote_name));
276extern int	isreloc __P((char *pkginstdir));
277extern int	is_local_host __P((char *hostname));
278extern void	fs_tab_free __P((void));
279
280/* pkgdbmerg.c */
281extern int	pkgdbmerg __P((PKGserver server, VFP_T *tmpvfp,
282		    struct cfextra **extlist));
283extern int	files_installed __P((void));
284
285/* ocfile.c */
286extern int	trunc_tcfile __P((int fd));
287extern int	ocfile __P((PKGserver *serverp, VFP_T **tmpvfp,
288			fsblkcnt_t map_blks));
289extern int	swapcfile __P((PKGserver server, VFP_T **a_tmpvfp,
290			char *pkginst, int dbchg));
291extern int	set_cfdir __P((char *cfdir));
292extern int	socfile __P((PKGserver *server, boolean_t quiet));
293extern int	relslock __P((void));
294extern int	pkgWlock __P((int verbose));
295extern int	iscfile __P((void));
296extern int	vcfile __P((void));
297
298extern fsblkcnt_t	nblk __P((fsblkcnt_t size, ulong_t bsize,
299			ulong_t frsize));
300extern struct	cfent **procmap __P((VFP_T *vfp, int mapflag, char *ir));
301extern void	repl_cfent __P((struct cfent *new, struct cfent *old));
302extern struct	cfextra **pkgobjmap __P((VFP_T *vfp, int mapflag, char *ir));
303extern void	pkgobjinit __P((void));
304extern int	seed_pkgobjmap __P((struct cfextra *ext_entry, char *path,
305		    char *local));
306extern int	init_pkgobjspace __P((void));
307
308/* eptstat.c */
309extern void	pinfo_free __P((void));
310extern struct	pinfo *eptstat __P((struct cfent *entry, char *pkg, char c));
311
312/* echo.c */
313/*PRINTFLIKE1*/
314extern void	echo __P((char *a_fmt, ...));
315/*PRINTFLIKE1*/
316extern void	echoDebug __P((char *a_fmt, ...));
317extern boolean_t	echoGetFlag __P((void));
318extern boolean_t	echoDebugGetFlag __P((void));
319extern boolean_t	echoSetFlag __P((boolean_t a_debugFlag));
320extern boolean_t	echoDebugSetFlag __P((boolean_t a_debugFlag));
321
322/* ptext.c */
323/*PRINTFLIKE2*/
324extern void	ptext __P((FILE *fp, char *fmt, ...));
325
326/* putparam.c */
327extern void	putparam __P((char *param, char *value));
328extern void	getuserlocale __P((void));
329extern void	putuserlocale __P((void));
330extern void	putConditionInfo __P((char *, char *));
331
332/* setadmin.c */
333extern void		setadminFile __P((char *file));
334extern char		*setadminSetting __P((char *a_paramName,
335				char *a_paramValue));
336
337/* setlist.c */
338extern char	*cl_iscript __P((int idx));
339extern char	*cl_rscript __P((int idx));
340extern void	find_CAS __P((int CAS_type, char *bin_ptr, char *inst_ptr));
341extern int	setlist __P((struct cl_attr ***plist, char *slist));
342extern void	addlist __P((struct cl_attr ***plist, char *item));
343extern char	*cl_nam __P((int cl_idx));
344extern char	*flex_device(char *device_name, int dev_ok);
345extern int	cl_getn __P((void));
346extern int	cl_idx __P((char *cl_nam));
347extern void	cl_sets __P((char *slist));
348extern void	cl_setl __P((struct cl_attr **cl_lst));
349extern void	cl_putl __P((char *parm_name, struct cl_attr **list));
350extern int	cl_deliscript __P((int i));
351extern unsigned	cl_svfy __P((int i));
352extern unsigned	cl_dvfy __P((int i));
353extern unsigned	cl_pthrel __P((int i));
354
355/* fixpath.c */
356extern void __P(export_client_env(char *));
357extern void __P(set_partial_inst(void));
358extern int __P(is_partial_inst(void));
359extern void __P(set_depend_pkginfo_DB(boolean_t a_setting));
360extern boolean_t __P(is_depend_pkginfo_DB(void));
361extern void __P(disable_spool_create(void));
362extern int __P(is_spool_create(void));
363
364/* open_package_datastream.c */
365extern boolean_t	open_package_datastream(int a_argc, char **a_argv,
366				char *a_spoolto, char *a_device,
367				int *r_repeat, char **r_idsName,
368				char *a_tmpdir, struct pkgdev *a_pkgdev,
369				int a_optind);
370
371/* setup_temporary_directory.c */
372extern boolean_t	setup_temporary_directory(char **r_dirname,
373				char *a_tmpdir, char *a_suffix);
374
375/* unpack_package_from_stream.c */
376extern boolean_t	unpack_package_from_stream(char *a_idsName,
377				char *a_pkginst, char *a_tempDir);
378
379/* pkgops.c */
380
381extern boolean_t	pkgAddPackageToGzonlyList(char *a_pkgInst,
382				char *a_rootPath);
383extern void		pkgAddThisZonePackage(char *a_pkgInst);
384extern boolean_t	pkgRemovePackageFromGzonlyList(char *a_rootPath,
385				char *a_pkgInst);
386extern FILE		*pkgOpenInGzOnlyFile(char *a_rootPath);
387extern void		pkginfoFree(struct pkginfo **r_info);
388extern boolean_t	pkginfoIsPkgInstalled(struct pkginfo **r_pinfo,
389				char *a_pkgInst);
390extern boolean_t	pkgIsPkgInGzOnly(char *a_rootPath, char *a_pkgInst);
391extern boolean_t	pkgIsPkgInGzOnlyFP(FILE *a_fp, char *a_pkgInst);
392extern boolean_t	pkginfoParamTruth(FILE *a_fp, char *a_param,
393				char *a_value, boolean_t a_default);
394extern int		pkgGetPackageList(char ***r_pkgList, char **a_argv,
395				int a_optind, char *a_categories,
396				char **a_categoryList, struct pkgdev *a_pkgdev);
397extern void		pkgLocateHighestInst(char *r_path, int r_pathLen,
398				char *r_pkgInst, int r_pkgInstLen,
399				char *a_rootPath, char *a_pkgInst);
400extern boolean_t	pkgPackageIsThisZone(char *a_pkgInst);
401extern char		*pkgGetGzOnlyPath(void);
402extern boolean_t	pkgTestInstalled(char *a_packageName, char *a_rootPath);
403
404/* depchk.c */
405
406struct depckErrorRecord {
407	int	ier_numZones;
408	char	*ier_packageName;
409	char	**ier_zones;
410	char	**ier_values;
411};
412
413typedef struct depckErrorRecord depckErrorRecord_t;
414
415struct depckError {
416	int			er_numEntries;
417	depckErrorRecord_t	*er_theEntries;
418};
419
420typedef struct depckError depckError_t;
421
422typedef int (depcklFunc_t)(char *a_msg, char *a_pkg);
423
424/*
425 * ignore_values:
426 *	== NULL - record one message for each instance of "name" found
427 *	== "" - record multiple instances
428 *	!= "" - record multiple instances if value not in ignore_values
429 */
430
431struct depckl_struct {
432	char		*name;
433	char		*ignore_values;
434	char		**err_msg;
435	depcklFunc_t	*depcklFunc;
436	depckError_t	*record;
437};
438
439typedef struct depckl_struct depckl_t;
440
441extern int		depchkReportErrors(depckl_t *depckl);
442extern void		depchkRecordError(depckError_t *a_erc,
443				char *a_pkginst, char *a_zoneName,
444				char *a_value);
445
446/* log.c */
447
448/* types of log messages we recognize */
449typedef enum {
450	LOG_MSG_ERR,
451	LOG_MSG_WRN,
452	LOG_MSG_INFO,
453	LOG_MSG_DEBUG
454} LogMsgType;
455
456/*PRINTFLIKE2*/
457extern	void		log_msg(LogMsgType, const char *, ...);
458extern	void		log_set_verbose(boolean_t);
459extern	boolean_t	log_get_verbose(void);
460
461/*
462 * typedef for the 'ckreturn' function
463 */
464typedef void (ckreturnFunc_t)(int a_retcode);
465
466/* sml.c */
467
468/* null reference to SML_TAG object */
469
470#define	SML_TAG__NULL		((SML_TAG*)NULL)
471
472/* null reference to SML_TAG * object */
473
474#define	SML_TAG__R_NULL		((SML_TAG**)NULL)
475
476/* is reference to SML_TAG object valid? */
477
478#define	SML_TAG__ISVALID(tag)	((tag) != (SML_TAG__NULL))
479
480/* is indirect reference to SML_TAG object valid? */
481
482#define	SML_TAG__R_ISVALID(r_tag)	\
483	((r_tag) != ((SML_TAG**)(SML_TAG__NULL)))
484
485/* definitions for sml passed from pkginstall to pkgcond */
486
487#define	PKGCOND_GLOBAL_VARIABLE	"SUNW_PKGCOND_GLOBAL_DATA"
488#define	TAG_COND_TOPLEVEL	"environmentConditionInformation"
489#define	TAG_COND_PARENT_ZONE	"parentZone"
490#define	TAG_COND_CURRENT_ZONE	"currentZone"
491#define	TAG_COND_ZONE_NAME	"zoneName"
492#define	TAG_COND_ZONE_TYPE	"zoneType"
493#define	TAG_COND_FS_NAME	"fileSystemName"
494#define	TAG_VALUE_GLOBAL_ZONE	"global"
495#define	TAG_VALUE_NONGLOBAL_ZONE	"nonglobal"
496
497typedef struct _sml_tag_struct SML_TAG;
498typedef struct _sml_parameter_struct SML_PARAM;
499
500struct _sml_tag_struct {
501	char		*name;		/* tag name */
502	int		params_num;	/* # params in *params */
503	SML_PARAM	*params;	/* tag parameters */
504	int		tags_num;	/* # subtags in *tags */
505	SML_TAG		*tags;		/* tag subtags */
506};
507
508struct _sml_parameter_struct {
509	char	*name;		/* tag name */
510	char	*value;		/* parameters */
511};
512
513SML_TAG		*smlAddTag(SML_TAG **r_tag, int a_index,
514			SML_TAG *a_subTag);
515boolean_t	smlFstatCompareEq(struct stat *statbuf,
516				SML_TAG *tag, char *path);
517char		*smlConvertTagToString(SML_TAG *tag);
518/*PRINTFLIKE2*/
519void		smlDbgPrintTag(SML_TAG *a_tag, char *a_format, ...);
520void		smlDelTag(SML_TAG *tag, SML_TAG *sub_tag);
521void		smlDelParam(SML_TAG *tag, char *name);
522SML_TAG		*smlDup(SML_TAG *tag);
523boolean_t	smlFindAndDelTag(SML_TAG *tag, char *findTag);
524void		smlFreeTag(SML_TAG *tag);
525char		*smlGetElementName(SML_TAG *a_tag);
526int		smlGetNumParams(SML_TAG *a_tag);
527char		*smlGetParam(SML_TAG *tag, char *name);
528/*PRINTFLIKE2*/
529char		*smlGetParamF(SML_TAG *tag, char *format, ...);
530void		smlGetParam_r(SML_TAG *tag, char *name, char *buf,
531			int bufLen);
532char		*smlGetParamByTag(SML_TAG *tag, int index,
533			char *tagName, char *parmName);
534char		*smlGetParamByTagParam(SML_TAG *tag, int index,
535			char *tagName, char *parmName, char *parmValue,
536			char *parmReturn);
537char		*smlGetParamName(SML_TAG *tag, int index);
538SML_TAG		*smlGetTag(SML_TAG *tag, int index);
539SML_TAG		*smlGetTagByName(SML_TAG *tag, int index, char *name);
540SML_TAG		*smlGetTagByTagParam(SML_TAG *tag, int index,
541			char *tagName, char *paramName, char *paramValue);
542boolean_t	smlGetVerbose(void);
543int		smlLoadTagFromFile(SML_TAG **r_tag, char *a_fileName);
544SML_TAG		*smlNewTag(char *name);
545boolean_t	smlParamEq(SML_TAG *tag, char *findTag,
546			char *findParam, char *str);
547/*PRINTFLIKE4*/
548boolean_t	smlParamEqF(SML_TAG *tag, char *findTag, char *findParam,
549			char *format, ...);
550void		smlPrintTag(SML_TAG *tag);
551int		smlReadOneTag(SML_TAG **r_tag, char *a_str);
552int		smlConvertStringToTag(SML_TAG **r_tag, char *str);
553void		smlSetFileStatInfo(SML_TAG **tag,
554				struct stat *statbuf, char *path);
555void		smlSetParam(SML_TAG *tag, char *name, char *value);
556/*PRINTFLIKE3*/
557void		smlSetParamF(SML_TAG *tag, char *name, char *format, ...);
558void		smlSetVerbose(boolean_t a_setting);
559int		smlWriteTagToFd(SML_TAG *tag, int fd);
560int		smlWriteTagToFile(SML_TAG *tag, char *filename);
561/*PRINTFLIKE3*/
562void		sml_strPrintf_r(char *a_buf, int a_bufLen, char *a_format, ...);
563/*PRINTFLIKE1*/
564char 		*sml_strPrintf(char *a_format, ...);
565char		*sml_XmlEncodeString(char *a_plainTextString);
566char		*sml_XmlDecodeString(char *a_xmlEncodedString);
567
568#if defined(lint) && !defined(gettext)
569#define	gettext(x)	x
570#endif	/* defined(lint) && !defined(gettext) */
571
572#ifdef __cplusplus
573}
574#endif
575
576#endif	/* __HDRS_LIBINST_H__ */
577