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);
386 extern bool tools_look_for(
const char *argument, S_I argc,
char *
const argv[]);
394 extern void tools_noexcept_make_date(
const std::string & chem,
const infinint & last_acc,
const infinint & last_mod);
401 extern void tools_make_date(
const std::string & chemin, infinint access, infinint modif);
448 extern std::string
tools_printf(
const char *format, ...);
460 extern std::string
tools_vprintf(
const char *format, va_list ap);
478 extern void tools_unlink_file_mask_regex(user_interaction & dialog,
const std::string & c_chemin,
const std::string & file_mask,
bool info_details);
493 const std::string & x_file_mask,
495 bool allow_overwriting,
496 bool warn_overwriting,
586 const std::map<char, std::string> & corres);
601 const std::string & path,
602 const std::string & basename,
603 const std::string & num,
604 const std::string & padded_num,
605 const std::string & ext,
606 const std::string & context);
614 const std::string & cmd_line);
628 const std::string & hook,
629 const std::string & path,
630 const std::string & basename,
631 const std::string & num,
632 const std::string & padded_num,
633 const std::string & ext,
634 const std::string & context);
643 const std::string & relative_part);
676 extern void tools_set_ownership(S_I fd,
const std::string & slice_user,
const std::string & slice_group);
684 extern void tools_memxor(
void *dest,
const void *src, U_I n);
692 extern tlv_list
tools_string2tlv_list(user_interaction & dialog,
const U_16 & type,
const std::vector<std::string> & data);
727 throw Erange(
"tools_number_decoupe_in_big_endian",
"base must be strictly positive");
731 ret.push_back(number % base);
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...