Lines Matching defs:buffer

105   char *buffer;   /* holds the file data to send to the client */
106 size_t bufsize; /* size of the data in buffer */
107 char *rptr; /* read pointer into the buffer */
132 * bf.buf buffer. Additionally it can also hold flags BF_ALLOC or BF_FREE.
136 int counter; /* size of data in buffer, or flag */
186 static int nextone; /* index of next buffer to use */
187 static int current; /* index of buffer in use */
321 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
338 /* Have emptied current buffer by sending to net and getting ack.
339 Free it and return next buffer filled with data.
349 b = &bfs[current]; /* look at new buffer */
358 * fill the input buffer, doing ascii conversions if requested
370 b = &bfs[nextone]; /* look at "next" buffer */
373 nextone = !nextone; /* "incr" next buffer ptr */
418 /* Update count associated with the buffer, get new buffer from the queue.
419 Calls write_behind only if next buffer not available.
425 current = !current; /* switch to other buffer */
434 * Output a buffer to a file, converting from netascii if requested.
481 while(ct--) { /* loop over the buffer */
828 free(test.buffer);
1085 test->buffer = strdup(weare);
1086 test->rptr = test->buffer; /* set read pointer */
1137 int error = getpart(&test->buffer, &count, "reply", partbuf, stream);
1143 if(test->buffer) {
1144 test->rptr = test->buffer; /* set read pointer */
1170 struct tftphdr * volatile sdp = r_init(); /* data buffer */
1171 struct tftphdr * const sap = &ackbuf.hdr; /* ack buffer */
1250 struct tftphdr * volatile rdp; /* data buffer */
1251 struct tftphdr *rap; /* ack buffer */
1372 /* we use memcpy() instead of strcpy() in order to avoid buffer overflow