#include "postgres.h"
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include "common/file_utils.h"
#include "common/relpath.h"
#include "port/pg_iovec.h"
Go to the source code of this file.
Definition at line 614 of file file_utils.c.
References Assert(), and source.
Referenced by mdreadv(), mdwritev(), and pg_pwritev_with_retry().
Definition at line 547 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(), PG_LOG_PRIMARY, PGFILETYPE_DIR, PGFILETYPE_ERROR, PGFILETYPE_LNK, PGFILETYPE_REG, PGFILETYPE_UNKNOWN, S_ISDIR, S_ISLNK, S_ISREG, stat::st_mode, and stat.
Referenced by CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), CheckTablespaceDirectory(), copydir(), do_pg_backup_start(), GetConfFilesInDir(), pg_tzenumerate_next(), process_directory_recursively(), RemovePgTempFilesInDir(), RemoveXlogFile(), rmtree(), scan_for_existing_tablespaces(), StartupReplicationSlots(), swap_catalog_files(), and walkdir().
Definition at line 709 of file file_utils.c.
References Assert(), fd(), PG_IOV_MAX, pg_pwritev_with_retry(), and unconstify.
Referenced by dir_open_for_write(), FileZero(), and XLogFileInitInternal().
Definition at line 659 of file file_utils.c.
References compute_remaining_iovec(), fd(), Min, PG_IOV_MAX, and pg_pwritev().
Referenced by pg_pwrite_zeros().