Lines Matching refs:buf2
348 static char *buf1, *buf2; in follow_symlink() local
358 buf2 = ck_malloc (PATH_MAX + 1); in follow_symlink()
365 if (buf == buf2) in follow_symlink()
367 strcpy (buf1, buf2); in follow_symlink()
371 while ((rc = readlink (buf, buf2, buf_size)) == buf_size) in follow_symlink()
375 buf2 = ck_realloc (buf2, buf_size); in follow_symlink()
380 buf2 [rc] = '\0'; in follow_symlink()
382 if (buf2[0] != '/' && (c = strrchr (buf, '/')) != NULL) in follow_symlink()
391 buf2 = ck_realloc (buf2, buf_size); in follow_symlink()
399 memcpy (buf1 + len, buf2, rc + 1); in follow_symlink()
407 buf = buf2; in follow_symlink()