Lines Matching refs:buf
163 char *buf;
174 buf = malloc((size_t)buflen);
175 if (buf == NULL) {
256 buf, (u_int)buflen);
259 free(buf);
260 buf = NULL;
262 buf = malloc((size_t)(buflen += 1024));
263 if (buf == NULL) {
274 fputs(buf, file);
280 if (buf != NULL)
281 free(buf);
740 p_sockun(union res_sockaddr_union u, char *buf, size_t size) {
757 strncpy(buf, ret, size - 1);
758 buf[size - 1] = '0';
760 return (buf);
1194 res_nametoclass(const char *buf, int *successp) {
1199 result = sym_ston(__p_class_syms, buf, &success);
1203 if (strncasecmp(buf, "CLASS", 5) != 0 ||
1204 !isdigit((unsigned char)buf[5]))
1207 result = strtoul(buf + 5, &endptr, 10);
1217 res_nametotype(const char *buf, int *successp) {
1222 result = sym_ston(__p_type_syms, buf, &success);
1226 if (strncasecmp(buf, "type", 4) != 0 ||
1227 !isdigit((unsigned char)buf[4]))
1230 result = strtoul(buf + 4, &endptr, 10);