aboutsummaryrefslogtreecommitdiff
path: root/src/fs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing includes to fix compile errorsMarcoFalke2020-06-161-1/+4
| | | | | | | | | | | | | | fs.cpp:35:17: error: no member named 'strerror' in namespace 'std' return std::strerror(errno); ~~~~~^ fs.cpp:49:9: error: use of undeclared identifier 'close' close(fd); ^ 2 errors generated. ./interfaces/chain.h:265:55: error: ‘std::function’ has not been declared virtual void rpcRunLater(const std::string& name, std::function<void()> fn, int64_t seconds) = 0; ^~~
* Fix WSL file locking by using flock instead of fcntlSamuel Dobson2020-04-261-8/+29
| | | | Co-authored-by: sipa <[email protected]>
* scripted-diff: Add missed copyright headersHennadii Stepanov2020-01-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- s() { contrib/devtools/copyright_header.py insert "$1"; } s build_msvc/bitcoin_config.h s build_msvc/msvc-autogen.py s build_msvc/testconsensus/testconsensus.cpp s contrib/devtools/circular-dependencies.py s contrib/devtools/gen-manpages.sh s contrib/filter-lcov.py s contrib/gitian-build.py s contrib/install_db4.sh s src/crypto/sha256_avx2.cpp s src/crypto/sha256_sse41.cpp s src/fs.cpp s src/qt/test/addressbooktests.cpp s src/qt/test/addressbooktests.h s src/qt/test/util.cpp s src/qt/test/util.h s src/qt/test/wallettests.cpp s src/qt/test/wallettests.h s src/test/blockchain_tests.cpp s test/functional/combine_logs.py s test/lint/lint-locale-dependence.sh sed -i '1G' test/lint/lint-shebang.sh s test/lint/lint-shebang.sh -END VERIFY SCRIPT-
* Fix occurences of c_str() used with size() to data()Wladimir J. van der Laan2019-10-281-2/+2
| | | | | | | | Using `data()` better communicates the intent here. Also, depending on how `c_str()` is implemented, this fixes undefined behavior: The part of the string after the first NULL character might have undefined contents.
* Avoid redefine warningPeter Bushnell2019-04-101-0/+2
|
* wallet: Use fsbridge::ifstream to fix Windows path issueChun Kuan Lee2019-02-231-0/+2
|
* utils: Fix broken Windows filelockChun Kuan Lee2018-10-191-1/+2
|
* utils: Add fsbridge fstream function wrapperChun Kuan Lee2018-09-261-0/+102
|
* Merge #14192: utils: Convert fs::filesystem_error messages from local ↵Wladimir J. van der Laan2018-09-131-0/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | multibyte to utf-8 on Windows e2213689328f8ba42af1d32d12c7b78a71f1ddc7 utils: Convert fs error messages from multibyte to utf-8 (Chun Kuan Lee) Pull request description: Before: ![default](https://user-images.githubusercontent.com/11154118/45318798-8d83f480-b570-11e8-8cbb-c729a54f6b9e.png) After: ![2](https://user-images.githubusercontent.com/11154118/45318806-91177b80-b570-11e8-9474-a62342c92dbd.png) Tree-SHA512: 0a598bd159286f6784d117b8a24888b2650d5402d687ab0e8d0849e0c3d53797e266647d8177bb6614307c9598019cd7477311bb9895b1bb52a6bd77b460fda1
| * utils: Convert fs error messages from multibyte to utf-8Chun Kuan Lee2018-09-111-0/+16
| |
* | utils: Use _wfopen and _wreopen on WindowsChun Kuan Lee2018-08-311-0/+5
|/ | | | The fopen function does not support unicode filename on Windows, so use Windows specific function do deal with it
* Remove unused fsbridge::freopenpracticalswift2018-08-291-5/+0
|
* add unicode compatible file_lock for WindowsChun Kuan Lee2018-08-281-0/+85
| | | | | boost::interprocess::file_lock cannot open the files that contain characters which cannot be parsed by the user's code page on Windows. This commit add a new class to handle those specific file for Windows.
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* Remove unused Boost includespracticalswift2017-06-091-2/+0
|
* Add fs.cpp/hWladimir J. van der Laan2017-04-031-0/+17