Lines Matching defs:ept

58 static char	lpath[PATH_MAX];	/* for ept->path */
59 static char mylocal[PATH_MAX]; /* for ept->ainfo.local */
94 * Arguments: ept - (struct cfent *) - [RO, *RW]
115 * - The ept structure supplied is filled in with a description of
117 * case of '0' in which case the contents of 'ept' is undefined.
118 * - NOTE: the ept->path item points to a path that is statically
120 * - NOTE: the ept->ainfo.local item points to a path that is
125 srchcfile(struct cfent *ept, char *path, PKGserver server)
150 /* initialize ept structure values */
152 (void) strlcpy(ept->ainfo.group, BADGROUP, sizeof (ept->ainfo.group));
153 (void) strlcpy(ept->ainfo.owner, BADOWNER, sizeof (ept->ainfo.owner));
154 (void) strlcpy(ept->pkg_class, BADCLASS, sizeof (ept->pkg_class));
155 ept->ainfo.local = (char *)NULL;
156 ept->ainfo.mode = BADMODE;
157 ept->cinfo.cksum = BADCONT;
158 ept->cinfo.modtime = BADCONT;
159 ept->cinfo.size = (fsblkcnt_t)BADCONT;
160 ept->ftype = BADFTYPE;
161 ept->npkgs = 0;
162 ept->path = (char *)NULL;
163 ept->pinfo = (struct pinfo *)NULL;
164 ept->pkg_class_idx = -1;
165 ept->volno = 0;
241 * set ept->path to point to lpath
251 ept->path = lpath;
271 ept->ainfo.local = mylocal;
287 ept->ftype = (char)c;
290 if (getstr(&p, CLSSIZ, ept->pkg_class, ISWORDSEP)) {
318 if (((ept->ftype == 's') || (ept->ftype == 'l')) &&
319 (ept->ainfo.local == NULL)) {
326 if (((ept->ftype == 'c') || (ept->ftype == 'b'))) {
327 ept->ainfo.major = BADMAJOR;
328 ept->ainfo.minor = BADMINOR;
329 if (getnumvfp(&p, 10, (long *)&ept->ainfo.major, BADMAJOR) ||
330 getnumvfp(&p, 10, (long *)&ept->ainfo.minor, BADMINOR)) {
338 if ((ept->ftype == 'd') || (ept->ftype == 'x') || (ept->ftype == 'c') ||
339 (ept->ftype == 'b') || (ept->ftype == 'p') ||
340 (ept->ftype == 'f') || (ept->ftype == 'v') ||
341 (ept->ftype == 'e')) {
343 if (getnumvfp(&p, 8, (long *)&ept->ainfo.mode, BADMODE) ||
344 getstr(&p, sizeof (ept->ainfo.owner), ept->ainfo.owner,
346 getstr(&p, sizeof (ept->ainfo.group), ept->ainfo.group,
355 if ((ept->ftype == 'i') || (ept->ftype == 'f') ||
356 (ept->ftype == 'v') || (ept->ftype == 'e')) {
358 if (getlnumvfp(&p, 10, (fsblkcnt_t *)&ept->cinfo.size,
360 getnumvfp(&p, 10, (long *)&ept->cinfo.cksum, BADCONT) ||
361 getnumvfp(&p, 10, (long *)&ept->cinfo.modtime, BADCONT)) {
369 if (ept->ftype == 'i') {
394 ept->pinfo = pinfo; /* first one */
427 ept->npkgs++;
450 if (getend(&p) && ept->pinfo) {