Lines Matching refs:adpath
414 char adpath[ 2 ][ MAXPATHLEN + 1];
438 * Depending upon openflags, set up nad.adpath for the open. If it
447 strcpy( nad.adpath[0], path );
448 strcpy( nad.adpath[1],
449 nad.ad.ad_ops->ad_path( nad.adpath[0], ADFLAGS_HF ));
451 if ( stat( nad.adpath[ fork ], &st ) < 0 ) {
462 fprintf(stderr, "%s is adpath[0]\n", nad.adpath[0]);
463 fprintf(stderr, "%s is adpath[1]\n", nad.adpath[1]);
465 if ( ad_open( nad.adpath[ 0 ], ADFLAGS_DF|ADFLAGS_HF,
467 perror( nad.adpath[ 0 ] );
475 strcpy( nad.adpath[0], mtoupath( nad.macname ));
476 strcpy( nad.adpath[1],
477 nad.ad.ad_ops->ad_path( nad.adpath[0], ADFLAGS_HF ));
480 fprintf(stderr, "%s is adpath[0]\n", nad.adpath[0]);
481 fprintf(stderr, "%s is adpath[1]\n", nad.adpath[1]);
488 if ( ad_open( nad.adpath[ 0 ], ADFLAGS_DF|ADFLAGS_HF,
490 perror( nad.adpath[ 0 ] );
512 if ( NULL == (p = strrchr(nad.adpath[DATA], '/')) )
513 p = nad.adpath[DATA];
516 strcpy(fh->name, utompath(nad.adpath[DATA]));
521 if ( stat( nad.adpath[ DATA ], &st ) < 0 ) {
761 if ( unlink( nad.adpath[ 0 ] ) < 0 ) {
762 perror ( nad.adpath[ 0 ] );
764 if ( unlink( nad.adpath[ 1 ] ) < 0 ) {
765 perror ( nad.adpath[ 1 ] );