10 #ifndef PCMK__CRM_COMMON_IO_INTERNAL__H 11 #define PCMK__CRM_COMMON_IO_INTERNAL__H 20 int sequence,
bool bzip);
24 unsigned int sequence,
int max);
26 uid_t uid, gid_t gid);
50 pcmk__open_devnull(
int flags)
54 (void) open(
"/dev/null",
flags);
57 #endif // PCMK__CRM_COMMON_IO_INTERNAL__H int pcmk__set_nonblocking(int fd)
void pcmk__write_series_sequence(const char *directory, const char *series, unsigned int sequence, int max)
int pcmk__chown_series_sequence(const char *directory, const char *series, uid_t uid, gid_t gid)
int pcmk__read_series_sequence(const char *directory, const char *series, unsigned int *seq)
char * pcmk__series_filename(const char *directory, const char *series, int sequence, bool bzip)
int pcmk__write_sync(int fd, const char *contents)
int pcmk__build_path(const char *path_c, mode_t mode)
void pcmk__sync_directory(const char *name)
char * pcmk__full_path(const char *filename, const char *dirname)
Duplicate a file path, inserting a prefix if not absolute.
const char * pcmk__get_tmpdir(void)
int pcmk__file_contents(const char *filename, char **contents)
bool pcmk__daemon_can_write(const char *dir, const char *file)
void pcmk__close_fds_in_child(bool)
int pcmk__real_path(const char *path, char **resolved_path)