Lines Matching defs:fn

134 static void dirent_fname_fill(struct pcdir *dep, char *fn);
160 static void write_fat(int fd, off64_t seekto, char *fn, char *lbl,
165 static int prepare_image_file(char *fn, bpb_t *wbpb);
166 static int verify_bootblkfile(char *fn, boot_sector_t *bs,
169 static int verify_firstfile(char *fn, ulong_t *filesize);
173 static int copy_bootblk(char *fn, boot_sector_t *bootsect,
981 prepare_image_file(char *fn, bpb_t *wbpb)
986 if ((fd = open(fn, O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
987 perror(fn);
1019 perror(fn);
1025 perror(fn);
1031 perror(fn);
2485 verify_bootblkfile(char *fn, boot_sector_t *bs, ulong_t *blkfilesize)
2490 if (stat(fn, &fi)) {
2491 perror(fn);
2494 gettext("%s: Too short to be a boot sector.\n"), fn);
2495 } else if ((bsfd = open(fn, O_RDONLY)) < 0) {
2496 perror(fn);
2516 gettext("Boot block (%s) bogus.\n"), fn);
2536 verify_firstfile(char *fn, ulong_t *filesize)
2542 if (stat(fn, &fi) || (fd = open(fn, O_RDONLY)) < 0) {
2543 perror(fn);
2580 copy_bootblk(char *fn, boot_sector_t *bootsect, ulong_t *bootblksize)
2584 if (Verbose && fn)
2586 "block file %s.\n"), fn);
2594 if (fn) {
2595 bsfd = verify_bootblkfile(fn, bootsect, bootblksize);
2795 dirent_label_fill(struct pcdir *dep, char *fn)
2802 nl = min(PCFNAMESIZE, strlen(fn));
2804 dep->pcd_filename[i] = toupper(fn[i]);
2813 nl = min(PCFEXTSIZE, strlen(fn) - PCFNAMESIZE);
2815 dep->pcd_ext[i] = toupper(fn[i + PCFNAMESIZE]);
2824 dirent_fname_fill(struct pcdir *dep, char *fn)
2829 if (fname = strrchr(fn, '/')) {
2832 fname = fn;
3075 write_fat(int fd, off64_t seekto, char *fn, char *lbl, char *ffn, bpb_t *wbpb)
3087 bsfd = copy_bootblk(fn, &bootsect, &bootblksize);
3150 write_rest(wbpb, fn, fd, bsfd, bootblksize - BPSEC);