40 #include "../my_config.h"
62 #define TOOLS_SI_SUFFIX 1000
63 #define TOOLS_BIN_SUFFIX 1024
173 extern void tools_open_pipes(user_interaction & dialog,
const std::string &input,
const std::string & output,
174 tuyau *&in, tuyau *&out);
251 extern void tools_system(user_interaction & dialog,
const std::vector<std::string> & argvector);
260 extern void tools_system_with_pipe(user_interaction & dialog,
const std::string & dar_cmd,
const std::vector<std::string> & argvpipe);
280 const std::vector<std::string> & x);
287 std::vector<std::string> operator + (std::vector<std::string> a, std::vector<std::string> b);
294 extern bool tools_is_member(
const std::string & val,
const std::vector<std::string> & liste);
344 template <
class T> std::vector<T>
operator +=(std::vector<T> & a,
const std::vector<T> & b)
367 const path & loc, std::string & base,
const std::string & extension);
387 extern bool tools_look_for(
const char *argument, S_I argc,
char *
const argv[]);
395 extern void tools_noexcept_make_date(
const std::string & chem,
const infinint & last_acc,
const infinint & last_mod);
402 extern void tools_make_date(
const std::string & chemin, infinint access, infinint modif);
417 extern void tools_to_upper(
const std::string & r, std::string & uppered);
420 extern void tools_to_wupper(std::wstring & r);
457 extern std::string
tools_printf(
const char *format, ...);
469 extern std::string
tools_vprintf(
const char *format, va_list ap);
487 extern void tools_unlink_file_mask_regex(user_interaction & dialog,
const std::string & c_chemin,
const std::string & file_mask,
bool info_details);
502 const std::string & x_file_mask,
504 bool allow_overwriting,
505 bool warn_overwriting,
595 const std::map<char, std::string> & corres);
610 const std::string & path,
611 const std::string & basename,
612 const std::string & num,
613 const std::string & padded_num,
614 const std::string & ext,
615 const std::string & context);
623 const std::string & cmd_line);
637 const std::string & hook,
638 const std::string & path,
639 const std::string & basename,
640 const std::string & num,
641 const std::string & padded_num,
642 const std::string & ext,
643 const std::string & context);
652 const std::string & relative_part);
692 extern void tools_set_ownership(S_I fd,
const std::string & slice_user,
const std::string & slice_group);
700 extern void tools_memxor(
void *dest,
const void *src, U_I n);
708 extern tlv_list
tools_string2tlv_list(user_interaction & dialog,
const U_16 & type,
const std::vector<std::string> & data);
743 throw Erange(
"tools_number_decoupe_in_big_endian",
"base must be strictly positive");
747 ret.push_back(number % base);
789 extern std::wstring tools_string_to_wstring(
const std::string & val);
793 extern std::string tools_wstring_to_string(
const std::wstring & val);
bool furtive_read()
returns whether libdar can support furtive read mode when run by privileged user
are defined here basic integer types that tend to be portable
bool largefile()
returns whether largefile (>2GiB) support has been activated at compilation time
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
bool ea()
returns whether EA support has been activated at compilation time
bool libz()
returns whether libdar is dependent on libz and if so has gzip compression/decompression available ...
here is the definition of the path classthe path class handle path and provide several operation on t...
defines the implementation of pipe under the generic_file interface.mainly used between zapette and s...
switch module to limitint (32 ou 64 bits integers) or infinint
bool thread_safe()
returns whether the current libdar is thread safe
exception used to signal range error
U_I bits()
returns the internal integer type used
bool nodump()
returns whether nodump flag support has been activated at compilation time
List of Generic Type Length Value data structures.
bool libbz2()
returns whether libdar is dependent on libbz2 and if so has bzip2 compression/decompression available...
libdar namespace encapsulate all libdar symbols