summaryrefslogtreecommitdiff
path: root/lib/common
Commit message (Collapse)AuthorAge
...
* Throw CommonException AccessDenied if we didn't get access to the file,Chris Wilson2007-01-15
| | | | | for better error description (refs #3)
* Add a new logging level, NOTICE, between INFO and WARNING (justification:Chris Wilson2007-01-15
| | | | | | | | | | we need two levels of output for LogAllFileAccess, neither of which are warnings, one is very verbose, but must not be compiled out like TRACE). Make Loggers default to logging everything. Make the global log level filter work. (refs #3)
* Don't do things with essential side effects inside ASSERT() macros Chris Wilson2007-01-14
| | | | | (refs #3, refs #9)
* - Make sure timer is stopped before removing signal handler, otherwiseChris Wilson2007-01-14
| | | | | SIGALRM will kill us.
* Ignore symlink permissions on Darwin, where they can't be set properlyChris Wilson2007-01-13
| | | | | after symlink creation (refs #3)
* Cosmetic spacing fixes (refs #3)Chris Wilson2007-01-12
|
* Visual Studio 2005 compile fixes, thanks to Gary.Chris Wilson2006-12-29
| | | | | Enable (and require) PCRE when building with Visual Studio 2005.
* Belay that order, XO (partially revert patch [1229])Chris Wilson2006-12-29
|
* Compile fix for platforms without intercept capability (refs #3)Chris Wilson2006-12-29
|
* Don't redefine the built-in operators new and delete unnecessarily (refs #3)Chris Wilson2006-12-29
|
* Add missing include of <string> header (refs #3)Chris Wilson2006-12-29
|
* * Rename Loggers class to Logging, which looks nicer.Chris Wilson2006-12-16
| | | | | | | | | | * Fix type of "line" argument to loggers to int rather than std::string to match __LINE__ * Define necessary static objects * Remove global condition on logging for now (refs #3)
* Initial implementation of the logging framework.Chris Wilson2006-12-16
|
* Disable standard library memory leak debugging, as it causes hangs on FC2Chris Wilson2006-12-15
|
* Fix more deadlocks by minimising the amount of stuff that the signalChris Wilson2006-12-13
| | | | | handler does. (refs #3, refs #9)
* Compile fix: include MemLeakFinder.h even on release builds (refs #3)Chris Wilson2006-12-12
|
* Fixed a race condition caused by rescheduling in signal handler (refs Chris Wilson2006-12-03
| | | | | #3, refs #9)
* Added debug tracing code for timers.Chris Wilson2006-11-28
|
* * Fix timer expiry calculation when timers expire in the pastChris Wilson2006-11-26
| | | | | * Fix handling of timers which never expire (zero deadline) (refs #9)
* Separate ReadPidFile() out from LaunchServer() in test code (refs #9)Chris Wilson2006-11-26
|
* Use gettimeofday() to increase accuracy of GetCurrentBoxTime() on Chris Wilson2006-11-23
| | | | | | | platforms which support it. Fixes busy waits for 1 second in backup client when time for next backup is not on a 1 second boundary (which it never is). (refs #3)
* Fixed control reaching end of non-void functions (refs #3)Chris Wilson2006-11-13
|
* Initialise memleak finder at the start of every program that uses Chris Wilson2006-11-13
| | | | | MAINHELPER (all except unit tests). (refs #3)
* * Track memory leaks in allocations via the standard libraries, and Chris Wilson2006-11-13
| | | | | | | | | | | | | avoid malloc/delete mismatches, by overriding standard new operator. * Added another global enable flag to memleak finder, which is used to mark the end of static allocations and the start of dynamic code, since the memory leak detection is done before cleanup of static objects. * Added a public guard class, to allow safe scoped disabling of memory leak detection. * Added InternalAllocGuard to protect against recursive loops when allocating memory inside the memory leak checker. (refs #3)
* Use a static pointer rather than a static object, to allow it to be Chris Wilson2006-11-13
| | | | | freed in Timers::Cleanup, removing a reported memory leak (refs #9)
* Free backtrace strings even in debug mode by suppressing warnings from Chris Wilson2006-11-13
| | | | | DebugMemLeakFinder, to avoid a memory leak (refs #3)
* Declare MEMLEAKFINDER_INIT and MEMLEAKFINDER_NO_LEAKS macros which Chris Wilson2006-11-13
| | | | | | reference function and class in DebugMemLeakFinder only in debug mode (refs #3)
* Fix compile warnings (refs #3)Chris Wilson2006-11-06
|
* Added generic timer support classChris Wilson2006-11-06
|
* Wait longer for server to die in KillServer (takes about 5 seconds on Chris Wilson2006-10-18
| | | | | my box). (refs #3)
* Add a new CommonException type, AccessDenied (very useful for debuggingChris Wilson2006-10-16
| | | | | | access errors, and needed by Boxi to report a sensible error to the user). (refs #3)
* Set the filename to "HANDLE" under Win32 when initialising from anChris Wilson2006-10-16
| | | | | | | | existing handle. Handle ERROR_BROKEN_PIPE as EOF when using FileStream to read from a pipe in LocalProcessStream. (refs #3)
* Match case-insensitively on Win32. (refs #3)Chris Wilson2006-10-16
|
* Fix memory corruption when the number of not-leaks exceeds the table size.Chris Wilson2006-10-16
| | | | | (refs #3)
* Use BoxConfig-MSVC.h and BoxVersion.h when compiling with MSVC. (refs #3)Chris Wilson2006-10-16
|
* Rename config.h.win32 to the new name, which will be auto-included byChris Wilson2006-10-16
| | | | | another change (refs #3)
* Compile fix. (refs #3)Chris Wilson2006-10-15
|
* * Add option to bbackupquery list command to show times in UTC or local timeChris Wilson2006-10-14
| | | | | (refs #3)
* * Added support for Win32 temporary filesChris Wilson2006-10-13
| | | | | | | * Added InvisibleTempFileStream class and unit tests for it * Use InvisibleTempFileStream instead of FileStream for temporary files (refs #3)
* * Use INVALID_HANDLE_VALUE instead of NULL to represent invalid file Chris Wilson2006-10-13
| | | | | handles under Win32 (refs #3)
* (refs #3)Chris Wilson2006-09-03
| | | | | Use INVALID_HANDLE_VALUE instead of NULL for invalid handles on Win32
* (refs #3)Chris Wilson2006-09-02
| | | | | | Added a RunCommand() function which converts UNIX paths to native before calling ::system() on Win32.
* (refs #3)Chris Wilson2006-09-02
| | | | | Convert UNIX paths to native on Win32 (avoids #ifdefs in tests)
* Disable all calls to set*id() on Win32 (doesn't work) (refs #3)Chris Wilson2006-08-31
|
* Revert to trunkChris Wilson2006-08-31
|
* Revert to trunkChris Wilson2006-08-31
|
* Add O_BINARY to default flags, since most files opened this way shouldChris Wilson2006-08-31
| | | | | be opened in binary mode on Win32 (refs #3)
* Revert to trunkChris Wilson2006-08-31
|
* Make FDGETLINE_BUFFER_SIZE big enough for one unicode character on Win32,Chris Wilson2006-08-31
| | | | | | otherwise reading from console can fail due to insufficient buffer size. (refs #3)
* Revert to trunkChris Wilson2006-08-31
|