Home | History | Annotate | Download | only in modules

Lines Matching refs:fn

116 void print_cp_result_long(char *fn, size_t bcnt, clock_t bc, clock_t ec, size_t bufsz, char do_verbose)
122 printf(" %zu B in %d ticks from '%s'\n", bcnt, (int)(ec - bc), fn);
127 } /* void print_cp_result_long(char *fn, size_t bcnt, clock_t bc, clock_t ec, size_t bufsz) */
129 void print_cp_result_simple(char *fn, size_t bcnt, clock_t bc, clock_t ec, size_t bufsz, char do_verbose)
132 printf(" %zuB %dt %zux '%s'\n", bcnt, (int)(ec - bc), bufsz, fn);
133 } /* void print_cp_result_simple(char *fn, int bcnt, clock_t bc, clock_t ec, char do_verbose) */
140 int time_copy(char *fn, char do_simple, char do_verbose, size_t ibufsz, off_t maxlen)
154 printf("Trying file '%s'\n", fn);
156 // fd = open(fn, O_RDONLY);
157 f = fopen(fn, "r");
162 printf("File '%s' does not exist\n", fn);
165 printf("File '%s': Bad File Descriptor\n", fn);
168 printf("Error '%d' opening file '%s'\n", errno, fn);
173 printf("File '%s' opened\n", fn);
196 printf("File '%s' closed\n", fn);
200 printf("IO Error at %zu B reading file '%s'\n", bcnt, fn);
203 printf("Invalid Mode at %zu B reading file '%s'\n", bcnt, fn);
206 printf("Error '%d' at %zu B reading file '%s'\n", errno, bcnt, fn);
214 print_cp_result_simple(fn, bcnt, bc, ec, ibufsz, do_verbose);
216 print_cp_result_long(fn, bcnt, bc, ec, ibufsz, do_verbose);
222 } /* int time_copy(char *fn, char do_simple, int bufsz, off_t maxlen) */