Lines Matching refs:pkginfo

39 #include <pkginfo.h>
52 #define PKGINFO_CMD "/usr/bin/pkginfo"
65 static void _pkginfoInit(struct pkginfo *a_info);
66 static struct pkginfo *_pkginfoFactory(void);
78 * Description: free pkginfo structure returned from various functions
79 * Arguments: r_info - pointer to pointer to pkginfo structure to free
84 pkginfoFree(struct pkginfo **r_info)
86 struct pkginfo *pinfo;
90 assert(r_info != (struct pkginfo **)NULL);
98 *r_info = (struct pkginfo *)NULL;
100 assert(pinfo != (struct pkginfo *)NULL);
113 * Description: determine if specified package is installed, return pkginfo
115 * Arguments: r_pinfo - pointer to pointer to pkginfo structure
118 * --to a newly allocated pkginfo structure describing
122 * -no pkginfo structure is returned on success.
125 * B_TRUE - package installed, pkginfo returned
126 * B_FALSE - package not installed, no pkginfo returned
128 * is installed - see pkginfo() function for details
129 * NOTE: Any pkginfo structure returned is placed in new storage for the
131 * of the storage once the pkginfo structure is no longer needed.
135 pkginfoIsPkgInstalled(struct pkginfo **r_pinfo, char *a_pkgInst)
138 struct pkginfo *pinf;
145 /* reset returned pkginfo structure handle */
147 if (r_pinfo != (struct pkginfo **)NULL) {
148 *r_pinfo = (struct pkginfo *)NULL;
151 /* allocate a new pinfo structure for use in the call to pkginfo */
158 r = pkginfo(pinf, a_pkgInst, NULL, NULL);
161 if (r_pinfo != (struct pkginfo **)NULL) {
164 /* free pkginfo structure */
715 * Description: Search pkginfo file for specified parameter/value pair
716 * Arguments: a_fp - Pointer to FILE handle open on pkginfo file to search
749 /* search pkginfo file for the specified parameter */
1026 struct pkginfo *pinf = (struct pkginfo *)NULL;
1085 /* allocate new pinfo structure for use in the pkginfo call */
1092 * end of directory is read and pkginfo() returns != 0. You must
1093 * cycle through all instances until pkginfo() returns != 0.
1094 * NOTE: pkginfo() requires the global variable 'pkgdir' be set
1101 r = pkginfo(pinf, pkgWild, NULL, NULL);
1163 * create pkginfo command to execute:
1164 * /usr/bin/pkginfo -q <packageName>
1173 /* return success if pkginfo returns "0" */
1194 _pkginfoInit(struct pkginfo *a_info)
1198 assert(a_info != (struct pkginfo *)NULL);
1225 static struct pkginfo *
1228 struct pkginfo *pinf;
1230 pinf = (struct pkginfo *)calloc(1, sizeof (struct pkginfo));
1231 if (pinf == (struct pkginfo *)NULL) {