├── external ├── miniupnpc │ ├── VERSION │ ├── testreplyparse │ │ ├── GetExternalIPAddress.namevalue │ │ ├── DeletePortMapping.namevalue │ │ ├── GetSpecificPortMappingEntryReq.namevalue │ │ ├── SetDefaultConnectionService.namevalue │ │ ├── GetSpecificPortMappingEntryResp.namevalue │ │ ├── readme.txt │ │ ├── GetExternalIPAddress.xml │ │ ├── DeletePortMapping.xml │ │ ├── GetSpecificPortMappingEntryReq.xml │ │ ├── SetDefaultConnectionService.xml │ │ └── GetSpecificPortMappingEntryResp.xml │ ├── msvc │ │ ├── miniupnpc.vcproj │ │ └── upnpc-static.vcproj │ ├── MANIFEST.in │ ├── external-ip.sh │ ├── java │ │ ├── testjava.sh │ │ └── testjava.bat │ ├── miniupnpcstrings.h.cmake │ ├── mingw32make.bat │ ├── testupnpreplyparse.sh │ ├── minissdpc.h │ ├── declspec.h │ ├── minisoap.h │ ├── miniupnpcstrings.h.in │ ├── connecthostport.h │ ├── miniupnpctypes.h │ ├── upnperrors.h │ ├── setup.py │ ├── setupmingw32.py │ ├── receivedata.h │ ├── miniwget.h │ └── miniupnpc.def ├── rocksdb │ ├── third-party │ │ ├── gtest-1.7.0 │ │ │ └── fused-src │ │ │ │ └── gtest │ │ │ │ └── CMakeLists.txt │ │ └── fbson │ │ │ └── COMMIT.md │ ├── WINDOWS_PORT.md │ ├── build_tools │ │ ├── dockerbuild.sh │ │ └── version.sh │ ├── doc │ │ ├── rockslogo.jpg │ │ └── rockslogo.png │ ├── arcanist_util │ │ ├── __phutil_library_init__.php │ │ ├── unit_engine │ │ │ └── FacebookFbcodeUnitTestEngine.php │ │ └── lint_engine │ │ │ └── FacebookHowtoevenLintEngine.php │ ├── tools │ │ ├── Dockerfile │ │ ├── sample-dump.dmp │ │ ├── rdb │ │ │ ├── rdb │ │ │ ├── rdb.cc │ │ │ └── binding.gyp │ │ ├── rocksdb_dump_test.sh │ │ ├── ldb.cc │ │ ├── sst_dump.cc │ │ ├── verify_random_db.sh │ │ ├── generate_random_db.sh │ │ └── db_bench.cc │ ├── examples │ │ └── README.md │ ├── .clang-format │ ├── AUTHORS │ ├── java │ │ ├── jdb_bench.sh │ │ ├── crossbuild │ │ │ ├── build-linux.sh │ │ │ └── Vagrantfile │ │ ├── src │ │ │ ├── test │ │ │ │ └── java │ │ │ │ │ └── org │ │ │ │ │ └── rocksdb │ │ │ │ │ ├── RocksMemoryResource.java │ │ │ │ │ ├── CompressionOptionsTest.java │ │ │ │ │ ├── StatsCallbackMock.java │ │ │ │ │ ├── util │ │ │ │ │ └── SizeUnitTest.java │ │ │ │ │ └── ComparatorOptionsTest.java │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── rocksdb │ │ │ │ ├── MergeOperator.java │ │ │ │ ├── util │ │ │ │ └── SizeUnit.java │ │ │ │ ├── StringAppendOperator.java │ │ │ │ ├── BuiltinComparator.java │ │ │ │ ├── RemoveEmptyValueCompactionFilter.java │ │ │ │ ├── RocksDBException.java │ │ │ │ ├── RateLimiterConfig.java │ │ │ │ ├── RocksMemEnv.java │ │ │ │ ├── ChecksumType.java │ │ │ │ ├── IndexType.java │ │ │ │ ├── TableFormatConfig.java │ │ │ │ ├── Snapshot.java │ │ │ │ └── Comparator.java │ │ └── rocksjni │ │ │ ├── snapshot.cc │ │ │ ├── columnfamilyhandle.cc │ │ │ ├── compaction_filter.cc │ │ │ ├── remove_emptyvalue_compactionfilterjni.cc │ │ │ └── ratelimiterjni.cc │ ├── hdfs │ │ ├── setup.sh │ │ └── README │ ├── port │ │ ├── README │ │ ├── stack_trace.h │ │ ├── xpress.h │ │ ├── likely.h │ │ ├── win │ │ │ └── xpress_win.h │ │ ├── port.h │ │ └── util_logger.h │ ├── include │ │ └── rocksdb │ │ │ ├── db_bench_tool.h │ │ │ ├── utilities │ │ │ ├── convenience.h │ │ │ ├── info_log_finder.h │ │ │ ├── option_change_migration.h │ │ │ └── flashcache.h │ │ │ ├── sst_dump_tool.h │ │ │ ├── types.h │ │ │ └── version.h │ ├── db │ │ ├── db_info_dumper.h │ │ ├── snapshot_impl.cc │ │ ├── write_callback.h │ │ └── convenience.cc │ ├── utilities │ │ ├── redis │ │ │ ├── redis_list_exception.h │ │ │ └── README │ │ ├── flashcache │ │ │ └── flashcache.h │ │ ├── compaction_filters │ │ │ ├── remove_emptyvalue_compactionfilter.h │ │ │ └── remove_emptyvalue_compactionfilter.cc │ │ ├── merge_operators │ │ │ └── string_append │ │ │ │ └── stringappend.h │ │ └── transactions │ │ │ └── transaction_db_mutex_impl.h │ ├── appveyor.yml │ ├── util │ │ ├── perf_level_imp.h │ │ ├── build_version.h │ │ ├── filter_policy.cc │ │ ├── status_message.cc │ │ ├── string_util.cc │ │ ├── env_chroot.h │ │ ├── perf_level.cc │ │ ├── kv_map.h │ │ ├── file_util.h │ │ ├── string_util.h │ │ ├── stderr_logger.h │ │ ├── hash.h │ │ ├── iostats_context_test.cc │ │ ├── thread_status_util_debug.cc │ │ ├── random.cc │ │ └── allocator.h │ ├── .arcconfig │ ├── LANGUAGE-BINDINGS.md │ ├── CONTRIBUTING.md │ ├── DUMP_FORMAT.md │ ├── table │ │ ├── bloom_block.cc │ │ ├── table_properties_internal.h │ │ └── scoped_arena_iterator.h │ ├── Vagrantfile │ ├── memtable │ │ └── stl_wrappers.h │ ├── ROCKSDB_LITE.md │ └── DEFAULT_OPTIONS_HISTORY.md ├── gtest │ ├── xcode │ │ ├── Config │ │ │ ├── TestTarget.xcconfig │ │ │ ├── FrameworkTarget.xcconfig │ │ │ ├── StaticLibraryTarget.xcconfig │ │ │ ├── DebugProject.xcconfig │ │ │ └── ReleaseProject.xcconfig │ │ ├── Samples │ │ │ └── FrameworkSample │ │ │ │ └── Info.plist │ │ └── Resources │ │ │ └── Info.plist │ └── m4 │ │ └── ltversion.m4 └── google │ └── sparsehash │ └── os_config.h ├── src ├── version.h.in ├── crypto │ ├── keccak.h │ ├── jh.h │ ├── random.h │ ├── hash-extra-blake.c │ ├── hash-extra-groestl.c │ ├── hash-extra-skein.c │ └── hash-extra-jh.c ├── version.cmake ├── Common │ ├── IInputStream.cpp │ ├── IOutputStream.cpp │ ├── Math.cpp │ ├── BlockingQueue.cpp │ ├── FileMappedVector.cpp │ ├── pod-class.h │ ├── static_assert.h │ ├── SignalHandler.h │ ├── IInputStream.h │ ├── IOutputStream.h │ ├── StdInputStream.cpp │ ├── StringOutputStream.cpp │ ├── CommandLine.cpp │ └── StringOutputStream.h ├── P2p │ ├── IP2pNodeInternal.cpp │ ├── P2pInterfaces.cpp │ └── P2pNetworks.h ├── Serialization │ ├── MemoryStream.cpp │ └── IStream.h ├── CryptoNoteCore │ ├── ITimeProvider.cpp │ ├── SwappedMap.cpp │ ├── SwappedVector.cpp │ ├── CoreErrors.cpp │ ├── AddBlockErrors.cpp │ ├── BlockValidationErrors.cpp │ ├── ITxPoolObserver.h │ ├── DataBaseErrors.cpp │ ├── TransactionValidationErrors.cpp │ ├── ICoreObserver.h │ ├── IBlockchainStorageObserver.h │ ├── CryptoNoteBasic.cpp │ ├── Difficulty.h │ ├── VerificationContext.h │ └── IUpgradeManager.h ├── Platform │ ├── mingw │ │ └── alloca.h │ ├── msc │ │ ├── alloca.h │ │ ├── stdbool.h │ │ └── sys │ │ │ └── param.h │ ├── Linux │ │ └── System │ │ │ ├── ErrorMessage.h │ │ │ ├── ErrorMessage.cpp │ │ │ └── Future.h │ ├── OSX │ │ └── System │ │ │ ├── ErrorMessage.h │ │ │ ├── asm.s │ │ │ └── ErrorMessage.cpp │ └── Windows │ │ └── System │ │ ├── ErrorMessage.h │ │ └── Future.h ├── System │ ├── InterruptedException.cpp │ ├── EventLock.h │ ├── InterruptedException.h │ ├── EventLock.cpp │ └── RemoteEventLock.h ├── NodeRpcProxy │ └── NodeErrors.cpp ├── Wallet │ ├── WalletErrors.cpp │ ├── LegacyKeysImporter.h │ └── WalletRpcServerErrorCodes.h ├── PaymentGate │ └── WalletServiceErrorCategory.cpp ├── HTTP │ └── HttpParserErrorCodes.cpp ├── Miner │ └── MinerEvent.h ├── InProcessNode │ └── InProcessNodeErrors.cpp ├── BlockchainExplorer │ └── BlockchainExplorerErrors.cpp └── Logging │ ├── FileLogger.cpp │ └── FileLogger.h ├── CTestCustom.cmake ├── tests ├── Data │ ├── account-002bee2f8e16f5de4db0d3b8ce9227c8c0b7f9688348b028e022cb43f210968b40a69cdc8531fd4a2e7c9e144eec48bb477733d70ce5f9b85338a07cb10b849ad8fb │ ├── account-007af2d7c5ffd8f69005debae820207820805e28c7d7a16714591143f56fb51e2b91ad0c1a535567e6292b321773df5e5aaace00fe767c4f09de452838575357ca9f │ ├── account-009b82d66dfaaba55a581913fa09d6c5bebe179cd73731781265c96e9e630dcd27fd5d20e7f1d0fa42619de9ca8fe4c0659f6959b2bebb15079cdaed07a442a78486 │ └── account-00aff84db50d6a54dd56051379f6c336fdd330d1cb11e7523bbf71f30b1ae760fa47ace8679b6486f79429980fd2331715a631f5729db284eb1fc6f108aeb7a7f4fe ├── Hash │ └── tests-slow.txt ├── crypto │ ├── crypto-ops.c │ ├── crypto-ops-data.c │ ├── hash.c │ └── random.c ├── CoreTests │ └── TransactionTests.h ├── System │ ├── main.cpp │ └── ErrorMessageTests.cpp ├── UnitTests │ └── main.cpp └── IntegrationTestLib │ └── Process.h ├── utils └── munin_plugins │ ├── height │ ├── difficulty │ ├── tx_count │ ├── tx_pool_size │ ├── alt_blocks_count │ ├── grey_peerlist_size │ ├── white_peerlist_size │ ├── incoming_connections_count │ └── outgoing_connections_count ├── Makefile └── include ├── IObservable.h ├── IStreamSerializable.h └── IWriteBatch.h /external/miniupnpc/VERSION: -------------------------------------------------------------------------------- 1 | 1.9 2 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue: -------------------------------------------------------------------------------- 1 | NewExternalIPAddress=1.2.3.4 2 | 3 | -------------------------------------------------------------------------------- /external/rocksdb/third-party/gtest-1.7.0/fused-src/gtest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(gtest gtest-all.cc) 2 | -------------------------------------------------------------------------------- /external/rocksdb/WINDOWS_PORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/external/rocksdb/WINDOWS_PORT.md -------------------------------------------------------------------------------- /external/rocksdb/build_tools/dockerbuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker run -v $PWD:/rocks -w /rocks buildpack-deps make 3 | -------------------------------------------------------------------------------- /external/rocksdb/doc/rockslogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/external/rocksdb/doc/rockslogo.jpg -------------------------------------------------------------------------------- /external/rocksdb/doc/rockslogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/external/rocksdb/doc/rockslogo.png -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/DeletePortMapping.namevalue: -------------------------------------------------------------------------------- 1 | NewRemoteHost= 2 | NewExternalPort=123 3 | NewProtocol=TCP 4 | -------------------------------------------------------------------------------- /external/miniupnpc/msvc/miniupnpc.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/external/miniupnpc/msvc/miniupnpc.vcproj -------------------------------------------------------------------------------- /external/rocksdb/arcanist_util/__phutil_library_init__.php: -------------------------------------------------------------------------------- 1 | ');" 4 | -------------------------------------------------------------------------------- /external/miniupnpc/external-ip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $Id: external-ip.sh,v 1.1 2010/08/05 12:57:41 nanard Exp $ 3 | # (c) 2010 Reuben Hawkins 4 | upnpc -s | grep ExternalIPAddress | sed 's/[^0-9\.]//g' 5 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.namevalue: -------------------------------------------------------------------------------- 1 | NewInternalPort=12345 2 | NewInternalClient=192.168.10.110 3 | NewEnabled=1 4 | NewPortMappingDescription=libminiupnpc 5 | NewLeaseDuration=0 6 | -------------------------------------------------------------------------------- /external/miniupnpc/java/testjava.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | JAVA=java 4 | JAVAC=javac 5 | CP=$(for i in *.jar; do echo -n $i:; done). 6 | 7 | $JAVAC -cp $CP JavaBridgeTest.java || exit 1 8 | $JAVA -cp $CP JavaBridgeTest 12345 UDP || exit 1 9 | -------------------------------------------------------------------------------- /src/version.h.in: -------------------------------------------------------------------------------- 1 | #define BUILD_COMMIT_ID "@VERSION@" 2 | #define PROJECT_VERSION "2.1.2" 3 | #define PROJECT_VERSION_BUILD_NO "1251" 4 | #define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO " (" BUILD_COMMIT_ID ")" 5 | -------------------------------------------------------------------------------- /CTestCustom.cmake: -------------------------------------------------------------------------------- 1 | set(CTEST_CUSTOM_TESTS_IGNORE 2 | CoreTests 3 | IntegrationTestLibrary 4 | TestGenerator 5 | CryptoTests 6 | IntegrationTests 7 | NodeRpcProxyTests 8 | PerformanceTests 9 | TransfersTests 10 | ) 11 | 12 | -------------------------------------------------------------------------------- /external/miniupnpc/miniupnpcstrings.h.cmake: -------------------------------------------------------------------------------- 1 | #ifndef MINIUPNPCSTRINGS_H_INCLUDED 2 | #define MINIUPNPCSTRINGS_H_INCLUDED 3 | 4 | #define OS_STRING "${CMAKE_SYSTEM_NAME}" 5 | #define MINIUPNPC_VERSION_STRING "${MINIUPNPC_VERSION}" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /external/miniupnpc/mingw32make.bat: -------------------------------------------------------------------------------- 1 | @mingw32-make -f Makefile.mingw %1 2 | @if errorlevel 1 goto end 3 | @if not exist upnpc-static.exe goto end 4 | @strip upnpc-static.exe 5 | @upx --best upnpc-static.exe 6 | @strip upnpc-shared.exe 7 | @upx --best upnpc-shared.exe 8 | :end 9 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains files used for validation of upnpreplyparse.c code. 2 | 3 | Each .xml file to parse should give the results which are in the .namevalue 4 | file. 5 | 6 | A .namevalue file contain name=value lines. 7 | 8 | -------------------------------------------------------------------------------- /external/miniupnpc/java/testjava.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set JAVA=java 3 | set JAVAC=javac 4 | REM notice the semicolon for Windows. Write once, run ... oh nevermind 5 | set CP=miniupnpc_win32.jar;. 6 | 7 | %JAVAC% -cp "%CP%" JavaBridgeTest.java || exit 1 8 | %JAVA% -cp "%CP%" JavaBridgeTest 12345 UDP || exit 1 9 | -------------------------------------------------------------------------------- /external/gtest/xcode/Config/TestTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // TestTarget.xcconfig 3 | // 4 | // These are Test target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | 7 | PRODUCT_NAME = $(TARGET_NAME) 8 | HEADER_SEARCH_PATHS = ../include 9 | -------------------------------------------------------------------------------- /external/miniupnpc/testupnpreplyparse.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for f in testreplyparse/*.xml ; do 4 | bf="`dirname $f`/`basename $f .xml`" 5 | if ./testupnpreplyparse $f $bf.namevalue ; then 6 | echo "$f : passed" 7 | else 8 | echo "$f : FAILED" 9 | exit 1 10 | fi 11 | done 12 | 13 | exit 0 14 | 15 | -------------------------------------------------------------------------------- /external/rocksdb/AUTHORS: -------------------------------------------------------------------------------- 1 | Facebook Inc. 2 | Facebook Engineering Team 3 | 4 | Google Inc. 5 | # Initial version authors: 6 | Jeffrey Dean 7 | Sanjay Ghemawat 8 | 9 | # Partial list of contributors: 10 | Kevin Regan 11 | Johan Bilien 12 | -------------------------------------------------------------------------------- /external/rocksdb/tools/rdb/rdb.cc: -------------------------------------------------------------------------------- 1 | #ifndef BUILDING_NODE_EXTENSION 2 | #define BUILDING_NODE_EXTENSION 3 | #endif 4 | 5 | #include 6 | #include 7 | #include "db_wrapper.h" 8 | 9 | using namespace v8; 10 | 11 | void InitAll(Handle exports) { 12 | DBWrapper::Init(exports); 13 | } 14 | 15 | NODE_MODULE(rdb, InitAll) 16 | -------------------------------------------------------------------------------- /tests/Data/account-002bee2f8e16f5de4db0d3b8ce9227c8c0b7f9688348b028e022cb43f210968b40a69cdc8531fd4a2e7c9e144eec48bb477733d70ce5f9b85338a07cb10b849ad8fb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/tests/Data/account-002bee2f8e16f5de4db0d3b8ce9227c8c0b7f9688348b028e022cb43f210968b40a69cdc8531fd4a2e7c9e144eec48bb477733d70ce5f9b85338a07cb10b849ad8fb -------------------------------------------------------------------------------- /tests/Data/account-007af2d7c5ffd8f69005debae820207820805e28c7d7a16714591143f56fb51e2b91ad0c1a535567e6292b321773df5e5aaace00fe767c4f09de452838575357ca9f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/tests/Data/account-007af2d7c5ffd8f69005debae820207820805e28c7d7a16714591143f56fb51e2b91ad0c1a535567e6292b321773df5e5aaace00fe767c4f09de452838575357ca9f -------------------------------------------------------------------------------- /tests/Data/account-009b82d66dfaaba55a581913fa09d6c5bebe179cd73731781265c96e9e630dcd27fd5d20e7f1d0fa42619de9ca8fe4c0659f6959b2bebb15079cdaed07a442a78486: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/tests/Data/account-009b82d66dfaaba55a581913fa09d6c5bebe179cd73731781265c96e9e630dcd27fd5d20e7f1d0fa42619de9ca8fe4c0659f6959b2bebb15079cdaed07a442a78486 -------------------------------------------------------------------------------- /tests/Data/account-00aff84db50d6a54dd56051379f6c336fdd330d1cb11e7523bbf71f30b1ae760fa47ace8679b6486f79429980fd2331715a631f5729db284eb1fc6f108aeb7a7f4fe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forknote/dashcoin/HEAD/tests/Data/account-00aff84db50d6a54dd56051379f6c336fdd330d1cb11e7523bbf71f30b1ae760fa47ace8679b6486f79429980fd2331715a631f5729db284eb1fc6f108aeb7a7f4fe -------------------------------------------------------------------------------- /external/rocksdb/third-party/fbson/COMMIT.md: -------------------------------------------------------------------------------- 1 | fbson commit: 2 | https://github.com/facebook/mysql-5.6/commit/55ef9ff25c934659a70b4094e9b406c48e9dd43d 3 | 4 | # TODO. 5 | * Had to convert zero sized array to [1] sized arrays due to the fact that MS Compiler complains about it not being standard. At some point need to contribute this change back to MySql where this code was taken from. 6 | -------------------------------------------------------------------------------- /external/rocksdb/tools/rocksdb_dump_test.sh: -------------------------------------------------------------------------------- 1 | TESTDIR=`mktemp -d /tmp/rocksdb-dump-test.XXXXX` 2 | DUMPFILE="tools/sample-dump.dmp" 3 | 4 | # Verify that the sample dump file is undumpable and then redumpable. 5 | ./rocksdb_undump --dump_location=$DUMPFILE --db_path=$TESTDIR/db 6 | ./rocksdb_dump --anonymous --db_path=$TESTDIR/db --dump_location=$TESTDIR/dump 7 | cmp $DUMPFILE $TESTDIR/dump 8 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/GetExternalIPAddress.xml: -------------------------------------------------------------------------------- 1 | 1.2.3.4 2 | 3 | -------------------------------------------------------------------------------- /external/rocksdb/java/jdb_bench.sh: -------------------------------------------------------------------------------- 1 | PLATFORM=64 2 | if [ `getconf LONG_BIT` != "64" ] 3 | then 4 | PLATFORM=32 5 | fi 6 | 7 | ROCKS_JAR=`find target -name rocksdbjni*.jar` 8 | 9 | echo "Running benchmark in $PLATFORM-Bit mode." 10 | java -server -d$PLATFORM -XX:NewSize=4m -XX:+AggressiveOpts -Djava.library.path=target -cp "${ROCKS_JAR}:benchmark/target/classes" org.rocksdb.benchmark.DbBenchmark $@ 11 | -------------------------------------------------------------------------------- /utils/munin_plugins/height: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title Height 7 | graph_vlabel height 8 | graph_category bytecoin 9 | height.label height 10 | height.type COUNTER 11 | EOM 12 | exit 0;; 13 | esac 14 | 15 | printf "height.value " 16 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep height | cut -d ' ' -f2 17 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/DeletePortMapping.xml: -------------------------------------------------------------------------------- 1 | 2 | 123 3 | TCP 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/Hash/tests-slow.txt: -------------------------------------------------------------------------------- 1 | 2f8e3df40bd11f9ac90c743ca8e32bb391da4fb98612aa3b6cdc639ee00b31f5 6465206f6d6e69627573206475626974616e64756d 2 | 722fa8ccd594d40e4a41f3822734304c8d5eff7e1b528408e2229da38ba553c4 6162756e64616e732063617574656c61206e6f6e206e6f636574 3 | bbec2cacf69866a8e740380fe7b818fc78f8571221742d729d9d02d7f8989b87 63617665617420656d70746f72 4 | b1257de4efc5ce28c6b40ceb1c6c8f812a64634eb3e81c5220bee9b2b76a6f05 6578206e6968696c6f206e6968696c20666974 5 | -------------------------------------------------------------------------------- /utils/munin_plugins/difficulty: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title difficulty 7 | graph_vlabel difficulty 8 | graph_category bytecoin 9 | difficulty.label difficulty 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "difficulty.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep difficulty | cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /external/rocksdb/hdfs/setup.sh: -------------------------------------------------------------------------------- 1 | export USE_HDFS=1 2 | export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64:/usr/lib/hadoop/lib/native 3 | 4 | export CLASSPATH= 5 | for f in `find /usr/lib/hadoop-hdfs | grep jar`; do export CLASSPATH=$CLASSPATH:$f; done 6 | for f in `find /usr/lib/hadoop | grep jar`; do export CLASSPATH=$CLASSPATH:$f; done 7 | for f in `find /usr/lib/hadoop/client | grep jar`; do export CLASSPATH=$CLASSPATH:$f; done 8 | -------------------------------------------------------------------------------- /utils/munin_plugins/tx_count: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title tx_count 7 | graph_vlabel tx_count 8 | graph_category bytecoin 9 | tx_count.label tx_count 10 | tx_count.type COUNTER 11 | EOM 12 | exit 0;; 13 | esac 14 | 15 | printf "tx_count.value " 16 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep tx_count| cut -d ' ' -f2 17 | -------------------------------------------------------------------------------- /utils/munin_plugins/tx_pool_size: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title tx_pool_size 7 | graph_vlabel tx_pool_size 8 | graph_category bytecoin 9 | tx_pool_size.label tx_pool_size 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "tx_pool_size.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep tx_pool_size| cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml: -------------------------------------------------------------------------------- 1 | 2 | 12345UDP 3 | 4 | -------------------------------------------------------------------------------- /external/rocksdb/port/README: -------------------------------------------------------------------------------- 1 | This directory contains interfaces and implementations that isolate the 2 | rest of the package from platform details. 3 | 4 | Code in the rest of the package includes "port.h" from this directory. 5 | "port.h" in turn includes a platform specific "port_.h" file 6 | that provides the platform specific implementation. 7 | 8 | See port_posix.h for an example of what must be provided in a platform 9 | specific header file. 10 | 11 | -------------------------------------------------------------------------------- /external/rocksdb/include/rocksdb/db_bench_tool.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | #pragma once 6 | 7 | namespace rocksdb { 8 | int db_bench_tool(int argc, char** argv); 9 | } // namespace rocksdb 10 | -------------------------------------------------------------------------------- /external/rocksdb/include/rocksdb/utilities/convenience.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | #pragma once 7 | 8 | // This file was moved to rocksdb/convenience.h" 9 | 10 | #include "rocksdb/convenience.h" 11 | -------------------------------------------------------------------------------- /utils/munin_plugins/alt_blocks_count: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title alt_blocks_count 7 | graph_vlabel alt_blocks_count 8 | graph_category bytecoin 9 | alt_blocks_count.label alt_blocks_count 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "alt_blocks_count.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep alt_blocks_count | cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /external/rocksdb/build_tools/version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ "$#" = "0" ]; then 3 | echo "Usage: $0 major|minor|patch" 4 | exit 1 5 | fi 6 | if [ "$1" = "major" ]; then 7 | cat include/rocksdb/version.h | grep MAJOR | head -n1 | awk '{print $3}' 8 | fi 9 | if [ "$1" = "minor" ]; then 10 | cat include/rocksdb/version.h | grep MINOR | head -n1 | awk '{print $3}' 11 | fi 12 | if [ "$1" = "patch" ]; then 13 | cat include/rocksdb/version.h | grep PATCH | head -n1 | awk '{print $3}' 14 | fi 15 | -------------------------------------------------------------------------------- /utils/munin_plugins/grey_peerlist_size: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title grey_peerlist_size 7 | graph_vlabel grey_peerlist_size 8 | graph_category bytecoin 9 | grey_peerlist_size.label grey_peerlist_size 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "grey_peerlist_size.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep grey_peerlist_size | cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /utils/munin_plugins/white_peerlist_size: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title white_peerlist_size 7 | graph_vlabel white_peerlist_size 8 | graph_category bytecoin 9 | white_peerlist_size.label white_peerlist_size 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "white_peerlist_size.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep white_peerlist_size | cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/SetDefaultConnectionService.xml: -------------------------------------------------------------------------------- 1 | uuid:c6c05a33-f704-48df-9910-e099b3471d81:WANConnectionDevice:1,INVALID_SERVICE_ID 2 | -------------------------------------------------------------------------------- /utils/munin_plugins/incoming_connections_count: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title incoming_connections_count 7 | graph_vlabel incoming_connections_count 8 | graph_category bytecoin 9 | incoming_connections_count.label incoming_connections_count 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "incoming_connections_count.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep incoming_connections_count | cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /utils/munin_plugins/outgoing_connections_count: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | case $1 in 4 | config) 5 | cat <<'EOM' 6 | graph_title outgoing_connections_count 7 | graph_vlabel outgoing_connections_count 8 | graph_category bytecoin 9 | outgoing_connections_count.label outgoing_connections_count 10 | EOM 11 | exit 0;; 12 | esac 13 | 14 | printf "outgoing_connections_count.value " 15 | /home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep outgoing_connections_count | cut -d ' ' -f2 16 | -------------------------------------------------------------------------------- /external/rocksdb/db/db_info_dumper.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | #pragma once 6 | 7 | #include 8 | 9 | #include "rocksdb/options.h" 10 | 11 | namespace rocksdb { 12 | void DumpDBFileSummary(const DBOptions& options, const std::string& dbname); 13 | } // namespace rocksdb 14 | -------------------------------------------------------------------------------- /external/rocksdb/utilities/redis/redis_list_exception.h: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple structure for exceptions in RedisLists. 3 | * 4 | * @author Deon Nicholas (dnicholas@fb.com) 5 | * Copyright 2013 Facebook 6 | */ 7 | 8 | #ifndef ROCKSDB_LITE 9 | #pragma once 10 | #include 11 | 12 | namespace rocksdb { 13 | 14 | class RedisListException: public std::exception { 15 | public: 16 | const char* what() const throw() override { 17 | return "Invalid operation or corrupt data in Redis List."; 18 | } 19 | }; 20 | 21 | } // namespace rocksdb 22 | #endif 23 | -------------------------------------------------------------------------------- /external/miniupnpc/minissdpc.h: -------------------------------------------------------------------------------- 1 | /* $Id: minissdpc.h,v 1.2 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2005-2007 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef MINISSDPC_H_INCLUDED 9 | #define MINISSDPC_H_INCLUDED 10 | 11 | struct UPNPDev * 12 | getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /external/rocksdb/java/crossbuild/build-linux.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # install all required packages for rocksdb 3 | sudo apt-get update 4 | sudo apt-get -y install git make gcc g++ libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev default-jdk 5 | 6 | # set java home so we can build rocksdb jars 7 | export JAVA_HOME=$(echo /usr/lib/jvm/java-7-openjdk*) 8 | cd /rocksdb 9 | make jclean clean 10 | make -j 4 rocksdbjavastatic 11 | cp /rocksdb/java/target/librocksdbjni-* /rocksdb-build 12 | cp /rocksdb/java/target/rocksdbjni-* /rocksdb-build 13 | sudo shutdown -h now 14 | 15 | -------------------------------------------------------------------------------- /external/miniupnpc/declspec.h: -------------------------------------------------------------------------------- 1 | #ifndef DECLSPEC_H_INCLUDED 2 | #define DECLSPEC_H_INCLUDED 3 | 4 | #if defined(_WIN32) && !defined(STATICLIB) 5 | /* for windows dll */ 6 | #ifdef MINIUPNP_EXPORTS 7 | #define LIBSPEC __declspec(dllexport) 8 | #else 9 | #define LIBSPEC __declspec(dllimport) 10 | #endif 11 | #else 12 | #if defined(__GNUC__) && __GNUC__ >= 4 13 | /* fix dynlib for OS X 10.9.2 and Apple LLVM version 5.0 */ 14 | #define LIBSPEC __attribute__ ((visibility ("default"))) 15 | #else 16 | #define LIBSPEC 17 | #endif 18 | #endif 19 | 20 | #endif 21 | 22 | -------------------------------------------------------------------------------- /external/miniupnpc/minisoap.h: -------------------------------------------------------------------------------- 1 | /* $Id: minisoap.h,v 1.5 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project : miniupnp 3 | * Author : Thomas Bernard 4 | * Copyright (c) 2005 Thomas Bernard 5 | * This software is subject to the conditions detailed in the 6 | * LICENCE file provided in this distribution. */ 7 | #ifndef MINISOAP_H_INCLUDED 8 | #define MINISOAP_H_INCLUDED 9 | 10 | /*int httpWrite(int, const char *, int, const char *);*/ 11 | int soapPostSubmit(int, const char *, const char *, unsigned short, 12 | const char *, const char *, const char *); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /external/rocksdb/include/rocksdb/sst_dump_tool.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | #ifndef ROCKSDB_LITE 6 | #pragma once 7 | 8 | namespace rocksdb { 9 | 10 | class SSTDumpTool { 11 | public: 12 | int Run(int argc, char** argv); 13 | }; 14 | 15 | } // namespace rocksdb 16 | 17 | #endif // ROCKSDB_LITE 18 | -------------------------------------------------------------------------------- /external/miniupnpc/miniupnpcstrings.h.in: -------------------------------------------------------------------------------- 1 | /* $Id: miniupnpcstrings.h.in,v 1.5 2012/10/16 16:48:26 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2005-2011 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef MINIUPNPCSTRINGS_H_INCLUDED 9 | #define MINIUPNPCSTRINGS_H_INCLUDED 10 | 11 | #define OS_STRING "OS/version" 12 | #define MINIUPNPC_VERSION_STRING "version" 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml: -------------------------------------------------------------------------------- 1 | 12345192.168.10.1101libminiupnpc0 2 | 3 | -------------------------------------------------------------------------------- /external/rocksdb/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | before_build: 3 | - md %APPVEYOR_BUILD_FOLDER%\build 4 | - cd %APPVEYOR_BUILD_FOLDER%\build 5 | - cmake -G "Visual Studio 12 Win64" -DOPTDBG=1 -DXPRESS=1 .. 6 | - cd .. 7 | build: 8 | project: build\rocksdb.sln 9 | parallel: true 10 | verbosity: minimal 11 | test: 12 | test_script: 13 | - ps: build_tools\run_ci_db_test.ps1 -EnableRerun -Run db_test2 -Concurrency 8 14 | - ps: build_tools\run_ci_db_test.ps1 -EnableRerun -Run db_test -Exclude DBTest.GroupCommitTest -Concurrency 10 15 | - ps: build_tools\run_ci_db_test.ps1 -Run env_test -Concurrency 1 16 | 17 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/test/java/org/rocksdb/RocksMemoryResource.java: -------------------------------------------------------------------------------- 1 | package org.rocksdb; 2 | 3 | import org.junit.rules.ExternalResource; 4 | 5 | /** 6 | * Resource to trigger garbage collection after each test 7 | * run. 8 | * 9 | * @deprecated Will be removed with the implementation of 10 | * {@link RocksObject#finalize()} 11 | */ 12 | @Deprecated 13 | public class RocksMemoryResource extends ExternalResource { 14 | 15 | static { 16 | RocksDB.loadLibrary(); 17 | } 18 | 19 | @Override 20 | protected void after() { 21 | System.gc(); 22 | System.runFinalization(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /external/rocksdb/util/perf_level_imp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | #pragma once 7 | #include "rocksdb/perf_level.h" 8 | #include "port/port.h" 9 | 10 | namespace rocksdb { 11 | 12 | #if defined(IOS_CROSS_COMPILE) 13 | extern PerfLevel perf_level; 14 | #else 15 | extern __thread PerfLevel perf_level; 16 | #endif 17 | 18 | } // namespace rocksdb 19 | -------------------------------------------------------------------------------- /external/rocksdb/.arcconfig: -------------------------------------------------------------------------------- 1 | { 2 | "project_id" : "rocksdb", 3 | "conduit_uri" : "https://reviews.facebook.net/", 4 | "copyright_holder" : "Facebook", 5 | "load" : [ 6 | "arcanist_util" 7 | ], 8 | "lint.engine" : "FacebookFbcodeLintEngine", 9 | "lint.engine.single.linter" : "FbcodeCppLinter", 10 | "unit.engine" : "FacebookFbcodeUnitTestEngine", 11 | "arcanist_configuration" : "FacebookArcanistConfiguration", 12 | "base" : "git:HEAD^, hg:.^", 13 | "git.default-relative-commit" : "HEAD^", 14 | "git:arc.feature.start.default" : "origin/master", 15 | "arc.feature.start.default" : "master", 16 | "history.immutable" : false 17 | } 18 | -------------------------------------------------------------------------------- /external/gtest/xcode/Config/FrameworkTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // FrameworkTarget.xcconfig 3 | // 4 | // These are Framework target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Dynamic libs need to be position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Dynamic libs should not have their external symbols stripped. 14 | STRIP_STYLE = non-global 15 | 16 | // Let the user install by specifying the $DSTROOT with xcodebuild 17 | SKIP_INSTALL = NO 18 | -------------------------------------------------------------------------------- /src/crypto/keccak.h: -------------------------------------------------------------------------------- 1 | // keccak.h 2 | // 19-Nov-11 Markku-Juhani O. Saarinen 3 | 4 | #ifndef KECCAK_H 5 | #define KECCAK_H 6 | 7 | #include 8 | #include 9 | 10 | #ifndef KECCAK_ROUNDS 11 | #define KECCAK_ROUNDS 24 12 | #endif 13 | 14 | #ifndef ROTL64 15 | #define ROTL64(x, y) (((x) << (y)) | ((x) >> (64 - (y)))) 16 | #endif 17 | 18 | // compute a keccak hash (md) of given byte length from "in" 19 | int keccak(const uint8_t *in, int inlen, uint8_t *md, int mdlen); 20 | 21 | // update the state 22 | void keccakf(uint64_t st[25], int norounds); 23 | 24 | void keccak1600(const uint8_t *in, int inlen, uint8_t *md); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/main/java/org/rocksdb/MergeOperator.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb; 7 | 8 | /** 9 | * MergeOperator holds an operator to be applied when compacting 10 | * two merge operands held under the same key in order to obtain a single 11 | * value. 12 | */ 13 | public interface MergeOperator { 14 | long newMergeOperatorHandle(); 15 | } 16 | -------------------------------------------------------------------------------- /external/rocksdb/tools/rdb/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | "targets": [ 3 | { 4 | "target_name": "rdb", 5 | "sources": [ 6 | "rdb.cc", 7 | "db_wrapper.cc", 8 | "db_wrapper.h" 9 | ], 10 | "cflags_cc!": [ 11 | "-fno-exceptions" 12 | ], 13 | "cflags_cc+": [ 14 | "-std=c++11", 15 | ], 16 | "include_dirs+": [ 17 | "../../include" 18 | ], 19 | "libraries": [ 20 | "../../../librocksdb.a", 21 | "-lsnappy" 22 | ], 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /external/miniupnpc/connecthostport.h: -------------------------------------------------------------------------------- 1 | /* $Id: connecthostport.h,v 1.3 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2010-2012 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef CONNECTHOSTPORT_H_INCLUDED 9 | #define CONNECTHOSTPORT_H_INCLUDED 10 | 11 | /* connecthostport() 12 | * return a socket connected (TCP) to the host and port 13 | * or -1 in case of error */ 14 | int connecthostport(const char * host, unsigned short port, 15 | unsigned int scope_id); 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/main/java/org/rocksdb/util/SizeUnit.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb.util; 7 | 8 | public class SizeUnit { 9 | public static final long KB = 1024L; 10 | public static final long MB = KB * KB; 11 | public static final long GB = KB * MB; 12 | public static final long TB = KB * GB; 13 | public static final long PB = KB * TB; 14 | 15 | private SizeUnit() {} 16 | } 17 | -------------------------------------------------------------------------------- /external/gtest/xcode/Config/StaticLibraryTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // StaticLibraryTarget.xcconfig 3 | // 4 | // These are static library target settings for libgtest.a. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Static libs can be included in bundles so make them position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Static libs should not have their internal globals or external symbols 14 | // stripped. 15 | STRIP_STYLE = debugging 16 | 17 | // Let the user install by specifying the $DSTROOT with xcodebuild 18 | SKIP_INSTALL = NO 19 | -------------------------------------------------------------------------------- /external/rocksdb/tools/ldb.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | #ifndef ROCKSDB_LITE 7 | 8 | #include "rocksdb/ldb_tool.h" 9 | 10 | int main(int argc, char** argv) { 11 | rocksdb::LDBTool tool; 12 | tool.Run(argc, argv); 13 | return 0; 14 | } 15 | #else 16 | #include 17 | int main(int argc, char** argv) { 18 | fprintf(stderr, "Not supported in lite mode.\n"); 19 | return 1; 20 | } 21 | #endif // ROCKSDB_LITE 22 | -------------------------------------------------------------------------------- /external/miniupnpc/miniupnpctypes.h: -------------------------------------------------------------------------------- 1 | /* $Id: miniupnpctypes.h,v 1.2 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Miniupnp project : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org 3 | * Author : Thomas Bernard 4 | * Copyright (c) 2011 Thomas Bernard 5 | * This software is subject to the conditions detailed in the 6 | * LICENCE file provided within this distribution */ 7 | #ifndef MINIUPNPCTYPES_H_INCLUDED 8 | #define MINIUPNPCTYPES_H_INCLUDED 9 | 10 | #if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) 11 | #define UNSIGNED_INTEGER unsigned long long 12 | #define STRTOUI strtoull 13 | #else 14 | #define UNSIGNED_INTEGER unsigned int 15 | #define STRTOUI strtoul 16 | #endif 17 | 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /external/rocksdb/LANGUAGE-BINDINGS.md: -------------------------------------------------------------------------------- 1 | This is the list of all known third-party language bindings for RocksDB. If something is missing, please open a pull request to add it. 2 | 3 | * Java - https://github.com/facebook/rocksdb/tree/master/java 4 | * Python - http://pyrocksdb.readthedocs.org/en/latest/ 5 | * Perl - https://metacpan.org/pod/RocksDB 6 | * Node.js - https://npmjs.org/package/rocksdb 7 | * Go - https://github.com/tecbot/gorocksdb 8 | * Ruby - http://rubygems.org/gems/rocksdb-ruby 9 | * Haskell - https://hackage.haskell.org/package/rocksdb-haskell 10 | * PHP - https://github.com/Photonios/rocksdb-php 11 | * C# - https://github.com/warrenfalk/rocksdb-sharp 12 | * Rust - https://github.com/spacejam/rust-rocksdb 13 | -------------------------------------------------------------------------------- /external/rocksdb/tools/sst_dump.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | #ifndef ROCKSDB_LITE 7 | 8 | #include "rocksdb/sst_dump_tool.h" 9 | 10 | int main(int argc, char** argv) { 11 | rocksdb::SSTDumpTool tool; 12 | tool.Run(argc, argv); 13 | return 0; 14 | } 15 | #else 16 | #include 17 | int main(int argc, char** argv) { 18 | fprintf(stderr, "Not supported in lite mode.\n"); 19 | return 1; 20 | } 21 | #endif // ROCKSDB_LITE 22 | -------------------------------------------------------------------------------- /external/rocksdb/util/build_version.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | #pragma once 7 | #if !defined(IOS_CROSS_COMPILE) 8 | // if we compile with Xcode, we don't run build_detect_vesion, so we don't 9 | // generate these variables 10 | // this variable tells us about the git revision 11 | extern const char* rocksdb_build_git_sha; 12 | 13 | // Date on which the code was compiled: 14 | extern const char* rocksdb_build_compile_date; 15 | #endif 16 | -------------------------------------------------------------------------------- /src/version.cmake: -------------------------------------------------------------------------------- 1 | execute_process(COMMAND "${GIT}" describe --dirty --match "v*" RESULT_VARIABLE RET OUTPUT_VARIABLE DESCRIPTION OUTPUT_STRIP_TRAILING_WHITESPACE) 2 | if(RET) 3 | message(WARNING "Cannot determine current revision. Make sure that you are building either from a Git working tree or from a source archive.") 4 | set(VERSION "${COMMIT}") 5 | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.in" "${TO}") 6 | else() 7 | string(REGEX MATCH "([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])?(-dirty)? $" COMMIT "${DESCRIPTION} ") 8 | string(STRIP "${COMMIT}" COMMIT) 9 | set(VERSION "${COMMIT}") 10 | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.in" "${TO}") 11 | endif() -------------------------------------------------------------------------------- /external/rocksdb/include/rocksdb/types.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | #ifndef STORAGE_ROCKSDB_INCLUDE_TYPES_H_ 7 | #define STORAGE_ROCKSDB_INCLUDE_TYPES_H_ 8 | 9 | #include 10 | 11 | namespace rocksdb { 12 | 13 | // Define all public custom types here. 14 | 15 | // Represents a sequence number in a WAL file. 16 | typedef uint64_t SequenceNumber; 17 | 18 | } // namespace rocksdb 19 | 20 | #endif // STORAGE_ROCKSDB_INCLUDE_TYPES_H_ 21 | -------------------------------------------------------------------------------- /external/rocksdb/util/filter_policy.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | // Copyright (c) 2012 The LevelDB Authors. All rights reserved. 7 | // Use of this source code is governed by a BSD-style license that can be 8 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 9 | 10 | #include "rocksdb/filter_policy.h" 11 | 12 | namespace rocksdb { 13 | 14 | FilterPolicy::~FilterPolicy() { } 15 | 16 | } // namespace rocksdb 17 | -------------------------------------------------------------------------------- /external/miniupnpc/upnperrors.h: -------------------------------------------------------------------------------- 1 | /* $Id: upnperrors.h,v 1.4 2012/09/27 15:42:11 nanard Exp $ */ 2 | /* (c) 2007 Thomas Bernard 3 | * All rights reserved. 4 | * MiniUPnP Project. 5 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 6 | * This software is subjet to the conditions detailed in the 7 | * provided LICENCE file. */ 8 | #ifndef UPNPERRORS_H_INCLUDED 9 | #define UPNPERRORS_H_INCLUDED 10 | 11 | #include "declspec.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /* strupnperror() 18 | * Return a string description of the UPnP error code 19 | * or NULL for undefinded errors */ 20 | LIBSPEC const char * strupnperror(int err); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /external/rocksdb/include/rocksdb/utilities/info_log_finder.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | #include "rocksdb/db.h" 12 | #include "rocksdb/options.h" 13 | 14 | namespace rocksdb { 15 | 16 | // This function can be used to list the Information logs, 17 | // given the db pointer. 18 | Status GetInfoLogList(DB* db, std::vector* info_log_list); 19 | } // namespace rocksdb 20 | -------------------------------------------------------------------------------- /external/miniupnpc/setup.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/python 2 | # $Id: setup.py,v 1.9 2012/05/23 08:50:10 nanard Exp $ 3 | # the MiniUPnP Project (c) 2007-2012 Thomas Bernard 4 | # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ 5 | # 6 | # python script to build the miniupnpc module under unix 7 | # 8 | # replace libminiupnpc.a by libminiupnpc.so for shared library usage 9 | from distutils.core import setup, Extension 10 | from distutils import sysconfig 11 | sysconfig.get_config_vars()["OPT"] = '' 12 | sysconfig.get_config_vars()["CFLAGS"] = '' 13 | setup(name="miniupnpc", version="1.7", 14 | ext_modules=[ 15 | Extension(name="miniupnpc", sources=["miniupnpcmodule.c"], 16 | extra_objects=["libminiupnpc.a"]) 17 | ]) 18 | 19 | -------------------------------------------------------------------------------- /external/miniupnpc/setupmingw32.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/python 2 | # $Id: setupmingw32.py,v 1.8 2012/05/23 08:50:10 nanard Exp $ 3 | # the MiniUPnP Project (c) 2007-2012 Thomas Bernard 4 | # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ 5 | # 6 | # python script to build the miniupnpc module under windows (using mingw32) 7 | # 8 | from distutils.core import setup, Extension 9 | from distutils import sysconfig 10 | sysconfig.get_config_vars()["OPT"] = '' 11 | sysconfig.get_config_vars()["CFLAGS"] = '' 12 | setup(name="miniupnpc", version="1.7", 13 | ext_modules=[ 14 | Extension(name="miniupnpc", sources=["miniupnpcmodule.c"], 15 | libraries=["ws2_32", "iphlpapi"], 16 | extra_objects=["libminiupnpc.a"]) 17 | ]) 18 | 19 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/main/java/org/rocksdb/StringAppendOperator.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb; 7 | 8 | /** 9 | * StringAppendOperator is a merge operator that concatenates 10 | * two strings. 11 | */ 12 | public class StringAppendOperator implements MergeOperator { 13 | @Override public long newMergeOperatorHandle() { 14 | return newMergeOperatorHandleImpl(); 15 | } 16 | private native long newMergeOperatorHandleImpl(); 17 | } 18 | -------------------------------------------------------------------------------- /external/rocksdb/include/rocksdb/version.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | #pragma once 6 | 7 | #define ROCKSDB_MAJOR 4 8 | #define ROCKSDB_MINOR 11 9 | #define ROCKSDB_PATCH 2 10 | 11 | // Do not use these. We made the mistake of declaring macros starting with 12 | // double underscore. Now we have to live with our choice. We'll deprecate these 13 | // at some point 14 | #define __ROCKSDB_MAJOR__ ROCKSDB_MAJOR 15 | #define __ROCKSDB_MINOR__ ROCKSDB_MINOR 16 | #define __ROCKSDB_PATCH__ ROCKSDB_PATCH 17 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/main/java/org/rocksdb/BuiltinComparator.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb; 7 | 8 | /** 9 | * Builtin RocksDB comparators 10 | * 11 | *
    12 | *
  1. BYTEWISE_COMPARATOR - Sorts all keys in ascending bytewise 13 | * order.
  2. 14 | *
  3. REVERSE_BYTEWISE_COMPARATOR - Sorts all keys in descending bytewise 15 | * order
  4. 16 | *
17 | */ 18 | public enum BuiltinComparator { 19 | BYTEWISE_COMPARATOR, REVERSE_BYTEWISE_COMPARATOR 20 | } 21 | -------------------------------------------------------------------------------- /external/rocksdb/port/stack_trace.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | #pragma once 7 | namespace rocksdb { 8 | namespace port { 9 | 10 | // Install a signal handler to print callstack on the following signals: 11 | // SIGILL SIGSEGV SIGBUS SIGABRT 12 | // Currently supports linux only. No-op otherwise. 13 | void InstallStackTraceHandler(); 14 | 15 | // Prints stack, skips skip_first_frames frames 16 | void PrintStack(int first_frames_to_skip = 0); 17 | 18 | } // namespace port 19 | } // namespace rocksdb 20 | -------------------------------------------------------------------------------- /external/rocksdb/util/status_message.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | #include "rocksdb/status.h" 7 | 8 | namespace rocksdb { 9 | 10 | const char* Status::msgs[] = { 11 | "", // kNone 12 | "Timeout Acquiring Mutex", // kMutexTimeout 13 | "Timeout waiting to lock key", // kLockTimeout 14 | "Failed to acquire lock due to max_num_locks limit" // kLockLimit 15 | }; 16 | 17 | } // namespace rocksdb 18 | -------------------------------------------------------------------------------- /external/rocksdb/utilities/flashcache/flashcache.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | #pragma once 7 | 8 | #include 9 | #include "rocksdb/env.h" 10 | 11 | namespace rocksdb { 12 | 13 | // This is internal API that will make hacking on flashcache easier. Not sure if 14 | // we need to expose this to public users, probably not 15 | extern int FlashcacheBlacklistCurrentThread(Env* flashcache_aware_env); 16 | extern int FlashcacheWhitelistCurrentThread(Env* flashcache_aware_env); 17 | 18 | } // namespace rocksdb 19 | -------------------------------------------------------------------------------- /external/gtest/m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3337 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3337]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.2' 20 | macro_revision='1.3337' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /external/miniupnpc/receivedata.h: -------------------------------------------------------------------------------- 1 | /* $Id: receivedata.h,v 1.4 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2011-2012 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef RECEIVEDATA_H_INCLUDED 9 | #define RECEIVEDATA_H_INCLUDED 10 | 11 | /* Reads data from the specified socket. 12 | * Returns the number of bytes read if successful, zero if no bytes were 13 | * read or if we timed out. Returns negative if there was an error. */ 14 | int receivedata(int socket, 15 | char * data, int length, 16 | int timeout, unsigned int * scope_id); 17 | 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/test/java/org/rocksdb/CompressionOptionsTest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb; 7 | 8 | import org.junit.Test; 9 | 10 | 11 | public class CompressionOptionsTest { 12 | @Test 13 | public void getCompressionType() { 14 | for (final CompressionType compressionType : CompressionType.values()) { 15 | String libraryName = compressionType.getLibraryName(); 16 | compressionType.equals(CompressionType.getCompressionType( 17 | libraryName)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /external/rocksdb/port/xpress.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 7 | // Use of this source code is governed by a BSD-style license that can be 8 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 9 | 10 | #pragma once 11 | 12 | // Xpress on Windows is implemeted using Win API 13 | #if defined(ROCKSDB_PLATFORM_POSIX) 14 | #error "Xpress compression not implemented" 15 | #elif defined(OS_WIN) 16 | #include "port/win/xpress_win.h" 17 | #endif 18 | -------------------------------------------------------------------------------- /external/rocksdb/util/string_util.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | // 6 | #include 7 | #include 8 | #include 9 | #include "util/string_util.h" 10 | 11 | namespace rocksdb { 12 | 13 | std::vector StringSplit(const std::string& arg, char delim) { 14 | std::vector splits; 15 | std::stringstream ss(arg); 16 | std::string item; 17 | while (std::getline(ss, item, delim)) { 18 | splits.push_back(item); 19 | } 20 | return splits; 21 | } 22 | 23 | } // namespace rocksdb 24 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/main/java/org/rocksdb/RemoveEmptyValueCompactionFilter.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb; 7 | 8 | /** 9 | * Just a Java wrapper around EmptyValueCompactionFilter implemented in C++ 10 | */ 11 | public class RemoveEmptyValueCompactionFilter 12 | extends AbstractCompactionFilter { 13 | public RemoveEmptyValueCompactionFilter() { 14 | super(createNewRemoveEmptyValueCompactionFilter0()); 15 | } 16 | 17 | private native static long createNewRemoveEmptyValueCompactionFilter0(); 18 | } 19 | -------------------------------------------------------------------------------- /external/rocksdb/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to RocksDB 2 | 3 | ## Contributor License Agreement ("CLA") 4 | 5 | In order to accept your pull request, we need you to submit a CLA. You 6 | only need to do this once, so if you've done this for another Facebook 7 | open source project, you're good to go. If you are submitting a pull 8 | request for the first time, just let us know that you have completed 9 | the CLA and we can cross-check with your GitHub username. 10 | 11 | Complete your CLA here: 12 | 13 | If you prefer to sign a paper copy, we can send you a PDF. Send us an 14 | e-mail or create a new github issue to request the CLA in PDF format. 15 | 16 | ## License 17 | 18 | By contributing to RocksDB, you agree that your contributions will be 19 | licensed under the [BSD License](LICENSE). 20 | -------------------------------------------------------------------------------- /external/rocksdb/java/src/test/java/org/rocksdb/StatsCallbackMock.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | package org.rocksdb; 7 | 8 | public class StatsCallbackMock implements StatisticsCollectorCallback { 9 | public int tickerCallbackCount = 0; 10 | public int histCallbackCount = 0; 11 | 12 | public void tickerCallback(TickerType tickerType, long tickerCount) { 13 | tickerCallbackCount++; 14 | } 15 | 16 | public void histogramCallback(HistogramType histType, 17 | HistogramData histData) { 18 | histCallbackCount++; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /external/rocksdb/util/env_chroot.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016-present, Facebook, Inc. All rights reserved. 2 | // This source code is licensed under the BSD-style license found in the 3 | // LICENSE file in the root directory of this source tree. An additional grant 4 | // of patent rights can be found in the PATENTS file in the same directory. 5 | 6 | #pragma once 7 | 8 | #if !defined(ROCKSDB_LITE) && !defined(OS_WIN) 9 | 10 | #include 11 | 12 | #include "rocksdb/env.h" 13 | 14 | namespace rocksdb { 15 | 16 | // Returns an Env that translates paths such that the root directory appears to 17 | // be chroot_dir. chroot_dir should refer to an existing directory. 18 | Env* NewChrootEnv(Env* base_env, const std::string& chroot_dir); 19 | 20 | } // namespace rocksdb 21 | 22 | #endif // !defined(ROCKSDB_LITE) && !defined(OS_WIN) 23 | -------------------------------------------------------------------------------- /external/rocksdb/arcanist_util/unit_engine/FacebookFbcodeUnitTestEngine.php: -------------------------------------------------------------------------------- 1 | setName("dummy_placeholder_entry"); 14 | $result->setResult(ArcanistUnitTestResult::RESULT_PASS); 15 | return array($result); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /external/rocksdb/DUMP_FORMAT.md: -------------------------------------------------------------------------------- 1 | ## RocksDB dump format 2 | 3 | The version 1 RocksDB dump format is fairly simple: 4 | 5 | 1) The dump starts with the magic 8 byte identifier "ROCKDUMP" 6 | 7 | 2) The magic is followed by an 8 byte big-endian version which is 0x00000001. 8 | 9 | 3) Next are arbitrarily sized chunks of bytes prepended by 4 byte little endian number indicating how large each chunk is. 10 | 11 | 4) The first chunk is special and is a json string indicating some things about the creation of this dump. It contains the following keys: 12 | * database-path: The path of the database this dump was created from. 13 | * hostname: The hostname of the machine where the dump was created. 14 | * creation-time: Unix seconds since epoc when this dump was created. 15 | 16 | 5) Following the info dump the slices paired into are key/value pairs. 17 | -------------------------------------------------------------------------------- /external/rocksdb/java/crossbuild/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! 5 | VAGRANTFILE_API_VERSION = "2" 6 | 7 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 8 | 9 | config.vm.define "linux32" do |linux32| 10 | linux32.vm.box = "hansode/centos-5.6-i386" 11 | end 12 | 13 | config.vm.define "linux64" do |linux64| 14 | linux64.vm.box = "hansode/centos-5.6-x86_64" 15 | end 16 | 17 | config.vm.provider "virtualbox" do |v| 18 | v.memory = 2048 19 | v.cpus = 4 20 | end 21 | 22 | config.vm.provision :shell, path: "build-linux-centos.sh" 23 | config.vm.synced_folder "../target", "/rocksdb-build" 24 | config.vm.synced_folder "../..", "/rocksdb", type: "rsync" 25 | config.vm.boot_timeout = 1200 26 | end 27 | -------------------------------------------------------------------------------- /external/miniupnpc/miniwget.h: -------------------------------------------------------------------------------- 1 | /* $Id: miniwget.h,v 1.8 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project : miniupnp 3 | * Author : Thomas Bernard 4 | * Copyright (c) 2005-2012 Thomas Bernard 5 | * This software is subject to the conditions detailed in the 6 | * LICENCE file provided in this distribution. 7 | * */ 8 | #ifndef MINIWGET_H_INCLUDED 9 | #define MINIWGET_H_INCLUDED 10 | 11 | #include "declspec.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | LIBSPEC void * getHTTPResponse(int s, int * size); 18 | 19 | LIBSPEC void * miniwget(const char *, int *, unsigned int); 20 | 21 | LIBSPEC void * miniwget_getaddr(const char *, int *, char *, int, unsigned int); 22 | 23 | int parseURL(const char *, char *, unsigned short *, char * *, unsigned int *); 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /external/rocksdb/tools/verify_random_db.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # A shell script to verify DB generated by generate_random_db.sh cannot opened and read correct data. 4 | # ./ldb needs to be avaible to be executed. 5 | # 6 | # Usage: