Lines Matching refs:buf
197 char buf[PATH_MAX];
199 if (pathgetlink(path, buf, sizeof(buf)) <= 0)
201 if (strlen(path) >= sizeof(buf))
203 strcpy(buf, path);
211 if ((ul = strlen(buf)) < sizeof(ua.sun_path) && !stat(buf, &st) && S_ISSOCK(st.st_mode))
216 strcpy(ua.sun_path, buf);
225 if (!strmatch(buf, "/dev/(tcp|udp)/*/*"))
227 buf[8] = 0;
228 if (str2inet(buf + 9, buf + 5, &addr))
230 if ((fd = socket(AF_INET, buf[5] == 't' ? SOCK_STREAM : SOCK_DGRAM, 0)) < 0)
262 char buf[PATH_MAX];
269 if (*(s = p->name) != '/' && !(s = pathpath(buf, s, "", PATH_REGULAR|PATH_READ, sizeof(buf))))
304 char buf[16];
318 sfsprintf(s = buf, sizeof(buf), "debug%d", c);
323 sfsprintf(s = buf, sizeof(buf), "local%d", c);