Searched refs:nread (Results 1 – 1 of 1) sorted by relevance
151 size_t nread; in do_shell() local162 nread = fread(buf, 1, sizeof(buf), p); in do_shell()163 if (nread == sizeof(buf)) in do_shell()164 nread--; in do_shell()167 while (nread > 0 && buf[nread - 1] == '\n') in do_shell()168 nread--; in do_shell()170 buf[nread] = 0; in do_shell()173 for (i = 0; i < nread; i++) { in do_shell()