summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Reorder for clarityChris Wilson2007-03-10
| | | | | | | | | Expose GetErrorMessage() Improve comments (refs #3, merges [1365])
* Remove #define BOX_VERSION since we now get it from BoxVersion.h viaChris Wilson2007-03-10
| | | | | | BoxPlatform.h when building with MSVC, and from the Makefiles when building with MinGW. (refs #3, merges part of [634])
* Use #defines to replace POSIX functions with emulated ones on MinGW,Chris Wilson2007-03-10
| | | | | | | | | | | | | like we do on MSVC. This allows us to #undef them when we really need to use the original platform function (if available). Disable emulated fstat() in raidfile (and use the platform one) by undefining fstat, since it doesn't use the other emulated file handling functions, or need Unicode support, and it can't take a filehandle returned by open() (only openfile()). (refs #3, merges [1045])
* Compile fix for [1397] (refs #3)Chris Wilson2007-03-10
|
* Added d_type member to struct dirent, initialise with S_IFDIR or S_IFREGChris Wilson2007-03-10
| | | | | | | MinGW compile fix (refs #3, merges [775])
* First attempt to achieve a more logical order in this chaos:Chris Wilson2007-03-10
| | | | | | reordered all typedefs to be clearer and more readable (refs #3, merges [766])
* Fix two memory leaks and one buffer overflow in codepage conversion code.Chris Wilson2007-03-10
| | | | | (refs #3, merges [1340])
* Typo fix (refs #3)Chris Wilson2007-03-10
|
* We don't have access to DIRECTORY_SEPARATOR_ASCHAR in lib/win32Chris Wilson2007-03-10
| | | | | (refs #3, merges [1362])
* Fix handling of O_EXCL to behave just like Unix, not abused to lock files.Chris Wilson2007-03-10
| | | | | | | Add a new constant which specifies that files are to be locked open. (refs #3, merges [1288])
* Improve GetErrorMessage() by including the error number/code in the messageChris Wilson2007-03-10
| | | | | | (helps debugging on foreign langauge versions of Windows) (refs #3, merges [1364])
* Print localised error messages rather than error codes for all errorsChris Wilson2007-03-10
| | | | | (refs #3, merges [1046])
* Expanded character set conversion API to allow arbitrary conversionsChris Wilson2007-03-10
| | | | | | (needed to handle command lines with international encodings) (refs #3, merges [1038])
* We can't use lib/common here, so we don't have ASSERT() (refs #3)Chris Wilson2007-03-10
|
* Our timer code only supports ITIMER_REAL (refs #3)Chris Wilson2007-03-10
|
* Always include process.h, as we don't know whether it was detected or notChris Wilson2007-03-10
| | | | | (we don't have access to lib/common/BoxConfig.h in lib/win32) (refs #3)
* Catch exceptions thrown by closing the WinNamedPipeStream during shutdownChris Wilson2007-03-10
| | | | | and suppress them. (refs #3, merges [1284])
* Code formatting (cosmetic) (refs #3, merges [1345])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)
* Check for return code 3 (unreadable files) instead of return code 2Chris Wilson2007-03-10
| | | | | (refs #3, depends on [1378])
* Record the file and line of first test failure (refs #3, merges [593])Chris Wilson2007-03-08
|
* Check for d_ino member in struct dirent (refs #3, merges [1351])Chris Wilson2007-03-08
|
* Run housekeeping in idle time on Win32 (refs #3)Chris Wilson2007-03-08
|
* Report number of files and directories which could not be compared Chris Wilson2007-03-08
| | | | | | separately from compare failures, and report the appropriate return code (refs #3, merges [651])
* Report an appropriate error if the target path of the restore operationChris Wilson2007-03-08
| | | | | is not found (refs #3, merges [514])
* Catch exceptions during restore and report them, rather than abortingChris Wilson2007-03-08
| | | | | bbackupquery (refs #3)
* Count a difference when a local directory does not exist, but it doesChris Wilson2007-03-08
| | | | | exist on the server (refs #3)
* 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])
* Fix make error when optional file doesn't exist (refs #3, merges [1098])Chris Wilson2007-03-04
|
* #include Test.h to fix compile (needed for TEST_THAT)Chris Wilson2007-03-04
| | | | | | | | | Improved error message Improved comments (refs #3, merges parts of [712], [1289] and [1337])
* Update build instructions for Cygwin/Win32 (refs #3)Chris Wilson2007-03-04
|
* Simplify check for PERLChris Wilson2007-03-04
| | | | | | | | | Define substitution TARGET_PERL and preprocessor PERL_EXECUTABLE to a native Perl (not Cygwin) on Win32, since Cygwin perl will not run inside bbackupd for unit tests (e.g. SyncAllowScript). (refs #3)
* Typo fixChris Wilson2007-03-04
|
* Fix compile warningChris Wilson2007-02-09
|
* Log failure to delete files and directories (refs #3)Chris Wilson2007-02-09
|
* Catch exceptions while writing files, attributes, resume info and checkingChris Wilson2007-02-09
| | | | | file existence (refs #3)
* Don't throw an exception if we fail to delete a file in the way of restore,Chris Wilson2007-02-09
| | | | | just log the error and return an error code (refs #3)
* Spelling fix (refs #3)Chris Wilson2007-02-09
|
* Make BackupClientRestoreDir return a result code compatible withChris Wilson2007-02-09
| | | | | BackupClientRestore (refs #3)
* Check whether the restore target parent directory exists before tryingChris Wilson2007-02-09
| | | | | to create the target directory or save restore info in the parent (refs #3)
* Catch errors during restore (refs #3)Chris Wilson2007-02-09
|