Lines Matching refs:pnt
171 FDECL3(parse_rr, unsigned char *, pnt, int, len, struct directory_entry *,dpnt)
179 if(pnt[3] != 1) {
183 if(strncmp((char *) pnt, "NM", 2) == 0) {
184 strncpy(name_buf, (char *) pnt+5, pnt[2] - 5);
185 name_buf[pnt[2] - 5] = 0;
191 if(strncmp((char *) pnt, "CE", 2) == 0) {
192 cont_extent = isonum_733(pnt+4);
193 cont_offset = isonum_733(pnt+12);
194 cont_size = isonum_733(pnt+20);
197 len -= pnt[2];
198 pnt += pnt[2];
231 unsigned char * pnt;
243 pnt = dpnt->rr_attributes;
250 if(pnt[3] != 1) {
260 if(strncmp((char *) pnt, "PX", 2) == 0) {
261 mode = isonum_733(pnt + 4);
269 if(strncmp((char *) pnt, "TF", 2) == 0) {
271 if( pnt[4] & TF_CREATE )
274 if(memcmp(time_buf, pnt+offset, 7) == 0)
278 if( pnt[4] & TF_MODIFY )
281 if(memcmp(time_buf, pnt+offset, 7) == 0)
287 if(strncmp((char *) pnt, "CE", 2) == 0) {
288 cont_extent = isonum_733(pnt+4);
289 cont_offset = isonum_733(pnt+12);
290 cont_size = isonum_733(pnt+20);
293 len -= pnt[2];
294 pnt += pnt[2];
325 struct directory_entry **pnt;
375 pnt = rtn;
387 *pnt = (struct directory_entry *) e_malloc(sizeof(**rtn));
388 (*pnt)->next = NULL;
389 (*pnt)->isorec = *idr;
390 (*pnt)->starting_block = isonum_733((unsigned char *)idr->extent);
391 (*pnt)->size = isonum_733((unsigned char *)idr->size);
392 (*pnt)->priority = 0;
393 (*pnt)->name = NULL;
394 (*pnt)->got_rr_name = 0;
395 (*pnt)->table = NULL;
396 (*pnt)->whole_name = NULL;
397 (*pnt)->filedir = NULL;
398 (*pnt)->parent_rec = NULL;
403 (*pnt)->inode = (*pnt)->starting_block;
404 (*pnt)->dev = PREV_SESS_DEV;
405 (*pnt)->rr_attributes = NULL;
406 (*pnt)->rr_attr_size = 0;
407 (*pnt)->total_rr_attr_size = 0;
408 (*pnt)->de_flags = SAFE_TO_REUSE_TABLE_ENTRY;
434 (*pnt)->total_rr_attr_size = (*pnt)->rr_attr_size = rlen;
435 (*pnt)->rr_attributes = e_malloc(rlen);
436 memcpy((*pnt)->rr_attributes, cpnt, rlen);
443 cpnt = (unsigned char *) &(*pnt)->isorec.name;
445 memset(cpnt, 0, sizeof((*pnt)->isorec.name) - idr->name_len[0]);
447 parse_rr((*pnt)->rr_attributes, rlen, *pnt);
449 if( ((*pnt)->isorec.name_len[0] == 1)
450 && ( ((*pnt)->isorec.name[0] == 0)
451 || ((*pnt)->isorec.name[0] == 1)) )
453 if( (*pnt)->name != NULL )
455 free((*pnt)->name);
457 if( (*pnt)->whole_name != NULL )
459 free((*pnt)->whole_name);
461 if( (*pnt)->isorec.name[0] == 0 )
463 (*pnt)->name = strdup(".");
467 (*pnt)->name = strdup("..");
472 fprintf(stderr, "got DE name: %s\n", (*pnt)->name);
481 if( (*pnt)->name != NULL )
483 free((*pnt)->name);
485 if( (*pnt)->whole_name != NULL )
487 free((*pnt)->whole_name);
489 (*pnt)->name = strdup("<translation table>");
494 pnt++;
519 for(pnt = rtn, i = 0; i <*nent; i++, pnt++)
521 rlen = isonum_711((*pnt)->isorec.name_len);
522 if( strncmp((char *) cpnt + 2, (*pnt)->isorec.name,
526 (*pnt)->table = e_malloc(strlen((char*)cpnt) - 33);
527 sprintf((*pnt)->table, "%c\t%s\n",
529 if( !(*pnt)->got_rr_name )
531 if ((*pnt)->name != NULL) {
532 free((*pnt)->name);
534 (*pnt)->name = strdup((char *) cpnt+37);
811 struct directory_entry **, pnt,
826 if( pnt[i] == NULL )
831 if( pnt[i]->name != NULL && pnt[i]->whole_name == NULL)
838 strcat(whole_path, pnt[i]->name);
840 pnt[i]->whole_name = strdup(whole_path);
843 if( pnt[i]->name != NULL
844 && strcmp(pnt[i]->name, "<translation table>") == 0 )
846 ttbl_extent = isonum_733((unsigned char *) pnt[i]->isorec.extent);
854 if( (pnt[i]->isorec.flags[0] & 2) != 0 )
861 if( (strcmp(pnt[i]->name, ".") == 0)
862 || (strcmp(pnt[i]->name, "..") == 0) )
864 free(pnt[i]);
865 pnt[i] = NULL;
870 merge_old_directory_into_tree(pnt[i], this_dir);
873 pnt[i]->next = this_dir->contents;
874 pnt[i]->filedir = this_dir;
875 this_dir->contents = pnt[i];
876 pnt[i] = NULL;
938 pnt[ttbl_index]->next = this_dir->contents;
939 pnt[ttbl_index]->filedir = this_dir;
940 this_dir->contents = pnt[ttbl_index];
941 pnt[ttbl_index] = NULL;
1071 char * pnt;
1099 pnt = strchr(cdwrite_data, ',');
1100 if( pnt == NULL )
1106 *pnt = '\0';
1110 pnt++;
1112 session_start = last_extent = last_extent_written = atol(pnt);
1114 pnt--;
1115 *pnt = ',';