Searched refs:nread (Results 1 – 1 of 1) sorted by relevance
143 size_t nread; in do_shell() local154 nread = fread(buf, 1, sizeof(buf), p); in do_shell()155 if (nread == sizeof(buf)) in do_shell()156 nread--; in do_shell()159 while (nread > 0 && buf[nread - 1] == '\n') in do_shell()160 nread--; in do_shell()162 buf[nread] = 0; in do_shell()165 for (i = 0; i < nread; i++) { in do_shell()
Completed in 5 milliseconds