PostgreSQL Source Code
git master
|
#include <dirent.h>
Go to the source code of this file.
Typedefs | |
typedef enum PGFileType | PGFileType |
Enumerations | |
enum | PGFileType { PGFILETYPE_ERROR, PGFILETYPE_UNKNOWN, PGFILETYPE_REG, PGFILETYPE_DIR, PGFILETYPE_LNK } |
Functions | |
PGFileType | get_dirent_type (const char *path, const struct dirent *de, bool look_through_symlinks, int elevel) |
typedef enum PGFileType PGFileType |
enum PGFileType |
Enumerator | |
---|---|
PGFILETYPE_ERROR | |
PGFILETYPE_UNKNOWN | |
PGFILETYPE_REG | |
PGFILETYPE_DIR | |
PGFILETYPE_LNK |
Definition at line 18 of file file_utils.h.
PGFileType get_dirent_type | ( | const char * | path, |
const struct dirent * | de, | ||
bool | look_through_symlinks, | ||
int | elevel | ||
) |
Definition at line 410 of file file_utils.c.
References dirent::d_type, DT_DIR, DT_LNK, DT_REG, ereport, errcode_for_file_access(), errmsg(), lstat, pg_log_generic(), PGFILETYPE_DIR, PGFILETYPE_ERROR, PGFILETYPE_LNK, PGFILETYPE_REG, PGFILETYPE_UNKNOWN, S_ISDIR, S_ISREG, stat::st_mode, and stat.
Referenced by walkdir().