Lines Matching refs:read
336 ssize_t read; in cmd_read() local
340 read = fs_read(&file, buf, MIN(count, sizeof(buf))); in cmd_read()
341 if (read <= 0) { in cmd_read()
347 for (i = 0; i < read; i++) { in cmd_read()
356 for (i = 0; i < read; i++) { in cmd_read()
363 offset += read; in cmd_read()
364 count -= read; in cmd_read()
379 ssize_t read; in cmd_cat() local
405 read = fs_read(&file, buf, sizeof(buf)); in cmd_cat()
406 if (read <= 0) { in cmd_cat()
410 for (int j = 0; j < read; j++) { in cmd_cat()
415 if (read < 0) { in cmd_cat()
417 path, read); in cmd_cat()
848 SHELL_CMD_ARG(read, NULL, "Read from file", cmd_read, 2, 255),