Lines Matching defs:buf
491 char buf[MAXPATHLEN];
494 memset(buf, '\0', sizeof buf);
495 linklen = readlink(s, buf, sizeof buf);
501 if (linklen >= sizeof buf)
509 if (*buf == '/')
511 target = buf;
514 while (s[offset] == buf[offset] &&
518 if (s[offset] == '\0' && buf[offset] == '\0')
533 while (buf[offset] != '/' &&
539 buf[offset] == '/')
558 sm_strlcat(fullbuf, buf,
569 if (sm_strlcpy(fullbuf, buf,