|
FileSystemIndexer v0.1.2-beta
File System Indexer - An API to index files from your system
|
#include "../../FSIpredefines.h"#include "../FSI_dirUtils.h"#include "cstr/cstr.h"#include <dirent.h>#include <sys/stat.h>#include <unistd.h>#include <fcntl.h>

Go to the source code of this file.
Classes | |
| struct | FSI_DirData_POSIX |
| struct | FSI_Visited_POSIX |
Macros | |
| #define | __FSI_DIRUTILS_POSIX_CPP_CLOSE } |
| #define | __FSI_DIRUTILS_POSIX_CPP_OPEN extern "C" { |
Typedefs | |
| typedef struct FSI_DirData_POSIX | FSI_DirData_POSIX |
| typedef struct FSI_Visited_POSIX | FSI_Visited_POSIX |
Functions | |
| static void | __fsi_walk (CVEC *out, CVEC *visited, const char *path) |
| void | fsi_closeDir (FSI_DirData *d) |
| Get the directory data to deallocate memory. | |
| static FSI_EntryType | fsi_getEntryType (int dirfd, struct dirent *e) |
| Get the entry type of the dirfd from the FSI_DirData_POSIX. | |
| static FSI_EntryType | fsi_getEntryTypeFromDirent (int dirfd, struct dirent *e, struct stat *stOut) |
| int | fsi_openDir (FSI_DirData *d, const char *path) |
| Open directory as read only. | |
| int | fsi_readDir (FSI_DirData *d, FSI_EntryData *out) |
| Read directory from reading the FSI_DirData information. | |
| static void | fsi_visitedAdd (CVEC *v, dev_t dev, ino_t ino) |
| static int | fsi_visitedHas (CVEC *v, dev_t dev, ino_t ino) |
| #define __FSI_DIRUTILS_POSIX_CPP_CLOSE } |
Definition at line 6 of file FSI_dirUtils_posix.h.
| #define __FSI_DIRUTILS_POSIX_CPP_OPEN extern "C" { |
Definition at line 5 of file FSI_dirUtils_posix.h.
| typedef struct FSI_DirData_POSIX FSI_DirData_POSIX |
| typedef struct FSI_Visited_POSIX FSI_Visited_POSIX |
|
inlinestatic |
Definition at line 145 of file FSI_dirUtils_posix.h.
References __fsi_walk(), FSI_DIR, fsi_getEntryTypeFromDirent(), fsi_visitedAdd(), and fsi_visitedHas().
Referenced by __fsi_walk(), and fsi_walk().


| void fsi_closeDir | ( | FSI_DirData * | d | ) |
Get the directory data to deallocate memory.
| d | Object to deallocate |
Definition at line 41 of file FSI_dirUtils_posix.c.
References FSI_DirData_POSIX::dir, FSI_FREE, FSI_DirData::impl, and FSI_DirData_POSIX::path.
|
inlinestatic |
Get the entry type of the dirfd from the FSI_DirData_POSIX.
| dirfd | Entry type to get from the syscall |
| e | Get dirent type quickly from the e ptr with its corresponding dirent data |
Definition at line 70 of file FSI_dirUtils_posix.h.
References FSI_DIR, FSI_FILE, FSI_OTHER, and FSI_SYMLINK.
|
inlinestatic |
Definition at line 94 of file FSI_dirUtils_posix.h.
References FSI_DIR, FSI_FILE, FSI_OTHER, and FSI_SYMLINK.
Referenced by __fsi_walk().

| int fsi_openDir | ( | FSI_DirData * | d, |
| const char * | path ) |
Open directory as read only.
| d | Directory data |
| path | Path to open dir |
Definition at line 9 of file FSI_dirUtils_posix.c.
References FSI_DirData_POSIX::dir, FSI_DirData_POSIX::dirfd, and FSI_DirData::impl.
| int fsi_readDir | ( | FSI_DirData * | d, |
| FSI_EntryData * | out ) |
Read directory from reading the FSI_DirData information.
| d | Directory data |
| out | Entry data to set the information |
|
inlinestatic |
Definition at line 135 of file FSI_dirUtils_posix.h.
References FSI_Visited_POSIX::dev, and FSI_Visited_POSIX::ino.
Referenced by __fsi_walk().

|
inlinestatic |
Definition at line 120 of file FSI_dirUtils_posix.h.
References FSI_Visited_POSIX::dev, and FSI_Visited_POSIX::ino.
Referenced by __fsi_walk().
