Searched refs:nWritten (Results 1 – 2 of 2) sorted by relevance
577 SizeT nWritten = 0; in my_write() local579 if (nWritten == len) return nWritten; in my_write()580 assert(nWritten < len); in my_write()581 SizeT nStillToDo = len - nWritten; in my_write()583 SSizeT n = write(fd, &buf[nWritten], nStillToDo); in my_write()584 if (n < 0) return nWritten; /* error or EOF */ in my_write()585 nWritten += n; in my_write()
175 Int nWritten = 0; in my_write() local177 if (nWritten == len) return nWritten; in my_write()178 vg_assert(nWritten < len); in my_write()179 Int nStillToDo = len - nWritten; in my_write()181 Int n = VG_(write_socket)(fd, &buf[nWritten], nStillToDo); in my_write()182 if (n < 0) return nWritten; /* error or EOF */ in my_write()183 nWritten += n; in my_write()