Lines Matching refs:buf
120 char *buf, *lim, *next;
133 buf = malloc (needed);
134 if (buf == NULL)
137 if (sysctl (mib, 6, buf, &needed, NULL, 0) < 0) {
138 free(buf);
142 lim = buf + needed;
144 next = buf;
152 free (buf);
159 free (buf);
174 char buf[512], *pos, *end;
229 end = buf + sizeof(buf);
231 memcpy(buf, &_type, sizeof(_type));
232 pos = buf + sizeof(_type);
255 len = sendto(sock, buf, pos - buf, 0, (struct sockaddr *) dst,