Lines Matching defs:fname
57 int open_read_close(char *fname);
58 int create_or_delete(char *fname);
498 char fname[1024];
524 sprintf(fname, "00/%2.2x/%2.2x/00%2.2x%2.2x%2.2x",
529 open_read_close(fname);
536 int open_read_close(char *fname)
542 if ((fileHandle = open(fname, O_RDONLY | O_SYNC | O_ASYNC)) < 0) {
544 printf("ERROR:opening file %s failed %d \n", fname, errno);
548 if ((fileHandle2 = open(fname, O_RDONLY | O_SYNC | O_ASYNC)) < 0) {
550 printf("ERROR:2nd opening file %s failed %d \n", fname, errno);
578 perror(fname);
589 int create_or_delete(char *fname)
596 if ((create_file(fname) == 0)) {
597 rc = delete_file(fname);
617 char fname[1024];
635 sprintf(fname, "00/%2.2x/%2.2x/00%2.2x%2.2x%2.2x",
640 rc = create_or_delete(fname);