Lines Matching defs:fname
344 char *fname = argv[optind];
350 if ((var = open(fname, O_RDONLY)) == -1) {
353 fname, strerror(err));
366 cname, fname);
371 cname, fname);
375 if (elf_check(nfile, fname, cname, elf, fflag) != NULL)
382 if (aout_check(nfile, fname, cname, var, fflag) != NULL)
395 elf_check(int nfile, char *fname, char *cname, Elf *elf, int fflag)
407 cname, fname, elf_errmsg(-1));
416 (void) fprintf(stderr, MSG_INTL(MSG_ELF_MACHTYPE), cname, fname,
425 (void) fprintf(stderr, MSG_INTL(MSG_ELF_DATA), cname, fname,
443 cname, fname);
451 cname, fname, conv_ehdr_class(class, 0, &inv_buf));
456 (void) fprintf(stderr, MSG_INTL(MSG_ELF_CLASS), cname, fname,
467 cname, fname);
477 if (access(fname, X_OK) != 0) {
480 cname, fname);
484 fname);
496 cname, fname, elf_errmsg(-1));
519 (strcmp(fname, conv_lddstub(class)) != 0)) {
534 cname, fname, interpreter);
546 fname);
563 fname);
574 return (run(nfile, cname, fname, (const char *)fname, class));
576 return (run(nfile, cname, fname, conv_lddstub(class), class));
580 aout_check(int nfile, char *fname, char *cname, int fd, int fflag)
587 (void) fprintf(stderr, MSG_INTL(MSG_SYS_LSEEK), cname, fname,
593 (void) fprintf(stderr, MSG_INTL(MSG_SYS_READ), cname, fname,
598 (void) fprintf(stderr, MSG_INTL(MSG_USP_UNKNOWN), cname, fname);
603 fname);
607 (void) fprintf(stderr, MSG_INTL(MSG_USP_AOUTINS), cname, fname);
616 return (run(nfile, cname, fname, conv_lddstub(ELFCLASS32),
620 return (run(nfile, cname, fname, (const char *)fname,
631 run(int nfile, char *cname, char *fname, const char *ename, int class)
648 fname);
656 fname);
673 if (fname != ename) {
678 for (str = fname; *str; str++)
703 strlen(fname) + strlen(files) + 5)) == 0) {
709 (void) sprintf(str, format, preload, fname, files);
766 (void) printf(MSG_ORIG(MSG_STR_FMT3), fname);
770 fname);