summaryrefslogtreecommitdiff
path: root/lib/common
Commit message (Collapse)AuthorAge
* Undo removal of syslog() header, still needed in this file.Chris Wilson2007-08-02
|
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in C++ style. Add a function to get default config file paths at runtime, dependent on the location of the executable being run. Pass the config file name directly to Daemon::Main, instead of faking argv. No default raid file path at compile time on Windows, depends on executable location when run. Determine RaidFile path at runtime if not supplied in config file on Windows. Don't define default locations for config files at compile time on Windows, provide macros to determine them at runtime instead. Make FileHandleGuard take a std::string instead of a char array, C++ style. Determine config file location at runtime instead of hard-coding on Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12) Determine config file path at runtime. Call Daemon::Main with config file name instead of building fake argv. (refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692])
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-07-26
| | | | | in C++ style. (refs #3, merges [1684])
* Work around the fact that we may have regex support without havingChris Wilson2007-07-26
| | | | | | | regex.h (e.g. from pcreposix.h/libpcreposix) and disabuse HAVE_REGEX_H, define and use HAVE_REGEX_SUPPORT instead, thanks Gary! (refs #3, merges [1677] [1678] [1679])
* Update copyright to 2007. (refs #3, merges [1670])Chris Wilson2007-07-26
|
* Define DEBUG_NEW in the same file whether or not BOX_MEMORY_LEAK_TESTINGChris Wilson2007-07-26
| | | | | is defined, thanks Gary. (refs #3, merges [1668])
* We now have pcreposix.h instead of regex.h, at least if you follow theChris Wilson2007-07-26
| | | | | MSVC build instructions. (refs #3, merges [1665])
* Don't #include sys/time.h unless our platform has it, thanks Gary.Chris Wilson2007-07-26
| | | | | (refs #3, merges [1664])
* Typo compile fix.Chris Wilson2007-07-26
|
* Warn if an exception is thrown, with line number, as this shouldn't beChris Wilson2007-07-26
| | | | | happening on production systems anyway.
* Add missing #include <errno.h>, thanks Tobias.Chris Wilson2007-06-03
|
* Add missing #include <errno.h>, thanks to Matt Brown (refs #3)Chris Wilson2007-05-02
|
* Compile fix, thanks to Matt Brown (refs #3)Chris Wilson2007-05-02
|
* Remove newline from end of banner text, since logging framework will addChris Wilson2007-04-28
| | | | | it for us where necessary. (refs #3)
* Add a stream which logs progress of reading data from another (child)Chris Wilson2007-04-28
| | | | | | stream, and estimated time of completion, useful for upload progress monitoring. (refs #3)
* Keep a copy of the program name, in case the original goes away, whichChris Wilson2007-04-28
| | | | | causes syslog() to write nonsense for the program name. (refs #3)
* Fix inability to handle streams over 2GB properly. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which provides a source of zero bytes of arbitrary size,Chris Wilson2007-04-28
| | | | | useful for testing support for files over 2GB. (refs #3)
* Merge [1566] from chris/general:Chris Wilson2007-04-22
| | | | | | | | | Use Sleep() instead of nanosleep again on win32 (lost in merge [1562]). Fix reference to pCommandLine which no longer exists after [1562]. Fix signed/unsigned comparison warning. (refs #3)
* Compile fix for Win32, where no localtime_r is available and localtimeChris Wilson2007-04-22
| | | | | is thread safe. (refs #3)
* Display file and line where memory leak test failed. (refs #3)Chris Wilson2007-04-22
|
* Add options to log timestamps, and a custom tag, with each message toChris Wilson2007-04-22
| | | | | | | | | the console, e.g.: 14:53:17 [bbackupd] Finished scan of local files (refs #3)
* Use logging framework to log stack traces from exceptions. (refs #3)Chris Wilson2007-04-22
|
* Use logging framework to log exceptions. (refs #3)Chris Wilson2007-04-22
|
* Declare global std::string variables that hold extra arguments forChris Wilson2007-04-22
| | | | | | | | | | | | | executables run in tests, to be implemented in a follow-up patch. ConvertPaths, LaunchServer and RunCommand all take std::string references instead of char*. Move safe_sleep from test/common to lib/server/Test.h so that all tests can use it. (refs #3)
* Fix unix path to bbstored (refs #3)Chris Wilson2007-03-25
|
* Compile fix to [1448] (refs #3)Chris Wilson2007-03-24
|
* Fix header include order. (refs #3, merges [1446])Chris Wilson2007-03-24
|
* Use logging framework to remove timer noise for those who don't want it.Chris Wilson2007-03-24
| | | | | (refs #3, merges [1445])
* Trivial code simplification. (refs #3, merges [1444])Chris Wilson2007-03-24
|
* Fix compilation error reported by Torsten Boob (refs #3)Chris Wilson2007-03-24
|
* Move lib/common/ServerControl.h to lib/server where it belongs, sinceChris Wilson2007-03-22
| | | | | it uses server functions (WinNamedPipeStream on win32) (refs #3)
* Flush stdout when writing to it (refs #3)Chris Wilson2007-03-22
|
* Remove #ifdefs, no longer required (refs #3, merges [1418])Chris Wilson2007-03-10
|
* Win32 compile fixes (no gettimeofday(), no signal()) (refs #3)Chris Wilson2007-03-10
|
* Throw an assertion error if a NULL timer is added (refs #3, merges [1367])Chris Wilson2007-03-10
|
* Report file and line of memory leak test failures (refs #3, merges [714])Chris Wilson2007-03-10
|
* Moved SendCommands(), HUPServer(), KillServer() to lib/server/ServerCommands.h.Chris Wilson2007-03-10
| | | | | | | | | | | | | | | | | All of these use lib/server/WinNamedPipeStream on Win32, so they don't belong in lib/common. Made LaunchServer() work on Win32. Added constants for paths to executables, for use in tests, removing the need for #ifdefs and clumsy DIRECTORY_SEPARATORs in paths. Added terminate_bbackupd() and wait_for_operation() functions. Update unit tests to #include "ServerControl.h" if they need it. (refs #3)
* Record the file and line of first test failure (refs #3, merges [593])Chris Wilson2007-03-08
|
* Win32 compile fixChris Wilson2007-03-05
| | | | | (refs #3, merges [1306])
* Add logging in remaining places where Common OSFileOpenError can be thrown.Chris Wilson2007-03-05
| | | | | (refs #3, merges part of [1099], and [1370])
* Add logging in remaining places where Common OSFileOpenError can be thrown.Chris Wilson2007-03-05
| | | | | | | Fix compile warning (signed vs unsigned comparison) (refs #3, merges part of [1099], and [1368])
* Update to match new recommended installation of pcreposix.h as regex.h.Chris Wilson2007-03-04
| | | | | (refs #3, merges [1281], reverting [1233])
* Add logging in remaining places where Common OSFileOpenError can be thrown.Chris Wilson2007-03-04
| | | | | (refs #3, merges part of [1099] and [1359])
* Watch out for our leak tracking data being destroyed and don't crash whenChris Wilson2007-03-04
| | | | | subsequent objects are destroyed. (refs #3, merges [1341])
* Declare that we have O_BINARY but not <sys/types.h> for MSVCChris Wilson2007-03-04
| | | | | (refs #3, merges [760] and [763])
* Improve error message when server fails to start (refs #3)Chris Wilson2007-01-21
|
* Moved MakeFullPath into its own library file so that we can share itChris Wilson2007-01-17
| | | | | (BackupQueries needs it too) (refs #3)
* Added a BufferedStream class that can be wrapped around an IOStream to Chris Wilson2007-01-17
| | | | | | improve read performance when many small reads will be performed, e.g. while reading directories and during housekeeping. (refs #3)