PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <dirent.h>
#include "common/file_utils.h"
#include "miscadmin.h"
#include "storage/fd.h"
#include "utils/conffiles.h"
Go to the source code of this file.
Functions | |
char * | AbsoluteConfigLocation (const char *location, const char *calling_file) |
char ** | GetConfFilesInDir (const char *includedir, const char *calling_file, int elevel, int *num_filenames, char **err_msg) |
char* AbsoluteConfigLocation | ( | const char * | location, |
const char * | calling_file | ||
) |
Definition at line 36 of file conffiles.c.
References Assert, canonicalize_path(), DataDir, get_parent_directory(), is_absolute_path, join_path_components(), MAXPGPATH, pstrdup(), and strlcpy().
Referenced by GetConfFilesInDir(), tokenize_expand_file(), and tokenize_include_file().
char** GetConfFilesInDir | ( | const char * | includedir, |
const char * | calling_file, | ||
int | elevel, | ||
int * | num_filenames, | ||
char ** | err_msg | ||
) |
Definition at line 70 of file conffiles.c.
References AbsoluteConfigLocation(), AllocateDir(), canonicalize_path(), cleanup(), dirent::d_name, directory, ereport, errcode(), errcode_for_file_access(), errmsg(), filename, FreeDir(), get_dirent_type(), join_path_components(), MAXPGPATH, palloc(), pfree(), pg_qsort_strcmp(), PGFILETYPE_DIR, PGFILETYPE_ERROR, psprintf(), pstrdup(), qsort, ReadDir(), and repalloc().
Referenced by tokenize_auth_file().