Lines Matching refs:ept
134 gpkgmap(struct cfent *ept, FILE *fp)
140 ept->volno = 0;
141 ept->ftype = BADFTYPE;
142 (void) strcpy(ept->pkg_class, BADCLASS);
143 ept->pkg_class_idx = -1;
144 ept->path = NULL;
145 ept->ainfo.local = NULL;
147 ept->ainfo.mode = d_mode;
148 (void) strcpy(ept->ainfo.owner, d_owner);
149 (void) strcpy(ept->ainfo.group, d_group);
150 ept->ainfo.major = BADMAJOR;
151 ept->ainfo.minor = BADMINOR;
152 ept->cinfo.cksum = ept->cinfo.modtime = ept->cinfo.size = (-1L);
154 ept->npkgs = 0;
166 ept->volno = 1;
184 if (ept->volno) {
189 ept->volno = (ept->volno*10)+c-'0';
192 if (ept->volno == 0)
193 ept->volno = 1;
206 ept->volno = 0;
211 ept->ftype = (char)c;
222 ept->path = mypath;
229 ept->ainfo.local = mylocal;
233 if (ept->ftype == 'i') {
235 if (!getlnum(fp, 10, (fsblkcnt_t *)&ept->cinfo.size,
237 (getnum(fp, 10, (long *)&ept->cinfo.cksum,
239 getnum(fp, 10, (long *)&ept->cinfo.modtime,
262 ept->ftype = (char)c;
263 if (getstr(fp, NULL, CLSSIZ, ept->pkg_class)) {
271 ept->path = mypath;
277 if (ept->ftype == 's' || ept->ftype == 'l') {
285 ept->ainfo.local = mylocal;
286 } else if (strchr("sl", ept->ftype)) {
302 if (strchr("sl", ept->ftype) && (ept->ainfo.local == NULL)) {
307 if (strchr("cb", ept->ftype)) {
308 ept->ainfo.major = BADMAJOR;
309 ept->ainfo.minor = BADMINOR;
310 if (getnum(fp, 10, (long *)&ept->ainfo.major, BADMAJOR) ||
311 getnum(fp, 10, (long *)&ept->ainfo.minor, BADMINOR)) {
327 if (strchr("cbdxpfve", ept->ftype)) {
330 if ((retval = getvalmode(fp, &(ept->ainfo.mode), CURMODE,
338 ept->ainfo.owner)) == 1)
346 ept->ainfo.group)) == 1)
355 if (mapvar(mapmode, ept->ainfo.owner)) {
359 maptype, ept->ainfo.owner);
363 if (mapvar(mapmode, ept->ainfo.group)) {
366 maptype, ept->ainfo.group);
373 if (strchr("ifve", ept->ftype)) {
375 if (!getlnum(fp, 10, (fsblkcnt_t *)&ept->cinfo.size, BADCONT) &&
376 (getnum(fp, 10, (long *)&ept->cinfo.cksum, BADCONT) ||
377 getnum(fp, 10, (long *)&ept->cinfo.modtime, BADCONT))) {
383 if (ept->ftype == 'i')
387 if (getend(fp) && ept->pinfo) {
636 gpkgmapvfp(struct cfent *ept, VFP_T *vfp)
640 (void) strlcpy(ept->pkg_class, BADCLASS, sizeof (ept->pkg_class));
641 (void) strlcpy(ept->ainfo.owner, d_owner, sizeof (ept->ainfo.owner));
642 (void) strlcpy(ept->ainfo.group, d_group, sizeof (ept->ainfo.group));
645 ept->volno = 0;
646 ept->ftype = BADFTYPE;
647 ept->pkg_class_idx = -1;
648 ept->path = NULL;
649 ept->ainfo.local = NULL;
650 ept->ainfo.mode = d_mode;
651 ept->ainfo.major = BADMAJOR;
652 ept->ainfo.minor = BADMINOR;
653 ept->cinfo.cksum = (-1L);
654 ept->cinfo.modtime = (-1L);
655 ept->cinfo.size = (-1L);
657 ept->npkgs = 0;
674 ept->volno = 1;
702 if (ept->volno) {
707 ept->volno = (ept->volno*10)+c-'0';
710 if (ept->volno == 0) {
711 ept->volno = 1;
725 ept->volno = 0;
730 ept->ftype = (char)c;
743 ept->path = mypath;
751 ept->ainfo.local = mylocal;
756 if (ept->ftype == 'i') {
759 (fsblkcnt_t *)&ept->cinfo.size, BADCONT) &&
761 (long *)&ept->cinfo.cksum, BADCONT) ||
763 (long *)&ept->cinfo.modtime, BADCONT))) {
786 ept->ftype = (char)c;
788 CLSSIZ, ept->pkg_class)) {
796 ept->path = mypath;
803 if (ept->ftype == 's' || ept->ftype == 'l') {
811 ept->ainfo.local = mylocal;
812 } else if ((ept->ftype == 's') || (ept->ftype == 'l')) {
829 if (((ept->ftype == 's') || (ept->ftype == 'l')) &&
830 (ept->ainfo.local == NULL)) {
835 if (((ept->ftype == 'c') || (ept->ftype == 'b'))) {
836 ept->ainfo.major = BADMAJOR;
837 ept->ainfo.minor = BADMINOR;
840 (long *)&ept->ainfo.major, BADMAJOR) ||
842 (long *)&ept->ainfo.minor, BADMINOR)) {
858 if ((ept->ftype == 'd') || (ept->ftype == 'x') || (ept->ftype == 'c') ||
859 (ept->ftype == 'b') || (ept->ftype == 'p') ||
860 (ept->ftype == 'f') || (ept->ftype == 'v') ||
861 (ept->ftype == 'e')) {
865 &(ept->ainfo.mode),
876 ept->ainfo.owner)) == 1)
884 ept->ainfo.group)) == 1)
893 if (mapvar(mapmode, ept->ainfo.owner)) {
896 maptype, ept->ainfo.owner);
900 if (mapvar(mapmode, ept->ainfo.group)) {
903 maptype, ept->ainfo.group);
910 if ((ept->ftype == 'i') || (ept->ftype == 'f') ||
911 (ept->ftype == 'v') || (ept->ftype == 'e')) {
914 (fsblkcnt_t *)&ept->cinfo.size, BADCONT) &&
916 (long *)&ept->cinfo.cksum, BADCONT) ||
918 (long *)&ept->cinfo.modtime, BADCONT))) {
924 if (ept->ftype == 'i')
928 if (getendvfp(&vfpGetCurrCharPtr(vfp)) && ept->pinfo) {