Searched refs:nread (Results 1 – 1 of 1) sorted by relevance
146 size_t nread; in do_shell() local157 nread = fread(buf, 1, sizeof(buf), p); in do_shell()158 if (nread == sizeof(buf)) in do_shell()159 nread--; in do_shell()162 while (nread > 0 && buf[nread - 1] == '\n') in do_shell()163 nread--; in do_shell()165 buf[nread] = 0; in do_shell()168 for (i = 0; i < nread; i++) { in do_shell()