#include <jau/debug.hpp>
#include <jau/enum_util.hpp>
#include <jau/file_util.hpp>
#include <jau/base_codec.hpp>
#include <jau/os/os_support.hpp>
#include <jau/secmem.hpp>
#include <cstdint>
#include <cstdlib>
#include <cinttypes>
#include <limits>
#include <cstring>
#include <cstdio>
#include <random>
#include <unistd.h>
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/mount.h>
Go to the source code of this file.
|
static void | _append_bitstr (std::string &out, fmode_t mask, fmode_t bit, const std::string &bitstr) |
|
static bool | _dir_item_basename_compare (const dir_item &a, const dir_item &b) |
|
static bool | _visit (const file_stats &item_stats, const traverse_options topts, const path_visitor &visitor, std::vector< int > &dirfds) noexcept |
|
static const char | c_backslash ('\\') |
|
static const char | c_slash ('/') |
|
static bool | copy_dir_preserve (const file_stats &src_stats, const int dst_dirfd, const std::string &dst_basename, const copy_options copts) noexcept |
|
static bool | copy_file (const int src_dirfd, const file_stats &src_stats, const int dst_dirfd, const std::string &dst_basename, const copy_options copts) noexcept |
|
static bool | copy_push_mkdir (const file_stats &dst_stats, copy_context_t &ctx) noexcept |
|
static const std::string | s_dot (".") |
|
static const std::string | s_dot_slash ("./") |
|
static const std::string | s_dotdot ("..") |
|
static const std::string | s_slash ("/") |
|
static const std::string | s_slash_dot ("/.") |
|
static const std::string | s_slash_dot_slash ("/./") |
|
static const std::string | s_slash_dotdot ("/..") |
|
static const std::string | s_slash_dotdot_slash ("/../") |
|
static bool | set_effective_uid (::uid_t user_id) |
|
◆ O_BINARY
◆ O_NONBLOCK
◆ __posix_fstatat64
#define __posix_fstatat64 ::fstatat64 |
◆ __posix_openat64
#define __posix_openat64 ::openat64 |
◆ struct_stat64
◆ c_slash()
static const char c_slash |
( |
'/' | | ) |
|
|
static |
◆ c_backslash()
static const char c_backslash |
( |
'\\' | | ) |
|
|
static |
◆ s_slash()
static const std::string s_slash |
( |
"/" | | ) |
|
|
static |
◆ s_slash_dot_slash()
static const std::string s_slash_dot_slash |
( |
"/./" | | ) |
|
|
static |
◆ s_slash_dot()
static const std::string s_slash_dot |
( |
"/." | | ) |
|
|
static |
◆ s_dot_slash()
static const std::string s_dot_slash |
( |
"./" | | ) |
|
|
static |
◆ s_dot()
static const std::string s_dot |
( |
"." | | ) |
|
|
static |
◆ s_slash_dotdot_slash()
static const std::string s_slash_dotdot_slash |
( |
"/../" | | ) |
|
|
static |
◆ s_slash_dotdot()
static const std::string s_slash_dotdot |
( |
"/.." | | ) |
|
|
static |
◆ s_dotdot()
static const std::string s_dotdot |
( |
".." | | ) |
|
|
static |
◆ _append_bitstr()
static void _append_bitstr |
( |
std::string & | out, |
|
|
fmode_t | mask, |
|
|
fmode_t | bit, |
|
|
const std::string & | bitstr ) |
|
static |
◆ _dir_item_basename_compare()
static bool _dir_item_basename_compare |
( |
const dir_item & | a, |
|
|
const dir_item & | b ) |
|
static |
◆ _visit()
◆ copy_file()
static bool copy_file |
( |
const int | src_dirfd, |
|
|
const file_stats & | src_stats, |
|
|
const int | dst_dirfd, |
|
|
const std::string & | dst_basename, |
|
|
const copy_options | copts ) |
|
staticnoexcept |
◆ copy_push_mkdir()
◆ copy_dir_preserve()
static bool copy_dir_preserve |
( |
const file_stats & | src_stats, |
|
|
const int | dst_dirfd, |
|
|
const std::string & | dst_basename, |
|
|
const copy_options | copts ) |
|
staticnoexcept |
◆ set_effective_uid()
static bool set_effective_uid |
( |
::uid_t | user_id | ) |
|
|
static |
◆ _open_dir_flags
const int _open_dir_flags = O_RDONLY|O_BINARY|O_NOCTTY|O_DIRECTORY |
|
inlineconstexpr |