Lines Matching full:path_buf
772 char path_buf[PATH_MAX];
773 snprintf(path_buf, sizeof(path_buf),
775 return access(path_buf, F_OK) == 0;
780 static char *find_top_from(const char *indir, char path_buf[PATH_MAX])
782 strcpy(path_buf, indir);
784 if (top_works(path_buf)) {
785 return path_buf;
787 char *s = adb_dirstop(path_buf);
791 path_buf[0] = '\0';
797 static char *find_top(char path_buf[PATH_MAX])
820 strcpy(path_buf, top);
821 return path_buf;
828 top = find_top_from(getcwd(dir, sizeof(dir)), path_buf);
834 top = find_top_from(dir, path_buf);
853 static char path_buf[PATH_MAX];
862 strcpy(path_buf, hint);
863 return path_buf;
870 if (getcwd(path_buf, sizeof(path_buf)) == NULL) {
874 if (strlen(path_buf) + 1 + strlen(hint) >= sizeof(path_buf)) {
878 strcat(path_buf, OS_PATH_SEPARATOR_STR);
879 strcat(path_buf, hint);
880 return path_buf;
895 snprintf(path_buf, sizeof(path_buf),
901 if (access(path_buf, F_OK) < 0) {
903 "based on \"-p %s\"; \"%s\" doesn't exist\n", hint, path_buf);
906 return path_buf;