greenplumn file_ops 源码
greenplumn file_ops 代码
文件路径:/src/bin/pg_rewind/file_ops.h
/*-------------------------------------------------------------------------
*
* file_ops.h
* Helper functions for operating on files
*
* Copyright (c) 2013-2019, PostgreSQL Global Development Group
*
*-------------------------------------------------------------------------
*/
#ifndef FILE_OPS_H
#define FILE_OPS_H
#include "filemap.h"
extern void open_target_file(const char *path, bool trunc);
extern void write_target_range(char *buf, off_t begin, size_t size);
extern void close_target_file(void);
extern void remove_target_file(const char *path, bool missing_ok);
extern void truncate_target_file(const char *path, off_t newsize);
extern void create_target(file_entry_t *t);
extern void remove_target(file_entry_t *t);
extern char *slurpFile(const char *datadir, const char *path, size_t *filesize);
#endif /* FILE_OPS_H */
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦