Searched refs:nbytesread (Results 1 – 2 of 2) sorted by relevance
196 int nbytesread; in mkpkt_data() local207 nbytesread = readall(fd, &packet[TFTP_DATAHEADERSIZE], TFTP_DATASIZE); in mkpkt_data()208 if (nbytesread < 0) return -1; in mkpkt_data()209 return nbytesread + TFTP_DATAHEADERSIZE; in mkpkt_data()
528 size_t nbytesread; in read_file() local553 nbytesread = fread(self->buf, sizeof(char), n, self->fp); in read_file() local556 if (nbytesread != (size_t)n) { in read_file()