Lines Matching refs:count
64 int count = shell_readline(kb_fd, input_buffer); in main_loop() local
65 if (!count || current_command_index < count_history - 1) in main_loop()
67 if (count) in main_loop()
76 if (count) in main_loop()
110 void clear_command(int count, char *buf) in clear_command() argument
112 for (int i = 0; i < count; i++) in clear_command()
155 int count = 0; in shell_readline() local
173 clear_command(count, buf); in shell_readline()
174 count = 0; in shell_readline()
177 count = strlen(buf); in shell_readline()
187 clear_command(count, buf); in shell_readline()
188 count = 0; in shell_readline()
191 count = strlen(buf); in shell_readline()
202 if (count > 0 && current_command_index >= count_history) in shell_readline()
209 return count; in shell_readline()
216 if (count > 0) in shell_readline()
222 buf[--count] = 0; in shell_readline()
230 buf[count++] = key; in shell_readline()
235 if (count > 0 && current_command_index >= count_history) in shell_readline()
240 else if (count > 0) in shell_readline()
248 if (count >= INPUT_BUFFER_SIZE - 1) in shell_readline()
251 return count; in shell_readline()