• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/file_cmds-230/pax/

Lines Matching defs:pt

136 	HRDLNK *pt;
152 if ((pt = ltab[indx]) != NULL) {
157 while (pt != NULL) {
158 if ((pt->ino == arcn->sb.st_ino) &&
159 (pt->dev == arcn->sb.st_dev))
161 ppt = &(pt->fow);
162 pt = pt->fow;
165 if (pt != NULL) {
172 arcn->ln_nlen = strlcpy(arcn->ln_name, pt->name,
186 if (--pt->nlink <= 1) {
187 *ppt = pt->fow;
188 (void)free((char *)pt->name);
189 (void)free((char *)pt);
199 if ((pt = (HRDLNK *)malloc(sizeof(HRDLNK))) != NULL) {
200 if ((pt->name = strdup(arcn->name)) != NULL) {
201 pt->dev = arcn->sb.st_dev;
202 pt->ino = arcn->sb.st_ino;
203 pt->nlink = arcn->sb.st_nlink;
204 pt->fow = ltab[indx];
205 ltab[indx] = pt;
208 (void)free((char *)pt);
225 HRDLNK *pt;
242 if ((pt = ltab[indx]) == NULL)
250 while (pt != NULL) {
251 if ((pt->ino == arcn->sb.st_ino) &&
252 (pt->dev == arcn->sb.st_dev))
254 ppt = &(pt->fow);
255 pt = pt->fow;
257 if (pt == NULL)
263 *ppt = pt->fow;
264 (void)free((char *)pt->name);
265 (void)free((char *)pt);
280 HRDLNK *pt;
289 pt = ltab[i];
295 while (pt != NULL) {
296 ppt = pt;
297 pt = ppt->fow;
377 FTM *pt;
393 if ((pt = ftab[indx]) != NULL) {
399 while (pt != NULL) {
400 if (pt->namelen == namelen) {
405 if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) {
426 pt = pt->fow;
429 if (pt != NULL) {
433 if (arcn->sb.st_mtime > pt->mtime) {
437 pt->mtime = arcn->sb.st_mtime;
450 if ((pt = (FTM *)malloc(sizeof(FTM))) != NULL) {
455 if ((pt->seek = lseek(ffd, (off_t)0, SEEK_END)) >= 0) {
457 pt->mtime = arcn->sb.st_mtime;
458 pt->namelen = namelen;
459 pt->fow = ftab[indx];
460 ftab[indx] = pt;
469 if (pt != NULL)
470 (void)free((char *)pt);
517 NAMT *pt;
533 if ((pt = ntab[indx]) != NULL) {
537 while ((pt != NULL) && (strcmp(oname, pt->oname) != 0))
538 pt = pt->fow;
540 if (pt != NULL) {
545 if (strcmp(nname, pt->nname) == 0)
548 (void)free((char *)pt->nname);
549 if ((pt->nname = strdup(nname)) == NULL) {
560 if ((pt = (NAMT *)malloc(sizeof(NAMT))) != NULL) {
561 if ((pt->oname = strdup(oname)) != NULL) {
562 if ((pt->nname = strdup(nname)) != NULL) {
563 pt->fow = ntab[indx];
564 ntab[indx] = pt;
567 (void)free((char *)pt->oname);
569 (void)free((char *)pt);
585 NAMT *pt;
594 if ((pt = ntab[indx]) == NULL)
597 while (pt != NULL) {
601 if (strcmp(oname, pt->oname) == 0) {
606 *onamelen = strlcpy(oname, pt->nname, onamesize);
611 pt = pt->fow;
713 DEVT *pt;
722 if ((pt = dtab[indx]) != NULL) {
723 while ((pt != NULL) && (pt->dev != dev))
724 pt = pt->fow;
729 if (pt != NULL)
730 return(pt);
742 * chain. Note we do not assign remaps values here, so the pt->list
745 if ((pt = (DEVT *)malloc(sizeof(DEVT))) == NULL) {
749 pt->dev = dev;
750 pt->list = NULL;
751 pt->fow = dtab[indx];
752 dtab[indx] = pt;
753 return(pt);
771 DEVT *pt;
796 if ((pt = chk_dev(arcn->sb.st_dev, 0)) != NULL) {
800 for (dpt = pt->list; dpt != NULL; dpt = dpt->fow)
824 if ((pt = chk_dev(arcn->sb.st_dev, 1)) == NULL)
841 dpt->fow = pt->list;
842 pt->list = dpt;
873 dpt->fow = pt->list;
874 pt->list = dpt;
933 ATDIR *pt;
943 if ((pt = atab[i]) == NULL)
950 for (; pt != NULL; pt = pt->fow)
951 set_ftime(pt->name, pt->mtime, pt->atime, 1);
964 ATDIR *pt;
978 if ((pt = atab[indx]) != NULL) {
979 while (pt != NULL) {
980 if ((pt->ino == ino) && (pt->dev == dev))
982 pt = pt->fow;
988 if (pt != NULL)
995 if ((pt = (ATDIR *)malloc(sizeof(ATDIR))) != NULL) {
996 if ((pt->name = strdup(fname)) != NULL) {
997 pt->dev = dev;
998 pt->ino = ino;
999 pt->mtime = mtime;
1000 pt->atime = atime;
1001 pt->fow = atab[indx];
1002 atab[indx] = pt;
1005 (void)free((char *)pt);
1026 ATDIR *pt;
1036 if ((pt = atab[indx]) == NULL)
1040 while (pt != NULL) {
1041 if ((pt->ino == ino) && (pt->dev == dev))
1046 ppt = &(pt->fow);
1047 pt = pt->fow;
1053 if (pt == NULL)
1059 *ppt = pt->fow;
1060 *mtime = pt->mtime;
1061 *atime = pt->atime;
1062 (void)free((char *)pt->name);
1063 (void)free((char *)pt);
1221 char *pt;
1236 pt = &(name[len - MAXKEYLEN]);
1239 pt = name;
1254 end = pt + sizeof(u_int);
1256 while (pt < end)
1257 *dest++ = *pt++;
1266 end = pt + res;
1268 while (pt < end)
1269 *dest++ = *pt++;