Lines Matching refs:nbytes
232 static ssize_t fullread(int filedes, void *buffer, size_t nbytes) in fullread() argument
239 (unsigned char *)buffer + nread, nbytes - nread); in fullread()
268 } while((size_t)nread < nbytes); in fullread()
283 static ssize_t fullwrite(int filedes, const void *buffer, size_t nbytes) in fullwrite() argument
290 nbytes - nwrite); in fullwrite()
314 } while((size_t)nwrite < nbytes); in fullwrite()
329 static bool read_stdin(void *buffer, size_t nbytes) in read_stdin() argument
331 ssize_t nread = fullread(fileno(stdin), buffer, nbytes); in read_stdin()
332 if(nread != (ssize_t)nbytes) { in read_stdin()
346 static bool write_stdout(const void *buffer, size_t nbytes) in write_stdout() argument
348 ssize_t nwrite = fullwrite(fileno(stdout), buffer, nbytes); in write_stdout()
349 if(nwrite != (ssize_t)nbytes) { in write_stdout()