Home | History | Annotate | Download | only in adb

Lines Matching refs:path_buf

787         char path_buf[PATH_MAX];
788 snprintf(path_buf, sizeof(path_buf),
790 return access(path_buf, F_OK) == 0;
795 static char *find_top_from(const char *indir, char path_buf[PATH_MAX])
797 strcpy(path_buf, indir);
799 if (top_works(path_buf)) {
800 return path_buf;
802 char *s = adb_dirstop(path_buf);
806 path_buf[0] = '\0';
812 static char *find_top(char path_buf[PATH_MAX])
835 strcpy(path_buf, top);
836 return path_buf;
843 top = find_top_from(getcwd(dir, sizeof(dir)), path_buf);
849 top = find_top_from(dir, path_buf);
868 static char path_buf[PATH_MAX];
877 strcpy(path_buf, hint);
878 return path_buf;
885 if (getcwd(path_buf, sizeof(path_buf)) == NULL) {
889 if (strlen(path_buf) + 1 + strlen(hint) >= sizeof(path_buf)) {
893 strcat(path_buf, OS_PATH_SEPARATOR_STR);
894 strcat(path_buf, hint);
895 return path_buf;
910 snprintf(path_buf, sizeof(path_buf),
916 if (access(path_buf, F_OK) < 0) {
918 "based on \"-p %s\"; \"%s\" doesn't exist\n", hint, path_buf);
921 return path_buf;