Lines Matching refs:buf
130 static int file_read(int fd, char* buf, int len) {
132 RESTARTABLE(read(fd, buf, len), ret);
363 char* buf = NULL;
376 buf = (char*)malloc(size);
377 if (buf != NULL) {
378 char* pos = buf;
379 strcpy(buf, PROTOCOL_VERSION);
396 char* newbuf = (char*)realloc(buf, size+len+1);
402 buf = newbuf;
403 strcpy(buf+size, cstr);
409 * The arguments to the door function are in 'buf' so we now
412 door_args.data_ptr = buf;
458 if (buf) free(buf);
464 char ch, buf[16];
473 buf[index++] = ch;
475 buf[index - 1] = '\0';
476 return atoi(buf);
478 if (index == sizeof(buf)) {
493 char buf[16];
537 sprintf(buf, "%d", probe_type);
538 args[0] = buf;