Lines Matching refs:files

7  * copy of this software and associated documentation files (the
107 StringGroup *sg; /* The memory used to record the names of files */
108 size_t files_dim; /* The allocated size of files[] */
109 char **files; /* Memory for 'files_dim' pointers to files */
110 size_t nfiles; /* The number of filenames currently in files[] */
125 CacheMem *mem; /* The memory used to store dir[] and files[] */
127 int nfile; /* The number of filenames stored in 'files' */
128 char **files; /* Files of interest in the current directory, */
148 * files of interest from comma-separated lists of directories.
190 * Scan absolute directories for files of interest, recording their names
191 * in mem->sg and recording pointers to these names in mem->files[].
253 * Specify the amount by which the files[] arrays are to be extended
261 * lookup and completion of selected files in this cache.
309 * Allocate memory for recording names of files in absolute paths.
315 * Allocate memory for recording names of files in relative paths.
346 * files of interest.
356 * Delete a given cache of files, returning the resources that it
413 * types of files, for example executables, or filenames ending in
423 * cache. This determines what type of files
425 * selecting all files, regardless of type,
437 * statuses of files that were accepted or rejected by the previous
449 * select files of interest.
493 * Build the list of files of interest contained in a given
498 * the files that are found in the list of
514 char **fptr; /* A pointer into pc->abs_mem->files[] */
546 * files of interest in the directory.
553 * pc->abs_mem->files[]. Record pointers to the starts of each
555 * be done in add_PathNode(), because pc->abs_mem->files[] may
559 fptr = pc->abs_mem->files;
561 node->files = fptr;
732 cm->files = NULL;
745 cm->files = (char **) malloc(sizeof(*cm->files) * cm->files_dim);
746 if(!cm->files) {
772 if(cm->files) {
773 free(cm->files);
774 cm->files = NULL;
839 node->files = NULL;
850 * Scan absolute directories for files of interest, recording their names
852 * node->mem->files[] array.
856 if(nfile < 1) { /* No files matched or an error occurred */
874 * Scan a given directory for files of interest, record their names
875 * in mem->sg and append pointers to them to the mem->files[] array.
883 * return int The number of files recorded, or -1 if a
894 * there are no accessible files of interest in the directory.
899 * Record the names of all files in the directory in the cache.
927 * Make room to store a pointer to the copy in mem->files[].
931 char **files = (char **) realloc(mem->files, sizeof(*mem->files)*needed);
932 if(!files) {
938 mem->files = files;
942 * Record a pointer to the copy of the filename at the end of the files[]
945 mem->files[mem->nfiles++] = copy;
947 * Keep a record of the number of files matched so far.
952 * Sort the list of files into lexical order.
954 qsort(mem->files + mem->nfiles - nfile, nfile, sizeof(*mem->files),
957 * Return the number of files recorded in mem->files[].
982 * Given the simple name of a file, search the cached list of files
991 * pc PathCache * The cached list of files.
1052 * scan it for files of interest.
1058 node->files = node->mem->files;
1071 match = (char **)bsearch(pc->path->name, node->files, node->nfile,
1072 sizeof(*node->files), pca_cmp_file);
1293 * scan it for files of interest.
1299 node->files = node->mem->files;
1319 int test = strncmp(node->files[mid]+1, prefix, prefix_len);
1333 while(--bot >= 0 && strncmp(node->files[bot]+1, prefix, prefix_len) == 0)
1336 strncmp(node->files[top]+1, prefix, prefix_len) == 0)
1348 char *match = node->files[bot];
1711 *node->files[i] = PCA_F_ENIGMA;