Lines Matching refs:fname

423 	char fname[SIZE];		/* scratch buffer for building names */  local
457 (void) sprintf(fname, "%s/%s/_pmtab", HOME, tp->t_tag);
458 if ((ret = check_version(version, fname)) == 1) {
459 (void) sprintf(buf, "%s version number is incorrect", fname);
464 (void) sprintf(buf, "could not open %s", fname);
469 (void) sprintf(buf, "%s file is corrupt", fname);
473 fp = fopen(fname, "r");
475 (void) sprintf(buf, "Could not open %s", fname);
500 (void) sprintf(fname, "%s/%s", tp->t_tag, svctag);
501 if (do_config(script, fname)) {
512 (void) sprintf(fname, "%s/%s/_pmtab", HOME, tp->t_tag);
513 fp = fopen(fname, "a");
515 (void) sprintf(buf, "Could not open %s", fname);
557 char fname[SIZE]; /* path to correct _pmtab */ local
571 (void) sprintf(fname, "%s/_pmtab", pmtag);
572 (void) sprintf(buf, "%s/%s", HOME, fname);
575 (void) sprintf(buf, "Could not open %s/%s", HOME, fname);
584 tname = make_tempname(fname);
605 replace(fname, tname);
649 char fname[SIZE]; /* path to correct _pmtab */ local
663 (void) sprintf(fname, "%s/_pmtab", pmtag);
664 (void) sprintf(buf, "%s/%s", HOME, fname);
667 (void) sprintf(buf, "Could not open %s/%s", HOME, fname);
676 tname = make_tempname(fname);
751 replace(fname, tname);
787 char fname[SIZE]; /* scratch buffer for names */ local
820 (void) sprintf(fname, "%s/%s/_pmtab", HOME, tp->t_tag);
821 fp = fopen(fname, "r");
823 (void) sprintf(buf, "Could not open %s", fname);
844 (void) sprintf(fname, "%s/%s", tp->t_tag, svctag);
850 if (do_config(script, fname) == 0)
946 char fname[SIZE]; /* scratch buffer for building names */ in list_svcs() local
977 (void) sprintf(fname, "%s/%s/_pmtab", HOME, tp->t_tag); in list_svcs()
978 fp = fopen(fname, "r"); in list_svcs()
980 (void) sprintf(buf, "Could not open %s", fname); in list_svcs()
1008 (void) sprintf(buf, "error reading %s", fname); in list_svcs()