39 PRInt32 size, PRIntervalTime
timeout);
41 PRInt32 amount, PRIntn flags,
44 PRIntn flags, PRIntervalTime
timeout);
92 #define INC_READ(fd, n) STMT_BEGIN \
93 get_counts(fd)->n_read += (n); \
97 #define INC_WRITTEN(fd, n) STMT_BEGIN \
98 get_counts(fd)->n_written += (n); \
123 PRInt32 result = (fd->lower->methods->read)(fd->lower, buf, amount);
136 PRInt32 result = (fd->lower->methods->write)(fd->lower, buf, amount);
145 PRInt32 size, PRIntervalTime
timeout)
150 PRInt32 result = (fd->lower->methods->writev)(fd->lower, iov, size,
timeout);
159 PRInt32 amount, PRIntn flags, PRIntervalTime
timeout)
164 PRInt32 result = (fd->lower->methods->send)(fd->lower, buf, amount, flags,
174 PRIntn flags, PRIntervalTime
timeout)
179 PRInt32 result = (fd->lower->methods->recv)(fd->lower, buf, amount, flags,
204 newfd->secret = (PRFilePrivate *)bytecounts;
210 PRStatus status = PR_PushIOLayer(stack, PR_TOP_IO_LAYER, newfd);
226 uint64_t *n_read_out,
227 uint64_t *n_written_out)
235 if (BUG(bclayer == NULL))
240 *n_read_out =
counts->n_read;
241 *n_written_out =
counts->n_written;