summaryrefslogtreecommitdiff
path: root/lib/common
Commit message (Collapse)AuthorAge
...
* Compile fix for strerror() on RedHat 9, thanks to Alex Howansky.Chris Wilson2008-06-30
|
* Fix strerror include. Needed for gcc 4.3Martin Ebourne2008-05-29
|
* Fix possible memory corruption while dumping stack trace due to Chris Wilson2008-05-28
| | | | | mismatching new []/delete.
* Check that Box.h has been included early enough.Chris Wilson2008-05-28
|
* Include "Box.h" in the right place.Chris Wilson2008-05-28
|
* Demangle C++ names in backtrace on GCC using C++ ABI routines.Chris Wilson2008-05-28
|
* Add static Logging::GetNamedLevel() method to return a log level Chris Wilson2008-05-28
| | | | | specified by name as a string.
* Separate checks for file existing and file not empty.Chris Wilson2008-05-28
|
* Reformat for readability.Chris Wilson2008-05-28
|
* Add backtrace on exception in release builds.Chris Wilson2008-05-28
|
* Fix typo.Chris Wilson2008-04-30
|
* Additional #includes, thanks to the T2 ProjectChris Wilson2008-04-18
| | | | | (http://www.t2-project.org/packages/boxbackup.html)
* Move test helper functions out-of-line to aid debugging by allowingChris Wilson2008-04-09
| | | | | breakpoints to be set on them.
* Comment wrapping fix from [1958]Chris Wilson2008-04-05
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Make usage output (from bbstoreaccounts info and bbackupquery usage)Chris Wilson2008-04-03
| | | | | | consistent and easier to read, with blocks, B/kB/MB/GB, % and an ASCII bar graph.
* Fix a bug where trying to log a variable called "line" would log the addressChris Wilson2008-03-30
| | | | | of the std::ostringstream instead (duh, I hate macros).
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Add support for logging just to syslog (not console) at a given Chris Wilson2008-03-01
| | | | | priority.
* Don't try to define our own dirfd() macro on platforms where interceptionChris Wilson2008-02-25
| | | | | is impossible (such as win32) because it's not needed and fails on win32.
* Disable -P option and showing PID in Logging on Windows.Chris Wilson2008-02-22
|
* Add support for microsecond timestamps and PID logging on console logChris Wilson2008-01-31
| | | | | for daemons.
* Add support for nanosecond timestamps in struct stat on Linux.Chris Wilson2008-01-31
|
* Update version on MSVC config.Chris Wilson2008-01-29
|
* Change the default sysconfdir to /etc.Chris Wilson2008-01-28
| | | | | | | | | | | | | Generate expanded versions of sysconfdir and localstatedir, as well as bindir. Expand variables in BoxPortsAndFiles.h.in. Changed default configuration dir in BoxPortsAndFiles.h.in to use @sysconfdir_expanded@/box, defaulting to /etc/box as before. But now you can override it with something like --sysconfdir=/usr/etc (to place config files in /usr/etc/box).
* Detect whether struct DIR has d_fd or dd_fd member and define theChris Wilson2008-01-22
| | | | | dirfd() macro accordingly.
* memleakfinder_atexit() should be extern "C" to silence warnings.Chris Wilson2008-01-22
|
* Silence const char warnings, part deux.Chris Wilson2008-01-22
|
* Use const char pointers to silence sun CC warnings.Chris Wilson2008-01-22
|
* Fix DIRFD properlyChris Wilson2008-01-21
|
* Fix the test for HAVE_DECL_DIRFD, which is 0 on solaris, not undefined.Chris Wilson2008-01-20
| | | | | (I love the consistency of autotools).
* Update copyright to 2008.Chris Wilson2008-01-12
|
* Pass test options to test daemons.Chris Wilson2007-12-16
|
* Log sleep time and resleeps in safe_sleep (only used in tests).Chris Wilson2007-12-15
|
* Don't log our own timestamp now that Logging can do it for us withChris Wilson2007-12-15
| | | | | microsecond precision.
* Allow logging with microsecond timestamps.Chris Wilson2007-12-15
|
* Fix definition of dirfd(x) macro (autoconf doesn't like defining macrosChris Wilson2007-12-15
| | | | | with parameters).
* Enable TRACE logging in release builds, but make it really cheapChris Wilson2007-12-04
| | | | | when disabled.
* Slightly improve output from waiting methods.Chris Wilson2007-12-02
|
* Don't crash when trying to cleanup timers a second time (or if neverChris Wilson2007-12-02
| | | | | initialised) in release mode.
* Use lstat() instead of stat() to check whether a file exists. Thanks toChris Wilson2007-11-05
| | | | | | | | Hans-Joachim Baader for reporting this problem. (http://lists.warhead.org.uk/pipermail/boxbackup/2007-November/003958.html) Add a test that symlinks are not followed during restore.
* Allow ObjectExists() to take a std::string instead of just char *.Chris Wilson2007-11-04
|
* Make sync_and_wait() do what it's supposed to, not just force a sync.Chris Wilson2007-11-04
|
* Log an error if we fail to open the lockfile.Chris Wilson2007-11-04
|
* Move sync helper functions from test/bbackupd to Test.h to share withChris Wilson2007-11-04
| | | | | other tests, particularly test/backupstorefix.
* sigemptyset() is a macro on OSX 10.3, so don't prepend ::Chris Wilson2007-11-03
|
* Bite the bullet and use sigaction() instead, since [1803] shows thatChris Wilson2007-10-22
| | | | | | signal() works badly on SuckOS, and James reports that BSD doesn't have sigset().