• Home
  • Raw
  • Download

Lines Matching refs:tf

422 	struct test_file *tf = get_tf();  in get_fd()  local
423 return tf->fd; in get_fd()
428 struct test_file *tf; in open_test_files() local
441 for (i = 0, tf = test_files; i < num_test_files; i++, tf++) { in open_test_files()
443 tf->path = argv[i]; in open_test_files()
444 tf->fd = open(tf->path, O_RDWR | (lite ? 0 : O_CREAT | O_TRUNC), in open_test_files()
446 if (tf->fd < 0) { in open_test_files()
447 prterr(tf->path); in open_test_files()
455 for (i = 0, tf = test_files; i < num_test_files; i++, tf++) in open_test_files()
456 prt("fd %d: %s\n", i, tf->path); in open_test_files()
462 struct test_file *tf; in close_test_files() local
464 for (i = 0, tf = test_files; i < num_test_files; i++, tf++) { in close_test_files()
465 if (close(tf->fd)) { in close_test_files()
542 char *fill_tf_buf(struct test_file *tf) in fill_tf_buf() argument
547 sprintf(tf_buf, "%lu ", (unsigned long)(tf - test_files)); in fill_tf_buf()
552 output_line(struct test_file *tf, int op, unsigned offset, in output_line() argument
575 tf_num = fill_tf_buf(tf); in output_line()
589 struct test_file *tf = get_tf(); in doread() local
590 int fd = tf->fd; in doread()
612 output_line(tf, OP_READ, offset, size, &t); in doread()
644 struct test_file *tf = get_tf(); in domapread() local
645 int fd = tf->fd; in domapread()
667 output_line(tf, OP_MAPREAD, offset, size, &t); in domapread()
722 struct test_file *tf = get_tf(); in dowrite() local
723 int fd = tf->fd; in dowrite()
750 output_line(tf, OP_WRITE, offset, size, &t); in dowrite()
782 struct test_file *tf = get_tf(); in domapwrite() local
783 int fd = tf->fd; in domapwrite()
811 output_line(tf, OP_MAPWRITE, offset, size, &t); in domapwrite()
880 struct test_file *tf = get_tf(); in dotruncate() local
881 int fd = tf->fd; in dotruncate()
900 output_line(tf, OP_TRUNCATE, oldsize, size, &t); in dotruncate()
941 struct test_file *tf = get_tf(); in docloseopen() local
952 if (close(tf->fd)) { in docloseopen()
960 tf->fd = open(tf->path, O_RDWR, 0); in docloseopen()
961 if (tf->fd < 0) { in docloseopen()