Home | History | Annotate | Download | only in tftp

Lines Matching defs:current

42    server.  Written originally with multiple buffers in mind, but current
74 static int current; /* index of buffer in use */
101 current = 0;
107 /* Have emptied current buffer by sending to net and getting ack.
119 bfs[current].counter = BF_FREE; /* free old one */
120 current = !current; /* "incr" current */
122 b = &bfs[current]; /* look at new buffer */
187 bfs[current].counter = ct; /* set size of data to write */
188 current = !current; /* switch to other buffer */
189 if (bfs[current].counter != BF_FREE) /* if not free */
192 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */
193 *dpp = (struct tftphdr *)(void *)bfs[current].buf;
210 int c; /* current character */