Lines Matching refs:pt
143 HRDLNK *pt;
159 if ((pt = ltab[indx]) != NULL) {
164 while (pt != NULL) {
165 if ((pt->ino == arcn->sb.st_ino) &&
166 (pt->dev == arcn->sb.st_dev))
168 ppt = &(pt->fow);
169 pt = pt->fow;
172 if (pt != NULL) {
179 arcn->ln_nlen = strlcpy(arcn->ln_name, pt->name,
190 if (--pt->nlink <= 1) {
191 *ppt = pt->fow;
192 (void)free((char *)pt->name);
193 (void)free((char *)pt);
203 if ((pt = (HRDLNK *)malloc(sizeof(HRDLNK))) != NULL) {
204 if ((pt->name = strdup(arcn->name)) != NULL) {
205 pt->dev = arcn->sb.st_dev;
206 pt->ino = arcn->sb.st_ino;
207 pt->nlink = arcn->sb.st_nlink;
208 pt->fow = ltab[indx];
209 ltab[indx] = pt;
212 (void)free((char *)pt);
229 HRDLNK *pt;
246 if ((pt = ltab[indx]) == NULL)
254 while (pt != NULL) {
255 if ((pt->ino == arcn->sb.st_ino) &&
256 (pt->dev == arcn->sb.st_dev))
258 ppt = &(pt->fow);
259 pt = pt->fow;
261 if (pt == NULL)
267 *ppt = pt->fow;
268 (void)free((char *)pt->name);
269 (void)free((char *)pt);
284 HRDLNK *pt;
293 pt = ltab[i];
299 while (pt != NULL) {
300 ppt = pt;
301 pt = ppt->fow;
380 FTM *pt;
396 if ((pt = ftab[indx]) != NULL) {
402 while (pt != NULL) {
403 if (pt->namelen == namelen) {
408 if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) {
429 pt = pt->fow;
432 if (pt != NULL) {
436 if (arcn->sb.st_mtime > pt->mtime) {
440 pt->mtime = arcn->sb.st_mtime;
453 if ((pt = (FTM *)malloc(sizeof(FTM))) != NULL) {
458 if ((pt->seek = lseek(ffd, (off_t)0, SEEK_END)) >= 0) {
460 pt->mtime = arcn->sb.st_mtime;
461 pt->namelen = namelen;
462 pt->fow = ftab[indx];
463 ftab[indx] = pt;
472 if (pt != NULL)
473 (void)free((char *)pt);
521 NAMT *pt;
537 if ((pt = ntab[indx]) != NULL) {
541 while ((pt != NULL) && (strcmp(oname, pt->oname) != 0))
542 pt = pt->fow;
544 if (pt != NULL) {
549 if (strcmp(nname, pt->nname) == 0)
552 (void)free((char *)pt->nname);
553 if ((pt->nname = strdup(nname)) == NULL) {
564 if ((pt = (NAMT *)malloc(sizeof(NAMT))) != NULL) {
565 if ((pt->oname = strdup(oname)) != NULL) {
566 if ((pt->nname = strdup(nname)) != NULL) {
567 pt->fow = ntab[indx];
568 ntab[indx] = pt;
571 (void)free((char *)pt->oname);
573 (void)free((char *)pt);
589 NAMT *pt;
598 if ((pt
601 while (pt != NULL) {
605 if (strcmp(oname, pt->oname) == 0) {
610 *onamelen = strlcpy(oname, pt->nname, onamesize);
613 pt = pt->fow;
715 DEVT *pt;
724 if ((pt = dtab[indx]) != NULL) {
725 while ((pt != NULL) && (pt->dev != dev))
726 pt = pt->fow;
731 if (pt != NULL)
732 return pt;
744 * chain. Note we do not assign remaps values here, so the pt->list
747 if ((pt = (DEVT *)malloc(sizeof(DEVT))) == NULL) {
751 pt->dev = dev;
752 pt->list = NULL;
753 pt->fow = dtab[indx];
754 dtab[indx] = pt;
755 return pt;
773 DEVT *pt;
798 if ((pt = chk_dev(arcn->sb.st_dev, 0)) != NULL) {
802 for (dpt = pt->list; dpt != NULL; dpt = dpt->fow)
826 if ((pt = chk_dev(arcn->sb.st_dev, 1)) == NULL)
843 dpt->fow = pt->list;
844 pt->list = dpt;
875 dpt->fow = pt->list;
876 pt->list = dpt;
937 ATDIR *pt;
947 if ((pt = atab[i]) == NULL)
954 for (; pt != NULL; pt = pt->fow)
955 set_ftime(pt->name, pt->mtime, pt->atime, 1, 0);
968 ATDIR *pt;
982 if ((pt = atab[indx]) != NULL) {
983 while (pt != NULL) {
984 if ((pt->ino == ino) && (pt->dev == dev))
986 pt = pt->fow;
992 if (pt != NULL)
999 if ((pt = (ATDIR *)malloc(sizeof(ATDIR))) != NULL) {
1000 if ((pt->name = strdup(fname)) != NULL) {
1001 pt->dev = dev;
1002 pt->ino = ino;
1003 pt->mtime = mtime;
1004 pt->atime = atime;
1005 pt->fow = atab[indx];
1006 atab[indx] = pt;
1009 (void)free((char *)pt);
1030 ATDIR *pt;
1040 if ((pt = atab[indx]) == NULL)
1044 while (pt != NULL) {
1045 if ((pt->ino == ino) && (pt->dev == dev))
1050 ppt = &(pt->fow);
1051 pt = pt->fow;
1057 if (pt == NULL)
1063 *ppt = pt->fow;
1064 *mtime = pt->mtime;
1065 *atime = pt->atime;
1066 (void)free((char *)pt->name);
1067 (void)free((char *)pt);
1323 char *pt;
1338 pt = &(name[len - MAXKEYLEN]);
1341 pt = name;
1356 end = pt + sizeof(u_int);
1358 while (pt < end)
1359 *dest++ = *pt++;
1368 end = pt + res;
1370 while (pt < end)
1371 *dest++ = *pt++;