PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include "common/file_utils.h"
Go to the source code of this file.
Functions | |
PGFileType | get_dirent_type (const char *path, const struct dirent *de, bool look_through_symlinks, int elevel) |
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().