25 RCSIDH(util_file_h,
"$Id: 29d3b16c0693a372be2a70eed20a5bbf4be4910e $")
31 #include <freeradius-devel/util/talloc.h>
58 int fr_dirfd(
int *dirfd,
char const **filename,
char const *pathname) CC_HINT(
nonnull);
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.
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.