Lines Matching defs:buf
97 char * buf; /* contains characters to be processed */
98 int bufsize; /* size allocated for buf */
288 free(dmd->buf);
304 if (dmd->buf == NULL) {
306 dmd->buf = malloc(dmd->bufsize);
307 dmd->buf[0] = '\0';
312 bufLen = strlen(dmd->buf);
315 * Realloc only if buf has filled up and we don't have a record
320 dmd->buf = realloc(dmd->buf, dmd->bufsize);
323 nbRead = read(dmd->pipeFD, dmd->buf + bufLen,
343 dmd->buf[bufLen] = '\0';
345 DtloginInfo("Data buffer: %s\n", dmd->buf);
347 p = dmd->buf;
360 if (p < (dmd->buf + bufLen)) {
362 strcpy(dmd->buf, p);
379 while (s < (dmd->buf + dmd->bufsize)) {