| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
Add platform detection that's compatible with the old buildsystem and its m4
autoconfigury.
Make Travis build and test using CMake as a separate target.
Remove unused function BoxGetTemporaryDirectoryName() to fixes compile using
CMake on Unix.
|
|
|
|
|
|
|
| |
Rewrite some macros in forms that can be parsed by our parser written in CMake
language (fake m4 with regexps).
Fix incorrect conditional includes and incorrect #if/#ifdef assumptions.
|
|
|
|
|
|
|
|
| |
We need to use CreateProcessW() instead of system() to pass these filenames
to the rd command.
Fixes every test that runs after test_unicode_filenames_can_be_backed_up
in test/bbackupd.
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
| |
These defines are too wide-reaching in their effects on unrelated code.
Add a replacement for strncasecmp.
|
|
|
|
|
|
|
| |
MSVC doesn't like them, and they're not necessary now that we have stdint.h.
Remove some compatibility typedefs from BoxPlatform.h and emu.h which are not
needed any longer either.
|
|
|
|
|
|
| |
These headers define things that aren't defined by MinGW32 or MSVC, so make
the definitions in emu.h conditional (feature detection).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes compile errors on Windows. Thanks to Kai Liebenau!
|
|
|
|
|
|
| |
wx/wx.h (to set UNICODE properly) without also #including winnt.h before
UNICODE is set properly.
|
|
|
|
|
|
| |
fcntl.h, so include it if we can find it, and only define O_BINARY if
it turns out to be missing.
|
|
|
|
|
|
|
|
| |
to be defined.
Check for fcntl.h and include it if we have it, not just on MSVC, now
that MinGW also defines O_BINARY in newer versions.
|
|
|
|
|
|
|
|
|
|
| |
for directory enumeration instead of _wfindfirst and _wfindnext.
Ignore reparse points when enumerating directories to avoid infinite loops.
Convert VSS paths back to real paths when notifying users about backup
progress.
|
|
|
|
|
| |
a conflict.
|
|
|
|
|
|
|
| |
Start a snapshot set and add backup locations as volumes.
Modularise IVssAsync waiting code.
|
| |
|
| |
|
|
|
|
|
|
| |
from winsock2.h, which conflicts with our definition of struct pollfd,
on Windows Vista and above.
|
|
|
|
|
| |
openfile().
|
| |
|
|
|
|
|
| |
64 bits.
|
|
|
|
|
| |
*, for convenience and C++ style.
|
|
|
|
|
|
|
|
| |
for inode numbers on Windows, resulting in all inode numbers being
coerced into 2^16 space and many duplicates on systems with large
numbers of files being backed up, possibly resulting in store
corruption due to unwanted file rename operations.
|
|
|
|
|
| |
synthetic) in winerrno, to enable better error handling outside.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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])
|
|
|
|
|
| |
(refs #3, merges [1676])
|
|
|
|
|
| |
[1438])
|
|
|
|
|
| |
why they are being retained. (refs #3, related to [634])
|
| |
|
|
|
|
|
|
|
|
|
| |
Expose GetErrorMessage()
Improve comments
(refs #3, merges [1365])
|
|
|
|
|
|
| |
BoxPlatform.h when building with MSVC, and from the Makefiles when building
with MinGW. (refs #3, merges part of [634])
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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])
|
| |
|
|
|
|
|
|
|
| |
MinGW compile fix
(refs #3, merges [775])
|
|
|
|
|
|
| |
reordered all typedefs to be clearer and more readable
(refs #3, merges [766])
|
|
|
|
|
|
|
| |
Add a new constant which specifies that files are to be locked open.
(refs #3, merges [1288])
|
|
|
|
|
|
| |
(needed to handle command lines with international encodings)
(refs #3, merges [1038])
|
| |
|
|
|
|
|
|
| |
Remove inline ConvertFileTimeToTime_t, add prototypes for new versions
in emu.cpp
|
|
|
|
|
| |
Added prototypes for new emulated functions emu_utimes, readv and writev
|
|
|
|
|
| |
Remove more vestiges of old getopt
|
|
|
|
|
| |
Emulate readdir's d_type field
|
|
|
|
|
|
|
|
|
| |
Fixed looking up message source in syslog()
Flush stdout after writing to it
Allow syslog() to log to console even when openlog() has not been called
|