Home | History | Annotate | Download | only in pax

Lines Matching refs:pt

242 	PATTERN *pt;
257 if ((pt = (PATTERN *)malloc(sizeof(PATTERN))) == NULL) {
262 pt->pstr = str;
263 pt->pend = NULL;
264 pt->plen = strlen(str);
265 pt->fow = NULL;
266 pt->flgs = flags;
267 pt->chdname = chdn;
269 pattail = pathead = pt;
272 pattail->fow = pt;
273 pattail = pt;
286 PATTERN *pt;
293 for (pt = pathead; pt != NULL; pt = pt->fow) {
294 if (pt->flgs & MTCH)
300 (void)fprintf(stderr, "%s\n", pt->pstr);
323 PATTERN *pt;
330 if ((pathead == NULL) || ((pt = arcn->pat) == NULL))
338 pt->flgs |= MTCH;
349 if (pt->flgs & DIR_MTCH)
352 if (!dflag && ((pt->pend != NULL) || (arcn->type == PAX_DIR))) {
357 * WATCH IT, the code assumes that pt->pend points
366 if (pt->pend != NULL)
367 *pt->pend = '\0';
369 if ((pt->pstr = strdup(arcn->name)) == NULL) {
371 if (pt->pend != NULL)
372 *pt->pend = '/';
373 pt->pend = NULL;
380 if (pt->pend != NULL) {
381 *pt->pend = '/';
382 pt->pend = NULL;
384 pt->plen = strlen(pt->pstr);
389 len = pt->plen - 1;
390 if (*(pt->pstr + len) == '/') {
391 *(pt->pstr + len) = '\0';
392 pt->plen = len;
394 pt->flgs = DIR_MTCH | MTCH;
395 arcn->pat = pt;
407 pt = pathead;
409 while ((pt != NULL) && (pt != arcn->pat)) {
410 ppt = &(pt->fow);
411 pt = pt->fow;
414 if (pt == NULL) {
421 *ppt = pt->fow;
422 (void)free((char *)pt);
442 PATTERN *pt;
459 pt = pathead;
460 while (pt != NULL) {
465 if (pt->flgs & DIR_MTCH) {
472 if ((arcn->name[pt->plen] == '/') &&
473 (strncmp(pt->pstr, arcn->name, pt->plen) == 0))
475 } else if (fn_match(pt->pstr, arcn->name, &pt->pend,
476 pt->flgs & NOGLOB_MTCH) == 0)
478 pt = pt->fow;
485 if (pt == NULL)
494 arcn->pat = pt;
908 REPLACE *pt;
927 pt = rephead;
936 while (pt != NULL) {
938 if ((flags & SYML) && (pt->flgs & SYML))
944 if (regexec(&(pt->rcmp), inpt, MAXSUBEXP, pm, 0) != 0)
969 resub(&(pt->rcmp),pm,pt->nstr,inpt, outpt,endpt)
997 } while (pt->flgs & GLOB);
1005 pt = pt->fow;
1027 if ((flags & PRNT) && (pt->flgs & PRNT)) {