Lines Matching refs:path_buf
285 char * path_buf;
376 if( !(path_buf = malloc(len)) ||
384 strcpy(path_buf, path);
385 parent_buf = dirname(path_buf);
416 strcpy(path_buf, path);
419 free(path_buf);
442 char path_buf[PATH_MAX];
501 snprintf(path_buf, sizeof(path_buf), "%s/%s", path, e->d_name);
508 type = resolve_unknown_type(path_buf, dir_types);
514 inotify_insert_directory(fd, esc_name, path_buf);
518 if( (stat(path_buf, &st) == 0) && (st.st_blocks<<9 >= st.st_size) )
520 inotify_insert_file(esc_name, path_buf);
648 char path_buf[PATH_MAX];
711 snprintf(path_buf, sizeof(path_buf), "%s/%s", get_path_from_wd(event->wd), event->name);
715 path_buf, (event->mask & IN_MOVED_TO ? "moved here" : "created"));
716 inotify_insert_directory(pollfds[0].fd, esc_name, path_buf);
719 (lstat(path_buf, &st) == 0) )
730 path_buf, (event->mask & IN_MOVED_TO ? "moved here" : "created"));
731 if( stat(path_buf, &st) == 0 && S_ISDIR(st.st_mode) )
732 inotify_insert_directory(pollfds[0].fd, esc_name, path_buf);
734 inotify_insert_file(esc_name, path_buf);
739 (sql_get_int_field(db, "SELECT TIMESTAMP from DETAILS where PATH = '%q'", path_buf) != st.st_mtime) )
742 path_buf, (event->mask & IN_MOVED_TO ? "moved here" : "changed"));
743 inotify_insert_file(esc_name, path_buf);
751 path_buf, (event->mask & IN_MOVED_FROM ? "moved away" : "deleted"));
753 inotify_remove_directory(pollfds[0].fd, path_buf);
755 inotify_remove_file(path_buf);