• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/bin/megatron/

Lines Matching refs:fh

432 int nad_open( char *path, int openflags, struct FHeader *fh, int options)
470 return( nad_header_read( fh ));
474 strcpy( nad.macname, fh->name );
493 return( nad_header_write( fh ));
497 int nad_header_read(struct FHeader *fh)
507 strcpy( fh->name, nad.macname );
511 if (*fh->name == '\0') {
516 strcpy(fh->name, utompath(nad.adpath[DATA]));
518 strcpy(fh->name, utompath(p));
525 fh->forklen[ DATA ] = htonl( st.st_size );
526 fh->forklen[ RESOURCE ] = htonl( ad_getentrylen( &nad.ad, ADEID_RFORK ));
527 fh->comment[0] = '\0';
530 fprintf( stderr, "macname of file\t\t\t%.*s\n", strlen( fh->name ),
531 fh->name );
533 ntohl( fh->forklen[ DATA ] ));
535 ntohl( fh->forklen[ RESOURCE ] ));
536 fprintf( stderr, "get info comment\t\t\"%s\"\n", fh->comment );
540 memcpy( &fh->create_date, &temptime, sizeof( temptime ));
542 memcpy( &fh->mod_date, &temptime, sizeof( temptime ));
544 memcpy( &fh->backup_date, &temptime, sizeof( temptime ));
547 memcpy( &temptime, &fh->create_date, sizeof( temptime ));
550 memcpy( &temptime, &fh->mod_date, sizeof( temptime ));
553 memcpy( &temptime, &fh->backup_date, sizeof( temptime ));
556 fprintf( stderr, "size of finder_info\t\t%d\n", sizeof( fh->finder_info ));
559 memcpy(&fh->finder_info.fdType,
561 sizeof( fh->finder_info.fdType ));
562 memcpy(&fh->finder_info.fdCreator,
564 sizeof( fh->finder_info.fdCreator ));
565 memcpy(&fh->finder_info.fdFlags,
567 sizeof( fh->finder_info.fdFlags ));
568 memcpy(&fh->finder_info.fdLocation,
570 sizeof( fh->finder_info.fdLocation ));
571 memcpy(&fh->finder_info.fdFldr,
573 sizeof( fh->finder_info.fdFldr ));
574 memcpy(&fh->finder_xinfo.fdScript,
576 sizeof(fh->finder_xinfo.fdScript));
577 memcpy(&fh->finder_xinfo.fdXFlags,
579 sizeof(fh->finder_xinfo.fdXFlags));
585 sizeof( fh->finder_info.fdType ), &fh->finder_info.fdType );
587 sizeof( fh->finder_info.fdCreator ),
588 &fh->finder_info.fdCreator );
590 sizeof( fh->finder_info.fdType ) +
591 sizeof( fh->finder_info.fdCreator ),
596 fprintf( stderr, "fh flags\t\t\t%x\n", fh->finder_info.fdFlags );
597 fprintf(stderr, "fh script\t\t\t%x\n", fh->finder_xinfo.fdScript);
598 fprintf(stderr, "fh xflags\t\t\t%x\n", fh->finder_xinfo.fdXFlags);
608 int nad_header_write(struct FHeader *fh)
615 ad_setentrylen( &nad.ad, ADEID_COMMENT, strlen( fh->comment ));
616 memcpy( ad_entry( &nad.ad, ADEID_COMMENT ), fh->comment,
618 ad_setentrylen( &nad.ad, ADEID_RFORK, ntohl( fh->forklen[ RESOURCE ] ));
635 memcpy( &temptime, &fh->create_date, sizeof( temptime ));
637 memcpy( &temptime, &fh->mod_date, sizeof( temptime ));
651 &fh->finder_info.fdType, sizeof( fh->finder_info.fdType ));
653 &fh->finder_info.fdCreator, sizeof( fh->finder_info.fdCreator ));
655 &fh->finder_info.fdFlags, sizeof( fh->finder_info.fdFlags ));
657 &fh->finder_info.fdLocation,sizeof( fh->finder_info.fdLocation ));
659 &fh->finder_info.fdFldr, sizeof( fh->finder_info.fdFldr ));
661 &fh->finder_xinfo.fdScript, sizeof( fh->finder_xinfo.fdScript ));
663 &fh->finder_xinfo.fdXFlags, sizeof( fh->finder_xinfo.fdXFlags));
672 fprintf( stderr, "fh flags\t\t\t%x\n", fh->finder_info.fdFlags );
673 fprintf( stderr, "fh xflags\t\t\t%x\n", fh->finder_xinfo.fdXFlags );
675 sizeof( fh->finder_info.fdType ) +
676 sizeof( fh->finder_info.fdCreator ),