Lines Matching defs:buf
98 char buf[BUFSIZ];
115 char *buf;
125 buf = (char *)malloc(bufsize);
126 if (buf == NULL) {
132 ifc.ifc_buf = buf;
136 free(buf);
150 free(buf);
159 free(buf);
170 (void) getdomainname(buf, BUFSIZ);
171 if (buf[0] == '+')
172 buf[0] = '.';
174 cp = strchr(buf, (int)'.');
176 cp = index(buf, '.');
179 strcpy(_res.defdname, buf);
191 while (fgets(buf, sizeof (buf), fp) != NULL) {
193 if (!strncmp(buf, "domain", sizeof ("domain") - 1)) {
196 cp = buf + sizeof ("domain") - 1;
212 if (!strncmp(buf, "search", sizeof ("search") - 1)) {
215 cp = buf + sizeof ("search") - 1;
252 if (!strncmp(buf, "nameserver", sizeof ("nameserver") - 1) &&
254 cp = buf + sizeof ("nameserver") - 1;
275 if (gethostname(buf, sizeof (_res.defdname)) == 0 &&
277 (cp = strchr(buf, (int)'.')))
279 (cp = index(buf, '.')))