Lines Matching refs:nrread
366 int nrread; in read_buf() local
368 nrread = read(fd, buf, PBUFSIZ); in read_buf()
369 if (nrread == -1) { in read_buf()
373 buf[nrread] = '\0'; in read_buf()
375 return nrread; in read_buf()
433 int nrread; in read_from_gdb_write_to_pid() local
435 nrread = read_buf(from_gdb, buf, "from gdb on stdin"); in read_from_gdb_write_to_pid()
436 if (nrread <= 0) { in read_from_gdb_write_to_pid()
437 if (nrread == 0) in read_from_gdb_write_to_pid()
445 return write_buf(to_pid, buf, nrread, "to_pid", /* notify */ True); in read_from_gdb_write_to_pid()
457 int nrread; in read_from_pid_write_to_gdb() local
459 nrread = read_buf(from_pid, buf, "from pid"); in read_from_pid_write_to_gdb()
460 if (nrread <= 0) { in read_from_pid_write_to_gdb()
461 if (nrread == 0) in read_from_pid_write_to_gdb()
469 return write_buf(to_gdb, buf, nrread, "to_gdb", /* notify */ False); in read_from_pid_write_to_gdb()