Lines Matching refs:state_array
35 struct state state_array[MAXFDS]; variable
46 state_array[i].state = STATE_CLEAR; in clear_state_array()
94 state_array[fd].isdir = isdir; in create_random_file()
97 state_array[fd].isdir = isdir; in create_random_file()
98 state_array[fd].state = STATE_CREATED; in create_random_file()
99 strcpy(state_array[fd].name, template); in create_random_file()
108 if (state_array[fd].isdir) in truncate_file()
113 state_array[fd].name, fd, get_inode_num(fd), size); in truncate_file()
119 char *filename = state_array[fd].name; in unlink_file()
124 if (state_array[fd].isdir) in unlink_file()
128 state_array[fd].state = STATE_DELETED; in unlink_file()
133 char *filename = state_array[fd].name; in close_file()
139 state_array[fd].state = STATE_CLEAR; in close_file()
153 switch (state_array[fd].state) { in main()
158 if ((state_array[fd].isdir == 0) && in main()