25 RCSIDH(util_file_h,
"$Id: a95d4ecbddee28a251d2f0c415fa7c7557fe8951 $")
31 #include <freeradius-devel/util/talloc.h>
65 int fr_dirfd(
int *dirfd,
char const **filename,
char const *pathname) CC_HINT(
nonnull);
fr_dcursor_eval_t void const * uctx
ssize_t fr_mkdir(int *fd_out, char const *path, ssize_t len, mode_t mode, fr_mkdir_func_t func, void *uctx)
Create directories that are missing in the specified path.
int fr_unlink(char const *filename)
Remove a regular file from the filesystem.
int fr_mkdir_chown(int fd, char const *path, void *uctx)
Callback for the common case of chown() of the directory.
ssize_t fr_touch(int *fd_out, char const *filename, mode_t mode, bool mkdir, mode_t dir_mode)
Create an empty file.
char * fr_realpath(TALLOC_CTX *ctx, char const *path, ssize_t len)
Convenience wrapper around realpath.
int fr_dirfd(int *dirfd, char const **filename, char const *pathname)
From a pathname, return fd and filename needed for *at() functions.
char const * fr_cwd_strip(char const *filename)
Intended to be used in logging functions to make output more readable.
int(* fr_mkdir_func_t)(int fd, char const *path, void *uctx)
Callback for allowing additional operations on newly created directories.