├── .clang-format ├── .github ├── issue_template.md └── workflows │ └── ci.yml ├── .gitignore ├── .mailmap ├── AUTHORS ├── CONTRIBUTING.md ├── COPYING ├── ChangeLog ├── Makefile.am ├── README ├── bindings ├── java │ └── org │ │ └── collectd │ │ ├── api │ │ ├── Collectd.java │ │ ├── CollectdConfigInterface.java │ │ ├── CollectdFlushInterface.java │ │ ├── CollectdInitInterface.java │ │ ├── CollectdLogInterface.java │ │ ├── CollectdMatchFactoryInterface.java │ │ ├── CollectdMatchInterface.java │ │ ├── CollectdNotificationInterface.java │ │ ├── CollectdReadInterface.java │ │ ├── CollectdShutdownInterface.java │ │ ├── CollectdTargetFactoryInterface.java │ │ ├── CollectdTargetInterface.java │ │ ├── CollectdWriteInterface.java │ │ ├── DataSet.java │ │ ├── DataSource.java │ │ ├── Notification.java │ │ ├── OConfigItem.java │ │ ├── OConfigValue.java │ │ ├── PluginData.java │ │ └── ValueList.java │ │ └── java │ │ ├── GenericJMX.java │ │ ├── GenericJMXConfConnection.java │ │ ├── GenericJMXConfMBean.java │ │ ├── GenericJMXConfValue.java │ │ └── JMXMemory.java └── perl │ ├── Makefile.PL │ ├── lib │ ├── Collectd.pm │ └── Collectd │ │ ├── MockDaemon.pm │ │ ├── Plugins │ │ ├── Monitorus.pm │ │ └── OpenVZ.pm │ │ └── Unixsock.pm │ ├── t │ ├── 00_load.t │ └── 01_methods.t │ └── uninstall_mod.pl ├── build.sh ├── clean.sh ├── configure.ac ├── contrib ├── GenericJMX.conf ├── README ├── SpamAssassin │ ├── Collectd.pm │ └── example.cf ├── add_rra.sh ├── aix │ ├── collectd.spec │ └── init.d-collectd ├── collectd2html.pl ├── collectd_network.py ├── collectd_unix_sock.rb ├── collectd_unixsock.py ├── collection.cgi ├── collection.conf ├── collection3 │ ├── README │ ├── bin │ │ ├── .htaccess │ │ ├── graph.cgi │ │ ├── index.cgi │ │ └── json.cgi │ ├── etc │ │ ├── .htaccess │ │ └── collection.conf │ ├── lib │ │ ├── .htaccess │ │ └── Collectd │ │ │ ├── Config.pm │ │ │ └── Graph │ │ │ ├── Common.pm │ │ │ ├── Config.pm │ │ │ ├── Type.pm │ │ │ ├── Type │ │ │ ├── ArcCounts.pm │ │ │ ├── Df.pm │ │ │ ├── GenericIO.pm │ │ │ ├── GenericStacked.pm │ │ │ ├── JavaMemory.pm │ │ │ ├── Load.pm │ │ │ ├── PsCputime.pm │ │ │ ├── TableSize.pm │ │ │ └── Wirkleistung.pm │ │ │ └── TypeLoader.pm │ └── share │ │ ├── .htaccess │ │ ├── navigate.js │ │ ├── shortcut-icon.png │ │ └── style.css ├── curl_json │ └── php-fpm.conf ├── cussh.pl ├── docker │ ├── 50docker-apt-conf │ ├── Dockerfile │ ├── collectd.conf │ ├── collectd.conf.d │ │ └── sample.conf │ └── rootfs_prefix │ │ ├── .gitignore │ │ ├── Makefile │ │ └── rootfs_prefix.c ├── examples │ ├── MyPlugin.pm │ └── myplugin.c ├── exec-ksm.sh ├── exec-munin.conf ├── exec-munin.px ├── exec-nagios.conf ├── exec-nagios.px ├── exec-smartctl ├── format.sh ├── iptables │ └── accounting.sh ├── migrate-3-4.px ├── migrate-4-5.px ├── network-proxy.py ├── oracle │ ├── create_schema.ddl │ └── db_systat.sql ├── php-collection │ ├── browser.js │ ├── config.php │ ├── definitions.local.php │ ├── definitions.php │ ├── functions.php │ ├── graph.php │ └── index.php ├── postgresql │ └── collectd_insert.sql ├── python │ └── getsigchld.py ├── redhat │ ├── collectd.spec │ ├── collection3.conf │ ├── init.d-collectd │ └── php-collection.conf ├── rrd_filter.px ├── sles10.1 │ ├── collectd.spec │ └── init.d-collectd ├── snmp-data.conf ├── snmp-probe-host.px ├── solaris-smf │ ├── README │ ├── collectd │ └── collectd.xml ├── systemd.collectd.service ├── upstart.collectd.conf └── wiki2changelog.pl ├── docs ├── BUILD.dpdkstat.md ├── BUILD.java.md ├── README.virt.md └── maintainer_guide.md ├── m4 ├── .gitignore ├── ax_compare_version.m4 └── ax_compiler_vendor.m4 ├── proto ├── collectd.proto ├── prometheus.proto └── types.proto ├── src ├── aggregation.c ├── amqp.c ├── apache.c ├── apcups.c ├── apple_sensors.c ├── aquaero.c ├── ascent.c ├── barometer.c ├── battery.c ├── battery_statefs.c ├── bind.c ├── ceph.c ├── ceph_test.c ├── cgroups.c ├── chrony.c ├── collectd-email.pod ├── collectd-exec.pod ├── collectd-java.pod ├── collectd-lua.pod ├── collectd-nagios.c ├── collectd-nagios.pod ├── collectd-perl.pod ├── collectd-python.pod ├── collectd-snmp.pod ├── collectd-tg.c ├── collectd-tg.pod ├── collectd-threshold.pod ├── collectd-unixsock.pod ├── collectd.conf.in ├── collectd.conf.pod ├── collectd.pod ├── collectd_time_series_response_test.json ├── collectdctl.c ├── collectdctl.pod ├── collectdmon.c ├── collectdmon.pod ├── conntrack.c ├── contextswitch.c ├── cpu.c ├── cpufreq.c ├── cpusleep.c ├── cpython.h ├── csv.c ├── curl.c ├── curl_json.c ├── curl_json_test.c ├── curl_xml.c ├── daemon │ ├── collectd.c │ ├── collectd.h │ ├── common.c │ ├── common.h │ ├── common_test.c │ ├── configfile.c │ ├── configfile.h │ ├── filter_chain.c │ ├── filter_chain.h │ ├── globals.c │ ├── globals.h │ ├── meta_data.c │ ├── meta_data.h │ ├── meta_data_test.c │ ├── plugin.c │ ├── plugin.h │ ├── plugin_mock.c │ ├── types_list.c │ ├── types_list.h │ ├── utils_avltree.c │ ├── utils_avltree.h │ ├── utils_avltree_test.c │ ├── utils_cache.c │ ├── utils_cache.h │ ├── utils_cache_mock.c │ ├── utils_complain.c │ ├── utils_complain.h │ ├── utils_heap.c │ ├── utils_heap.h │ ├── utils_heap_test.c │ ├── utils_llist.c │ ├── utils_llist.h │ ├── utils_random.c │ ├── utils_random.h │ ├── utils_subst.c │ ├── utils_subst.h │ ├── utils_subst_test.c │ ├── utils_threshold.c │ ├── utils_threshold.h │ ├── utils_time.c │ ├── utils_time.h │ └── utils_time_test.c ├── dbi.c ├── df.c ├── disk.c ├── dns.c ├── dpdkevents.c ├── dpdkstat.c ├── drbd.c ├── email.c ├── entropy.c ├── ethstat.c ├── exec.c ├── fhcount.c ├── filecount.c ├── fscache.c ├── gmond.c ├── gps.c ├── grpc.cc ├── hddtemp.c ├── hugepages.c ├── intel_pmu.c ├── intel_rdt.c ├── interface.c ├── ipc.c ├── ipmi.c ├── iptables.c ├── ipvs.c ├── irq.c ├── java.c ├── libcollectdclient │ ├── client.c │ ├── collectd │ │ ├── client.h │ │ ├── lcc_features.h.in │ │ ├── network.h │ │ ├── network_buffer.h │ │ ├── network_parse.h │ │ ├── server.h │ │ ├── stdendian.h │ │ └── types.h │ ├── libcollectdclient.pc.in │ ├── network.c │ ├── network_buffer.c │ ├── network_parse.c │ ├── network_parse_test.c │ └── server.c ├── libmongoc │ ├── AUTHORS │ ├── CMakeLists.txt │ ├── CONTRIBUTING.md │ ├── COPYING │ ├── ChangeLog │ ├── Makefile.am │ ├── Makefile.in │ ├── NEWS │ ├── README │ ├── README.rst │ ├── VERSION_CURRENT │ ├── VERSION_RELEASED │ ├── aclocal.m4 │ ├── build │ │ ├── autotools │ │ │ ├── AutoHarden.m4 │ │ │ ├── AutomaticInitAndCleanup.m4 │ │ │ ├── CheckCompiler.m4 │ │ │ ├── CheckHost.m4 │ │ │ ├── CheckProgs.m4 │ │ │ ├── CheckSSL.m4 │ │ │ ├── CheckSasl.m4 │ │ │ ├── CheckTarget.m4 │ │ │ ├── Coverage.m4 │ │ │ ├── FindDependencies.m4 │ │ │ ├── LDVersionScript.m4 │ │ │ ├── Libbson.m4 │ │ │ ├── MaintainerFlags.m4 │ │ │ ├── Optimizations.m4 │ │ │ ├── PlatformFlags.m4 │ │ │ ├── PrintBuildConfiguration.m4 │ │ │ ├── ReadCommandLineArguments.m4 │ │ │ ├── SetupAutomake.m4 │ │ │ ├── SetupLibtool.m4 │ │ │ ├── Versions.m4 │ │ │ ├── WeakSymbols.m4 │ │ │ ├── compile │ │ │ ├── config.guess │ │ │ ├── config.sub │ │ │ ├── depcomp │ │ │ ├── install-sh │ │ │ ├── ltmain.sh │ │ │ ├── m4 │ │ │ │ ├── ax_check_compile_flag.m4 │ │ │ │ ├── ax_check_link_flag.m4 │ │ │ │ ├── ax_pthread.m4 │ │ │ │ ├── libtool.m4 │ │ │ │ ├── ltoptions.m4 │ │ │ │ ├── ltsugar.m4 │ │ │ │ ├── ltversion.m4 │ │ │ │ ├── lt~obsolete.m4 │ │ │ │ └── pkg.m4 │ │ │ ├── missing │ │ │ └── versions.ldscript │ │ ├── cmake │ │ │ ├── FindBSON.cmake │ │ │ ├── FindSASL2.cmake │ │ │ ├── LoadVersion.cmake │ │ │ ├── Makefile.am │ │ │ ├── libmongoc-ssl.def │ │ │ └── libmongoc.def │ │ ├── libbson.xsl │ │ └── version.in │ ├── configure │ ├── configure.ac │ ├── doc │ │ ├── Makefile.am │ │ ├── advanced-connections.page │ │ ├── aggregate.page │ │ ├── authentication.page │ │ ├── basic-troubleshooting.page │ │ ├── bulk.page │ │ ├── cursors.page │ │ ├── deleting-document.page │ │ ├── executing-command.page │ │ ├── finding-document.page │ │ ├── html │ │ │ ├── C.css │ │ │ ├── Makefile.am │ │ │ ├── advanced-connections.html │ │ │ ├── aggregate.html │ │ │ ├── authentication.html │ │ │ ├── basic-troubleshooting.html │ │ │ ├── bulk.html │ │ │ ├── cursors.html │ │ │ ├── deleting-document.html │ │ │ ├── executing-command.html │ │ │ ├── finding-document.html │ │ │ ├── index.html │ │ │ ├── inserting-document.html │ │ │ ├── installing.html │ │ │ ├── jquery.js │ │ │ ├── jquery.syntax.brush.clang.js │ │ │ ├── jquery.syntax.core.js │ │ │ ├── jquery.syntax.js │ │ │ ├── jquery.syntax.layout.yelp.js │ │ │ ├── logging.html │ │ │ ├── matcher.html │ │ │ ├── mongoc_bulk_operation_delete.html │ │ │ ├── mongoc_bulk_operation_delete_one.html │ │ │ ├── mongoc_bulk_operation_destroy.html │ │ │ ├── mongoc_bulk_operation_execute.html │ │ │ ├── mongoc_bulk_operation_get_write_concern.html │ │ │ ├── mongoc_bulk_operation_insert.html │ │ │ ├── mongoc_bulk_operation_remove.html │ │ │ ├── mongoc_bulk_operation_remove_one.html │ │ │ ├── mongoc_bulk_operation_replace_one.html │ │ │ ├── mongoc_bulk_operation_set_bypass_document_validation.html │ │ │ ├── mongoc_bulk_operation_t.html │ │ │ ├── mongoc_bulk_operation_update.html │ │ │ ├── mongoc_bulk_operation_update_one.html │ │ │ ├── mongoc_check_version.html │ │ │ ├── mongoc_cleanup.html │ │ │ ├── mongoc_client_command.html │ │ │ ├── mongoc_client_command_simple.html │ │ │ ├── mongoc_client_destroy.html │ │ │ ├── mongoc_client_get_collection.html │ │ │ ├── mongoc_client_get_database.html │ │ │ ├── mongoc_client_get_database_names.html │ │ │ ├── mongoc_client_get_default_database.html │ │ │ ├── mongoc_client_get_gridfs.html │ │ │ ├── mongoc_client_get_max_bson_size.html │ │ │ ├── mongoc_client_get_max_message_size.html │ │ │ ├── mongoc_client_get_read_concern.html │ │ │ ├── mongoc_client_get_read_prefs.html │ │ │ ├── mongoc_client_get_server_status.html │ │ │ ├── mongoc_client_get_uri.html │ │ │ ├── mongoc_client_get_write_concern.html │ │ │ ├── mongoc_client_new.html │ │ │ ├── mongoc_client_new_from_uri.html │ │ │ ├── mongoc_client_pool_destroy.html │ │ │ ├── mongoc_client_pool_max_size.html │ │ │ ├── mongoc_client_pool_min_size.html │ │ │ ├── mongoc_client_pool_new.html │ │ │ ├── mongoc_client_pool_pop.html │ │ │ ├── mongoc_client_pool_push.html │ │ │ ├── mongoc_client_pool_set_ssl_opts.html │ │ │ ├── mongoc_client_pool_t.html │ │ │ ├── mongoc_client_pool_try_pop.html │ │ │ ├── mongoc_client_set_read_concern.html │ │ │ ├── mongoc_client_set_read_prefs.html │ │ │ ├── mongoc_client_set_ssl_opts.html │ │ │ ├── mongoc_client_set_stream_initiator.html │ │ │ ├── mongoc_client_set_write_concern.html │ │ │ ├── mongoc_client_t.html │ │ │ ├── mongoc_collection_aggregate.html │ │ │ ├── mongoc_collection_command.html │ │ │ ├── mongoc_collection_command_simple.html │ │ │ ├── mongoc_collection_copy.html │ │ │ ├── mongoc_collection_count.html │ │ │ ├── mongoc_collection_count_with_opts.html │ │ │ ├── mongoc_collection_create_bulk_operation.html │ │ │ ├── mongoc_collection_create_index.html │ │ │ ├── mongoc_collection_delete.html │ │ │ ├── mongoc_collection_destroy.html │ │ │ ├── mongoc_collection_drop.html │ │ │ ├── mongoc_collection_drop_index.html │ │ │ ├── mongoc_collection_ensure_index.html │ │ │ ├── mongoc_collection_find.html │ │ │ ├── mongoc_collection_find_and_modify.html │ │ │ ├── mongoc_collection_find_and_modify_with_opts.html │ │ │ ├── mongoc_collection_find_indexes.html │ │ │ ├── mongoc_collection_get_last_error.html │ │ │ ├── mongoc_collection_get_name.html │ │ │ ├── mongoc_collection_get_read_concern.html │ │ │ ├── mongoc_collection_get_read_prefs.html │ │ │ ├── mongoc_collection_get_write_concern.html │ │ │ ├── mongoc_collection_insert.html │ │ │ ├── mongoc_collection_insert_bulk.html │ │ │ ├── mongoc_collection_keys_to_index_string.html │ │ │ ├── mongoc_collection_remove.html │ │ │ ├── mongoc_collection_rename.html │ │ │ ├── mongoc_collection_save.html │ │ │ ├── mongoc_collection_set_read_concern.html │ │ │ ├── mongoc_collection_set_read_prefs.html │ │ │ ├── mongoc_collection_set_write_concern.html │ │ │ ├── mongoc_collection_stats.html │ │ │ ├── mongoc_collection_t.html │ │ │ ├── mongoc_collection_update.html │ │ │ ├── mongoc_collection_validate.html │ │ │ ├── mongoc_cursor_clone.html │ │ │ ├── mongoc_cursor_current.html │ │ │ ├── mongoc_cursor_destroy.html │ │ │ ├── mongoc_cursor_error.html │ │ │ ├── mongoc_cursor_get_host.html │ │ │ ├── mongoc_cursor_get_max_await_time_ms.html │ │ │ ├── mongoc_cursor_is_alive.html │ │ │ ├── mongoc_cursor_more.html │ │ │ ├── mongoc_cursor_next.html │ │ │ ├── mongoc_cursor_set_max_await_time_ms.html │ │ │ ├── mongoc_cursor_t.html │ │ │ ├── mongoc_database_add_user.html │ │ │ ├── mongoc_database_command.html │ │ │ ├── mongoc_database_command_simple.html │ │ │ ├── mongoc_database_copy.html │ │ │ ├── mongoc_database_create_collection.html │ │ │ ├── mongoc_database_destroy.html │ │ │ ├── mongoc_database_drop.html │ │ │ ├── mongoc_database_find_collections.html │ │ │ ├── mongoc_database_get_collection.html │ │ │ ├── mongoc_database_get_collection_names.html │ │ │ ├── mongoc_database_get_name.html │ │ │ ├── mongoc_database_get_read_concern.html │ │ │ ├── mongoc_database_get_read_prefs.html │ │ │ ├── mongoc_database_get_write_concern.html │ │ │ ├── mongoc_database_has_collection.html │ │ │ ├── mongoc_database_remove_all_users.html │ │ │ ├── mongoc_database_remove_user.html │ │ │ ├── mongoc_database_set_read_concern.html │ │ │ ├── mongoc_database_set_read_prefs.html │ │ │ ├── mongoc_database_set_write_concern.html │ │ │ ├── mongoc_database_t.html │ │ │ ├── mongoc_delete_flags_t.html │ │ │ ├── mongoc_find_and_modify_opts_destroy.html │ │ │ ├── mongoc_find_and_modify_opts_new.html │ │ │ ├── mongoc_find_and_modify_opts_set_bypass_document_validation.html │ │ │ ├── mongoc_find_and_modify_opts_set_fields.html │ │ │ ├── mongoc_find_and_modify_opts_set_flags.html │ │ │ ├── mongoc_find_and_modify_opts_set_sort.html │ │ │ ├── mongoc_find_and_modify_opts_set_update.html │ │ │ ├── mongoc_find_and_modify_opts_t.html │ │ │ ├── mongoc_get_major_version.html │ │ │ ├── mongoc_get_micro_version.html │ │ │ ├── mongoc_get_minor_version.html │ │ │ ├── mongoc_get_version.html │ │ │ ├── mongoc_gridfs_create_file.html │ │ │ ├── mongoc_gridfs_create_file_from_stream.html │ │ │ ├── mongoc_gridfs_destroy.html │ │ │ ├── mongoc_gridfs_drop.html │ │ │ ├── mongoc_gridfs_file_destroy.html │ │ │ ├── mongoc_gridfs_file_error.html │ │ │ ├── mongoc_gridfs_file_get_aliases.html │ │ │ ├── mongoc_gridfs_file_get_chunk_size.html │ │ │ ├── mongoc_gridfs_file_get_content_type.html │ │ │ ├── mongoc_gridfs_file_get_filename.html │ │ │ ├── mongoc_gridfs_file_get_id.html │ │ │ ├── mongoc_gridfs_file_get_length.html │ │ │ ├── mongoc_gridfs_file_get_md5.html │ │ │ ├── mongoc_gridfs_file_get_metadata.html │ │ │ ├── mongoc_gridfs_file_get_upload_date.html │ │ │ ├── mongoc_gridfs_file_list_destroy.html │ │ │ ├── mongoc_gridfs_file_list_error.html │ │ │ ├── mongoc_gridfs_file_list_next.html │ │ │ ├── mongoc_gridfs_file_list_t.html │ │ │ ├── mongoc_gridfs_file_opt_t.html │ │ │ ├── mongoc_gridfs_file_readv.html │ │ │ ├── mongoc_gridfs_file_remove.html │ │ │ ├── mongoc_gridfs_file_save.html │ │ │ ├── mongoc_gridfs_file_seek.html │ │ │ ├── mongoc_gridfs_file_set_aliases.html │ │ │ ├── mongoc_gridfs_file_set_content_type.html │ │ │ ├── mongoc_gridfs_file_set_filename.html │ │ │ ├── mongoc_gridfs_file_set_md5.html │ │ │ ├── mongoc_gridfs_file_set_metadata.html │ │ │ ├── mongoc_gridfs_file_t.html │ │ │ ├── mongoc_gridfs_file_tell.html │ │ │ ├── mongoc_gridfs_file_writev.html │ │ │ ├── mongoc_gridfs_find.html │ │ │ ├── mongoc_gridfs_find_one.html │ │ │ ├── mongoc_gridfs_find_one_by_filename.html │ │ │ ├── mongoc_gridfs_get_chunks.html │ │ │ ├── mongoc_gridfs_get_files.html │ │ │ ├── mongoc_gridfs_remove_by_filename.html │ │ │ ├── mongoc_gridfs_t.html │ │ │ ├── mongoc_host_list_t.html │ │ │ ├── mongoc_index_opt_geo_get_default.html │ │ │ ├── mongoc_index_opt_geo_init.html │ │ │ ├── mongoc_index_opt_geo_t.html │ │ │ ├── mongoc_index_opt_get_default.html │ │ │ ├── mongoc_index_opt_init.html │ │ │ ├── mongoc_index_opt_t.html │ │ │ ├── mongoc_index_opt_wt_get_default.html │ │ │ ├── mongoc_index_opt_wt_init.html │ │ │ ├── mongoc_index_opt_wt_t.html │ │ │ ├── mongoc_init.html │ │ │ ├── mongoc_insert_flags_t.html │ │ │ ├── mongoc_iovec_t.html │ │ │ ├── mongoc_matcher_destroy.html │ │ │ ├── mongoc_matcher_match.html │ │ │ ├── mongoc_matcher_new.html │ │ │ ├── mongoc_matcher_t.html │ │ │ ├── mongoc_query_flags_t.html │ │ │ ├── mongoc_rand.html │ │ │ ├── mongoc_rand_add.html │ │ │ ├── mongoc_rand_seed.html │ │ │ ├── mongoc_rand_status.html │ │ │ ├── mongoc_read_concern_copy.html │ │ │ ├── mongoc_read_concern_destroy.html │ │ │ ├── mongoc_read_concern_get_level.html │ │ │ ├── mongoc_read_concern_new.html │ │ │ ├── mongoc_read_concern_set_level.html │ │ │ ├── mongoc_read_concern_t.html │ │ │ ├── mongoc_read_mode_t.html │ │ │ ├── mongoc_read_prefs_add_tag.html │ │ │ ├── mongoc_read_prefs_copy.html │ │ │ ├── mongoc_read_prefs_destroy.html │ │ │ ├── mongoc_read_prefs_get_mode.html │ │ │ ├── mongoc_read_prefs_get_tags.html │ │ │ ├── mongoc_read_prefs_is_valid.html │ │ │ ├── mongoc_read_prefs_new.html │ │ │ ├── mongoc_read_prefs_set_mode.html │ │ │ ├── mongoc_read_prefs_set_tags.html │ │ │ ├── mongoc_read_prefs_t.html │ │ │ ├── mongoc_remove_flags_t.html │ │ │ ├── mongoc_reply_flags_t.html │ │ │ ├── mongoc_server_description_destroy.html │ │ │ ├── mongoc_server_description_host.html │ │ │ ├── mongoc_server_description_id.html │ │ │ ├── mongoc_server_description_new_copy.html │ │ │ ├── mongoc_server_description_t.html │ │ │ ├── mongoc_socket_accept.html │ │ │ ├── mongoc_socket_bind.html │ │ │ ├── mongoc_socket_close.html │ │ │ ├── mongoc_socket_connect.html │ │ │ ├── mongoc_socket_destroy.html │ │ │ ├── mongoc_socket_errno.html │ │ │ ├── mongoc_socket_getnameinfo.html │ │ │ ├── mongoc_socket_getsockname.html │ │ │ ├── mongoc_socket_listen.html │ │ │ ├── mongoc_socket_new.html │ │ │ ├── mongoc_socket_recv.html │ │ │ ├── mongoc_socket_send.html │ │ │ ├── mongoc_socket_sendv.html │ │ │ ├── mongoc_socket_setsockopt.html │ │ │ ├── mongoc_socket_t.html │ │ │ ├── mongoc_ssl_opt_get_default.html │ │ │ ├── mongoc_ssl_opt_t.html │ │ │ ├── mongoc_stream_buffered_new.html │ │ │ ├── mongoc_stream_buffered_t.html │ │ │ ├── mongoc_stream_close.html │ │ │ ├── mongoc_stream_cork.html │ │ │ ├── mongoc_stream_destroy.html │ │ │ ├── mongoc_stream_file_get_fd.html │ │ │ ├── mongoc_stream_file_new.html │ │ │ ├── mongoc_stream_file_new_for_path.html │ │ │ ├── mongoc_stream_file_t.html │ │ │ ├── mongoc_stream_flush.html │ │ │ ├── mongoc_stream_get_base_stream.html │ │ │ ├── mongoc_stream_gridfs_new.html │ │ │ ├── mongoc_stream_gridfs_t.html │ │ │ ├── mongoc_stream_read.html │ │ │ ├── mongoc_stream_readv.html │ │ │ ├── mongoc_stream_setsockopt.html │ │ │ ├── mongoc_stream_socket_get_socket.html │ │ │ ├── mongoc_stream_socket_new.html │ │ │ ├── mongoc_stream_socket_t.html │ │ │ ├── mongoc_stream_t.html │ │ │ ├── mongoc_stream_tls_check_cert.html │ │ │ ├── mongoc_stream_tls_do_handshake.html │ │ │ ├── mongoc_stream_tls_new.html │ │ │ ├── mongoc_stream_tls_t.html │ │ │ ├── mongoc_stream_uncork.html │ │ │ ├── mongoc_stream_write.html │ │ │ ├── mongoc_stream_writev.html │ │ │ ├── mongoc_update_flags_t.html │ │ │ ├── mongoc_uri_copy.html │ │ │ ├── mongoc_uri_destroy.html │ │ │ ├── mongoc_uri_get_auth_mechanism.html │ │ │ ├── mongoc_uri_get_auth_source.html │ │ │ ├── mongoc_uri_get_database.html │ │ │ ├── mongoc_uri_get_hosts.html │ │ │ ├── mongoc_uri_get_options.html │ │ │ ├── mongoc_uri_get_password.html │ │ │ ├── mongoc_uri_get_read_concern.html │ │ │ ├── mongoc_uri_get_read_prefs.html │ │ │ ├── mongoc_uri_get_read_prefs_t.html │ │ │ ├── mongoc_uri_get_replica_set.html │ │ │ ├── mongoc_uri_get_ssl.html │ │ │ ├── mongoc_uri_get_string.html │ │ │ ├── mongoc_uri_get_username.html │ │ │ ├── mongoc_uri_get_write_concern.html │ │ │ ├── mongoc_uri_new.html │ │ │ ├── mongoc_uri_new_for_host_port.html │ │ │ ├── mongoc_uri_t.html │ │ │ ├── mongoc_uri_unescape.html │ │ │ ├── mongoc_version.html │ │ │ ├── mongoc_write_concern_copy.html │ │ │ ├── mongoc_write_concern_destroy.html │ │ │ ├── mongoc_write_concern_get_fsync.html │ │ │ ├── mongoc_write_concern_get_journal.html │ │ │ ├── mongoc_write_concern_get_w.html │ │ │ ├── mongoc_write_concern_get_wmajority.html │ │ │ ├── mongoc_write_concern_get_wtag.html │ │ │ ├── mongoc_write_concern_get_wtimeout.html │ │ │ ├── mongoc_write_concern_new.html │ │ │ ├── mongoc_write_concern_set_fsync.html │ │ │ ├── mongoc_write_concern_set_journal.html │ │ │ ├── mongoc_write_concern_set_w.html │ │ │ ├── mongoc_write_concern_set_wmajority.html │ │ │ ├── mongoc_write_concern_set_wtag.html │ │ │ ├── mongoc_write_concern_set_wtimeout.html │ │ │ ├── mongoc_write_concern_t.html │ │ │ ├── tutorial.html │ │ │ ├── updating-document.html │ │ │ └── yelp.js │ │ ├── index.page │ │ ├── inserting-document.page │ │ ├── installing.page │ │ ├── installing.page.in │ │ ├── logging.page │ │ ├── mallard2man.py │ │ ├── man │ │ │ ├── Makefile.am │ │ │ ├── advanced-connections.3 │ │ │ ├── aggregate.3 │ │ │ ├── authentication.3 │ │ │ ├── basic-troubleshooting.3 │ │ │ ├── bulk.3 │ │ │ ├── cursors.3 │ │ │ ├── deleting-document.3 │ │ │ ├── executing-command.3 │ │ │ ├── finding-document.3 │ │ │ ├── index.3 │ │ │ ├── inserting-document.3 │ │ │ ├── installing.3 │ │ │ ├── logging.3 │ │ │ ├── matcher.3 │ │ │ ├── mongoc_bulk_operation_delete.3 │ │ │ ├── mongoc_bulk_operation_delete_one.3 │ │ │ ├── mongoc_bulk_operation_destroy.3 │ │ │ ├── mongoc_bulk_operation_execute.3 │ │ │ ├── mongoc_bulk_operation_get_write_concern.3 │ │ │ ├── mongoc_bulk_operation_insert.3 │ │ │ ├── mongoc_bulk_operation_remove.3 │ │ │ ├── mongoc_bulk_operation_remove_one.3 │ │ │ ├── mongoc_bulk_operation_replace_one.3 │ │ │ ├── mongoc_bulk_operation_set_bypass_document_validation.3 │ │ │ ├── mongoc_bulk_operation_t.3 │ │ │ ├── mongoc_bulk_operation_update.3 │ │ │ ├── mongoc_bulk_operation_update_one.3 │ │ │ ├── mongoc_check_version.3 │ │ │ ├── mongoc_cleanup.3 │ │ │ ├── mongoc_client_command.3 │ │ │ ├── mongoc_client_command_simple.3 │ │ │ ├── mongoc_client_destroy.3 │ │ │ ├── mongoc_client_get_collection.3 │ │ │ ├── mongoc_client_get_database.3 │ │ │ ├── mongoc_client_get_database_names.3 │ │ │ ├── mongoc_client_get_default_database.3 │ │ │ ├── mongoc_client_get_gridfs.3 │ │ │ ├── mongoc_client_get_max_bson_size.3 │ │ │ ├── mongoc_client_get_max_message_size.3 │ │ │ ├── mongoc_client_get_read_concern.3 │ │ │ ├── mongoc_client_get_read_prefs.3 │ │ │ ├── mongoc_client_get_server_status.3 │ │ │ ├── mongoc_client_get_uri.3 │ │ │ ├── mongoc_client_get_write_concern.3 │ │ │ ├── mongoc_client_new.3 │ │ │ ├── mongoc_client_new_from_uri.3 │ │ │ ├── mongoc_client_pool_destroy.3 │ │ │ ├── mongoc_client_pool_max_size.3 │ │ │ ├── mongoc_client_pool_min_size.3 │ │ │ ├── mongoc_client_pool_new.3 │ │ │ ├── mongoc_client_pool_pop.3 │ │ │ ├── mongoc_client_pool_push.3 │ │ │ ├── mongoc_client_pool_set_ssl_opts.3 │ │ │ ├── mongoc_client_pool_t.3 │ │ │ ├── mongoc_client_pool_try_pop.3 │ │ │ ├── mongoc_client_set_read_concern.3 │ │ │ ├── mongoc_client_set_read_prefs.3 │ │ │ ├── mongoc_client_set_ssl_opts.3 │ │ │ ├── mongoc_client_set_stream_initiator.3 │ │ │ ├── mongoc_client_set_write_concern.3 │ │ │ ├── mongoc_client_t.3 │ │ │ ├── mongoc_collection_aggregate.3 │ │ │ ├── mongoc_collection_command.3 │ │ │ ├── mongoc_collection_command_simple.3 │ │ │ ├── mongoc_collection_copy.3 │ │ │ ├── mongoc_collection_count.3 │ │ │ ├── mongoc_collection_count_with_opts.3 │ │ │ ├── mongoc_collection_create_bulk_operation.3 │ │ │ ├── mongoc_collection_create_index.3 │ │ │ ├── mongoc_collection_delete.3 │ │ │ ├── mongoc_collection_destroy.3 │ │ │ ├── mongoc_collection_drop.3 │ │ │ ├── mongoc_collection_drop_index.3 │ │ │ ├── mongoc_collection_ensure_index.3 │ │ │ ├── mongoc_collection_find.3 │ │ │ ├── mongoc_collection_find_and_modify.3 │ │ │ ├── mongoc_collection_find_and_modify_with_opts.3 │ │ │ ├── mongoc_collection_find_indexes.3 │ │ │ ├── mongoc_collection_get_last_error.3 │ │ │ ├── mongoc_collection_get_name.3 │ │ │ ├── mongoc_collection_get_read_concern.3 │ │ │ ├── mongoc_collection_get_read_prefs.3 │ │ │ ├── mongoc_collection_get_write_concern.3 │ │ │ ├── mongoc_collection_insert.3 │ │ │ ├── mongoc_collection_insert_bulk.3 │ │ │ ├── mongoc_collection_keys_to_index_string.3 │ │ │ ├── mongoc_collection_remove.3 │ │ │ ├── mongoc_collection_rename.3 │ │ │ ├── mongoc_collection_save.3 │ │ │ ├── mongoc_collection_set_read_concern.3 │ │ │ ├── mongoc_collection_set_read_prefs.3 │ │ │ ├── mongoc_collection_set_write_concern.3 │ │ │ ├── mongoc_collection_stats.3 │ │ │ ├── mongoc_collection_t.3 │ │ │ ├── mongoc_collection_update.3 │ │ │ ├── mongoc_collection_validate.3 │ │ │ ├── mongoc_cursor_clone.3 │ │ │ ├── mongoc_cursor_current.3 │ │ │ ├── mongoc_cursor_destroy.3 │ │ │ ├── mongoc_cursor_error.3 │ │ │ ├── mongoc_cursor_get_host.3 │ │ │ ├── mongoc_cursor_get_max_await_time_ms.3 │ │ │ ├── mongoc_cursor_is_alive.3 │ │ │ ├── mongoc_cursor_more.3 │ │ │ ├── mongoc_cursor_next.3 │ │ │ ├── mongoc_cursor_set_max_await_time_ms.3 │ │ │ ├── mongoc_cursor_t.3 │ │ │ ├── mongoc_database_add_user.3 │ │ │ ├── mongoc_database_command.3 │ │ │ ├── mongoc_database_command_simple.3 │ │ │ ├── mongoc_database_copy.3 │ │ │ ├── mongoc_database_create_collection.3 │ │ │ ├── mongoc_database_destroy.3 │ │ │ ├── mongoc_database_drop.3 │ │ │ ├── mongoc_database_find_collections.3 │ │ │ ├── mongoc_database_get_collection.3 │ │ │ ├── mongoc_database_get_collection_names.3 │ │ │ ├── mongoc_database_get_name.3 │ │ │ ├── mongoc_database_get_read_concern.3 │ │ │ ├── mongoc_database_get_read_prefs.3 │ │ │ ├── mongoc_database_get_write_concern.3 │ │ │ ├── mongoc_database_has_collection.3 │ │ │ ├── mongoc_database_remove_all_users.3 │ │ │ ├── mongoc_database_remove_user.3 │ │ │ ├── mongoc_database_set_read_concern.3 │ │ │ ├── mongoc_database_set_read_prefs.3 │ │ │ ├── mongoc_database_set_write_concern.3 │ │ │ ├── mongoc_database_t.3 │ │ │ ├── mongoc_delete_flags_t.3 │ │ │ ├── mongoc_find_and_modify_opts_destroy.3 │ │ │ ├── mongoc_find_and_modify_opts_new.3 │ │ │ ├── mongoc_find_and_modify_opts_set_bypass_document_validation.3 │ │ │ ├── mongoc_find_and_modify_opts_set_fields.3 │ │ │ ├── mongoc_find_and_modify_opts_set_flags.3 │ │ │ ├── mongoc_find_and_modify_opts_set_sort.3 │ │ │ ├── mongoc_find_and_modify_opts_set_update.3 │ │ │ ├── mongoc_find_and_modify_opts_t.3 │ │ │ ├── mongoc_get_major_version.3 │ │ │ ├── mongoc_get_micro_version.3 │ │ │ ├── mongoc_get_minor_version.3 │ │ │ ├── mongoc_get_version.3 │ │ │ ├── mongoc_gridfs_create_file.3 │ │ │ ├── mongoc_gridfs_create_file_from_stream.3 │ │ │ ├── mongoc_gridfs_destroy.3 │ │ │ ├── mongoc_gridfs_drop.3 │ │ │ ├── mongoc_gridfs_file_destroy.3 │ │ │ ├── mongoc_gridfs_file_error.3 │ │ │ ├── mongoc_gridfs_file_get_aliases.3 │ │ │ ├── mongoc_gridfs_file_get_chunk_size.3 │ │ │ ├── mongoc_gridfs_file_get_content_type.3 │ │ │ ├── mongoc_gridfs_file_get_filename.3 │ │ │ ├── mongoc_gridfs_file_get_id.3 │ │ │ ├── mongoc_gridfs_file_get_length.3 │ │ │ ├── mongoc_gridfs_file_get_md5.3 │ │ │ ├── mongoc_gridfs_file_get_metadata.3 │ │ │ ├── mongoc_gridfs_file_get_upload_date.3 │ │ │ ├── mongoc_gridfs_file_list_destroy.3 │ │ │ ├── mongoc_gridfs_file_list_error.3 │ │ │ ├── mongoc_gridfs_file_list_next.3 │ │ │ ├── mongoc_gridfs_file_list_t.3 │ │ │ ├── mongoc_gridfs_file_opt_t.3 │ │ │ ├── mongoc_gridfs_file_readv.3 │ │ │ ├── mongoc_gridfs_file_remove.3 │ │ │ ├── mongoc_gridfs_file_save.3 │ │ │ ├── mongoc_gridfs_file_seek.3 │ │ │ ├── mongoc_gridfs_file_set_aliases.3 │ │ │ ├── mongoc_gridfs_file_set_content_type.3 │ │ │ ├── mongoc_gridfs_file_set_filename.3 │ │ │ ├── mongoc_gridfs_file_set_md5.3 │ │ │ ├── mongoc_gridfs_file_set_metadata.3 │ │ │ ├── mongoc_gridfs_file_t.3 │ │ │ ├── mongoc_gridfs_file_tell.3 │ │ │ ├── mongoc_gridfs_file_writev.3 │ │ │ ├── mongoc_gridfs_find.3 │ │ │ ├── mongoc_gridfs_find_one.3 │ │ │ ├── mongoc_gridfs_find_one_by_filename.3 │ │ │ ├── mongoc_gridfs_get_chunks.3 │ │ │ ├── mongoc_gridfs_get_files.3 │ │ │ ├── mongoc_gridfs_remove_by_filename.3 │ │ │ ├── mongoc_gridfs_t.3 │ │ │ ├── mongoc_host_list_t.3 │ │ │ ├── mongoc_index_opt_geo_get_default.3 │ │ │ ├── mongoc_index_opt_geo_init.3 │ │ │ ├── mongoc_index_opt_geo_t.3 │ │ │ ├── mongoc_index_opt_get_default.3 │ │ │ ├── mongoc_index_opt_init.3 │ │ │ ├── mongoc_index_opt_t.3 │ │ │ ├── mongoc_index_opt_wt_get_default.3 │ │ │ ├── mongoc_index_opt_wt_init.3 │ │ │ ├── mongoc_index_opt_wt_t.3 │ │ │ ├── mongoc_init.3 │ │ │ ├── mongoc_insert_flags_t.3 │ │ │ ├── mongoc_iovec_t.3 │ │ │ ├── mongoc_matcher_destroy.3 │ │ │ ├── mongoc_matcher_match.3 │ │ │ ├── mongoc_matcher_new.3 │ │ │ ├── mongoc_matcher_t.3 │ │ │ ├── mongoc_query_flags_t.3 │ │ │ ├── mongoc_rand.3 │ │ │ ├── mongoc_rand_add.3 │ │ │ ├── mongoc_rand_seed.3 │ │ │ ├── mongoc_rand_status.3 │ │ │ ├── mongoc_read_concern_copy.3 │ │ │ ├── mongoc_read_concern_destroy.3 │ │ │ ├── mongoc_read_concern_get_level.3 │ │ │ ├── mongoc_read_concern_new.3 │ │ │ ├── mongoc_read_concern_set_level.3 │ │ │ ├── mongoc_read_concern_t.3 │ │ │ ├── mongoc_read_mode_t.3 │ │ │ ├── mongoc_read_prefs_add_tag.3 │ │ │ ├── mongoc_read_prefs_copy.3 │ │ │ ├── mongoc_read_prefs_destroy.3 │ │ │ ├── mongoc_read_prefs_get_mode.3 │ │ │ ├── mongoc_read_prefs_get_tags.3 │ │ │ ├── mongoc_read_prefs_is_valid.3 │ │ │ ├── mongoc_read_prefs_new.3 │ │ │ ├── mongoc_read_prefs_set_mode.3 │ │ │ ├── mongoc_read_prefs_set_tags.3 │ │ │ ├── mongoc_read_prefs_t.3 │ │ │ ├── mongoc_remove_flags_t.3 │ │ │ ├── mongoc_reply_flags_t.3 │ │ │ ├── mongoc_server_description_destroy.3 │ │ │ ├── mongoc_server_description_host.3 │ │ │ ├── mongoc_server_description_id.3 │ │ │ ├── mongoc_server_description_new_copy.3 │ │ │ ├── mongoc_server_description_t.3 │ │ │ ├── mongoc_socket_accept.3 │ │ │ ├── mongoc_socket_bind.3 │ │ │ ├── mongoc_socket_close.3 │ │ │ ├── mongoc_socket_connect.3 │ │ │ ├── mongoc_socket_destroy.3 │ │ │ ├── mongoc_socket_errno.3 │ │ │ ├── mongoc_socket_getnameinfo.3 │ │ │ ├── mongoc_socket_getsockname.3 │ │ │ ├── mongoc_socket_listen.3 │ │ │ ├── mongoc_socket_new.3 │ │ │ ├── mongoc_socket_recv.3 │ │ │ ├── mongoc_socket_send.3 │ │ │ ├── mongoc_socket_sendv.3 │ │ │ ├── mongoc_socket_setsockopt.3 │ │ │ ├── mongoc_socket_t.3 │ │ │ ├── mongoc_ssl_opt_get_default.3 │ │ │ ├── mongoc_ssl_opt_t.3 │ │ │ ├── mongoc_stream_buffered_new.3 │ │ │ ├── mongoc_stream_buffered_t.3 │ │ │ ├── mongoc_stream_close.3 │ │ │ ├── mongoc_stream_cork.3 │ │ │ ├── mongoc_stream_destroy.3 │ │ │ ├── mongoc_stream_file_get_fd.3 │ │ │ ├── mongoc_stream_file_new.3 │ │ │ ├── mongoc_stream_file_new_for_path.3 │ │ │ ├── mongoc_stream_file_t.3 │ │ │ ├── mongoc_stream_flush.3 │ │ │ ├── mongoc_stream_get_base_stream.3 │ │ │ ├── mongoc_stream_gridfs_new.3 │ │ │ ├── mongoc_stream_gridfs_t.3 │ │ │ ├── mongoc_stream_read.3 │ │ │ ├── mongoc_stream_readv.3 │ │ │ ├── mongoc_stream_setsockopt.3 │ │ │ ├── mongoc_stream_socket_get_socket.3 │ │ │ ├── mongoc_stream_socket_new.3 │ │ │ ├── mongoc_stream_socket_t.3 │ │ │ ├── mongoc_stream_t.3 │ │ │ ├── mongoc_stream_tls_check_cert.3 │ │ │ ├── mongoc_stream_tls_do_handshake.3 │ │ │ ├── mongoc_stream_tls_new.3 │ │ │ ├── mongoc_stream_tls_t.3 │ │ │ ├── mongoc_stream_uncork.3 │ │ │ ├── mongoc_stream_write.3 │ │ │ ├── mongoc_stream_writev.3 │ │ │ ├── mongoc_update_flags_t.3 │ │ │ ├── mongoc_uri_copy.3 │ │ │ ├── mongoc_uri_destroy.3 │ │ │ ├── mongoc_uri_get_auth_mechanism.3 │ │ │ ├── mongoc_uri_get_auth_source.3 │ │ │ ├── mongoc_uri_get_database.3 │ │ │ ├── mongoc_uri_get_hosts.3 │ │ │ ├── mongoc_uri_get_options.3 │ │ │ ├── mongoc_uri_get_password.3 │ │ │ ├── mongoc_uri_get_read_concern.3 │ │ │ ├── mongoc_uri_get_read_prefs.3 │ │ │ ├── mongoc_uri_get_read_prefs_t.3 │ │ │ ├── mongoc_uri_get_replica_set.3 │ │ │ ├── mongoc_uri_get_ssl.3 │ │ │ ├── mongoc_uri_get_string.3 │ │ │ ├── mongoc_uri_get_username.3 │ │ │ ├── mongoc_uri_get_write_concern.3 │ │ │ ├── mongoc_uri_new.3 │ │ │ ├── mongoc_uri_new_for_host_port.3 │ │ │ ├── mongoc_uri_t.3 │ │ │ ├── mongoc_uri_unescape.3 │ │ │ ├── mongoc_version.3 │ │ │ ├── mongoc_write_concern_copy.3 │ │ │ ├── mongoc_write_concern_destroy.3 │ │ │ ├── mongoc_write_concern_get_fsync.3 │ │ │ ├── mongoc_write_concern_get_journal.3 │ │ │ ├── mongoc_write_concern_get_w.3 │ │ │ ├── mongoc_write_concern_get_wmajority.3 │ │ │ ├── mongoc_write_concern_get_wtag.3 │ │ │ ├── mongoc_write_concern_get_wtimeout.3 │ │ │ ├── mongoc_write_concern_new.3 │ │ │ ├── mongoc_write_concern_set_fsync.3 │ │ │ ├── mongoc_write_concern_set_journal.3 │ │ │ ├── mongoc_write_concern_set_w.3 │ │ │ ├── mongoc_write_concern_set_wmajority.3 │ │ │ ├── mongoc_write_concern_set_wtag.3 │ │ │ ├── mongoc_write_concern_set_wtimeout.3 │ │ │ ├── mongoc_write_concern_t.3 │ │ │ ├── tutorial.3 │ │ │ └── updating-document.3 │ │ ├── matcher.page │ │ ├── mongoc_bulk_operation_delete.page │ │ ├── mongoc_bulk_operation_delete_one.page │ │ ├── mongoc_bulk_operation_destroy.page │ │ ├── mongoc_bulk_operation_execute.page │ │ ├── mongoc_bulk_operation_get_write_concern.page │ │ ├── mongoc_bulk_operation_insert.page │ │ ├── mongoc_bulk_operation_remove.page │ │ ├── mongoc_bulk_operation_remove_one.page │ │ ├── mongoc_bulk_operation_replace_one.page │ │ ├── mongoc_bulk_operation_set_bypass_document_validation.page │ │ ├── mongoc_bulk_operation_t.page │ │ ├── mongoc_bulk_operation_update.page │ │ ├── mongoc_bulk_operation_update_one.page │ │ ├── mongoc_check_version.page │ │ ├── mongoc_cleanup.page │ │ ├── mongoc_client_command.page │ │ ├── mongoc_client_command_simple.page │ │ ├── mongoc_client_destroy.page │ │ ├── mongoc_client_get_collection.page │ │ ├── mongoc_client_get_database.page │ │ ├── mongoc_client_get_database_names.page │ │ ├── mongoc_client_get_default_database.page │ │ ├── mongoc_client_get_gridfs.page │ │ ├── mongoc_client_get_max_bson_size.page │ │ ├── mongoc_client_get_max_message_size.page │ │ ├── mongoc_client_get_read_concern.page │ │ ├── mongoc_client_get_read_prefs.page │ │ ├── mongoc_client_get_server_status.page │ │ ├── mongoc_client_get_uri.page │ │ ├── mongoc_client_get_write_concern.page │ │ ├── mongoc_client_new.page │ │ ├── mongoc_client_new_from_uri.page │ │ ├── mongoc_client_pool_destroy.page │ │ ├── mongoc_client_pool_max_size.page │ │ ├── mongoc_client_pool_min_size.page │ │ ├── mongoc_client_pool_new.page │ │ ├── mongoc_client_pool_pop.page │ │ ├── mongoc_client_pool_push.page │ │ ├── mongoc_client_pool_set_ssl_opts.page │ │ ├── mongoc_client_pool_t.page │ │ ├── mongoc_client_pool_try_pop.page │ │ ├── mongoc_client_set_read_concern.page │ │ ├── mongoc_client_set_read_prefs.page │ │ ├── mongoc_client_set_ssl_opts.page │ │ ├── mongoc_client_set_stream_initiator.page │ │ ├── mongoc_client_set_write_concern.page │ │ ├── mongoc_client_t.page │ │ ├── mongoc_collection_aggregate.page │ │ ├── mongoc_collection_command.page │ │ ├── mongoc_collection_command_simple.page │ │ ├── mongoc_collection_copy.page │ │ ├── mongoc_collection_count.page │ │ ├── mongoc_collection_count_with_opts.page │ │ ├── mongoc_collection_create_bulk_operation.page │ │ ├── mongoc_collection_create_index.page │ │ ├── mongoc_collection_delete.page │ │ ├── mongoc_collection_destroy.page │ │ ├── mongoc_collection_drop.page │ │ ├── mongoc_collection_drop_index.page │ │ ├── mongoc_collection_ensure_index.page │ │ ├── mongoc_collection_find.page │ │ ├── mongoc_collection_find_and_modify.page │ │ ├── mongoc_collection_find_and_modify_with_opts.page │ │ ├── mongoc_collection_find_indexes.page │ │ ├── mongoc_collection_get_last_error.page │ │ ├── mongoc_collection_get_name.page │ │ ├── mongoc_collection_get_read_concern.page │ │ ├── mongoc_collection_get_read_prefs.page │ │ ├── mongoc_collection_get_write_concern.page │ │ ├── mongoc_collection_insert.page │ │ ├── mongoc_collection_insert_bulk.page │ │ ├── mongoc_collection_keys_to_index_string.page │ │ ├── mongoc_collection_remove.page │ │ ├── mongoc_collection_rename.page │ │ ├── mongoc_collection_save.page │ │ ├── mongoc_collection_set_read_concern.page │ │ ├── mongoc_collection_set_read_prefs.page │ │ ├── mongoc_collection_set_write_concern.page │ │ ├── mongoc_collection_stats.page │ │ ├── mongoc_collection_t.page │ │ ├── mongoc_collection_update.page │ │ ├── mongoc_collection_validate.page │ │ ├── mongoc_cursor_clone.page │ │ ├── mongoc_cursor_current.page │ │ ├── mongoc_cursor_destroy.page │ │ ├── mongoc_cursor_error.page │ │ ├── mongoc_cursor_get_host.page │ │ ├── mongoc_cursor_get_max_await_time_ms.page │ │ ├── mongoc_cursor_is_alive.page │ │ ├── mongoc_cursor_more.page │ │ ├── mongoc_cursor_next.page │ │ ├── mongoc_cursor_set_max_await_time_ms.page │ │ ├── mongoc_cursor_t.page │ │ ├── mongoc_database_add_user.page │ │ ├── mongoc_database_command.page │ │ ├── mongoc_database_command_simple.page │ │ ├── mongoc_database_copy.page │ │ ├── mongoc_database_create_collection.page │ │ ├── mongoc_database_destroy.page │ │ ├── mongoc_database_drop.page │ │ ├── mongoc_database_find_collections.page │ │ ├── mongoc_database_get_collection.page │ │ ├── mongoc_database_get_collection_names.page │ │ ├── mongoc_database_get_name.page │ │ ├── mongoc_database_get_read_concern.page │ │ ├── mongoc_database_get_read_prefs.page │ │ ├── mongoc_database_get_write_concern.page │ │ ├── mongoc_database_has_collection.page │ │ ├── mongoc_database_remove_all_users.page │ │ ├── mongoc_database_remove_user.page │ │ ├── mongoc_database_set_read_concern.page │ │ ├── mongoc_database_set_read_prefs.page │ │ ├── mongoc_database_set_write_concern.page │ │ ├── mongoc_database_t.page │ │ ├── mongoc_delete_flags_t.page │ │ ├── mongoc_find_and_modify_opts_destroy.page │ │ ├── mongoc_find_and_modify_opts_new.page │ │ ├── mongoc_find_and_modify_opts_set_bypass_document_validation.page │ │ ├── mongoc_find_and_modify_opts_set_fields.page │ │ ├── mongoc_find_and_modify_opts_set_flags.page │ │ ├── mongoc_find_and_modify_opts_set_sort.page │ │ ├── mongoc_find_and_modify_opts_set_update.page │ │ ├── mongoc_find_and_modify_opts_t.page │ │ ├── mongoc_get_major_version.page │ │ ├── mongoc_get_micro_version.page │ │ ├── mongoc_get_minor_version.page │ │ ├── mongoc_get_version.page │ │ ├── mongoc_gridfs_create_file.page │ │ ├── mongoc_gridfs_create_file_from_stream.page │ │ ├── mongoc_gridfs_destroy.page │ │ ├── mongoc_gridfs_drop.page │ │ ├── mongoc_gridfs_file_destroy.page │ │ ├── mongoc_gridfs_file_error.page │ │ ├── mongoc_gridfs_file_get_aliases.page │ │ ├── mongoc_gridfs_file_get_chunk_size.page │ │ ├── mongoc_gridfs_file_get_content_type.page │ │ ├── mongoc_gridfs_file_get_filename.page │ │ ├── mongoc_gridfs_file_get_id.page │ │ ├── mongoc_gridfs_file_get_length.page │ │ ├── mongoc_gridfs_file_get_md5.page │ │ ├── mongoc_gridfs_file_get_metadata.page │ │ ├── mongoc_gridfs_file_get_upload_date.page │ │ ├── mongoc_gridfs_file_list_destroy.page │ │ ├── mongoc_gridfs_file_list_error.page │ │ ├── mongoc_gridfs_file_list_next.page │ │ ├── mongoc_gridfs_file_list_t.page │ │ ├── mongoc_gridfs_file_opt_t.page │ │ ├── mongoc_gridfs_file_readv.page │ │ ├── mongoc_gridfs_file_remove.page │ │ ├── mongoc_gridfs_file_save.page │ │ ├── mongoc_gridfs_file_seek.page │ │ ├── mongoc_gridfs_file_set_aliases.page │ │ ├── mongoc_gridfs_file_set_content_type.page │ │ ├── mongoc_gridfs_file_set_filename.page │ │ ├── mongoc_gridfs_file_set_md5.page │ │ ├── mongoc_gridfs_file_set_metadata.page │ │ ├── mongoc_gridfs_file_t.page │ │ ├── mongoc_gridfs_file_tell.page │ │ ├── mongoc_gridfs_file_writev.page │ │ ├── mongoc_gridfs_find.page │ │ ├── mongoc_gridfs_find_one.page │ │ ├── mongoc_gridfs_find_one_by_filename.page │ │ ├── mongoc_gridfs_get_chunks.page │ │ ├── mongoc_gridfs_get_files.page │ │ ├── mongoc_gridfs_remove_by_filename.page │ │ ├── mongoc_gridfs_t.page │ │ ├── mongoc_host_list_t.page │ │ ├── mongoc_index_opt_geo_get_default.page │ │ ├── mongoc_index_opt_geo_init.page │ │ ├── mongoc_index_opt_geo_t.page │ │ ├── mongoc_index_opt_get_default.page │ │ ├── mongoc_index_opt_init.page │ │ ├── mongoc_index_opt_t.page │ │ ├── mongoc_index_opt_wt_get_default.page │ │ ├── mongoc_index_opt_wt_init.page │ │ ├── mongoc_index_opt_wt_t.page │ │ ├── mongoc_init.page │ │ ├── mongoc_insert_flags_t.page │ │ ├── mongoc_iovec_t.page │ │ ├── mongoc_matcher_destroy.page │ │ ├── mongoc_matcher_match.page │ │ ├── mongoc_matcher_new.page │ │ ├── mongoc_matcher_t.page │ │ ├── mongoc_query_flags_t.page │ │ ├── mongoc_rand.page │ │ ├── mongoc_rand_add.page │ │ ├── mongoc_rand_seed.page │ │ ├── mongoc_rand_status.page │ │ ├── mongoc_read_concern_copy.page │ │ ├── mongoc_read_concern_destroy.page │ │ ├── mongoc_read_concern_get_level.page │ │ ├── mongoc_read_concern_new.page │ │ ├── mongoc_read_concern_set_level.page │ │ ├── mongoc_read_concern_t.page │ │ ├── mongoc_read_mode_t.page │ │ ├── mongoc_read_prefs_add_tag.page │ │ ├── mongoc_read_prefs_copy.page │ │ ├── mongoc_read_prefs_destroy.page │ │ ├── mongoc_read_prefs_get_mode.page │ │ ├── mongoc_read_prefs_get_tags.page │ │ ├── mongoc_read_prefs_is_valid.page │ │ ├── mongoc_read_prefs_new.page │ │ ├── mongoc_read_prefs_set_mode.page │ │ ├── mongoc_read_prefs_set_tags.page │ │ ├── mongoc_read_prefs_t.page │ │ ├── mongoc_remove_flags_t.page │ │ ├── mongoc_reply_flags_t.page │ │ ├── mongoc_server_description_destroy.page │ │ ├── mongoc_server_description_host.page │ │ ├── mongoc_server_description_id.page │ │ ├── mongoc_server_description_new_copy.page │ │ ├── mongoc_server_description_t.page │ │ ├── mongoc_socket_accept.page │ │ ├── mongoc_socket_bind.page │ │ ├── mongoc_socket_close.page │ │ ├── mongoc_socket_connect.page │ │ ├── mongoc_socket_destroy.page │ │ ├── mongoc_socket_errno.page │ │ ├── mongoc_socket_getnameinfo.page │ │ ├── mongoc_socket_getsockname.page │ │ ├── mongoc_socket_listen.page │ │ ├── mongoc_socket_new.page │ │ ├── mongoc_socket_recv.page │ │ ├── mongoc_socket_send.page │ │ ├── mongoc_socket_sendv.page │ │ ├── mongoc_socket_setsockopt.page │ │ ├── mongoc_socket_t.page │ │ ├── mongoc_ssl_opt_get_default.page │ │ ├── mongoc_ssl_opt_t.page │ │ ├── mongoc_stream_buffered_new.page │ │ ├── mongoc_stream_buffered_t.page │ │ ├── mongoc_stream_close.page │ │ ├── mongoc_stream_cork.page │ │ ├── mongoc_stream_destroy.page │ │ ├── mongoc_stream_file_get_fd.page │ │ ├── mongoc_stream_file_new.page │ │ ├── mongoc_stream_file_new_for_path.page │ │ ├── mongoc_stream_file_t.page │ │ ├── mongoc_stream_flush.page │ │ ├── mongoc_stream_get_base_stream.page │ │ ├── mongoc_stream_gridfs_new.page │ │ ├── mongoc_stream_gridfs_t.page │ │ ├── mongoc_stream_read.page │ │ ├── mongoc_stream_readv.page │ │ ├── mongoc_stream_setsockopt.page │ │ ├── mongoc_stream_socket_get_socket.page │ │ ├── mongoc_stream_socket_new.page │ │ ├── mongoc_stream_socket_t.page │ │ ├── mongoc_stream_t.page │ │ ├── mongoc_stream_tls_check_cert.page │ │ ├── mongoc_stream_tls_do_handshake.page │ │ ├── mongoc_stream_tls_new.page │ │ ├── mongoc_stream_tls_t.page │ │ ├── mongoc_stream_uncork.page │ │ ├── mongoc_stream_write.page │ │ ├── mongoc_stream_writev.page │ │ ├── mongoc_update_flags_t.page │ │ ├── mongoc_uri_copy.page │ │ ├── mongoc_uri_destroy.page │ │ ├── mongoc_uri_get_auth_mechanism.page │ │ ├── mongoc_uri_get_auth_source.page │ │ ├── mongoc_uri_get_database.page │ │ ├── mongoc_uri_get_hosts.page │ │ ├── mongoc_uri_get_options.page │ │ ├── mongoc_uri_get_password.page │ │ ├── mongoc_uri_get_read_concern.page │ │ ├── mongoc_uri_get_read_prefs.page │ │ ├── mongoc_uri_get_read_prefs_t.page │ │ ├── mongoc_uri_get_replica_set.page │ │ ├── mongoc_uri_get_ssl.page │ │ ├── mongoc_uri_get_string.page │ │ ├── mongoc_uri_get_username.page │ │ ├── mongoc_uri_get_write_concern.page │ │ ├── mongoc_uri_new.page │ │ ├── mongoc_uri_new_for_host_port.page │ │ ├── mongoc_uri_t.page │ │ ├── mongoc_uri_unescape.page │ │ ├── mongoc_version.page │ │ ├── mongoc_version.page.in │ │ ├── mongoc_write_concern_copy.page │ │ ├── mongoc_write_concern_destroy.page │ │ ├── mongoc_write_concern_get_fsync.page │ │ ├── mongoc_write_concern_get_journal.page │ │ ├── mongoc_write_concern_get_w.page │ │ ├── mongoc_write_concern_get_wmajority.page │ │ ├── mongoc_write_concern_get_wtag.page │ │ ├── mongoc_write_concern_get_wtimeout.page │ │ ├── mongoc_write_concern_new.page │ │ ├── mongoc_write_concern_set_fsync.page │ │ ├── mongoc_write_concern_set_journal.page │ │ ├── mongoc_write_concern_set_w.page │ │ ├── mongoc_write_concern_set_wmajority.page │ │ ├── mongoc_write_concern_set_wtag.page │ │ ├── mongoc_write_concern_set_wtimeout.page │ │ ├── mongoc_write_concern_t.page │ │ ├── tutorial.page │ │ └── updating-document.page │ ├── examples │ │ ├── Makefile.am │ │ ├── aggregation │ │ │ └── aggregation1.c │ │ ├── bulk │ │ │ ├── bulk1.c │ │ │ ├── bulk2.c │ │ │ ├── bulk3.c │ │ │ ├── bulk4.c │ │ │ └── bulk5.c │ │ ├── example-client.c │ │ ├── example-gridfs.c │ │ ├── example-matcher.c │ │ ├── example-scram.c │ │ ├── filter-bsondump.c │ │ ├── find-and-modify.c │ │ ├── find_and_modify_with_opts │ │ │ ├── bypass.c │ │ │ ├── fam.c │ │ │ ├── fields.c │ │ │ ├── flags.c │ │ │ ├── sort.c │ │ │ └── update.c │ │ ├── mongoc-dump.c │ │ ├── mongoc-ping.c │ │ ├── mongoc-rpc-validate.c │ │ └── mongoc-tail.c │ ├── orchestration_configs │ │ ├── certificates │ │ │ ├── ca.pem │ │ │ ├── client.pem │ │ │ ├── crl.pem │ │ │ ├── password_protected.pem │ │ │ └── server.pem │ │ ├── replica_sets │ │ │ ├── auth.json │ │ │ └── basic.json │ │ ├── servers │ │ │ ├── auth.json │ │ │ ├── basic.json │ │ │ ├── mmapv1.json │ │ │ ├── ssl.json │ │ │ └── wiredtiger.json │ │ └── sharded_clusters │ │ │ ├── auth.json │ │ │ └── basic.json │ ├── src │ │ ├── Makefile.am │ │ ├── libbson │ │ │ ├── AUTHORS │ │ │ ├── CMakeLists.txt │ │ │ ├── COPYING │ │ │ ├── ChangeLog │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── NEWS │ │ │ ├── README │ │ │ ├── VERSION_CURRENT │ │ │ ├── VERSION_RELEASED │ │ │ ├── aclocal.m4 │ │ │ ├── build │ │ │ │ ├── autotools │ │ │ │ │ ├── AutoHarden.m4 │ │ │ │ │ ├── CheckAtomics.m4 │ │ │ │ │ ├── CheckCompiler.m4 │ │ │ │ │ ├── CheckHeaders.m4 │ │ │ │ │ ├── CheckHost.m4 │ │ │ │ │ ├── CheckProgs.m4 │ │ │ │ │ ├── CheckTarget.m4 │ │ │ │ │ ├── Coverage.m4 │ │ │ │ │ ├── Endian.m4 │ │ │ │ │ ├── FindDependencies.m4 │ │ │ │ │ ├── LDVersionScript.m4 │ │ │ │ │ ├── MaintainerFlags.m4 │ │ │ │ │ ├── Optimizations.m4 │ │ │ │ │ ├── PrintBuildConfiguration.m4 │ │ │ │ │ ├── ReadCommandLineArguments.m4 │ │ │ │ │ ├── SetupAutomake.m4 │ │ │ │ │ ├── SetupLibtool.m4 │ │ │ │ │ ├── Versions.m4 │ │ │ │ │ ├── compile │ │ │ │ │ ├── config.guess │ │ │ │ │ ├── config.sub │ │ │ │ │ ├── depcomp │ │ │ │ │ ├── install-sh │ │ │ │ │ ├── ltmain.sh │ │ │ │ │ ├── m4 │ │ │ │ │ │ ├── ac_compile_check_sizeof.m4 │ │ │ │ │ │ ├── ac_create_stdint_h.m4 │ │ │ │ │ │ ├── ax_check_compile_flag.m4 │ │ │ │ │ │ ├── ax_check_link_flag.m4 │ │ │ │ │ │ ├── ax_pthread.m4 │ │ │ │ │ │ ├── libtool.m4 │ │ │ │ │ │ ├── ltoptions.m4 │ │ │ │ │ │ ├── ltsugar.m4 │ │ │ │ │ │ ├── ltversion.m4 │ │ │ │ │ │ └── lt~obsolete.m4 │ │ │ │ │ ├── missing │ │ │ │ │ └── versions.ldscript │ │ │ │ └── cmake │ │ │ │ │ ├── LoadVersion.cmake │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── bson │ │ │ │ │ └── bson-stdint.h │ │ │ │ │ └── libbson.def │ │ │ ├── configure │ │ │ ├── configure.ac │ │ │ ├── doc │ │ │ │ ├── Makefile.am │ │ │ │ ├── html │ │ │ │ │ ├── C.css │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── bson_append_array.html │ │ │ │ │ ├── bson_append_array_begin.html │ │ │ │ │ ├── bson_append_array_end.html │ │ │ │ │ ├── bson_append_binary.html │ │ │ │ │ ├── bson_append_bool.html │ │ │ │ │ ├── bson_append_code.html │ │ │ │ │ ├── bson_append_code_with_scope.html │ │ │ │ │ ├── bson_append_date_time.html │ │ │ │ │ ├── bson_append_dbpointer.html │ │ │ │ │ ├── bson_append_document.html │ │ │ │ │ ├── bson_append_document_begin.html │ │ │ │ │ ├── bson_append_document_end.html │ │ │ │ │ ├── bson_append_double.html │ │ │ │ │ ├── bson_append_int32.html │ │ │ │ │ ├── bson_append_int64.html │ │ │ │ │ ├── bson_append_iter.html │ │ │ │ │ ├── bson_append_maxkey.html │ │ │ │ │ ├── bson_append_minkey.html │ │ │ │ │ ├── bson_append_now_utc.html │ │ │ │ │ ├── bson_append_null.html │ │ │ │ │ ├── bson_append_oid.html │ │ │ │ │ ├── bson_append_regex.html │ │ │ │ │ ├── bson_append_symbol.html │ │ │ │ │ ├── bson_append_time_t.html │ │ │ │ │ ├── bson_append_timestamp.html │ │ │ │ │ ├── bson_append_timeval.html │ │ │ │ │ ├── bson_append_undefined.html │ │ │ │ │ ├── bson_append_utf8.html │ │ │ │ │ ├── bson_append_value.html │ │ │ │ │ ├── bson_as_json.html │ │ │ │ │ ├── bson_check_version.html │ │ │ │ │ ├── bson_compare.html │ │ │ │ │ ├── bson_concat.html │ │ │ │ │ ├── bson_context_destroy.html │ │ │ │ │ ├── bson_context_get_default.html │ │ │ │ │ ├── bson_context_new.html │ │ │ │ │ ├── bson_context_t.html │ │ │ │ │ ├── bson_copy.html │ │ │ │ │ ├── bson_copy_to.html │ │ │ │ │ ├── bson_copy_to_excluding.html │ │ │ │ │ ├── bson_count_keys.html │ │ │ │ │ ├── bson_destroy.html │ │ │ │ │ ├── bson_destroy_with_steal.html │ │ │ │ │ ├── bson_equal.html │ │ │ │ │ ├── bson_error_t.html │ │ │ │ │ ├── bson_free.html │ │ │ │ │ ├── bson_get_data.html │ │ │ │ │ ├── bson_get_major_version.html │ │ │ │ │ ├── bson_get_micro_version.html │ │ │ │ │ ├── bson_get_minor_version.html │ │ │ │ │ ├── bson_get_version.html │ │ │ │ │ ├── bson_has_field.html │ │ │ │ │ ├── bson_init.html │ │ │ │ │ ├── bson_init_from_json.html │ │ │ │ │ ├── bson_init_static.html │ │ │ │ │ ├── bson_iter_array.html │ │ │ │ │ ├── bson_iter_as_bool.html │ │ │ │ │ ├── bson_iter_as_int64.html │ │ │ │ │ ├── bson_iter_binary.html │ │ │ │ │ ├── bson_iter_bool.html │ │ │ │ │ ├── bson_iter_code.html │ │ │ │ │ ├── bson_iter_codewscope.html │ │ │ │ │ ├── bson_iter_date_time.html │ │ │ │ │ ├── bson_iter_dbpointer.html │ │ │ │ │ ├── bson_iter_document.html │ │ │ │ │ ├── bson_iter_double.html │ │ │ │ │ ├── bson_iter_dup_utf8.html │ │ │ │ │ ├── bson_iter_find.html │ │ │ │ │ ├── bson_iter_find_case.html │ │ │ │ │ ├── bson_iter_find_descendant.html │ │ │ │ │ ├── bson_iter_init.html │ │ │ │ │ ├── bson_iter_init_find.html │ │ │ │ │ ├── bson_iter_init_find_case.html │ │ │ │ │ ├── bson_iter_int32.html │ │ │ │ │ ├── bson_iter_int64.html │ │ │ │ │ ├── bson_iter_key.html │ │ │ │ │ ├── bson_iter_next.html │ │ │ │ │ ├── bson_iter_oid.html │ │ │ │ │ ├── bson_iter_overwrite_bool.html │ │ │ │ │ ├── bson_iter_overwrite_double.html │ │ │ │ │ ├── bson_iter_overwrite_int32.html │ │ │ │ │ ├── bson_iter_overwrite_int64.html │ │ │ │ │ ├── bson_iter_recurse.html │ │ │ │ │ ├── bson_iter_regex.html │ │ │ │ │ ├── bson_iter_symbol.html │ │ │ │ │ ├── bson_iter_t.html │ │ │ │ │ ├── bson_iter_time_t.html │ │ │ │ │ ├── bson_iter_timestamp.html │ │ │ │ │ ├── bson_iter_timeval.html │ │ │ │ │ ├── bson_iter_type.html │ │ │ │ │ ├── bson_iter_utf8.html │ │ │ │ │ ├── bson_iter_value.html │ │ │ │ │ ├── bson_iter_visit_all.html │ │ │ │ │ ├── bson_json_data_reader_ingest.html │ │ │ │ │ ├── bson_json_data_reader_new.html │ │ │ │ │ ├── bson_json_reader_destroy.html │ │ │ │ │ ├── bson_json_reader_new.html │ │ │ │ │ ├── bson_json_reader_new_from_fd.html │ │ │ │ │ ├── bson_json_reader_new_from_file.html │ │ │ │ │ ├── bson_json_reader_read.html │ │ │ │ │ ├── bson_json_reader_t.html │ │ │ │ │ ├── bson_malloc.html │ │ │ │ │ ├── bson_malloc0.html │ │ │ │ │ ├── bson_md5_append.html │ │ │ │ │ ├── bson_md5_finish.html │ │ │ │ │ ├── bson_md5_init.html │ │ │ │ │ ├── bson_md5_t.html │ │ │ │ │ ├── bson_mem_restore_vtable.html │ │ │ │ │ ├── bson_mem_set_vtable.html │ │ │ │ │ ├── bson_new.html │ │ │ │ │ ├── bson_new_from_buffer.html │ │ │ │ │ ├── bson_new_from_data.html │ │ │ │ │ ├── bson_new_from_json.html │ │ │ │ │ ├── bson_oid_compare.html │ │ │ │ │ ├── bson_oid_copy.html │ │ │ │ │ ├── bson_oid_equal.html │ │ │ │ │ ├── bson_oid_get_time_t.html │ │ │ │ │ ├── bson_oid_hash.html │ │ │ │ │ ├── bson_oid_init.html │ │ │ │ │ ├── bson_oid_init_from_data.html │ │ │ │ │ ├── bson_oid_init_from_string.html │ │ │ │ │ ├── bson_oid_init_sequence.html │ │ │ │ │ ├── bson_oid_is_valid.html │ │ │ │ │ ├── bson_oid_t.html │ │ │ │ │ ├── bson_oid_to_string.html │ │ │ │ │ ├── bson_reader_destroy.html │ │ │ │ │ ├── bson_reader_destroy_func_t.html │ │ │ │ │ ├── bson_reader_new_from_data.html │ │ │ │ │ ├── bson_reader_new_from_fd.html │ │ │ │ │ ├── bson_reader_new_from_file.html │ │ │ │ │ ├── bson_reader_new_from_handle.html │ │ │ │ │ ├── bson_reader_read.html │ │ │ │ │ ├── bson_reader_read_func_t.html │ │ │ │ │ ├── bson_reader_set_destroy_func.html │ │ │ │ │ ├── bson_reader_set_read_func.html │ │ │ │ │ ├── bson_reader_t.html │ │ │ │ │ ├── bson_reader_tell.html │ │ │ │ │ ├── bson_realloc.html │ │ │ │ │ ├── bson_realloc_ctx.html │ │ │ │ │ ├── bson_realloc_func.html │ │ │ │ │ ├── bson_reinit.html │ │ │ │ │ ├── bson_set_error.html │ │ │ │ │ ├── bson_sized_new.html │ │ │ │ │ ├── bson_snprintf.html │ │ │ │ │ ├── bson_strdup.html │ │ │ │ │ ├── bson_strdup_printf.html │ │ │ │ │ ├── bson_strdupv_printf.html │ │ │ │ │ ├── bson_strerror_r.html │ │ │ │ │ ├── bson_strfreev.html │ │ │ │ │ ├── bson_string_append.html │ │ │ │ │ ├── bson_string_append_c.html │ │ │ │ │ ├── bson_string_append_printf.html │ │ │ │ │ ├── bson_string_append_unichar.html │ │ │ │ │ ├── bson_string_free.html │ │ │ │ │ ├── bson_string_new.html │ │ │ │ │ ├── bson_string_t.html │ │ │ │ │ ├── bson_string_truncate.html │ │ │ │ │ ├── bson_strncpy.html │ │ │ │ │ ├── bson_strndup.html │ │ │ │ │ ├── bson_strnlen.html │ │ │ │ │ ├── bson_subtype_t.html │ │ │ │ │ ├── bson_t.html │ │ │ │ │ ├── bson_type_t.html │ │ │ │ │ ├── bson_uint32_to_string.html │ │ │ │ │ ├── bson_unichar_t.html │ │ │ │ │ ├── bson_utf8_escape_for_json.html │ │ │ │ │ ├── bson_utf8_from_unichar.html │ │ │ │ │ ├── bson_utf8_get_char.html │ │ │ │ │ ├── bson_utf8_next_char.html │ │ │ │ │ ├── bson_utf8_validate.html │ │ │ │ │ ├── bson_validate.html │ │ │ │ │ ├── bson_value_copy.html │ │ │ │ │ ├── bson_value_destroy.html │ │ │ │ │ ├── bson_value_t.html │ │ │ │ │ ├── bson_visitor_t.html │ │ │ │ │ ├── bson_vsnprintf.html │ │ │ │ │ ├── bson_writer_begin.html │ │ │ │ │ ├── bson_writer_destroy.html │ │ │ │ │ ├── bson_writer_end.html │ │ │ │ │ ├── bson_writer_get_length.html │ │ │ │ │ ├── bson_writer_new.html │ │ │ │ │ ├── bson_writer_rollback.html │ │ │ │ │ ├── bson_writer_t.html │ │ │ │ │ ├── bson_zero_free.html │ │ │ │ │ ├── clock.html │ │ │ │ │ ├── creating.html │ │ │ │ │ ├── endianness.html │ │ │ │ │ ├── errors.html │ │ │ │ │ ├── index.html │ │ │ │ │ ├── installing.html │ │ │ │ │ ├── jquery.js │ │ │ │ │ ├── jquery.syntax.brush.clang.js │ │ │ │ │ ├── jquery.syntax.core.js │ │ │ │ │ ├── jquery.syntax.js │ │ │ │ │ ├── jquery.syntax.layout.yelp.js │ │ │ │ │ ├── json.html │ │ │ │ │ ├── memory.html │ │ │ │ │ ├── oid.html │ │ │ │ │ ├── parsing.html │ │ │ │ │ ├── performance.html │ │ │ │ │ ├── streaming-bson.html │ │ │ │ │ ├── threading.html │ │ │ │ │ ├── utf8.html │ │ │ │ │ ├── version.html │ │ │ │ │ ├── yelp-note-tip.png │ │ │ │ │ ├── yelp-note-warning.png │ │ │ │ │ ├── yelp-note.png │ │ │ │ │ └── yelp.js │ │ │ │ ├── installing.page.in │ │ │ │ ├── mallard2man.py │ │ │ │ ├── man │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── bson_append_array.3 │ │ │ │ │ ├── bson_append_array_begin.3 │ │ │ │ │ ├── bson_append_array_end.3 │ │ │ │ │ ├── bson_append_binary.3 │ │ │ │ │ ├── bson_append_bool.3 │ │ │ │ │ ├── bson_append_code.3 │ │ │ │ │ ├── bson_append_code_with_scope.3 │ │ │ │ │ ├── bson_append_date_time.3 │ │ │ │ │ ├── bson_append_dbpointer.3 │ │ │ │ │ ├── bson_append_document.3 │ │ │ │ │ ├── bson_append_document_begin.3 │ │ │ │ │ ├── bson_append_document_end.3 │ │ │ │ │ ├── bson_append_double.3 │ │ │ │ │ ├── bson_append_int32.3 │ │ │ │ │ ├── bson_append_int64.3 │ │ │ │ │ ├── bson_append_iter.3 │ │ │ │ │ ├── bson_append_maxkey.3 │ │ │ │ │ ├── bson_append_minkey.3 │ │ │ │ │ ├── bson_append_now_utc.3 │ │ │ │ │ ├── bson_append_null.3 │ │ │ │ │ ├── bson_append_oid.3 │ │ │ │ │ ├── bson_append_regex.3 │ │ │ │ │ ├── bson_append_symbol.3 │ │ │ │ │ ├── bson_append_time_t.3 │ │ │ │ │ ├── bson_append_timestamp.3 │ │ │ │ │ ├── bson_append_timeval.3 │ │ │ │ │ ├── bson_append_undefined.3 │ │ │ │ │ ├── bson_append_utf8.3 │ │ │ │ │ ├── bson_append_value.3 │ │ │ │ │ ├── bson_as_json.3 │ │ │ │ │ ├── bson_check_version.3 │ │ │ │ │ ├── bson_compare.3 │ │ │ │ │ ├── bson_concat.3 │ │ │ │ │ ├── bson_context_destroy.3 │ │ │ │ │ ├── bson_context_get_default.3 │ │ │ │ │ ├── bson_context_new.3 │ │ │ │ │ ├── bson_context_t.3 │ │ │ │ │ ├── bson_copy.3 │ │ │ │ │ ├── bson_copy_to.3 │ │ │ │ │ ├── bson_copy_to_excluding.3 │ │ │ │ │ ├── bson_count_keys.3 │ │ │ │ │ ├── bson_destroy.3 │ │ │ │ │ ├── bson_destroy_with_steal.3 │ │ │ │ │ ├── bson_equal.3 │ │ │ │ │ ├── bson_error_t.3 │ │ │ │ │ ├── bson_free.3 │ │ │ │ │ ├── bson_get_data.3 │ │ │ │ │ ├── bson_get_major_version.3 │ │ │ │ │ ├── bson_get_micro_version.3 │ │ │ │ │ ├── bson_get_minor_version.3 │ │ │ │ │ ├── bson_get_version.3 │ │ │ │ │ ├── bson_has_field.3 │ │ │ │ │ ├── bson_init.3 │ │ │ │ │ ├── bson_init_from_json.3 │ │ │ │ │ ├── bson_init_static.3 │ │ │ │ │ ├── bson_iter_array.3 │ │ │ │ │ ├── bson_iter_as_bool.3 │ │ │ │ │ ├── bson_iter_as_int64.3 │ │ │ │ │ ├── bson_iter_binary.3 │ │ │ │ │ ├── bson_iter_bool.3 │ │ │ │ │ ├── bson_iter_code.3 │ │ │ │ │ ├── bson_iter_codewscope.3 │ │ │ │ │ ├── bson_iter_date_time.3 │ │ │ │ │ ├── bson_iter_dbpointer.3 │ │ │ │ │ ├── bson_iter_document.3 │ │ │ │ │ ├── bson_iter_double.3 │ │ │ │ │ ├── bson_iter_dup_utf8.3 │ │ │ │ │ ├── bson_iter_find.3 │ │ │ │ │ ├── bson_iter_find_case.3 │ │ │ │ │ ├── bson_iter_find_descendant.3 │ │ │ │ │ ├── bson_iter_init.3 │ │ │ │ │ ├── bson_iter_init_find.3 │ │ │ │ │ ├── bson_iter_init_find_case.3 │ │ │ │ │ ├── bson_iter_int32.3 │ │ │ │ │ ├── bson_iter_int64.3 │ │ │ │ │ ├── bson_iter_key.3 │ │ │ │ │ ├── bson_iter_next.3 │ │ │ │ │ ├── bson_iter_oid.3 │ │ │ │ │ ├── bson_iter_overwrite_bool.3 │ │ │ │ │ ├── bson_iter_overwrite_double.3 │ │ │ │ │ ├── bson_iter_overwrite_int32.3 │ │ │ │ │ ├── bson_iter_overwrite_int64.3 │ │ │ │ │ ├── bson_iter_recurse.3 │ │ │ │ │ ├── bson_iter_regex.3 │ │ │ │ │ ├── bson_iter_symbol.3 │ │ │ │ │ ├── bson_iter_t.3 │ │ │ │ │ ├── bson_iter_time_t.3 │ │ │ │ │ ├── bson_iter_timestamp.3 │ │ │ │ │ ├── bson_iter_timeval.3 │ │ │ │ │ ├── bson_iter_type.3 │ │ │ │ │ ├── bson_iter_utf8.3 │ │ │ │ │ ├── bson_iter_value.3 │ │ │ │ │ ├── bson_iter_visit_all.3 │ │ │ │ │ ├── bson_json_data_reader_ingest.3 │ │ │ │ │ ├── bson_json_data_reader_new.3 │ │ │ │ │ ├── bson_json_reader_destroy.3 │ │ │ │ │ ├── bson_json_reader_new.3 │ │ │ │ │ ├── bson_json_reader_new_from_fd.3 │ │ │ │ │ ├── bson_json_reader_new_from_file.3 │ │ │ │ │ ├── bson_json_reader_read.3 │ │ │ │ │ ├── bson_json_reader_t.3 │ │ │ │ │ ├── bson_malloc.3 │ │ │ │ │ ├── bson_malloc0.3 │ │ │ │ │ ├── bson_md5_append.3 │ │ │ │ │ ├── bson_md5_finish.3 │ │ │ │ │ ├── bson_md5_init.3 │ │ │ │ │ ├── bson_md5_t.3 │ │ │ │ │ ├── bson_mem_restore_vtable.3 │ │ │ │ │ ├── bson_mem_set_vtable.3 │ │ │ │ │ ├── bson_new.3 │ │ │ │ │ ├── bson_new_from_buffer.3 │ │ │ │ │ ├── bson_new_from_data.3 │ │ │ │ │ ├── bson_new_from_json.3 │ │ │ │ │ ├── bson_oid_compare.3 │ │ │ │ │ ├── bson_oid_copy.3 │ │ │ │ │ ├── bson_oid_equal.3 │ │ │ │ │ ├── bson_oid_get_time_t.3 │ │ │ │ │ ├── bson_oid_hash.3 │ │ │ │ │ ├── bson_oid_init.3 │ │ │ │ │ ├── bson_oid_init_from_data.3 │ │ │ │ │ ├── bson_oid_init_from_string.3 │ │ │ │ │ ├── bson_oid_init_sequence.3 │ │ │ │ │ ├── bson_oid_is_valid.3 │ │ │ │ │ ├── bson_oid_t.3 │ │ │ │ │ ├── bson_oid_to_string.3 │ │ │ │ │ ├── bson_reader_destroy.3 │ │ │ │ │ ├── bson_reader_destroy_func_t.3 │ │ │ │ │ ├── bson_reader_new_from_data.3 │ │ │ │ │ ├── bson_reader_new_from_fd.3 │ │ │ │ │ ├── bson_reader_new_from_file.3 │ │ │ │ │ ├── bson_reader_new_from_handle.3 │ │ │ │ │ ├── bson_reader_read.3 │ │ │ │ │ ├── bson_reader_read_func_t.3 │ │ │ │ │ ├── bson_reader_set_destroy_func.3 │ │ │ │ │ ├── bson_reader_set_read_func.3 │ │ │ │ │ ├── bson_reader_t.3 │ │ │ │ │ ├── bson_reader_tell.3 │ │ │ │ │ ├── bson_realloc.3 │ │ │ │ │ ├── bson_realloc_ctx.3 │ │ │ │ │ ├── bson_realloc_func.3 │ │ │ │ │ ├── bson_reinit.3 │ │ │ │ │ ├── bson_set_error.3 │ │ │ │ │ ├── bson_sized_new.3 │ │ │ │ │ ├── bson_snprintf.3 │ │ │ │ │ ├── bson_strdup.3 │ │ │ │ │ ├── bson_strdup_printf.3 │ │ │ │ │ ├── bson_strdupv_printf.3 │ │ │ │ │ ├── bson_strerror_r.3 │ │ │ │ │ ├── bson_strfreev.3 │ │ │ │ │ ├── bson_string_append.3 │ │ │ │ │ ├── bson_string_append_c.3 │ │ │ │ │ ├── bson_string_append_printf.3 │ │ │ │ │ ├── bson_string_append_unichar.3 │ │ │ │ │ ├── bson_string_free.3 │ │ │ │ │ ├── bson_string_new.3 │ │ │ │ │ ├── bson_string_t.3 │ │ │ │ │ ├── bson_string_truncate.3 │ │ │ │ │ ├── bson_strncpy.3 │ │ │ │ │ ├── bson_strndup.3 │ │ │ │ │ ├── bson_strnlen.3 │ │ │ │ │ ├── bson_subtype_t.3 │ │ │ │ │ ├── bson_t.3 │ │ │ │ │ ├── bson_type_t.3 │ │ │ │ │ ├── bson_uint32_to_string.3 │ │ │ │ │ ├── bson_unichar_t.3 │ │ │ │ │ ├── bson_utf8_escape_for_json.3 │ │ │ │ │ ├── bson_utf8_from_unichar.3 │ │ │ │ │ ├── bson_utf8_get_char.3 │ │ │ │ │ ├── bson_utf8_next_char.3 │ │ │ │ │ ├── bson_utf8_validate.3 │ │ │ │ │ ├── bson_validate.3 │ │ │ │ │ ├── bson_value_copy.3 │ │ │ │ │ ├── bson_value_destroy.3 │ │ │ │ │ ├── bson_value_t.3 │ │ │ │ │ ├── bson_visitor_t.3 │ │ │ │ │ ├── bson_vsnprintf.3 │ │ │ │ │ ├── bson_writer_begin.3 │ │ │ │ │ ├── bson_writer_destroy.3 │ │ │ │ │ ├── bson_writer_end.3 │ │ │ │ │ ├── bson_writer_get_length.3 │ │ │ │ │ ├── bson_writer_new.3 │ │ │ │ │ ├── bson_writer_rollback.3 │ │ │ │ │ ├── bson_writer_t.3 │ │ │ │ │ ├── bson_zero_free.3 │ │ │ │ │ ├── clock.3 │ │ │ │ │ ├── creating.3 │ │ │ │ │ ├── endianness.3 │ │ │ │ │ ├── errors.3 │ │ │ │ │ ├── index.3 │ │ │ │ │ ├── installing.3 │ │ │ │ │ ├── json.3 │ │ │ │ │ ├── memory.3 │ │ │ │ │ ├── oid.3 │ │ │ │ │ ├── parsing.3 │ │ │ │ │ ├── performance.3 │ │ │ │ │ ├── streaming-bson.3 │ │ │ │ │ ├── threading.3 │ │ │ │ │ ├── utf8.3 │ │ │ │ │ └── version.3 │ │ │ │ └── version.page.in │ │ │ ├── examples │ │ │ │ ├── Makefile.am │ │ │ │ ├── bcon-col-view.c │ │ │ │ ├── bcon-speed.c │ │ │ │ ├── bson-metrics.c │ │ │ │ ├── bson-streaming-reader.c │ │ │ │ ├── bson-to-json.c │ │ │ │ ├── bson-validate.c │ │ │ │ └── json-to-bson.c │ │ │ ├── src │ │ │ │ ├── Makefile.am │ │ │ │ ├── bson │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── b64_ntop.h │ │ │ │ │ ├── b64_pton.h │ │ │ │ │ ├── bcon.c │ │ │ │ │ ├── bcon.h │ │ │ │ │ ├── bson-atomic.c │ │ │ │ │ ├── bson-atomic.h │ │ │ │ │ ├── bson-clock.c │ │ │ │ │ ├── bson-clock.h │ │ │ │ │ ├── bson-compat.h │ │ │ │ │ ├── bson-config.h.in │ │ │ │ │ ├── bson-context-private.h │ │ │ │ │ ├── bson-context.c │ │ │ │ │ ├── bson-context.h │ │ │ │ │ ├── bson-endian.h │ │ │ │ │ ├── bson-error.c │ │ │ │ │ ├── bson-error.h │ │ │ │ │ ├── bson-iso8601-private.h │ │ │ │ │ ├── bson-iso8601.c │ │ │ │ │ ├── bson-iter.c │ │ │ │ │ ├── bson-iter.h │ │ │ │ │ ├── bson-json.c │ │ │ │ │ ├── bson-json.h │ │ │ │ │ ├── bson-keys.c │ │ │ │ │ ├── bson-keys.h │ │ │ │ │ ├── bson-macros.h │ │ │ │ │ ├── bson-md5.c │ │ │ │ │ ├── bson-md5.h │ │ │ │ │ ├── bson-memory.c │ │ │ │ │ ├── bson-memory.h │ │ │ │ │ ├── bson-oid.c │ │ │ │ │ ├── bson-oid.h │ │ │ │ │ ├── bson-private.h │ │ │ │ │ ├── bson-reader.c │ │ │ │ │ ├── bson-reader.h │ │ │ │ │ ├── bson-stdint-win32.h │ │ │ │ │ ├── bson-stdint.h │ │ │ │ │ ├── bson-string.c │ │ │ │ │ ├── bson-string.h │ │ │ │ │ ├── bson-thread-private.h │ │ │ │ │ ├── bson-timegm-private.h │ │ │ │ │ ├── bson-timegm.c │ │ │ │ │ ├── bson-types.h │ │ │ │ │ ├── bson-utf8.c │ │ │ │ │ ├── bson-utf8.h │ │ │ │ │ ├── bson-value.c │ │ │ │ │ ├── bson-value.h │ │ │ │ │ ├── bson-version-functions.c │ │ │ │ │ ├── bson-version-functions.h │ │ │ │ │ ├── bson-version.h │ │ │ │ │ ├── bson-version.h.in │ │ │ │ │ ├── bson-writer.c │ │ │ │ │ ├── bson-writer.h │ │ │ │ │ ├── bson.c │ │ │ │ │ └── bson.h │ │ │ │ ├── libbson-1.0.pc.in │ │ │ │ ├── libbson.symbols │ │ │ │ └── yajl │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── stackdriver_yajl.c │ │ │ │ │ ├── stackdriver_yajl_alloc.c │ │ │ │ │ ├── stackdriver_yajl_alloc.h │ │ │ │ │ ├── stackdriver_yajl_buf.c │ │ │ │ │ ├── stackdriver_yajl_buf.h │ │ │ │ │ ├── stackdriver_yajl_bytestack.h │ │ │ │ │ ├── stackdriver_yajl_common.h │ │ │ │ │ ├── stackdriver_yajl_encode.c │ │ │ │ │ ├── stackdriver_yajl_encode.h │ │ │ │ │ ├── stackdriver_yajl_gen.c │ │ │ │ │ ├── stackdriver_yajl_gen.h │ │ │ │ │ ├── stackdriver_yajl_lex.c │ │ │ │ │ ├── stackdriver_yajl_lex.h │ │ │ │ │ ├── stackdriver_yajl_parse.h │ │ │ │ │ ├── stackdriver_yajl_parser.c │ │ │ │ │ ├── stackdriver_yajl_parser.h │ │ │ │ │ ├── stackdriver_yajl_tree.c │ │ │ │ │ ├── stackdriver_yajl_tree.h │ │ │ │ │ ├── stackdriver_yajl_version.c │ │ │ │ │ └── stackdriver_yajl_version.h │ │ │ └── tests │ │ │ │ ├── Makefile.am │ │ │ │ ├── TestSuite.c │ │ │ │ ├── TestSuite.h │ │ │ │ ├── abicheck.sh │ │ │ │ ├── binary │ │ │ │ ├── binary_deprecated.bson │ │ │ │ ├── codewscope.bson │ │ │ │ ├── dollarquery.bson │ │ │ │ ├── dotkey.bson │ │ │ │ ├── dotquery.bson │ │ │ │ ├── eurokey.bson │ │ │ │ ├── overflow1.bson │ │ │ │ ├── overflow2.bson │ │ │ │ ├── overflow3.bson │ │ │ │ ├── overflow4.bson │ │ │ │ ├── readergrow.bson │ │ │ │ ├── stackoverflow.bson │ │ │ │ ├── stream.bson │ │ │ │ ├── stream_corrupt.bson │ │ │ │ ├── test1.bson │ │ │ │ ├── test10.bson │ │ │ │ ├── test11.bson │ │ │ │ ├── test12.bson │ │ │ │ ├── test13.bson │ │ │ │ ├── test14.bson │ │ │ │ ├── test15.bson │ │ │ │ ├── test16.bson │ │ │ │ ├── test17.bson │ │ │ │ ├── test18.bson │ │ │ │ ├── test19.bson │ │ │ │ ├── test2.bson │ │ │ │ ├── test20.bson │ │ │ │ ├── test21.bson │ │ │ │ ├── test22.bson │ │ │ │ ├── test23.bson │ │ │ │ ├── test24.bson │ │ │ │ ├── test25.bson │ │ │ │ ├── test26.bson │ │ │ │ ├── test27.bson │ │ │ │ ├── test28.bson │ │ │ │ ├── test29.bson │ │ │ │ ├── test3.bson │ │ │ │ ├── test30.bson │ │ │ │ ├── test31.bson │ │ │ │ ├── test32.bson │ │ │ │ ├── test33.bson │ │ │ │ ├── test34.bson │ │ │ │ ├── test35.bson │ │ │ │ ├── test36.bson │ │ │ │ ├── test37.bson │ │ │ │ ├── test38.bson │ │ │ │ ├── test39.bson │ │ │ │ ├── test4.bson │ │ │ │ ├── test40.bson │ │ │ │ ├── test41.bson │ │ │ │ ├── test42.bson │ │ │ │ ├── test43.bson │ │ │ │ ├── test44.bson │ │ │ │ ├── test45.bson │ │ │ │ ├── test46.bson │ │ │ │ ├── test47.bson │ │ │ │ ├── test48.bson │ │ │ │ ├── test49.bson │ │ │ │ ├── test5.bson │ │ │ │ ├── test50.bson │ │ │ │ ├── test51.bson │ │ │ │ ├── test52.bson │ │ │ │ ├── test53.bson │ │ │ │ ├── test54.bson │ │ │ │ ├── test55.bson │ │ │ │ ├── test56.bson │ │ │ │ ├── test57.bson │ │ │ │ ├── test6.bson │ │ │ │ ├── test7.bson │ │ │ │ ├── test8.bson │ │ │ │ ├── test9.bson │ │ │ │ └── trailingnull.bson │ │ │ │ ├── bson-tests.h │ │ │ │ ├── json │ │ │ │ └── test.json │ │ │ │ ├── test-atomic.c │ │ │ │ ├── test-bcon-basic.c │ │ │ │ ├── test-bcon-extract.c │ │ │ │ ├── test-bson.c │ │ │ │ ├── test-clock.c │ │ │ │ ├── test-endian.c │ │ │ │ ├── test-error.c │ │ │ │ ├── test-iso8601.c │ │ │ │ ├── test-iter.c │ │ │ │ ├── test-json.c │ │ │ │ ├── test-libbson.c │ │ │ │ ├── test-oid.c │ │ │ │ ├── test-reader.c │ │ │ │ ├── test-string.c │ │ │ │ ├── test-utf8.c │ │ │ │ ├── test-value.c │ │ │ │ ├── test-version.c │ │ │ │ └── test-writer.c │ │ ├── libmongoc-1.0.pc.in │ │ ├── libmongoc-priv.pc.in │ │ ├── libmongoc-ssl-1.0.pc.in │ │ ├── libmongoc.symbols │ │ ├── mongoc │ │ │ ├── Makefile.am │ │ │ ├── mongoc-array-private.h │ │ │ ├── mongoc-array.c │ │ │ ├── mongoc-async-cmd-private.h │ │ │ ├── mongoc-async-cmd.c │ │ │ ├── mongoc-async-private.h │ │ │ ├── mongoc-async.c │ │ │ ├── mongoc-b64-private.h │ │ │ ├── mongoc-b64.c │ │ │ ├── mongoc-buffer-private.h │ │ │ ├── mongoc-buffer.c │ │ │ ├── mongoc-bulk-operation-private.h │ │ │ ├── mongoc-bulk-operation.c │ │ │ ├── mongoc-bulk-operation.h │ │ │ ├── mongoc-client-pool-private.h │ │ │ ├── mongoc-client-pool.c │ │ │ ├── mongoc-client-pool.h │ │ │ ├── mongoc-client-private.h │ │ │ ├── mongoc-client.c │ │ │ ├── mongoc-client.h │ │ │ ├── mongoc-cluster-private.h │ │ │ ├── mongoc-cluster.c │ │ │ ├── mongoc-collection-private.h │ │ │ ├── mongoc-collection.c │ │ │ ├── mongoc-collection.h │ │ │ ├── mongoc-config.h.in │ │ │ ├── mongoc-counters-private.h │ │ │ ├── mongoc-counters.c │ │ │ ├── mongoc-counters.defs │ │ │ ├── mongoc-cursor-array-private.h │ │ │ ├── mongoc-cursor-array.c │ │ │ ├── mongoc-cursor-cursorid-private.h │ │ │ ├── mongoc-cursor-cursorid.c │ │ │ ├── mongoc-cursor-private.h │ │ │ ├── mongoc-cursor-transform-private.h │ │ │ ├── mongoc-cursor-transform.c │ │ │ ├── mongoc-cursor.c │ │ │ ├── mongoc-cursor.h │ │ │ ├── mongoc-database-private.h │ │ │ ├── mongoc-database.c │ │ │ ├── mongoc-database.h │ │ │ ├── mongoc-errno-private.h │ │ │ ├── mongoc-error.h │ │ │ ├── mongoc-find-and-modify-private.h │ │ │ ├── mongoc-find-and-modify.c │ │ │ ├── mongoc-find-and-modify.h │ │ │ ├── mongoc-flags.h │ │ │ ├── mongoc-gridfs-file-list-private.h │ │ │ ├── mongoc-gridfs-file-list.c │ │ │ ├── mongoc-gridfs-file-list.h │ │ │ ├── mongoc-gridfs-file-page-private.h │ │ │ ├── mongoc-gridfs-file-page.c │ │ │ ├── mongoc-gridfs-file-page.h │ │ │ ├── mongoc-gridfs-file-private.h │ │ │ ├── mongoc-gridfs-file.c │ │ │ ├── mongoc-gridfs-file.h │ │ │ ├── mongoc-gridfs-private.h │ │ │ ├── mongoc-gridfs.c │ │ │ ├── mongoc-gridfs.h │ │ │ ├── mongoc-host-list-private.h │ │ │ ├── mongoc-host-list.c │ │ │ ├── mongoc-host-list.h │ │ │ ├── mongoc-index.c │ │ │ ├── mongoc-index.h │ │ │ ├── mongoc-init.c │ │ │ ├── mongoc-init.h │ │ │ ├── mongoc-iovec.h │ │ │ ├── mongoc-list-private.h │ │ │ ├── mongoc-list.c │ │ │ ├── mongoc-log-private.h │ │ │ ├── mongoc-log.c │ │ │ ├── mongoc-log.h │ │ │ ├── mongoc-matcher-op-private.h │ │ │ ├── mongoc-matcher-op.c │ │ │ ├── mongoc-matcher-private.h │ │ │ ├── mongoc-matcher.c │ │ │ ├── mongoc-matcher.h │ │ │ ├── mongoc-memcmp-private.h │ │ │ ├── mongoc-memcmp.c │ │ │ ├── mongoc-opcode-private.h │ │ │ ├── mongoc-opcode.c │ │ │ ├── mongoc-opcode.h │ │ │ ├── mongoc-queue-private.h │ │ │ ├── mongoc-queue.c │ │ │ ├── mongoc-rand-private.h │ │ │ ├── mongoc-rand.c │ │ │ ├── mongoc-rand.h │ │ │ ├── mongoc-read-concern-private.h │ │ │ ├── mongoc-read-concern.c │ │ │ ├── mongoc-read-concern.h │ │ │ ├── mongoc-read-prefs-private.h │ │ │ ├── mongoc-read-prefs.c │ │ │ ├── mongoc-read-prefs.h │ │ │ ├── mongoc-rpc-private.h │ │ │ ├── mongoc-rpc.c │ │ │ ├── mongoc-sasl-private.h │ │ │ ├── mongoc-sasl.c │ │ │ ├── mongoc-scram-private.h │ │ │ ├── mongoc-scram.c │ │ │ ├── mongoc-server-description-private.h │ │ │ ├── mongoc-server-description.c │ │ │ ├── mongoc-server-description.h │ │ │ ├── mongoc-server-stream-private.h │ │ │ ├── mongoc-server-stream.c │ │ │ ├── mongoc-set-private.h │ │ │ ├── mongoc-set.c │ │ │ ├── mongoc-socket-private.h │ │ │ ├── mongoc-socket.c │ │ │ ├── mongoc-socket.h │ │ │ ├── mongoc-ssl-private.h │ │ │ ├── mongoc-ssl.c │ │ │ ├── mongoc-ssl.h │ │ │ ├── mongoc-stream-buffered.c │ │ │ ├── mongoc-stream-buffered.h │ │ │ ├── mongoc-stream-file.c │ │ │ ├── mongoc-stream-file.h │ │ │ ├── mongoc-stream-gridfs.c │ │ │ ├── mongoc-stream-gridfs.h │ │ │ ├── mongoc-stream-private.h │ │ │ ├── mongoc-stream-socket.c │ │ │ ├── mongoc-stream-socket.h │ │ │ ├── mongoc-stream-tls.c │ │ │ ├── mongoc-stream-tls.h │ │ │ ├── mongoc-stream.c │ │ │ ├── mongoc-stream.h │ │ │ ├── mongoc-thread-private.h │ │ │ ├── mongoc-topology-description-private.h │ │ │ ├── mongoc-topology-description.c │ │ │ ├── mongoc-topology-private.h │ │ │ ├── mongoc-topology-scanner-private.h │ │ │ ├── mongoc-topology-scanner.c │ │ │ ├── mongoc-topology.c │ │ │ ├── mongoc-trace.h │ │ │ ├── mongoc-uri-private.h │ │ │ ├── mongoc-uri.c │ │ │ ├── mongoc-uri.h │ │ │ ├── mongoc-util-private.h │ │ │ ├── mongoc-util.c │ │ │ ├── mongoc-version-functions.c │ │ │ ├── mongoc-version-functions.h │ │ │ ├── mongoc-version.h │ │ │ ├── mongoc-version.h.in │ │ │ ├── mongoc-write-command-private.h │ │ │ ├── mongoc-write-command.c │ │ │ ├── mongoc-write-concern-private.h │ │ │ ├── mongoc-write-concern.c │ │ │ ├── mongoc-write-concern.h │ │ │ ├── mongoc.h │ │ │ ├── op-delete.def │ │ │ ├── op-get-more.def │ │ │ ├── op-header.def │ │ │ ├── op-insert.def │ │ │ ├── op-kill-cursors.def │ │ │ ├── op-msg.def │ │ │ ├── op-query.def │ │ │ ├── op-reply.def │ │ │ ├── op-update.def │ │ │ └── utlist.h │ │ └── tools │ │ │ ├── Makefile.am │ │ │ └── mongoc-stat.c │ └── tests │ │ ├── Makefile.am │ │ ├── TestSuite.c │ │ ├── TestSuite.h │ │ ├── abicheck.sh │ │ ├── binary │ │ ├── delete1.dat │ │ ├── empty.dat │ │ ├── get_more1.dat │ │ ├── gridfs-large.dat │ │ ├── gridfs.dat │ │ ├── insert1.dat │ │ ├── kill_cursors1.dat │ │ ├── msg1.dat │ │ ├── query1.dat │ │ ├── query2.dat │ │ ├── reply1.dat │ │ ├── reply2.dat │ │ └── update1.dat │ │ ├── c_rehash │ │ ├── certificates │ │ ├── ca.pem │ │ └── client.pem │ │ ├── debug-stream.c │ │ ├── ha-test.c │ │ ├── ha-test.h │ │ ├── json-test.c │ │ ├── json-test.h │ │ ├── json │ │ ├── server_discovery_and_monitoring │ │ │ ├── rs │ │ │ │ ├── discover_arbiters.json │ │ │ │ ├── discover_passives.json │ │ │ │ ├── discover_primary.json │ │ │ │ ├── discover_secondary.json │ │ │ │ ├── discovery.json │ │ │ │ ├── equal_electionids.json │ │ │ │ ├── ghost_discovered.json │ │ │ │ ├── hosts_differ_from_seeds.json │ │ │ │ ├── member_reconfig.json │ │ │ │ ├── member_standalone.json │ │ │ │ ├── new_primary.json │ │ │ │ ├── new_primary_new_electionid.json │ │ │ │ ├── new_primary_wrong_set_name.json │ │ │ │ ├── non_rs_member.json │ │ │ │ ├── normalize_case.json │ │ │ │ ├── null_election_id.json │ │ │ │ ├── primary_becomes_standalone.json │ │ │ │ ├── primary_changes_set_name.json │ │ │ │ ├── primary_disconnect.json │ │ │ │ ├── primary_disconnect_electionid.json │ │ │ │ ├── primary_mismatched_me.json │ │ │ │ ├── primary_to_no_primary_mismatched_me.json │ │ │ │ ├── primary_wrong_set_name.json │ │ │ │ ├── response_from_removed.json │ │ │ │ ├── rsother_discovered.json │ │ │ │ ├── sec_not_auth.json │ │ │ │ ├── secondary_mismatched_me.json │ │ │ │ ├── secondary_wrong_set_name.json │ │ │ │ ├── secondary_wrong_set_name_with_primary.json │ │ │ │ ├── stepdown_change_set_name.json │ │ │ │ ├── unexpected_mongos.json │ │ │ │ └── wrong_set_name.json │ │ │ ├── sharded │ │ │ │ ├── mongos_disconnect.json │ │ │ │ ├── multiple_mongoses.json │ │ │ │ ├── non_mongos_removed.json │ │ │ │ └── normalize_uri_case.json │ │ │ ├── single │ │ │ │ ├── direct_connection_external_ip.json │ │ │ │ ├── direct_connection_mongos.json │ │ │ │ ├── direct_connection_rsarbiter.json │ │ │ │ ├── direct_connection_rsprimary.json │ │ │ │ ├── direct_connection_rssecondary.json │ │ │ │ ├── direct_connection_slave.json │ │ │ │ ├── direct_connection_standalone.json │ │ │ │ ├── not_ok_response.json │ │ │ │ ├── standalone_removed.json │ │ │ │ └── unavailable_seed.json │ │ │ └── supplemental │ │ │ │ ├── discover_rs_name.json │ │ │ │ ├── discover_rs_name_from_primary.json │ │ │ │ └── discover_rs_name_from_secondary.json │ │ └── server_selection │ │ │ ├── rtt │ │ │ ├── first_value.json │ │ │ ├── first_value_zero.json │ │ │ ├── value_test_1.json │ │ │ ├── value_test_2.json │ │ │ ├── value_test_3.json │ │ │ ├── value_test_4.json │ │ │ └── value_test_5.json │ │ │ └── server_selection │ │ │ ├── ReplicaSetNoPrimary │ │ │ ├── read │ │ │ │ ├── Nearest.json │ │ │ │ ├── Nearest_non_matching.json │ │ │ │ ├── Primary.json │ │ │ │ ├── PrimaryPreferred.json │ │ │ │ ├── PrimaryPreferred_non_matching.json │ │ │ │ ├── Secondary.json │ │ │ │ ├── SecondaryPreferred.json │ │ │ │ ├── SecondaryPreferred_non_matching.json │ │ │ │ └── Secondary_non_matching.json │ │ │ └── write │ │ │ │ └── SecondaryPreferred.json │ │ │ ├── ReplicaSetWithPrimary │ │ │ ├── read │ │ │ │ ├── Nearest.json │ │ │ │ ├── Nearest_non_matching.json │ │ │ │ ├── Primary.json │ │ │ │ ├── PrimaryPreferred.json │ │ │ │ ├── PrimaryPreferred_non_matching.json │ │ │ │ ├── Secondary.json │ │ │ │ ├── SecondaryPreferred.json │ │ │ │ ├── SecondaryPreferred_non_matching.json │ │ │ │ └── Secondary_non_matching.json │ │ │ └── write │ │ │ │ └── SecondaryPreferred.json │ │ │ ├── Sharded │ │ │ ├── read │ │ │ │ └── SecondaryPreferred.json │ │ │ └── write │ │ │ │ └── SecondaryPreferred.json │ │ │ ├── Single │ │ │ ├── read │ │ │ │ └── SecondaryPreferred.json │ │ │ └── write │ │ │ │ └── SecondaryPreferred.json │ │ │ └── Unknown │ │ │ ├── read │ │ │ └── SecondaryPreferred.json │ │ │ └── write │ │ │ └── SecondaryPreferred.json │ │ ├── make_ca.pl │ │ ├── mock_server │ │ ├── future-functions.c │ │ ├── future-functions.h │ │ ├── future-value.c │ │ ├── future-value.h │ │ ├── future.c │ │ ├── future.h │ │ ├── mock-rs.c │ │ ├── mock-rs.h │ │ ├── mock-server.c │ │ ├── mock-server.h │ │ ├── request.c │ │ ├── request.h │ │ ├── sync-queue.c │ │ └── sync-queue.h │ │ ├── mongoc-tests.c │ │ ├── mongoc-tests.h │ │ ├── ssl-test.c │ │ ├── ssl-test.h │ │ ├── test-bulk.c │ │ ├── test-conveniences.c │ │ ├── test-conveniences.h │ │ ├── test-libmongoc.c │ │ ├── test-libmongoc.h │ │ ├── test-load.c │ │ ├── test-mongoc-array.c │ │ ├── test-mongoc-async.c │ │ ├── test-mongoc-buffer.c │ │ ├── test-mongoc-client-pool.c │ │ ├── test-mongoc-client.c │ │ ├── test-mongoc-cluster.c │ │ ├── test-mongoc-collection-find.c │ │ ├── test-mongoc-collection.c │ │ ├── test-mongoc-cursor.c │ │ ├── test-mongoc-database.c │ │ ├── test-mongoc-exhaust.c │ │ ├── test-mongoc-find-and-modify.c │ │ ├── test-mongoc-gridfs-file-page.c │ │ ├── test-mongoc-gridfs.c │ │ ├── test-mongoc-list.c │ │ ├── test-mongoc-log.c │ │ ├── test-mongoc-matcher.c │ │ ├── test-mongoc-queue.c │ │ ├── test-mongoc-read-prefs.c │ │ ├── test-mongoc-rpc.c │ │ ├── test-mongoc-sdam.c │ │ ├── test-mongoc-server-selection-errors.c │ │ ├── test-mongoc-server-selection.c │ │ ├── test-mongoc-set.c │ │ ├── test-mongoc-socket.c │ │ ├── test-mongoc-stream-tls-error.c │ │ ├── test-mongoc-stream-tls.c │ │ ├── test-mongoc-stream.c │ │ ├── test-mongoc-thread.c │ │ ├── test-mongoc-topology-reconcile.c │ │ ├── test-mongoc-topology-scanner.c │ │ ├── test-mongoc-topology.c │ │ ├── test-mongoc-uri.c │ │ ├── test-mongoc-usleep.c │ │ ├── test-mongoc-version.c │ │ ├── test-mongoc-write-concern.c │ │ ├── test-replica-set-ssl.c │ │ ├── test-replica-set.c │ │ ├── test-sasl.c │ │ ├── test-secondary.c │ │ ├── test-sharded-cluster.c │ │ ├── test-write-commands.c │ │ ├── test-x509.c │ │ └── trust_dir.cnf ├── liboconfig │ ├── AUTHORS │ ├── COPYING │ ├── ChangeLog │ ├── aux_types.h │ ├── oconfig.c │ ├── oconfig.h │ ├── parser.y │ └── scanner.l ├── load.c ├── log_logstash.c ├── logfile.c ├── lpar.c ├── lua.c ├── lvm.c ├── madwifi.c ├── madwifi.h ├── match_empty_counter.c ├── match_hashed.c ├── match_regex.c ├── match_throttle_metadata_keys.c ├── match_timediff.c ├── match_value.c ├── mbmon.c ├── mcelog.c ├── md.c ├── memcachec.c ├── memcached.c ├── memory.c ├── mic.c ├── modbus.c ├── mongodb.c ├── mqtt.c ├── msr-index.h ├── multimeter.c ├── mysql.c ├── netapp.c ├── netlink.c ├── network.c ├── network.h ├── nfs.c ├── nginx.c ├── notify_desktop.c ├── notify_email.c ├── notify_nagios.c ├── ntpd.c ├── numa.c ├── nut.c ├── olsrd.c ├── onewire.c ├── openldap.c ├── openvpn.c ├── oracle.c ├── ovs_events.c ├── ovs_stats.c ├── perl.c ├── pf.c ├── pinba.c ├── pinba.proto ├── ping.c ├── plugin_mem.c ├── postgresql.c ├── postgresql_default.conf ├── powerdns.c ├── processes.c ├── protocols.c ├── pyconfig.c ├── python.c ├── pyvalues.c ├── read_agent_logging.in ├── redis.c ├── routeros.c ├── rrdcached.c ├── rrdtool.c ├── sensors.c ├── serial.c ├── sigrok.c ├── smart.c ├── snmp.c ├── snmp_agent.c ├── stackdriver-agent-keys.h ├── stackdriver_agent.c ├── statsd.c ├── swap.c ├── synproxy.c ├── syslog.c ├── table.c ├── tail.c ├── tail_csv.c ├── tape.c ├── target_notification.c ├── target_replace.c ├── target_scale.c ├── target_set.c ├── target_v5upgrade.c ├── tcpconns.c ├── teamspeak2.c ├── ted.c ├── testing.h ├── thermal.c ├── threshold.c ├── time_series_summary_test.json ├── tokyotyrant.c ├── turbostat.c ├── types.db ├── types.db.pod ├── unixsock.c ├── uptime.c ├── users.c ├── utils_cmd_flush.c ├── utils_cmd_flush.h ├── utils_cmd_getthreshold.c ├── utils_cmd_getthreshold.h ├── utils_cmd_getval.c ├── utils_cmd_getval.h ├── utils_cmd_listval.c ├── utils_cmd_listval.h ├── utils_cmd_putnotif.c ├── utils_cmd_putnotif.h ├── utils_cmd_putval.c ├── utils_cmd_putval.h ├── utils_cmds.c ├── utils_cmds.h ├── utils_cmds_test.c ├── utils_config_cores.c ├── utils_config_cores.h ├── utils_config_cores_test.c ├── utils_crc32.c ├── utils_crc32.h ├── utils_curl_stats.c ├── utils_curl_stats.h ├── utils_db_query.c ├── utils_db_query.h ├── utils_dns.c ├── utils_dns.h ├── utils_dpdk.c ├── utils_dpdk.h ├── utils_fbhash.c ├── utils_fbhash.h ├── utils_format_graphite.c ├── utils_format_graphite.h ├── utils_format_graphite_test.c ├── utils_format_json.c ├── utils_format_json.h ├── utils_format_json_test.c ├── utils_format_kairosdb.c ├── utils_format_kairosdb.h ├── utils_ignorelist.c ├── utils_ignorelist.h ├── utils_latency.c ├── utils_latency.h ├── utils_latency_config.c ├── utils_latency_config.h ├── utils_latency_test.c ├── utils_lua.c ├── utils_lua.h ├── utils_match.c ├── utils_match.h ├── utils_mount.c ├── utils_mount.h ├── utils_mount_test.c ├── utils_ovs.c ├── utils_ovs.h ├── utils_parse_option.c ├── utils_parse_option.h ├── utils_rrdcreate.c ├── utils_rrdcreate.h ├── utils_stackdriver_json.c ├── utils_stackdriver_json.h ├── utils_stackdriver_json_test.c ├── utils_tail.c ├── utils_tail.h ├── utils_tail_match.c ├── utils_tail_match.h ├── utils_vl_lookup.c ├── utils_vl_lookup.h ├── utils_vl_lookup_test.c ├── uuid.c ├── valgrind.FreeBSD.suppress ├── varnish.c ├── virt.c ├── virt_test.c ├── vmem.c ├── vserver.c ├── wireless.c ├── write_gcm.c ├── write_graphite.c ├── write_http.c ├── write_kafka.c ├── write_log.c ├── write_mongodb.c ├── write_prometheus.c ├── write_redis.c ├── write_riemann.c ├── write_riemann_threshold.c ├── write_riemann_threshold.h ├── write_sensu.c ├── write_tsdb.c ├── xencpu.c ├── xmms.c ├── zfs_arc.c ├── zone.c └── zookeeper.c ├── stackdriver └── README.md ├── testwrapper.sh └── version-gen.sh /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: LLVM 3 | IncludeCategories: 4 | - Regex: '"collectd.h"' 5 | - Priority: -1 6 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | * Version of collectd: 2 | * Operating system / distribution: 3 | 4 | ## Expected behavior 5 | 6 | (Description of the behavior / output that you expected) 7 | 8 | ## Actual behavior 9 | 10 | (Description of the behavior / output that you observed) 11 | 12 | ## Steps to reproduce 13 | 14 | * step 1 15 | * step 2 16 | * step 3 17 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | Anthony 2 | Florian Forster 3 | Florian Forster 4 | Luboš Staněk 5 | Luboš Staněk 6 | Niki W. Waibel 7 | Sebastian Harl 8 | Rodolphe Quiedeville 9 | 10 | -------------------------------------------------------------------------------- /bindings/perl/Makefile.PL: -------------------------------------------------------------------------------- 1 | use ExtUtils::MakeMaker; 2 | 3 | WriteMakefile( 4 | NAME => 'Collectd', 5 | AUTHOR => 'Sebastian Harl ', 6 | TEST_REQUIRES => { 'YAML::Any' => 0 }, 7 | ); 8 | 9 | # vim: set sw=4 ts=4 tw=78 noexpandtab : 10 | -------------------------------------------------------------------------------- /bindings/perl/t/00_load.t: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | use Test::More tests => 1; 6 | use_ok 'Collectd::Unixsock'; 7 | -------------------------------------------------------------------------------- /bindings/perl/uninstall_mod.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | 3 | use strict; 4 | use ExtUtils::Installed; 5 | 6 | my $mod = $ARGV[0] || die "Usage : $0 Module\n"; 7 | my $inst = ExtUtils::Installed->new(); 8 | unlink $inst->files($mod), $inst->packlist($mod)->packlist_file(); 9 | -------------------------------------------------------------------------------- /contrib/SpamAssassin/example.cf: -------------------------------------------------------------------------------- 1 | collectd_buffersize 256 2 | collectd_socket /var/run/collectd-email 3 | collectd_timeout 2 4 | collectd_retries 3 5 | 6 | -------------------------------------------------------------------------------- /contrib/collectd2html.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/contrib/collectd2html.pl -------------------------------------------------------------------------------- /contrib/collection.conf: -------------------------------------------------------------------------------- 1 | datadir: "/opt/collectd/var/lib/collectd/rrd/" 2 | libdir: "/opt/collectd/lib/collectd/" 3 | 4 | -------------------------------------------------------------------------------- /contrib/collection3/bin/.htaccess: -------------------------------------------------------------------------------- 1 | Options +ExecCGI 2 | AddHandler cgi-script .cgi 3 | -------------------------------------------------------------------------------- /contrib/collection3/etc/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all 2 | -------------------------------------------------------------------------------- /contrib/collection3/lib/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all 2 | -------------------------------------------------------------------------------- /contrib/collection3/share/.htaccess: -------------------------------------------------------------------------------- 1 | Options -ExecCGI 2 | SetHandler none 3 | -------------------------------------------------------------------------------- /contrib/collection3/share/shortcut-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/contrib/collection3/share/shortcut-icon.png -------------------------------------------------------------------------------- /contrib/curl_json/php-fpm.conf: -------------------------------------------------------------------------------- 1 | # Example configuration for PHP-FPM 2 | 3 | 4 | Plugin "phpfpm" 5 | Instance "main" 6 | 7 | Type "total_requests" 8 | Instance "accepted" 9 | 10 | 11 | Type "total_requests" 12 | Instance "slow" 13 | 14 | 15 | Type "queue_length" 16 | Instance "listen" 17 | 18 | 19 | Type "vs_processes" 20 | Instance "active" 21 | 22 | 23 | Type "vs_processes" 24 | Instance "total" 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /contrib/docker/50docker-apt-conf: -------------------------------------------------------------------------------- 1 | APT::Install-Recommends "0"; 2 | APT::Install-Suggests "0"; 3 | APT::Get::Assume-Yes "1"; 4 | APT::Get::AutomaticRemove "1"; 5 | -------------------------------------------------------------------------------- /contrib/docker/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:stable 2 | 3 | ENV DEBIAN_FRONTEND noninteractive 4 | COPY 50docker-apt-conf /etc/apt/apt.conf.d/ 5 | 6 | COPY rootfs_prefix/ /usr/src/rootfs_prefix/ 7 | 8 | RUN apt-get update \ 9 | && apt-get upgrade \ 10 | && apt-get install \ 11 | collectd-core \ 12 | collectd-utils \ 13 | build-essential \ 14 | && make -C /usr/src/rootfs_prefix/ \ 15 | && apt-get --purge remove build-essential \ 16 | && apt-get clean \ 17 | && rm -rf /var/lib/apt/lists/* 18 | 19 | COPY collectd.conf /etc/collectd/collectd.conf 20 | COPY collectd.conf.d /etc/collectd/collectd.conf.d 21 | 22 | ENV LD_PRELOAD /usr/src/rootfs_prefix/rootfs_prefix.so 23 | 24 | CMD [ "/usr/sbin/collectd", "-f"] 25 | -------------------------------------------------------------------------------- /contrib/docker/collectd.conf: -------------------------------------------------------------------------------- 1 | LoadPlugin logfile 2 | 3 | LogLevel "info" 4 | File STDOUT 5 | Timestamp true 6 | PrintSeverity true 7 | 8 | 9 | LoadPlugin unixsock 10 | 11 | SocketGroup "nogroup" 12 | 13 | 14 | 15 | Filter "*.conf" 16 | 17 | -------------------------------------------------------------------------------- /contrib/docker/collectd.conf.d/sample.conf: -------------------------------------------------------------------------------- 1 | LoadPlugin cpu 2 | LoadPlugin memory 3 | LoadPlugin disk 4 | LoadPlugin df 5 | -------------------------------------------------------------------------------- /contrib/docker/rootfs_prefix/.gitignore: -------------------------------------------------------------------------------- 1 | rootprefix.so 2 | -------------------------------------------------------------------------------- /contrib/docker/rootfs_prefix/Makefile: -------------------------------------------------------------------------------- 1 | rootfs_prefix.so: rootfs_prefix.c 2 | $(CC) -Wall -Werror -fPIC -shared -o rootfs_prefix.so rootfs_prefix.c -ldl 3 | -------------------------------------------------------------------------------- /contrib/exec-munin.conf: -------------------------------------------------------------------------------- 1 | AddType temperature temperature 2 | 3 | Interval 300 4 | 5 | Script /tmp/ipmisens2 6 | Script /tmp/munin-sensors.pl 7 | -------------------------------------------------------------------------------- /contrib/exec-nagios.conf: -------------------------------------------------------------------------------- 1 | # Run `perldoc exec-nagios.px' for details on this config file. 2 | 3 | NRPEConfig /etc/nrpe.cfg 4 | 5 | Interval 300 6 | 7 | 11 | 12 | 16 | -------------------------------------------------------------------------------- /contrib/format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script sends files to a web service using POST requests and reads back 4 | # the correctly formatted source files. This allows to apply clang-format 5 | # without having to install the tool locally. 6 | 7 | if test $# -lt 1; then 8 | echo "Usage $0 [ ...]" 9 | exit 1 10 | fi 11 | 12 | for i in "$@"; do 13 | d="`dirname "${i}"`" 14 | o="`TMPDIR="${d}" mktemp format.XXXXXX`" 15 | 16 | curl --silent --data-binary "@-" https://format.collectd.org/ <"${i}" >"${o}" 17 | if test $? -eq 0; then 18 | cat "${o}" >"${i}" 19 | fi 20 | rm -f "${o}" 21 | done 22 | -------------------------------------------------------------------------------- /contrib/iptables/accounting.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Simple script that sets up some chains in mangle table to do global logging of all 3 | #traffic going in and out of an interface 4 | #Could also use the regular input/output tree but this also catches the forwarded nat traffic 5 | 6 | IT="iptables -t mangle" 7 | 8 | #First clear the old stuff 9 | $IT -F incoming 10 | $IT -F outgoing 11 | $IT -N incoming 12 | $IT -N outgoing 13 | 14 | $IT -D PREROUTING -i eth0 -j incoming 15 | $IT -D POSTROUTING -o eth0 -j outgoing 16 | 17 | #should add some arg == stop exit here... 18 | 19 | $IT -A PREROUTING -i eth0 -j incoming 20 | $IT -A POSTROUTING -o eth0 -j outgoing 21 | 22 | $IT -A incoming -p tcp -m comment --comment "tcp" 23 | $IT -A incoming -p udp -m comment --comment "udp" 24 | $IT -A incoming -p icmp -m comment --comment "icmp" 25 | 26 | $IT -A outgoing -p tcp -m comment --comment "tcp" 27 | $IT -A outgoing -p udp -m comment --comment "udp" 28 | $IT -A outgoing -p icmp -m comment --comment "icmp" 29 | 30 | -------------------------------------------------------------------------------- /contrib/python/getsigchld.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | ############################################################################### 4 | # WARNING! Importing this script will break the exec plugin! # 5 | ############################################################################### 6 | # Use this if you want to create new processes from your python scripts. # 7 | # Normally you will get a OSError exception when the new process terminates # 8 | # because collectd will ignore the SIGCHLD python is waiting for. # 9 | # This script will restore the default SIGCHLD behavior so python scripts can # 10 | # create new processes without errors. # 11 | ############################################################################### 12 | # WARNING! Importing this script will break the exec plugin! # 13 | ############################################################################### 14 | 15 | import signal 16 | import collectd 17 | 18 | def init(): 19 | signal.signal(signal.SIGCHLD, signal.SIG_DFL) 20 | 21 | collectd.register_init(init) 22 | -------------------------------------------------------------------------------- /contrib/redhat/collection3.conf: -------------------------------------------------------------------------------- 1 | Alias /collection3/ /var/www/collection3/ 2 | 3 | Options +Indexes 4 | AllowOverride all 5 | 6 | -------------------------------------------------------------------------------- /contrib/redhat/php-collection.conf: -------------------------------------------------------------------------------- 1 | Alias /php-collection/ /var/www/php-collection/ 2 | 3 | DirectoryIndex index.php 4 | Options -Indexes 5 | AddType application/x-httpd-php .php 6 | 7 | -------------------------------------------------------------------------------- /contrib/solaris-smf/collectd: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | PIDFILE=/opt/collectd/var/run/collectd.pid 4 | DAEMON=/opt/collectd/sbin/collectd 5 | 6 | . /lib/svc/share/smf_include.sh 7 | 8 | case "$1" in 9 | start) 10 | if [ -f $PIDFILE ] ; then 11 | echo "Already running. Stale PID file?" 12 | PID=`cat $PIDFILE` 13 | echo "$PIDFILE contains $PID" 14 | ps -p $PID 15 | exit $SMF_EXIT_ERR_FATAL 16 | fi 17 | $DAEMON 18 | if [ $? -ne 0 ] ; then 19 | echo $DAEMON faild to start 20 | exit $SMF_EXIT_ERR_FATAL 21 | fi 22 | ;; 23 | stop) 24 | PID=`cat $PIDFILE 2>/dev/null` 25 | kill -15 $PID 2>/dev/null 26 | pwait $PID 1> /dev/null 2>/dev/null 27 | ;; 28 | restart) 29 | $0 stop 30 | $0 start 31 | ;; 32 | status) 33 | ps -ef | grep collectd | grep -v status | grep -v grep 34 | ;; 35 | *) 36 | echo "Usage: $0 [ start | stop | restart | status ]" 37 | exit 1 38 | ;; 39 | esac 40 | 41 | 42 | exit $SMF_EXIT_OK 43 | -------------------------------------------------------------------------------- /m4/.gitignore: -------------------------------------------------------------------------------- 1 | !.gitignore 2 | -------------------------------------------------------------------------------- /src/collectdctl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/collectdctl.c -------------------------------------------------------------------------------- /src/collectdctl.pod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/collectdctl.pod -------------------------------------------------------------------------------- /src/hddtemp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/hddtemp.c -------------------------------------------------------------------------------- /src/libcollectdclient/libcollectdclient.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libcollectdclient 7 | Description: Client library for the unixsock plugin of collectd. 8 | Version: @LCC_VERSION_STRING@ 9 | URL: http://collectd.org/ 10 | Libs: -L${libdir} -lcollectdclient 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /src/libmongoc/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/AUTHORS -------------------------------------------------------------------------------- /src/libmongoc/VERSION_CURRENT: -------------------------------------------------------------------------------- 1 | 1.3.5 -------------------------------------------------------------------------------- /src/libmongoc/VERSION_RELEASED: -------------------------------------------------------------------------------- 1 | 1.3.5 -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/AutomaticInitAndCleanup.m4: -------------------------------------------------------------------------------- 1 | AS_IF([test "$enable_automatic_init_and_cleanup" != "no"], [ 2 | AC_SUBST(MONGOC_NO_AUTOMATIC_GLOBALS, 0) 3 | ], [ 4 | AC_SUBST(MONGOC_NO_AUTOMATIC_GLOBALS, 1) 5 | ]) 6 | 7 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/CheckHost.m4: -------------------------------------------------------------------------------- 1 | AC_CANONICAL_HOST 2 | 3 | os_win32=no 4 | os_linux=no 5 | os_freebsd=no 6 | os_gnu=no 7 | 8 | case "$host" in 9 | *-mingw*|*-*-cygwin*) 10 | os_win32=yes 11 | TARGET_OS=windows 12 | ;; 13 | *-*-*netbsd*) 14 | os_netbsd=yes 15 | TARGET_OS=unix 16 | ;; 17 | *-*-*freebsd*) 18 | os_freebsd=yes 19 | TARGET_OS=unix 20 | ;; 21 | *-*-*openbsd*) 22 | os_openbsd=yes 23 | TARGET_OS=unix 24 | ;; 25 | *-*-linux*) 26 | os_linux=yes 27 | os_gnu=yes 28 | TARGET_OS=unix 29 | ;; 30 | *-*-solaris*) 31 | os_solaris=yes 32 | TARGET_OS=unix 33 | ;; 34 | *-*-darwin*) 35 | os_darwin=yes 36 | TARGET_OS=unix 37 | ;; 38 | gnu*|k*bsd*-gnu*) 39 | os_gnu=yes 40 | TARGET_OS=unix 41 | ;; 42 | *) 43 | AC_MSG_WARN([*** Please add $host to configure.ac checks!]) 44 | ;; 45 | esac 46 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/CheckProgs.m4: -------------------------------------------------------------------------------- 1 | AC_PATH_PROG(PERL, perl) 2 | if test -z "$PERL"; then 3 | AC_MSG_ERROR([You need 'perl' to compile libbson]) 4 | fi 5 | 6 | AC_PATH_PROG(MV, mv) 7 | if test -z "$MV"; then 8 | AC_MSG_ERROR([You need 'mv' to compile libbson]) 9 | fi 10 | 11 | AC_PATH_PROG(GREP, grep) 12 | if test -z "$GREP"; then 13 | AC_MSG_ERROR([You need 'grep' to compile libbson]) 14 | fi 15 | 16 | # Optional for documentation 17 | AC_PATH_PROG(YELP_BUILD, yelp-build) 18 | 19 | AC_PROG_INSTALL 20 | 21 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/CheckTarget.m4: -------------------------------------------------------------------------------- 1 | AC_CANONICAL_SYSTEM 2 | 3 | enable_crosscompile=no 4 | 5 | AC_SUBST(BSON_OS, 1) 6 | if test "$TARGET_OS" = "windows"; then 7 | AC_SUBST(BSON_OS, 2) 8 | fi 9 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/Coverage.m4: -------------------------------------------------------------------------------- 1 | COVERAGE_CFLAGS="" 2 | COVERAGE_LDFLAGS="" 3 | 4 | if test "$enable_coverage" = "yes"; then 5 | COVERAGE_CFLAGS="--coverage -g" 6 | COVERAGE_LDFLAGS="-lgcov" 7 | fi 8 | 9 | AC_SUBST(COVERAGE_CFLAGS) 10 | AC_SUBST(COVERAGE_LDFLAGS) 11 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/Optimizations.m4: -------------------------------------------------------------------------------- 1 | OPTIMIZE_CFLAGS="" 2 | OPTIMIZE_LDFLAGS="" 3 | 4 | dnl Check if we should use -Bsymbolic 5 | AS_IF([test "$enable_optimizations" != "no"], [ 6 | check_link_flag([-Wl,-Bsymbolic], [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"]) 7 | 8 | dnl Add the appropriate 'O' level for optimized builds. 9 | CFLAGS="$CFLAGS -O2" 10 | ]) 11 | 12 | AC_SUBST(OPTIMIZE_CFLAGS) 13 | AC_SUBST(OPTIMIZE_LDFLAGS) 14 | 15 | 16 | # Add '-g' flag to gcc to build with debug symbols. 17 | if test "$enable_debug_symbols" = "min"; then 18 | CFLAGS="$CFLAGS -g1" 19 | elif test "$enable_debug_symbols" != "no"; then 20 | CFLAGS="$CFLAGS -g" 21 | fi 22 | 23 | 24 | AS_IF([test $"enable_debug" = "no"], 25 | [CPPFLAGS="$CPPFLAGS -DBSON_DISABLE_ASSERT" 26 | CPPFLAGS="$CPPFLAGS -DBSON_DISABLE_CHECKS"]) 27 | 28 | AS_IF([test "$enable_tracing" = "yes"], 29 | [CPPFLAGS="$CPPFLAGS -DMONGOC_TRACE"]) 30 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/PlatformFlags.m4: -------------------------------------------------------------------------------- 1 | dnl check_cc_cxx_flag is defined in build/autotools/AutoHarden.m4 2 | dnl Ignore OpenSSL deprecation warnings on OSX 3 | AS_IF([test "$os_darwin" = "yes"], 4 | [check_cc_cxx_flag([-Wno-deprecated-declarations], [CFLAGS="$CFLAGS -Wno-deprecated-declarations"])]) 5 | dnl We know there are some cast-align issues on OSX 6 | AS_IF([test "$os_darwin" = "yes"], 7 | [check_cc_cxx_flag([-Wno-cast-align], [CFLAGS="$CFLAGS -Wno-cast-align"])]) 8 | AS_IF([test "$os_darwin" = "yes"], 9 | [check_cc_cxx_flag([-Wno-unneeded-internal-declaration], [CFLAGS="$CFLAGS -Wno-unneeded-internal-declaration"])]) 10 | dnl We know there are some cast-align issues on Solaris 11 | AS_IF([test "$os_solaris" = "yes"], 12 | [check_cc_cxx_flag([-Wno-cast-align], [CFLAGS="$CFLAGS -Wno-cast-align"])]) 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/SetupLibtool.m4: -------------------------------------------------------------------------------- 1 | LT_PREREQ([2.2]) 2 | 3 | AC_DISABLE_STATIC 4 | AC_LIBTOOL_WIN32_DLL 5 | AC_PROG_LIBTOOL 6 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/WeakSymbols.m4: -------------------------------------------------------------------------------- 1 | AC_MSG_CHECKING(if weak symbols are supported) 2 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 3 | __attribute__((weak)) void __dummy(void *x) { } 4 | void f(void *x) { __dummy(x); } 5 | ]], [[ ]] 6 | )], 7 | [AC_MSG_RESULT(yes) 8 | AC_SUBST(MONGOC_HAVE_WEAK_SYMBOLS, 1)], 9 | [AC_MSG_RESULT(no)]) 10 | -------------------------------------------------------------------------------- /src/libmongoc/build/autotools/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 | -------------------------------------------------------------------------------- /src/libmongoc/build/cmake/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST += \ 2 | build/cmake/FindSASL2.cmake \ 3 | build/cmake/FindBSON.cmake \ 4 | build/cmake/LoadVersion.cmake \ 5 | build/cmake/libmongoc.def \ 6 | build/cmake/libmongoc-ssl.def 7 | -------------------------------------------------------------------------------- /src/libmongoc/build/libbson.xsl: -------------------------------------------------------------------------------- 1 | 3 | 12 | 13 | 14 | 15 | 16 | 18 | http://api.mongodb.org/libbson/current/ 19 | 20 | .html 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/build/version.in: -------------------------------------------------------------------------------- 1 | @MONGOC_VERSION@ 2 | -------------------------------------------------------------------------------- /src/libmongoc/doc/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST += $(wildcard doc/*.page) build/libbson.xsl 2 | dist-hook: man html 3 | -------------------------------------------------------------------------------- /src/libmongoc/doc/html/Makefile.am: -------------------------------------------------------------------------------- 1 | BUILT_HTML_FILES = $(patsubst doc/%.page,doc/html/%.html,$(wildcard doc/*.page)) 2 | CLEANFILES += $(wildcard doc/html/*.html) 3 | CLEANFILES += $(wildcard doc/html/*.css) 4 | CLEANFILES += $(wildcard doc/html/*.js) 5 | CLEANFILES += $(wildcard doc/html/*.png) 6 | 7 | %.html: ../%.page 8 | $(AM_V_GEN)$(YELP_BUILD) html -o doc/html/ doc 9 | 10 | html: $(BUILT_HTML_FILES) 11 | 12 | YELP_HTML_FILES = \ 13 | doc/html/C.css \ 14 | doc/html/jquery.js \ 15 | doc/html/jquery.syntax.brush.clang.js \ 16 | doc/html/jquery.syntax.core.js \ 17 | doc/html/jquery.syntax.js \ 18 | doc/html/jquery.syntax.layout.yelp.js \ 19 | doc/html/yelp-note-tip.png \ 20 | doc/html/yelp-note-warning.png \ 21 | doc/html/yelp-note.png \ 22 | doc/html/yelp.js 23 | 24 | EXTRA_DIST += $(wildcard doc/html/*.html) 25 | EXTRA_DIST += $(wildcard doc/html/*.css) 26 | EXTRA_DIST += $(wildcard doc/html/*.js) 27 | -------------------------------------------------------------------------------- /src/libmongoc/doc/html/jquery.syntax.layout.yelp.js: -------------------------------------------------------------------------------- 1 | Syntax.layouts.yelp = function(options, code, container) { 2 | code.addClass('contents'); 3 | return code; 4 | }; 5 | -------------------------------------------------------------------------------- /src/libmongoc/doc/man/Makefile.am: -------------------------------------------------------------------------------- 1 | BUILT_MAN_FILES = $(patsubst doc/%.page,doc/man/%.3,$(wildcard doc/*.page)) 2 | CLEANFILES += $(wildcard doc/man/*.3) 3 | 4 | dist_man_MANS = $(BUILT_MAN_FILES) 5 | # Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals. 6 | # Unlike with other dist primaries, the files are not distributed if the 7 | # conditional is false. 8 | # Work the bug around until it is fixed: 9 | dist_noinst_DATA = $(dist_man_MANS) 10 | 11 | man3_MANS = $(BUILT_MAN_FILES) 12 | 13 | %.3: ../%.page 14 | $(AM_V_GEN)./doc/mallard2man.py 3 $^ 15 | 16 | man: $(BUILT_MAN_FILES) 17 | EXTRA_DIST += $(wildcard doc/man/*.3) \ 18 | doc/mallard2man.py 19 | -------------------------------------------------------------------------------- /src/libmongoc/doc/man/deleting-document.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "DELETING_A_DOCUMENT" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | Deleting_a_Document \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of MongoDB C Driver. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/executing-command.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "EXECUTING_COMMANDS" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | Executing_Commands \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of MongoDB C Driver. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/finding-document.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "FINDING_A_DOCUMENT" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | Finding_a_Document \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of MongoDB C Driver. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/index.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGODB_C_DRIVER" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | MongoDB_C_Driver \- A Cross Platform MongoDB Client Library for C 13 | .SH "INSTALLATION" 14 | 15 | .SH "TUTORIAL" 16 | 17 | .SH "BASIC OPERATIONS" 18 | 19 | .SH "ADVANCED CONNECTIONS" 20 | 21 | .SH "AUTHENTICATION" 22 | 23 | .SH "CURSORS" 24 | 25 | .SH "BULK OPERATIONS" 26 | 27 | .SH "AGGREGATION FRAMEWORK" 28 | 29 | .SH "CLIENT SIDE DOCUMENT MATCHING" 30 | 31 | .SH "TROUBLESHOOTING" 32 | 33 | .SH "API REFERENCE" 34 | 35 | 36 | .B 37 | .SH COLOPHON 38 | This page is part of MongoDB C Driver. 39 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/inserting-document.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "INSERTING_A_DOCUMENT" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | Inserting_a_Document \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of MongoDB C Driver. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_bulk_operation_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_BULK_OPERATION_DESTROY" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_bulk_operation_destroy() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | mongoc_bulk_operation_destroy (mongoc_bulk_operation_t *bulk); 19 | .fi 20 | .fi 21 | 22 | Destroys a 23 | .B mongoc_bulk_operation_t 24 | and frees the structure. 25 | 26 | .SH "PARAMETERS" 27 | 28 | .TP 29 | .B 30 | bulk 31 | A 32 | .B mongoc_bulk_operation_t 33 | \e&. 34 | .LP 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of MongoDB C Driver. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_client_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_CLIENT_DESTROY" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_client_destroy() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | mongoc_client_destroy (mongoc_client_t *client); 19 | .fi 20 | .fi 21 | 22 | Release all resources associated with 23 | .B client 24 | and free the structure. 25 | 26 | .SH "PARAMETERS" 27 | 28 | .TP 29 | .B 30 | client 31 | A 32 | .B mongoc_client_t 33 | \e&. 34 | .LP 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of MongoDB C Driver. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_client_pool_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_CLIENT_POOL_DESTROY" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_client_pool_destroy() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | mongoc_client_pool_destroy (mongoc_client_pool_t *pool); 19 | .fi 20 | .fi 21 | 22 | Release all resources associated with 23 | .B pool 24 | , including freeing the structure. 25 | 26 | .SH "PARAMETERS" 27 | 28 | .TP 29 | .B 30 | pool 31 | A 32 | .B mongoc_client_pool_t 33 | \e&. 34 | .LP 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of MongoDB C Driver. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_database_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_DATABASE_DESTROY" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_database_destroy() \- void 13 | mongoc_database_destroy (mongoc_database_t *database); 14 | .SH "SYNOPSIS" 15 | 16 | .nf 17 | .nf 18 | void 19 | mongoc_database_destroy (mongoc_database_t *database); 20 | .fi 21 | .fi 22 | 23 | Releases all resources associated with 24 | .B database 25 | , including freeing the structure. 26 | 27 | .SH "PARAMETERS" 28 | 29 | .TP 30 | .B 31 | database 32 | A 33 | .B mongoc_database_t 34 | \e&. 35 | .LP 36 | 37 | 38 | .B 39 | .SH COLOPHON 40 | This page is part of MongoDB C Driver. 41 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_database_get_name.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_DATABASE_GET_NAME" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_database_get_name() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const char * 18 | mongoc_database_get_name (mongoc_database_t *database); 19 | .fi 20 | .fi 21 | 22 | Fetches the name of the database. 23 | 24 | .SH "PARAMETERS" 25 | 26 | .TP 27 | .B 28 | database 29 | A 30 | .B mongoc_database_t 31 | \e&. 32 | .LP 33 | 34 | .SH "RETURNS" 35 | 36 | A string which should not be modified or freed. 37 | 38 | 39 | .B 40 | .SH COLOPHON 41 | This page is part of MongoDB C Driver. 42 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_get_major_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_GET_MAJOR_VERSION" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_get_major_version() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | mongoc_get_major_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | The value of 25 | .B MONGOC_MAJOR_VERSION 26 | when libmongoc was compiled. 27 | 28 | 29 | .B 30 | .SH COLOPHON 31 | This page is part of MongoDB C Driver. 32 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_get_micro_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_GET_MICRO_VERSION" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_get_micro_version() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | mongoc_get_micro_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | The value of 25 | .B MONGOC_MICRO_VERSION 26 | when libmongoc was compiled. 27 | 28 | 29 | .B 30 | .SH COLOPHON 31 | This page is part of MongoDB C Driver. 32 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_get_minor_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_GET_MINOR_VERSION" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_get_minor_version() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | mongoc_get_minor_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | The value of 25 | .B MONGOC_MINOR_VERSION 26 | when libmongoc was compiled. 27 | 28 | 29 | .B 30 | .SH COLOPHON 31 | This page is part of MongoDB C Driver. 32 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_get_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_GET_VERSION" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_get_version() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const char * 18 | mongoc_get_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | A string representation of libmongoc's version, formatted something like "1.2.3" or "1.2.3\(hydev". 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_index_opt_geo_get_default.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_INDEX_OPT_GEO_GET_DEFAULT" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_index_opt_geo_get_default() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const mongoc_index_opt_geo_t * 18 | mongoc_index_opt_geo_get_default (void) BSON_GNUC_CONST; 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | Returns a pointer to the default GEO index creation options. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_index_opt_get_default.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_INDEX_OPT_GET_DEFAULT" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_index_opt_get_default() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const mongoc_index_opt_t * 18 | mongoc_index_opt_get_default (void) BSON_GNUC_CONST; 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | Returns a pointer to the default index creation options. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_index_opt_wt_get_default.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_INDEX_OPT_WT_GET_DEFAULT" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_index_opt_wt_get_default() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const mongoc_index_opt_wt_t * 18 | mongoc_index_opt_wt_get_default (void) BSON_GNUC_CONST; 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | Returns a pointer to the default WiredTiger index creation options. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_rand_status.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_RAND_STATUS" "3" "2015\(hy09\(hy21" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_rand_status() \- The status of the mongoc random number generator. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | mongoc_rand_status(void); 19 | .fi 20 | .fi 21 | 22 | .SH "DESCRIPTION" 23 | 24 | The status of the mongoc random number generator. 25 | 26 | .SH "RETURNS" 27 | 28 | Returns 1 if the PRNG has been seeded with enough data, 0 otherwise. 29 | 30 | 31 | .B 32 | .SH COLOPHON 33 | This page is part of MongoDB C Driver. 34 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_read_concern_new.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_READ_CONCERN_NEW" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_read_concern_new() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | mongoc_read_concern_t * 18 | mongoc_read_concern_new (void); 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | Creates a newly allocated read concern that can be configured based on user preference. This should be freed with 25 | .B mongoc_read_concern_destroy(3) 26 | when no longer in use. 27 | 28 | 29 | .B 30 | .SH COLOPHON 31 | This page is part of MongoDB C Driver. 32 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_read_prefs_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_READ_PREFS_DESTROY" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_read_prefs_destroy() \- Frees a read preference and all associated resources. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | mongoc_read_prefs_destroy (mongoc_read_prefs_t *read_prefs); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | read_prefs 27 | A 28 | .B mongoc_read_prefs_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Frees a read preference and all associated resources. 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of MongoDB C Driver. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_socket_t.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_SOCKET_T" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_socket_t \- Portable socket abstraction 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | #include 18 | 19 | typedef struct _mongoc_socket_t mongoc_socket_t 20 | .fi 21 | .fi 22 | 23 | .SH "SYNOPSIS" 24 | 25 | This structure provides a socket abstraction that is friendlier for portability than BSD sockets directly. Inconsistencies between Linux, various BSDs, Solaris, and Windows are handled here. 26 | 27 | 28 | .B 29 | .SH COLOPHON 30 | This page is part of MongoDB C Driver. 31 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_ssl_opt_get_default.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_SSL_OPT_GET_DEFAULT" "3" "2015\(hy09\(hy21" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_ssl_opt_get_default() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const mongoc_ssl_opt_t * 18 | mongoc_ssl_opt_get_default (void) BSON_GNUC_CONST; 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | Returns the default SSL options for the process. This should not be modified or freed. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_stream_file_t.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_STREAM_FILE_T" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_stream_file_t \- typedef struct _mongoc_stream_file_t mongoc_stream_file_t 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | typedef struct _mongoc_stream_file_t mongoc_stream_file_t 18 | .fi 19 | .fi 20 | 21 | .B mongoc_stream_file_t 22 | is a 23 | .B mongoc_stream_t 24 | subclass for working with standard UNIX style file\(hydescriptors. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_stream_gridfs_t.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_STREAM_GRIDFS_T" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_stream_gridfs_t \- typedef struct _mongoc_stream_gridfs_t mongoc_stream_gridfs_t 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | typedef struct _mongoc_stream_gridfs_t mongoc_stream_gridfs_t 18 | .fi 19 | .fi 20 | 21 | The 22 | .B mongoc_stream_gridfs_t 23 | class is an implementation of 24 | .B mongoc_stream_t 25 | for files stored in GridFS. It allows for transparently streaming GridFS files from a MongoDB server. 26 | 27 | 28 | .B 29 | .SH COLOPHON 30 | This page is part of MongoDB C Driver. 31 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_stream_socket_t.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_STREAM_SOCKET_T" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_stream_socket_t \- typedef struct _mongoc_stream_socket_t mongoc_stream_socket_t 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | typedef struct _mongoc_stream_socket_t mongoc_stream_socket_t 18 | .fi 19 | .fi 20 | 21 | .B mongoc_stream_socket_t 22 | should be considered a subclass of 23 | .B mongoc_stream_t 24 | that works upon socket streams. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_stream_tls_t.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_STREAM_TLS_T" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_stream_tls_t \- typedef struct _mongoc_stream_tls_t mongoc_stream_tls_t 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | typedef struct _mongoc_stream_tls_t mongoc_stream_tls_t 18 | .fi 19 | .fi 20 | 21 | .B mongoc_stream_tls_t 22 | is a 23 | .B mongoc_stream_t 24 | subclass for working with OpenSSL TLS streams. 25 | 26 | 27 | .B 28 | .SH COLOPHON 29 | This page is part of MongoDB C Driver. 30 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_uri_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_URI_DESTROY" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_uri_destroy() \- Frees all resources associated with a uri. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | mongoc_uri_destroy (mongoc_uri_t *uri); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | uri 27 | A 28 | .B mongoc_uri_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Frees all resources associated with a uri. 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of MongoDB C Driver. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_uri_get_string.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_URI_GET_STRING" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_uri_get_string() \- Fetches the URI as a string. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const char * 18 | mongoc_uri_get_string (const mongoc_uri_t *uri); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | uri 27 | A 28 | .B mongoc_uri_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Fetches the URI as a string. 35 | 36 | .SH "RETURNS" 37 | 38 | Returns a string which should not be modified or freed. 39 | 40 | 41 | .B 42 | .SH COLOPHON 43 | This page is part of MongoDB C Driver. 44 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "VERSION_CHECKS" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | Version_Checks \- Conditional compilation based on mongoc version 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of MongoDB C Driver. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/mongoc_write_concern_new.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "MONGOC_WRITE_CONCERN_NEW" "3" "2016\(hy03\(hy16" "MongoDB C Driver" 11 | .SH NAME 12 | mongoc_write_concern_new() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | mongoc_write_concern_t * 18 | mongoc_write_concern_new (void); 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | Creates a newly allocated write concern that can be configured based on user preference. This should be freed with 25 | .B mongoc_write_concern_destroy(3) 26 | when no longer in use. 27 | 28 | 29 | .B 30 | .SH COLOPHON 31 | This page is part of MongoDB C Driver. 32 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/man/updating-document.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "UPDATING_A_DOCUMENT" "3" "2016\(hy03\(hy30" "MongoDB C Driver" 11 | .SH NAME 12 | Updating_a_Document \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of MongoDB C Driver. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulk_operation_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_bulk_operation_destroy() 15 | 16 |
17 | Synopsis 18 | 21 |

Destroys a mongoc_bulk_operation_t and frees the structure.

22 |
23 | 24 | 25 |
26 | Parameters 27 | 28 | 29 |

bulk

A mongoc_bulk_operation_t.

30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_cleanup.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_cleanup() 15 | 16 |
17 | Synopsis 18 | 21 |
22 | 23 |
24 | Description 25 |

This function is responsible for cleaning up after use of the MongoDB C driver. It will release any lingering allocated memory which can be useful when running under valgrind.

26 |
27 | 28 |
29 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_client_destroy() 15 | 16 |
17 | Synopsis 18 | 21 |

Release all resources associated with client and free the structure.

22 |
23 | 24 |
25 | Parameters 26 | 27 | 28 |

client

A mongoc_client_t.

29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_pool_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | mongoc_client_pool_destroy() 14 | 15 |
16 | Synopsis 17 | 20 |

Release all resources associated with pool, including freeing the structure.

21 |
22 | 23 |
24 | Parameters 25 | 26 | 27 |

pool

A mongoc_client_pool_t.

28 |
29 | 30 |
31 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_cursor_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_cursor_destroy() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Parameters 22 | 23 | 24 |

cursor

A mongoc_cursor_t.

25 |
26 | 27 |
28 | Description 29 |

Frees a mongoc_cursor_t and releases all associated resources. If a server-side cursor has been allocated, it will be released as well.

30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_database_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_database_destroy() 15 | 16 |
17 | Synopsis 18 | 21 |

Releases all resources associated with database, including freeing the structure.

22 |
23 | 24 |
25 | Parameters 26 | 27 | 28 |

database

A mongoc_database_t.

29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_database_get_name.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_database_get_name() 15 | 16 |
17 | Synopsis 18 | 20 |

Fetches the name of the database.

21 |
22 | 23 |
24 | Parameters 25 | 26 | 27 |

database

A mongoc_database_t.

28 |
29 | 30 |
31 | Returns 32 |

A string which should not be modified or freed.

33 |
34 | 35 |
36 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_delete_flags_t.page: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | mongoc_delete_flags_t 11 | Flags for deletion operations 12 | 13 |
14 | Synopsis 15 | 22 |
23 | 24 |
25 | Deprecated 26 |

These flags are deprecated and should not be used in new code.

27 |

Please use mongoc_remove_flags_t with mongoc_collection_remove() instead.

28 |
29 |
30 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_find_and_modify_opts_new.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | mongoc_find_and_modify_opts_new() 10 | 11 |
12 | Synopsis 13 | 16 |

New in mongoc 1.3.0

17 |
18 | 19 |
20 | Returns 21 |

Creates a newly allocated find and modify builder structure that is used to create a findAndModify command. This should be freed with mongoc_find_and_modify_opts_destroy() when no longer in use.

22 |
23 | 24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_major_version.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_get_major_version() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Returns 22 |

The value of MONGOC_MAJOR_VERSION when libmongoc was compiled.

23 |
24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_micro_version.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_get_micro_version() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Returns 22 |

The value of MONGOC_MICRO_VERSION when libmongoc was compiled.

23 |
24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_minor_version.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_get_minor_version() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Returns 22 |

The value of MONGOC_MINOR_VERSION when libmongoc was compiled.

23 |
24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_version.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_get_version() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Returns 22 |

A string representation of libmongoc's version, formatted something like "1.2.3" or "1.2.3-dev".

23 |
24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_gridfs_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_gridfs_destroy() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Parameters 22 | 23 | 24 |

gridfs

A mongoc_gridfs_t.

25 |
26 | 27 |
28 | Description 29 |

This function shall destroy the gridfs structure referenced by gridfs and any resources associated with the gridfs.

30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_gridfs_file_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_gridfs_file_destroy() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Parameters 22 | 23 | 24 |

file

A mongoc_gridfs_file_t.

25 |
26 | 27 |
28 | Description 29 |

Destroys the mongoc_gridfs_file_t instance and any resources associated with it.

30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_gridfs_file_list_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_gridfs_file_list_destroy() 12 | 13 |
14 | Synopsis 15 | 17 |
18 | 19 |
20 | Parameters 21 | 22 | 23 |

list

A mongoc_gridfs_file_list_t.

24 |
25 | 26 |
27 | Description 28 |

Frees a mongoc_gridfs_file_list_t and releases any associated resources.

29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_index_opt_geo_get_default.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_index_opt_geo_get_default() 15 | 16 |
17 | Synopsis 18 | 21 | 22 |
23 | 24 |
25 | Returns 26 |

Returns a pointer to the default GEO index creation options.

27 |
28 | 29 | 30 |
31 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_index_opt_get_default.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_index_opt_get_default() 15 | 16 |
17 | Synopsis 18 | 21 | 22 |
23 | 24 |
25 | Returns 26 |

Returns a pointer to the default index creation options.

27 |
28 | 29 | 30 |
31 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_index_opt_init.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_index_opt_init() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Parameters 22 | 23 | 24 |

opt

A mongoc_index_opt_t.

25 |
26 | 27 |
28 | Description 29 |

This function will initialize opt to the default values. It should be called before modifying any fields within the structure.

30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_index_opt_wt_get_default.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_index_opt_wt_get_default() 15 | 16 |
17 | Synopsis 18 | 21 | 22 |
23 | 24 |
25 | Returns 26 |

Returns a pointer to the default WiredTiger index creation options.

27 |
28 | 29 | 30 |
31 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_index_opt_wt_init.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_index_opt_wt_init() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Parameters 22 | 23 | 24 |

opt

A mongoc_index_opt_wt_t.

25 |
26 | 27 |
28 | Description 29 |

This function will initialize opt to the default values. It should be called before modifying any fields within the structure.

30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_init.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_init() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Description 22 |

This function should be called at the beginning of every program using the MongoDB C driver. It is responsible for initializing global state such as process counters, SSL, and threading primatives.

23 |

When your process has completed, you should also call mongoc_cleanup.

24 |
25 | 26 |
27 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_rand_seed.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_rand_seed() 15 | 16 |
17 | Synopsis 18 | 22 |
23 | 24 |
25 | Description 26 |

Seeds the mongoc random number generator with num bytes of entropy.

27 |
28 | 29 |
30 | Parameters 31 | 32 | 33 | 34 |

buf

A buffer.

num

An int of number of bytes in buf.

35 |
36 | 37 |
38 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_rand_status.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_rand_status() 15 | 16 |
17 | Synopsis 18 | 21 |
22 | 23 |
24 | Description 25 |

The status of the mongoc random number generator.

26 |
27 | 28 |
29 | Returns 30 |

Returns 1 if the PRNG has been seeded with enough data, 0 otherwise.

31 |
32 | 33 |
34 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_read_concern_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_read_concern_destroy() 12 | 13 |
14 | Synopsis 15 | 17 |
18 | 19 |
20 | Parameters 21 | 22 | 23 |

read_concern

A mongoc_read_concern_t.

24 |
25 | 26 |
27 | Description 28 |

Frees all resources associated with the read concern structure.

29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_read_concern_new.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_read_concern_new() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Returns 22 |

Creates a newly allocated read concern that can be configured based on user preference. This should be freed with mongoc_read_concern_destroy() when no longer in use.

23 |
24 | 25 |
26 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_read_prefs_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_read_prefs_destroy() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 | 21 |
22 | Parameters 23 | 24 | 25 |

read_prefs

A mongoc_read_prefs_t.

26 |
27 | 28 |
29 | Description 30 |

Frees a read preference and all associated resources.

31 |
32 | 33 |
34 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_socket_t.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | mongoc_socket_t 13 | Portable socket abstraction 14 | 15 |
16 | Synopsis 17 | 18 | 19 | typedef struct _mongoc_socket_t mongoc_socket_t]]> 20 |
21 | 22 |
23 | Synopsis 24 |

This structure provides a socket abstraction that is friendlier for portability than BSD sockets directly. Inconsistencies between Linux, various BSDs, Solaris, and Windows are handled here.

25 |
26 | 27 | 28 | Functions 29 | 30 |
31 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_ssl_opt_get_default.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | mongoc_ssl_opt_get_default() 15 | 16 |
17 | Synopsis 18 | 21 |
22 | 23 |
24 | Returns 25 |

Returns the default SSL options for the process. This should not be modified or freed.

26 |
27 | 28 | 29 |
30 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_buffered_t.page: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | mongoc_stream_buffered_t 9 | 10 |
11 | Synopsis 12 | 13 |
14 | 15 |
16 | Description 17 |

mongoc_stream_buffered_t should be considered a subclass of mongoc_stream_t. It performs buffering on an underlying stream.

18 |
19 | 20 |
21 | See Also 22 |

mongoc_stream_buffered_new()

23 |

mongoc_stream_destroy()

24 |
25 | 26 |
27 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_file_t.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | mongoc_stream_file_t 14 | 15 |
16 | Synopsis 17 | 18 |

mongoc_stream_file_t is a mongoc_stream_t subclass for working with standard UNIX style file-descriptors.

19 |
20 | 21 | 22 | Functions 23 | 24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_gridfs_t.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | mongoc_stream_gridfs_t 13 |
14 | Synopsis 15 | 16 |

The mongoc_stream_gridfs_t class is an implementation of mongoc_stream_t for files stored in GridFS. It allows for transparently streaming GridFS files from a MongoDB server.

17 |
18 | 19 | 20 | Functions 21 | 22 |
23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_socket_t.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | mongoc_stream_socket_t 14 | 15 |
16 | Synopsis 17 | 18 |

mongoc_stream_socket_t should be considered a subclass of mongoc_stream_t that works upon socket streams.

19 |
20 | 21 | 22 | Functions 23 | 24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_tls_t.page: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | mongoc_stream_tls_t 14 | 15 |
16 | Synopsis 17 | 18 |

mongoc_stream_tls_t is a mongoc_stream_t subclass for working with OpenSSL TLS streams.

19 |
20 | 21 | 22 | Functions 23 | 24 |
25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_uri_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_uri_destroy() 12 | 13 |
14 | Synopsis 15 | 17 |
18 | 19 |
20 | Parameters 21 | 22 | 23 |

uri

A mongoc_uri_t.

24 |
25 | 26 |
27 | Description 28 |

Frees all resources associated with a uri.

29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_write_concern_destroy.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_write_concern_destroy() 12 | 13 |
14 | Synopsis 15 | 17 |
18 | 19 |
20 | Parameters 21 | 22 | 23 |

write_concern

A mongoc_write_concern_t.

24 |
25 | 26 |
27 | Description 28 |

Frees all resources associated with the write concern structure.

29 |
30 | 31 |
32 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_write_concern_new.page: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | mongoc_write_concern_new() 12 | 13 |
14 | Synopsis 15 | 18 |
19 | 20 |
21 | Returns 22 |

Creates a newly allocated write concern that can be configured based on user preference. This should be freed with mongoc_write_concern_destroy() when no longer in use.

23 |
24 | 25 |
26 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/servers/auth.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "standalone", 3 | "auth_key": "secret", 4 | "login": "bob", 5 | "name": "mongod", 6 | "password": "pwd123", 7 | "procParams": { 8 | "ipv6": true, 9 | "logappend": true, 10 | "journal": true, 11 | "port": 27017 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/servers/basic.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mongod", 3 | "procParams": { 4 | "ipv6": true, 5 | "logappend": true, 6 | "journal": true, 7 | "port": 27017 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/servers/mmapv1.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mongod", 3 | "procParams": { 4 | "ipv6": true, 5 | "logappend": true, 6 | "journal": true, 7 | "storageEngine": "mmapv1", 8 | "port": 27017 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/servers/ssl.json: -------------------------------------------------------------------------------- 1 | { 2 | "id" : "standalone", 3 | "name": "mongod", 4 | "login": "bob", 5 | "password": "pwd123", 6 | "procParams": { 7 | "ipv6": true, 8 | "logappend": true, 9 | "journal": true, 10 | "port": 27017 11 | }, 12 | "sslParams": { 13 | "sslCAFile": "/tmp/mongoc-test-certificates/ca.pem", 14 | "sslOnNormalPorts": true, 15 | "sslPEMKeyFile": "/tmp/mongoc-test-certificates/server.pem", 16 | "sslWeakCertificateValidation": true 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/servers/wiredtiger.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mongod", 3 | "procParams": { 4 | "ipv6": true, 5 | "logappend": true, 6 | "journal": true, 7 | "storageEngine": "wiredTiger", 8 | "port": 27017 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/sharded_clusters/auth.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "shard_cluster_1", 3 | "login": "bob", 4 | "password": "pwd123", 5 | "auth_key": "secret", 6 | "configsvrs": [ 7 | { 8 | "port": 27117 9 | }, 10 | { 11 | "port": 27118 12 | }, 13 | { 14 | "port": 27119 15 | } 16 | ], 17 | "shards": [ 18 | { 19 | "id": "sh01", 20 | "shardParams": { 21 | "procParams": { 22 | "port": 27217 23 | } 24 | } 25 | }, 26 | { 27 | "id": "sh02", 28 | "shardParams": { 29 | "procParams": { 30 | "port": 27218 31 | } 32 | } 33 | } 34 | ], 35 | "routers": [ 36 | { 37 | "port": 27017 38 | }, 39 | { 40 | "port": 27018 41 | } 42 | ] 43 | } 44 | -------------------------------------------------------------------------------- /src/libmongoc/orchestration_configs/sharded_clusters/basic.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "shard_cluster_1", 3 | "configsvrs": [ 4 | { 5 | "port": 27117 6 | }, 7 | { 8 | "port": 27118 9 | }, 10 | { 11 | "port": 27119 12 | } 13 | ], 14 | "shards": [ 15 | { 16 | "id": "sh01", 17 | "shardParams": { 18 | "procParams": { 19 | "port": 27217 20 | } 21 | } 22 | }, 23 | { 24 | "id": "sh02", 25 | "shardParams": { 26 | "procParams": { 27 | "port": 27218 28 | } 29 | } 30 | } 31 | ], 32 | "routers": [ 33 | { 34 | "port": 27017 35 | }, 36 | { 37 | "port": 27018 38 | } 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/AUTHORS -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/ChangeLog -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/VERSION_CURRENT: -------------------------------------------------------------------------------- 1 | 1.3.5 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/VERSION_RELEASED: -------------------------------------------------------------------------------- 1 | 1.3.5 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/CheckHeaders.m4: -------------------------------------------------------------------------------- 1 | AC_HEADER_STDBOOL 2 | AC_SUBST(BSON_HAVE_STDBOOL_H, 0) 3 | if test "$ac_cv_header_stdbool_h" = "yes"; then 4 | AC_SUBST(BSON_HAVE_STDBOOL_H, 1) 5 | fi 6 | 7 | AC_CREATE_STDINT_H([src/bson/bson-stdint.h]) 8 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/CheckHost.m4: -------------------------------------------------------------------------------- 1 | AC_CANONICAL_HOST 2 | 3 | os_win32=no 4 | os_linux=no 5 | os_freebsd=no 6 | os_gnu=no 7 | 8 | case "$host" in 9 | *-mingw*|*-*-cygwin*) 10 | os_win32=yes 11 | TARGET_OS=windows 12 | ;; 13 | *-*-*netbsd*) 14 | os_netbsd=yes 15 | TARGET_OS=unix 16 | ;; 17 | *-*-*freebsd*) 18 | os_freebsd=yes 19 | TARGET_OS=unix 20 | ;; 21 | *-*-*openbsd*) 22 | os_openbsd=yes 23 | TARGET_OS=unix 24 | ;; 25 | *-*-linux*) 26 | os_linux=yes 27 | os_gnu=yes 28 | TARGET_OS=unix 29 | ;; 30 | *-*-solaris*) 31 | os_solaris=yes 32 | TARGET_OS=unix 33 | ;; 34 | *-*-darwin*) 35 | os_darwin=yes 36 | TARGET_OS=unix 37 | ;; 38 | gnu*|k*bsd*-gnu*) 39 | os_gnu=yes 40 | TARGET_OS=unix 41 | ;; 42 | *) 43 | AC_MSG_WARN([*** Please add $host to configure.ac checks!]) 44 | ;; 45 | esac 46 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/CheckProgs.m4: -------------------------------------------------------------------------------- 1 | AC_PATH_PROG(PERL, perl) 2 | if test -z "$PERL"; then 3 | AC_MSG_ERROR([You need 'perl' to compile libbson]) 4 | fi 5 | 6 | AC_PATH_PROG(MV, mv) 7 | if test -z "$MV"; then 8 | AC_MSG_ERROR([You need 'mv' to compile libbson]) 9 | fi 10 | 11 | AC_PATH_PROG(GREP, grep) 12 | if test -z "$GREP"; then 13 | AC_MSG_ERROR([You need 'grep' to compile libbson]) 14 | fi 15 | 16 | # Optional for documentation 17 | AC_PATH_PROG(YELP_BUILD, yelp-build) 18 | 19 | AC_PROG_INSTALL 20 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/CheckTarget.m4: -------------------------------------------------------------------------------- 1 | AC_CANONICAL_SYSTEM 2 | 3 | enable_crosscompile=no 4 | 5 | AC_SUBST(BSON_OS, 1) 6 | if test "$TARGET_OS" = "windows"; then 7 | AC_SUBST(BSON_OS, 2) 8 | fi 9 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/Coverage.m4: -------------------------------------------------------------------------------- 1 | COVERAGE_CFLAGS="" 2 | COVERAGE_LDFLAGS="" 3 | 4 | if test "$enable_coverage" = "yes"; then 5 | COVERAGE_CFLAGS="--coverage -g" 6 | COVERAGE_LDFLAGS="-lgcov" 7 | fi 8 | 9 | AC_SUBST(COVERAGE_CFLAGS) 10 | AC_SUBST(COVERAGE_LDFLAGS) 11 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/Endian.m4: -------------------------------------------------------------------------------- 1 | enable_bigendian=no 2 | AC_C_BIGENDIAN 3 | AC_SUBST(BSON_BYTE_ORDER, 1234) 4 | if test "x$ac_cv_c_bigendian" = "xyes"; then 5 | AC_SUBST(BSON_BYTE_ORDER, 4321) 6 | enable_bigendian=yes 7 | fi 8 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/Optimizations.m4: -------------------------------------------------------------------------------- 1 | OPTIMIZE_CFLAGS="" 2 | OPTIMIZE_LDFLAGS="" 3 | 4 | # Enable -Bsymbolic 5 | AS_IF([test "$enable_optimizations" != "no"], [ 6 | check_link_flag([-Wl,-Bsymbolic], [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"]) 7 | CFLAGS="$CFLAGS -O2" 8 | ]) 9 | 10 | # Enable Link-Time-Optimization 11 | AS_IF([test "$enable_lto" = "yes"], 12 | [AS_IF([test "$c_compiler" = "gcc"], 13 | [check_cc_cxx_flag([-flto], [OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -flto"]) 14 | check_link_flag([-flto], [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -flto"])], 15 | [AC_MSG_WARN([LTO is not yet available on your compiler.])])]) 16 | 17 | AC_SUBST(OPTIMIZE_CFLAGS) 18 | AC_SUBST(OPTIMIZE_LDFLAGS) 19 | 20 | # Add '-g' flag to gcc to build with debug symbols. 21 | if test "$enable_debug_symbols" = "min"; then 22 | CFLAGS="$CFLAGS -g1" 23 | elif test "$enable_debug_symbols" != "no"; then 24 | CFLAGS="$CFLAGS -g" 25 | fi 26 | 27 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/SetupLibtool.m4: -------------------------------------------------------------------------------- 1 | LT_PREREQ([2.2]) 2 | 3 | AC_DISABLE_STATIC 4 | AC_LIBTOOL_WIN32_DLL 5 | AC_PROG_LIBTOOL 6 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/m4/ac_compile_check_sizeof.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([AC_COMPILE_CHECK_SIZEOF], 2 | [changequote(<<, >>)dnl 3 | dnl The name to #define. 4 | define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl 5 | dnl The cache variable name. 6 | define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl 7 | changequote([, ])dnl 8 | AC_MSG_CHECKING(size of $1) 9 | AC_CACHE_VAL(AC_CV_NAME, 10 | [for ac_size in 4 8 1 2 16 $2 ; do # List sizes in rough order of prevalence. 11 | AC_TRY_COMPILE([#include "confdefs.h" 12 | #include <sys/types.h> 13 | $2 14 | ], [switch (0) case 0: case (sizeof ($1) == $ac_size):;], AC_CV_NAME=$ac_size) 15 | if test x$AC_CV_NAME != x ; then break; fi 16 | done 17 | ]) 18 | if test x$AC_CV_NAME = x ; then 19 | AC_MSG_ERROR([cannot determine a size for $1]) 20 | fi 21 | AC_MSG_RESULT($AC_CV_NAME) 22 | AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [The number of bytes in type $1]) 23 | undefine([AC_TYPE_NAME])dnl 24 | undefine([AC_CV_NAME])dnl 25 | ]) 26 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/autotools/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 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/cmake/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST += \ 2 | build/cmake/libbson.def \ 3 | build/cmake/bson/bson-stdint.h \ 4 | build/cmake/LoadVersion.cmake 5 | 6 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/build/cmake/bson/bson-stdint.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST += doc/mallard2man.py 2 | 3 | dist-hook: man html 4 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/html/Makefile.am: -------------------------------------------------------------------------------- 1 | BUILT_HTML_FILES = $(patsubst doc/%.page,doc/html/%.html,$(wildcard doc/*.page)) 2 | CLEANFILES += $(wildcard doc/html/*.html) 3 | CLEANFILES += $(wildcard doc/html/*.css) 4 | CLEANFILES += $(wildcard doc/html/*.js) 5 | CLEANFILES += $(wildcard doc/html/*.png) 6 | 7 | %.html: ../%.page 8 | $(AM_V_GEN)$(YELP_BUILD) html -o doc/html/ doc 9 | 10 | html: $(BUILT_HTML_FILES) 11 | 12 | YELP_HTML_FILES = \ 13 | doc/html/C.css \ 14 | doc/html/jquery.js \ 15 | doc/html/jquery.syntax.brush.clang.js \ 16 | doc/html/jquery.syntax.core.js \ 17 | doc/html/jquery.syntax.js \ 18 | doc/html/jquery.syntax.layout.yelp.js \ 19 | doc/html/yelp-note-tip.png \ 20 | doc/html/yelp-note-warning.png \ 21 | doc/html/yelp-note.png \ 22 | doc/html/yelp.js 23 | 24 | EXTRA_DIST += $(BUILT_HTML_FILES) 25 | EXTRA_DIST += $(YELP_HTML_FILES) 26 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/html/jquery.syntax.layout.yelp.js: -------------------------------------------------------------------------------- 1 | Syntax.layouts.yelp = function(options, code, container) { 2 | code.addClass('contents'); 3 | return code; 4 | }; 5 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/html/yelp-note-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/doc/html/yelp-note-tip.png -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/html/yelp-note-warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/doc/html/yelp-note-warning.png -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/html/yelp-note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/doc/html/yelp-note.png -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/Makefile.am: -------------------------------------------------------------------------------- 1 | MAN_FILES_TO_BUILD = $(patsubst doc/%.page,doc/man/%.3,$(wildcard doc/*.page)) 2 | BUILT_MAN_FILES = $(wildcard doc/man/*.3) 3 | CLEANFILES += $(wildcard doc/man/*.3) 4 | 5 | dist_man_MANS = $(BUILT_MAN_FILES) 6 | # Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals. 7 | # Unlike with other dist primaries, the files are not distributed if the 8 | # conditional is false. 9 | # Work the bug around until it is fixed: 10 | dist_noinst_DATA = $(dist_man_MANS) 11 | 12 | man3_MANS = $(BUILT_MAN_FILES) 13 | 14 | %.3: ../%.page 15 | $(AM_V_GEN)./doc/mallard2man.py 3 $^ 16 | 17 | man: $(MAN_FILES_TO_BUILD) 18 | EXTRA_DIST += $(MAN_FILES_TO_BUILD) 19 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_context_get_default.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_CONTEXT_GET_DEFAULT" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_context_get_default() \- None 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | bson_context_t * 18 | bson_context_get_default (void) BSON_GNUC_CONST; 19 | .fi 20 | .fi 21 | 22 | .SH "RETURNS" 23 | 24 | The 25 | .B bson_context_get_default(3) 26 | function shall return the default, thread\(hysafe, 27 | .B bson_context_t 28 | for the process. 29 | 30 | 31 | .B 32 | .SH COLOPHON 33 | This page is part of libbson. 34 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_get_major_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_GET_MAJOR_VERSION" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_get_major_version() \- Get the first number in libbson's MAJOR.MINOR.MICRO release version. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | bson_get_major_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "DESCRIPTION" 23 | 24 | Get the first number in libbson's MAJOR.MINOR.MICRO release version. 25 | 26 | .SH "RETURNS" 27 | 28 | The value of 29 | .B BSON_MAJOR_VERSION 30 | when Libbson was compiled. 31 | 32 | 33 | .B 34 | .SH COLOPHON 35 | This page is part of libbson. 36 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_get_micro_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_GET_MICRO_VERSION" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_get_micro_version() \- Get the third number in libbson's MAJOR.MINOR.MICRO release version. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | bson_get_micro_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "DESCRIPTION" 23 | 24 | Get the third number in libbson's MAJOR.MINOR.MICRO release version. 25 | 26 | .SH "RETURNS" 27 | 28 | The value of 29 | .B BSON_MICRO_VERSION 30 | when Libbson was compiled. 31 | 32 | 33 | .B 34 | .SH COLOPHON 35 | This page is part of libbson. 36 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_get_minor_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_GET_MINOR_VERSION" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_get_minor_version() \- Get the middle number in libbson's MAJOR.MINOR.MICRO release version. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | int 18 | bson_get_minor_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "DESCRIPTION" 23 | 24 | Get the middle number in libbson's MAJOR.MINOR.MICRO release version. 25 | 26 | .SH "RETURNS" 27 | 28 | The value of 29 | .B BSON_MINOR_VERSION 30 | when Libbson was compiled. 31 | 32 | 33 | .B 34 | .SH COLOPHON 35 | This page is part of libbson. 36 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_get_version.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_GET_VERSION" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_get_version() \- A string representation of Libbson's version, formatted something like "1.2.3" or "1.2.3-dev". 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | const char * 18 | bson_get_version (void); 19 | .fi 20 | .fi 21 | 22 | .SH "DESCRIPTION" 23 | 24 | A string representation of Libbson's version, formatted something like "1.2.3" or "1.2.3\(hydev". 25 | 26 | .SH "RETURNS" 27 | 28 | A string you must not modify or free. 29 | 30 | 31 | .B 32 | .SH COLOPHON 33 | This page is part of libbson. 34 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_json_reader_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_JSON_READER_DESTROY" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_json_reader_destroy() \- Frees a bson_json_reader_t. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | bson_json_reader_destroy (bson_json_reader_t *reader); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | .B reader 27 | A 28 | .B bson_json_reader_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Frees a bson_json_reader_t. 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of libbson. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_md5_init.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_MD5_INIT" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_md5_init() \- Initialize a new instance of the MD5 algorithm. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | bson_md5_init (bson_md5_t *pms); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | .B pms 27 | A 28 | .B bson_md5_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Initialize a new instance of the MD5 algorithm. 35 | 36 | 37 | .B 38 | .SH COLOPHON 39 | This page is part of libbson. 40 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_oid_copy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_OID_COPY" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_oid_copy() \- Copies the contents of src into dst. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | bson_oid_copy (const bson_oid_t *src, 19 | bson_oid_t *dst); 20 | .fi 21 | .fi 22 | 23 | .SH "PARAMETERS" 24 | 25 | .TP 26 | .B 27 | .B src 28 | A 29 | .B bson_oid_t 30 | \e&. 31 | .LP 32 | .TP 33 | .B 34 | .B dst 35 | A 36 | .B bson_oid_t 37 | \e&. 38 | .LP 39 | 40 | .SH "DESCRIPTION" 41 | 42 | Copies the contents of src into dst. 43 | 44 | 45 | .B 46 | .SH COLOPHON 47 | This page is part of libbson. 48 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_oid_hash.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_OID_HASH" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_oid_hash() \- Generates a hash code for oid suitable for a hashtable. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | uint32_t 18 | bson_oid_hash (const bson_oid_t *oid); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | .B oid 27 | A 28 | .B bson_oid_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Generates a hash code for 35 | .B oid 36 | suitable for a hashtable. 37 | 38 | .SH "RETURNS" 39 | 40 | A 32\(hybit hash code. 41 | 42 | 43 | .B 44 | .SH COLOPHON 45 | This page is part of libbson. 46 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_reader_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_READER_DESTROY" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_reader_destroy() \- Destroys and releases all resources associated with reader. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | bson_reader_destroy (bson_reader_t *reader); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | .B reader 27 | A 28 | .B bson_reader_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Destroys and releases all resources associated with 35 | .B reader 36 | \e&. 37 | 38 | 39 | .B 40 | .SH COLOPHON 41 | This page is part of libbson. 42 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_value_destroy.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_VALUE_DESTROY" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_value_destroy() \- Releases any resources associated with value. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | bson_value_destroy (bson_value_t *value); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | .B value 27 | A 28 | .B bson_value_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Releases any resources associated with 35 | .B value 36 | \e&. 37 | 38 | 39 | .B 40 | .SH COLOPHON 41 | This page is part of libbson. 42 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/bson_writer_end.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "BSON_WRITER_END" "3" "2016\(hy03\(hy16" "libbson" 11 | .SH NAME 12 | bson_writer_end() \- Complete writing of a bson_writer_t to the buffer supplied. 13 | .SH "SYNOPSIS" 14 | 15 | .nf 16 | .nf 17 | void 18 | bson_writer_end (bson_writer_t *writer); 19 | .fi 20 | .fi 21 | 22 | .SH "PARAMETERS" 23 | 24 | .TP 25 | .B 26 | .B writer 27 | A 28 | .B bson_writer_t 29 | \e&. 30 | .LP 31 | 32 | .SH "DESCRIPTION" 33 | 34 | Complete writing of a 35 | .B bson_writer_t 36 | to the buffer supplied. 37 | 38 | 39 | .B 40 | .SH COLOPHON 41 | This page is part of libbson. 42 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/endianness.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "ENDIAN_CONCERNS" "3" "2016\(hy03\(hy30" "libbson" 11 | .SH NAME 12 | Endian_Concerns \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of libbson. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/errors.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "HANDLING_ERRORS" "3" "2016\(hy03\(hy30" "libbson" 11 | .SH NAME 12 | Handling_Errors \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of libbson. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/index.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "LIBBSON" "3" "2016\(hy03\(hy30" "libbson" 11 | .SH NAME 12 | Libbson \- A Cross Platform BSON Library for C 13 | .SH "INSTALLATION" 14 | 15 | .SH "GETTING STARTED" 16 | 17 | .SH "STREAMING BSON" 18 | 19 | .SH "JSON" 20 | 21 | .SH "CROSS PLATFORM NOTES" 22 | 23 | .SH "PERFORMANCE NOTES" 24 | 25 | .SH "API REFERENCE" 26 | 27 | 28 | .B 29 | .SH COLOPHON 30 | This page is part of libbson. 31 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/doc/man/threading.3: -------------------------------------------------------------------------------- 1 | .\" This manpage is Copyright (C) 2016 MongoDB, Inc. 2 | .\" 3 | .\" Permission is granted to copy, distribute and/or modify this document 4 | .\" under the terms of the GNU Free Documentation License, Version 1.3 5 | .\" or any later version published by the Free Software Foundation; 6 | .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 7 | .\" A copy of the license is included in the section entitled "GNU 8 | .\" Free Documentation License". 9 | .\" 10 | .TH "THREADING" "3" "2016\(hy03\(hy30" "libbson" 11 | .SH NAME 12 | Threading \- None 13 | 14 | .B 15 | .SH COLOPHON 16 | This page is part of libbson. 17 | Please report any bugs at https://jira.mongodb.org/browse/CDRIVER. -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES += libbson-1.0.la 2 | 3 | libbson_1_0_la_SOURCES = 4 | libbson_1_0_la_LIBADD = \ 5 | libbson.la \ 6 | libstackdriver_yajl.la \ 7 | -lm 8 | libbson_1_0_la_LDFLAGS = \ 9 | $(OPTIMIZE_LDFLAGS) \ 10 | $(COVERAGE_LDFLAGS) \ 11 | -no-undefined \ 12 | -rpath $(libdir) 13 | 14 | #if HAVE_LD_VERSION_SCRIPT 15 | #libbson_1_0_la_LDFLAGS += -Wl,--version-script=$(srcdir)/build/autotools/versions.ldscript 16 | #else 17 | #libbson_1_0_la_LDFLAGS += -export-symbols-regex "^(bson_|bcon_)" 18 | #endif 19 | 20 | include src/bson/Makefile.am 21 | include src/yajl/Makefile.am 22 | 23 | pkgconfigdir = $(libdir)/pkgconfig 24 | pkgconfig_DATA = $(top_builddir)/src/libbson-1.0.pc 25 | 26 | EXTRA_DIST += \ 27 | src/libbson.symbols \ 28 | build/autotools/versions.ldscript \ 29 | src/libbson-1.0.pc.in 30 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/bson/bson-clock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #ifndef BSON_CLOCK_H 19 | #define BSON_CLOCK_H 20 | 21 | 22 | #if !defined (BSON_INSIDE) && !defined (BSON_COMPILATION) 23 | # error "Only can be included directly." 24 | #endif 25 | 26 | 27 | #include "bson-compat.h" 28 | #include "bson-macros.h" 29 | #include "bson-types.h" 30 | 31 | 32 | BSON_BEGIN_DECLS 33 | 34 | 35 | int64_t bson_get_monotonic_time (void); 36 | int bson_gettimeofday (struct timeval *tv); 37 | 38 | 39 | BSON_END_DECLS 40 | 41 | 42 | #endif /* BSON_CLOCK_H */ 43 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/bson/bson-iso8601-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #ifndef BSON_ISO8601_PRIVATE_H 19 | #define BSON_ISO8601_PRIVATE_H 20 | 21 | 22 | #include "bson-compat.h" 23 | #include "bson-macros.h" 24 | 25 | 26 | BSON_BEGIN_DECLS 27 | 28 | bool 29 | _bson_iso8601_date_parse (const char *str, 30 | int32_t len, 31 | int64_t *out); 32 | 33 | BSON_END_DECLS 34 | 35 | 36 | #endif /* BSON_ISO8601_PRIVATE_H */ 37 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/bson/bson-keys.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #ifndef BSON_KEYS_H 19 | #define BSON_KEYS_H 20 | 21 | 22 | #include "bson-macros.h" 23 | #include "bson-types.h" 24 | 25 | 26 | BSON_BEGIN_DECLS 27 | 28 | 29 | size_t bson_uint32_to_string (uint32_t value, 30 | const char **strptr, 31 | char *str, 32 | size_t size); 33 | 34 | 35 | BSON_END_DECLS 36 | 37 | 38 | #endif /* BSON_KEYS_H */ 39 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/bson/bson-stdint.h: -------------------------------------------------------------------------------- 1 | #ifndef _SRC_BSON_BSON_STDINT_H 2 | #define _SRC_BSON_BSON_STDINT_H 1 3 | #ifndef _GENERATED_STDINT_H 4 | #define _GENERATED_STDINT_H " " 5 | /* generated using a gnu compiler version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ 6 | 7 | #include 8 | 9 | 10 | /* system headers have good uint64_t */ 11 | #ifndef _HAVE_UINT64_T 12 | #define _HAVE_UINT64_T 13 | #endif 14 | 15 | /* once */ 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/bson/bson-timegm-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #ifndef BSON_TIMEGM_PRIVATE_H 19 | #define BSON_TIMEGM_PRIVATE_H 20 | 21 | 22 | #include "bson-compat.h" 23 | #include "bson-macros.h" 24 | 25 | 26 | BSON_BEGIN_DECLS 27 | 28 | time_t 29 | _bson_timegm (struct tm *const tmp); 30 | 31 | BSON_END_DECLS 32 | 33 | 34 | #endif /* BSON_TIMEGM_PRIVATE_H */ 35 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/bson/bson-value.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #ifndef BSON_VALUE_H 19 | #define BSON_VALUE_H 20 | 21 | 22 | #include "bson-macros.h" 23 | #include "bson-types.h" 24 | 25 | 26 | BSON_BEGIN_DECLS 27 | 28 | 29 | void bson_value_copy (const bson_value_t *src, 30 | bson_value_t *dst); 31 | void bson_value_destroy (bson_value_t *value); 32 | 33 | 34 | BSON_END_DECLS 35 | 36 | 37 | #endif /* BSON_VALUE_H */ 38 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/libbson-1.0.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=@libdir@ 4 | includedir=${exec_prefix}/include 5 | 6 | Name: libbson 7 | Description: The libbson BSON serialization library. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lbson-@BSON_API_VERSION@ 10 | Cflags: -I${includedir}/libbson-@BSON_API_VERSION@ 11 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/yajl/Makefile.am: -------------------------------------------------------------------------------- 1 | noinst_LTLIBRARIES += libstackdriver_yajl.la 2 | 3 | libstackdriver_yajl_la_SOURCES = \ 4 | src/yajl/stackdriver_yajl_tree.h \ 5 | src/yajl/stackdriver_yajl_parse.h \ 6 | src/yajl/stackdriver_yajl_gen.h \ 7 | src/yajl/stackdriver_yajl_common.h \ 8 | src/yajl/stackdriver_yajl_version.h \ 9 | src/yajl/stackdriver_yajl_parser.h \ 10 | src/yajl/stackdriver_yajl_encode.h \ 11 | src/yajl/stackdriver_yajl_buf.h \ 12 | src/yajl/stackdriver_yajl_alloc.h \ 13 | src/yajl/stackdriver_yajl_bytestack.h \ 14 | src/yajl/stackdriver_yajl_lex.h \ 15 | src/yajl/stackdriver_yajl_version.c \ 16 | src/yajl/stackdriver_yajl.c \ 17 | src/yajl/stackdriver_yajl_encode.c \ 18 | src/yajl/stackdriver_yajl_lex.c \ 19 | src/yajl/stackdriver_yajl_parser.c \ 20 | src/yajl/stackdriver_yajl_buf.c \ 21 | src/yajl/stackdriver_yajl_tree.c \ 22 | src/yajl/stackdriver_yajl_alloc.c \ 23 | src/yajl/stackdriver_yajl_gen.c 24 | 25 | libstackdriver_yajl_la_CFLAGS = \ 26 | -I$(top_srcdir)/src \ 27 | -I$(top_srcdir)/src/bson \ 28 | -I$(top_builddir)/src/bson \ 29 | -DBSON_COMPILATION 30 | libstackdriver_yajl_la_LIBADD = 31 | libstackdriver_yajl_la_LDFLAGS = 32 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/yajl/stackdriver_yajl_version.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int stackdriver_yajl_version(void) 4 | { 5 | return YAJL_VERSION; 6 | } 7 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/src/yajl/stackdriver_yajl_version.h: -------------------------------------------------------------------------------- 1 | #ifndef STACKDRIVER_YAJL_VERSION_H_ 2 | #define STACKDRIVER_YAJL_VERSION_H_ 3 | 4 | #include 5 | 6 | #define YAJL_MAJOR 2 7 | #define YAJL_MINOR 0 8 | #define YAJL_MICRO 4 9 | 10 | #define YAJL_VERSION ((YAJL_MAJOR * 10000) + (YAJL_MINOR * 100) + YAJL_MICRO) 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | extern int YAJL_API stackdriver_yajl_version(void); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif /* STACKDRIVER_YAJL_VERSION_H_ */ 23 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/abicheck.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cpp -P ${cppargs} ${1:-./src/libbson.symbols} | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi 4 | 5 | nm -D -g --defined-only .libs/libbson-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi 6 | diff -u expected-abi actual-abi && rm -f expected-abi actual-abi 7 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/binary_deprecated.bson: -------------------------------------------------------------------------------- 1 | binary1234 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/codewscope.bson: -------------------------------------------------------------------------------- 1 | foofoo -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/dollarquery.bson: -------------------------------------------------------------------------------- 1 | $query -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/dotkey.bson: -------------------------------------------------------------------------------- 1 | 2a*b"c012 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/dotquery.bson: -------------------------------------------------------------------------------- 1 | abc.def -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/eurokey.bson: -------------------------------------------------------------------------------- 1 | *€€€€€€€€€€ -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/overflow1.bson: -------------------------------------------------------------------------------- 1 | foobar -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/overflow2.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/overflow2.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/overflow3.bson: -------------------------------------------------------------------------------- 1 | foo bar -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/overflow4.bson: -------------------------------------------------------------------------------- 1 | foobarbaz -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/stackoverflow.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/stackoverflow.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test1.bson: -------------------------------------------------------------------------------- 1 | int -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test10.bson: -------------------------------------------------------------------------------- 1 |  regex1234i -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test11.bson: -------------------------------------------------------------------------------- 1 | helloworld -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test12.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test12.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test13.bson: -------------------------------------------------------------------------------- 1 | #array[bool]012 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test14.bson: -------------------------------------------------------------------------------- 1 | 3array[string]0hello1world -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test15.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test15.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test16.bson: -------------------------------------------------------------------------------- 1 | array[null] 2 | 0 3 | 1 4 | 2 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test17.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test17.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test18.bson: -------------------------------------------------------------------------------- 1 | 2 | hello -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test19.bson: -------------------------------------------------------------------------------- 1 | bool -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test2.bson: -------------------------------------------------------------------------------- 1 | int64 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test20.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test20.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test21.bson: -------------------------------------------------------------------------------- 1 | document -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test22.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test22.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test23.bson: -------------------------------------------------------------------------------- 1 | +array0hello1world -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test24.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test24.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test25.bson: -------------------------------------------------------------------------------- 1 | undefined -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test26.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test26.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test27.bson: -------------------------------------------------------------------------------- 1 |  regex^abcdilx -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test28.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test28.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test29.bson: -------------------------------------------------------------------------------- 1 |  code var a = {}; -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test3.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test3.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test30.bson: -------------------------------------------------------------------------------- 1 |  code var a = {}; -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test31.bson: -------------------------------------------------------------------------------- 1 | 1code& var a = {};foobar -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test32.bson: -------------------------------------------------------------------------------- 1 | helloworld -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test33.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test33.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test34.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test34.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test35.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test35.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test36.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test36.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test37.bson: -------------------------------------------------------------------------------- 1 | maxkey -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test38.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test38.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test39.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test39.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test4.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test4.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test40.bson: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test41.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test41.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test42.bson: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test43.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test43.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test44.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test44.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test45.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test45.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test46.bson: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test47.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test47.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test48.bson: -------------------------------------------------------------------------------- 1 |   -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test49.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test49.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test5.bson: -------------------------------------------------------------------------------- 1 | string some string -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test50.bson: -------------------------------------------------------------------------------- 1 |   -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test51.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test51.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test52.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test52.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test53.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test53.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test54.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test54.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test55.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test55.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test56.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test56.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test57.bson: -------------------------------------------------------------------------------- 1 | binary1234 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test6.bson: -------------------------------------------------------------------------------- 1 | @array[int]/012345 -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test7.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/test7.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test8.bson: -------------------------------------------------------------------------------- 1 | documentint -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/test9.bson: -------------------------------------------------------------------------------- 1 | 2 | null -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/binary/trailingnull.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/src/libbson/tests/binary/trailingnull.bson -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/json/test.json: -------------------------------------------------------------------------------- 1 | {"foo": "bar", "a": 1} 2 | {"_id": {"$oid": "aabbccddeeff001122334455"}} 3 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/test-clock.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "TestSuite.h" 5 | #include "bson-tests.h" 6 | 7 | 8 | static void 9 | test_get_monotonic_time (void) 10 | { 11 | int64_t t; 12 | int64_t t2; 13 | 14 | t = bson_get_monotonic_time(); 15 | t2 = bson_get_monotonic_time(); 16 | assert(t); 17 | assert(t2); 18 | assert_cmpint(t, <=, t2); 19 | } 20 | 21 | 22 | void 23 | test_clock_install (TestSuite *suite) 24 | { 25 | TestSuite_Add (suite, "/bson/clock/get_monotonic_time", test_get_monotonic_time); 26 | } 27 | -------------------------------------------------------------------------------- /src/libmongoc/src/libbson/tests/test-version.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "TestSuite.h" 4 | 5 | static void 6 | test_bson_version (void) 7 | { 8 | ASSERT_CMPINT (bson_get_major_version(), ==, BSON_MAJOR_VERSION); 9 | ASSERT_CMPINT (bson_get_minor_version(), ==, BSON_MINOR_VERSION); 10 | ASSERT_CMPINT (bson_get_micro_version(), ==, BSON_MICRO_VERSION); 11 | ASSERT_CMPSTR (bson_get_version(), BSON_VERSION_S); 12 | 13 | ASSERT (bson_check_version (BSON_MAJOR_VERSION, 14 | BSON_MINOR_VERSION, 15 | BSON_MICRO_VERSION)); 16 | 17 | ASSERT (!bson_check_version (BSON_MAJOR_VERSION, 18 | BSON_MINOR_VERSION + 1, 19 | BSON_MICRO_VERSION)); 20 | } 21 | 22 | void 23 | test_version_install (TestSuite *suite) 24 | { 25 | TestSuite_Add (suite, "/version", test_bson_version); 26 | } 27 | -------------------------------------------------------------------------------- /src/libmongoc/src/libmongoc-1.0.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=@libdir@ 4 | includedir=${exec_prefix}/include 5 | 6 | Name: libmongoc 7 | Description: The libmongoc MongoDB client library. 8 | Version: @VERSION@ 9 | Requires: libbson-1.0 10 | Libs: @SASL_LIBS@ @SSL_LIBS@ @SHM_LIB@ -L${libdir} -lmongoc-1.0 11 | Cflags: -I${includedir}/libmongoc-@MONGOC_API_VERSION@ 12 | -------------------------------------------------------------------------------- /src/libmongoc/src/libmongoc-priv.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=@libdir@ 4 | includedir=${exec_prefix}/include 5 | 6 | Name: libmongoc-priv 7 | Description: The libmongoc MongoDB client library, with access to private structures. 8 | Version: @VERSION@ 9 | Requires: libbson-1.0 10 | Libs: @SASL_LIBS@ @SSL_LIBS@ @SHM_LIB@ -L${libdir} -lmongoc-priv 11 | Cflags: -DMONGOC_I_AM_A_DRIVER -I${includedir}/libmongoc-@MONGOC_API_VERSION@ 12 | -------------------------------------------------------------------------------- /src/libmongoc/src/libmongoc-ssl-1.0.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=@libdir@ 4 | includedir=${exec_prefix}/include 5 | 6 | Name: libmongoc-@MONGOC_API_VERSION@ 7 | Description: SSL support for the libmongoc-@MONGOC_API_VERSION@ library. 8 | Version: @VERSION@ 9 | Requires: libmongoc-1.0 10 | Libs: 11 | Cflags: 12 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/mongoc-client-pool-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef MONGOC_CLIENT_POOL_PRIVATE_H 18 | #define MONGOC_CLIENT_POOL_PRIVATE_H 19 | 20 | #if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION) 21 | #error "Only can be included directly." 22 | #endif 23 | 24 | #include 25 | 26 | #include "mongoc-client-pool.h" 27 | 28 | BSON_BEGIN_DECLS 29 | 30 | size_t mongoc_client_pool_get_size(mongoc_client_pool_t *pool); 31 | 32 | BSON_END_DECLS 33 | 34 | 35 | #endif /* MONGOC_CLIENT_POOL_PRIVATE_H */ 36 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/mongoc-init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef MONGOC_INIT_H 18 | #define MONGOC_INIT_H 19 | 20 | #if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION) 21 | # error "Only can be included directly." 22 | #endif 23 | 24 | #include 25 | 26 | 27 | BSON_BEGIN_DECLS 28 | 29 | 30 | void mongoc_init (void); 31 | void mongoc_cleanup(void); 32 | 33 | 34 | BSON_END_DECLS 35 | 36 | 37 | #endif /* MONGOC_INIT_H */ 38 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/mongoc-opcode-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef MONGOC_OPCODE_PRIVATE_H 18 | #define MONGOC_OPCODE_PRIVATE_H 19 | 20 | #include "mongoc-opcode.h" 21 | 22 | bool _mongoc_opcode_needs_primary(mongoc_opcode_t opcode); 23 | 24 | #endif /* MONGOC_OPCODE_PRIVATE_H */ 25 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/mongoc-rand-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #if !defined (MONGOC_I_AM_A_DRIVER) && !defined (MONGOC_COMPILATION) 19 | #error "Only can be included directly." 20 | #endif 21 | 22 | 23 | #ifndef MONGOC_RAND_PRIVATE_H 24 | #define MONGOC_RAND_PRIVATE_H 25 | 26 | 27 | #include 28 | 29 | 30 | BSON_BEGIN_DECLS 31 | 32 | int _mongoc_rand_bytes(uint8_t * buf, int num); 33 | int _mongoc_pseudo_rand_bytes(uint8_t * buf, int num); 34 | 35 | BSON_END_DECLS 36 | 37 | 38 | #endif /* MONGOC_RAND_PRIVATE_H */ 39 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/mongoc-rand.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION) 19 | #error "Only can be included directly." 20 | #endif 21 | 22 | 23 | #ifndef MONGOC_RAND_H 24 | #define MONGOC_RAND_H 25 | 26 | 27 | #include 28 | 29 | 30 | BSON_BEGIN_DECLS 31 | 32 | void mongoc_rand_seed(const void* buf, int num); 33 | void mongoc_rand_add(const void* buf, int num, double entropy); 34 | int mongoc_rand_status(void); 35 | 36 | BSON_END_DECLS 37 | 38 | 39 | #endif /* MONGOC_RAND_H */ 40 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/mongoc-stream-gridfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 MongoDB Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef MONGOC_STREAM_GRIDFS_H 18 | #define MONGOC_STREAM_GRIDFS_H 19 | 20 | #if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION) 21 | # error "Only can be included directly." 22 | #endif 23 | 24 | #include 25 | 26 | #include "mongoc-gridfs.h" 27 | #include "mongoc-stream.h" 28 | 29 | 30 | BSON_BEGIN_DECLS 31 | 32 | 33 | mongoc_stream_t *mongoc_stream_gridfs_new (mongoc_gridfs_file_t *file); 34 | 35 | 36 | BSON_END_DECLS 37 | 38 | 39 | #endif /* MONGOC_STREAM_GRIDFS_H */ 40 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-delete.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | delete, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | INT32_FIELD(zero) 8 | CSTRING_FIELD(collection) 9 | ENUM_FIELD(flags) 10 | BSON_FIELD(selector) 11 | ) 12 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-get-more.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | get_more, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | INT32_FIELD(zero) 8 | CSTRING_FIELD(collection) 9 | INT32_FIELD(n_return) 10 | INT64_FIELD(cursor_id) 11 | ) 12 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-header.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | header, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | ) 8 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-insert.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | insert, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | ENUM_FIELD(flags) 8 | CSTRING_FIELD(collection) 9 | IOVEC_ARRAY_FIELD(documents) 10 | ) 11 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-kill-cursors.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | kill_cursors, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | INT32_FIELD(zero) 8 | INT64_ARRAY_FIELD(n_cursors, cursors) 9 | ) 10 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-msg.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | msg, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | CSTRING_FIELD(msg) 8 | ) 9 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-query.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | query, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | ENUM_FIELD(flags) 8 | CSTRING_FIELD(collection) 9 | INT32_FIELD(skip) 10 | INT32_FIELD(n_return) 11 | BSON_FIELD(query) 12 | BSON_OPTIONAL(fields, BSON_FIELD(fields)) 13 | ) 14 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-reply.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | reply, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | ENUM_FIELD(flags) 8 | INT64_FIELD(cursor_id) 9 | INT32_FIELD(start_from) 10 | INT32_FIELD(n_returned) 11 | BSON_ARRAY_FIELD(documents) 12 | ) 13 | -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/op-update.def: -------------------------------------------------------------------------------- 1 | RPC( 2 | update, 3 | INT32_FIELD(msg_len) 4 | INT32_FIELD(request_id) 5 | INT32_FIELD(response_to) 6 | INT32_FIELD(opcode) 7 | INT32_FIELD(zero) 8 | CSTRING_FIELD(collection) 9 | ENUM_FIELD(flags) 10 | BSON_FIELD(selector) 11 | BSON_FIELD(update) 12 | ) 13 | -------------------------------------------------------------------------------- /src/libmongoc/src/tools/Makefile.am: -------------------------------------------------------------------------------- 1 | bin_PROGRAMS += mongoc-stat 2 | 3 | mongoc_stat_SOURCES = src/tools/mongoc-stat.c 4 | mongoc_stat_CFLAGS = \ 5 | $(LIBC_FEATURES) \ 6 | $(OPTIMIZE_CFLAGS) \ 7 | -I$(top_srcdir)/src \ 8 | -I$(top_srcdir)/src/mongoc \ 9 | -I$(top_builddir)/src/mongoc \ 10 | $(BSON_CFLAGS) 11 | mongoc_stat_LDFLAGS = \ 12 | $(OPTIMIZE_LDFLAGS) 13 | mongoc_stat_LDADD = \ 14 | $(BSON_LIBS) \ 15 | $(SHM_LIB) 16 | -------------------------------------------------------------------------------- /src/libmongoc/tests/abicheck.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cpp -P ${cppargs} ${1:-./src/libmongoc.symbols} | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi 4 | 5 | nm -D -g --defined-only .libs/libmongoc-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi 6 | diff -u expected-abi actual-abi && rm -f expected-abi actual-abi 7 | -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/delete1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/delete1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/empty.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/empty.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/get_more1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/get_more1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/insert1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/insert1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/kill_cursors1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/kill_cursors1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/msg1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/msg1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/query1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/query1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/query2.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/query2.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/reply1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/reply1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/reply2.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/reply2.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/update1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/libmongoc/tests/binary/update1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/certificates/ca.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIC9DCCAl2gAwIBAgIJAJeYVdtunBOmMA0GCSqGSIb3DQEBBQUAMIGSMQswCQYD 3 | VQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxFjAUBgNVBAcMDU5ldyBZb3JrIENp 4 | dHkxDjAMBgNVBAoMBTEwR2VuMQ8wDQYDVQQLDAZLZXJuZWwxGjAYBgNVBAMMEU15 5 | IENlcnQgQXV0aG9yaXR5MRswGQYJKoZIhvcNAQkBFgxyb290QGxhemFydXMwHhcN 6 | MTIxMTI3MTkwMzM5WhcNMTMxMTI3MTkwMzM5WjCBkjELMAkGA1UEBhMCVVMxETAP 7 | BgNVBAgMCE5ldyBZb3JrMRYwFAYDVQQHDA1OZXcgWW9yayBDaXR5MQ4wDAYDVQQK 8 | DAUxMEdlbjEPMA0GA1UECwwGS2VybmVsMRowGAYDVQQDDBFNeSBDZXJ0IEF1dGhv 9 | cml0eTEbMBkGCSqGSIb3DQEJARYMcm9vdEBsYXphcnVzMIGfMA0GCSqGSIb3DQEB 10 | AQUAA4GNADCBiQKBgQDXHKZ5j5T969S5C/Gm6f2ah7gaik3zRzWm2ZoAcz/U6fBq 11 | rnha3bueXXBRWZ7d2HgN1a+JhjuYnffcdUSen9CFVxPiRCEgJmp2A8o90Kx5Bbcf 12 | 7zHobDOGs1EF3PQ2RKgXEOUjKZ/LZDbGhClsIYCD4SdFhRMqUcxc2lQMsWEaNwID 13 | AQABo1AwTjAdBgNVHQ4EFgQUB0EZOp9+xbciTre81d/k/Am4ZBYwHwYDVR0jBBgw 14 | FoAUB0EZOp9+xbciTre81d/k/Am4ZBYwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B 15 | AQUFAAOBgQB6aSQNTmD4gIQEcZiOXHJVpGOHeHBOxWteMFhcBpWvt0Cv8sqLZIVq 16 | x0eAC/tQFkAVEjT+T4S4UdtxgZ44RKCZPYI00qZsyz5bNoTE8kN/bmYNjyKMVFaG 17 | 1tU+elCdOstzBLjY1aHG1oQzbyqgoiSIDpfzjlyK/tBpckFGCz6c6A== 18 | -----END CERTIFICATE----- 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/ghost_discovered.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Ghost discovered", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | }, 11 | "b:27017": { 12 | "setName": null, 13 | "type": "RSGhost" 14 | } 15 | }, 16 | "setName": "rs", 17 | "topologyType": "ReplicaSetNoPrimary" 18 | }, 19 | "responses": [ 20 | [ 21 | "b:27017", 22 | { 23 | "ismaster": false, 24 | "isreplicaset": true, 25 | "ok": 1 26 | } 27 | ] 28 | ] 29 | } 30 | ], 31 | "uri": "mongodb://a,b/?replicaSet=rs" 32 | } 33 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/hosts_differ_from_seeds.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Host list differs from seeds", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "b:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | } 11 | }, 12 | "setName": "rs", 13 | "topologyType": "ReplicaSetNoPrimary" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "hosts": [ 20 | "b:27017" 21 | ], 22 | "ismaster": true, 23 | "ok": 1, 24 | "setName": "rs" 25 | } 26 | ] 27 | ] 28 | } 29 | ], 30 | "uri": "mongodb://a/?replicaSet=rs" 31 | } 32 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/non_rs_member.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Non replicaSet member responds", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | } 11 | }, 12 | "setName": "rs", 13 | "topologyType": "ReplicaSetNoPrimary" 14 | }, 15 | "responses": [ 16 | [ 17 | "b:27017", 18 | { 19 | "ok": 1 20 | } 21 | ] 22 | ] 23 | } 24 | ], 25 | "uri": "mongodb://a,b/?replicaSet=rs" 26 | } 27 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/primary_wrong_set_name.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Primary wrong setName", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": {}, 7 | "setName": "rs", 8 | "topologyType": "ReplicaSetNoPrimary" 9 | }, 10 | "responses": [ 11 | [ 12 | "a:27017", 13 | { 14 | "hosts": [ 15 | "a:27017" 16 | ], 17 | "ismaster": true, 18 | "ok": 1, 19 | "setName": "wrong" 20 | } 21 | ] 22 | ] 23 | } 24 | ], 25 | "uri": "mongodb://a/?replicaSet=rs" 26 | } 27 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/secondary_wrong_set_name.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Secondary wrong setName", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": {}, 7 | "setName": "rs", 8 | "topologyType": "ReplicaSetNoPrimary" 9 | }, 10 | "responses": [ 11 | [ 12 | "a:27017", 13 | { 14 | "hosts": [ 15 | "a:27017" 16 | ], 17 | "ismaster": false, 18 | "ok": 1, 19 | "secondary": true, 20 | "setName": "wrong" 21 | } 22 | ] 23 | ] 24 | } 25 | ], 26 | "uri": "mongodb://a/?replicaSet=rs" 27 | } 28 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/unexpected_mongos.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Unexpected mongos", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": {}, 7 | "setName": "rs", 8 | "topologyType": "ReplicaSetNoPrimary" 9 | }, 10 | "responses": [ 11 | [ 12 | "b:27017", 13 | { 14 | "ismaster": true, 15 | "msg": "isdbgrid", 16 | "ok": 1 17 | } 18 | ] 19 | ] 20 | } 21 | ], 22 | "uri": "mongodb://b/?replicaSet=rs" 23 | } 24 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/rs/wrong_set_name.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Wrong setName", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | } 11 | }, 12 | "setName": "rs", 13 | "topologyType": "ReplicaSetNoPrimary" 14 | }, 15 | "responses": [ 16 | [ 17 | "b:27017", 18 | { 19 | "hosts": [ 20 | "b:27017", 21 | "c:27017" 22 | ], 23 | "ismaster": false, 24 | "ok": 1, 25 | "secondary": true, 26 | "setName": "wrong" 27 | } 28 | ] 29 | ] 30 | } 31 | ], 32 | "uri": "mongodb://a,b/?replicaSet=rs" 33 | } 34 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/sharded/normalize_uri_case.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Normalize URI case", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | }, 11 | "b:27017": { 12 | "setName": null, 13 | "type": "Unknown" 14 | } 15 | }, 16 | "setName": null, 17 | "topologyType": "Unknown" 18 | }, 19 | "responses": [] 20 | } 21 | ], 22 | "uri": "mongodb://A,B" 23 | } 24 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_external_ip.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Direct connection to RSPrimary via external IP", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": "rs", 9 | "type": "RSPrimary" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "hosts": [ 20 | "b:27017" 21 | ], 22 | "ismaster": true, 23 | "ok": 1, 24 | "setName": "rs" 25 | } 26 | ] 27 | ] 28 | } 29 | ], 30 | "uri": "mongodb://a" 31 | } 32 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_mongos.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Connect to mongos", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Mongos" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "ismaster": true, 20 | "msg": "isdbgrid", 21 | "ok": 1 22 | } 23 | ] 24 | ] 25 | } 26 | ], 27 | "uri": "mongodb://a" 28 | } 29 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_rsarbiter.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Connect to RSArbiter", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": "rs", 9 | "type": "RSArbiter" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "arbiterOnly": true, 20 | "hosts": [ 21 | "a:27017" 22 | ], 23 | "ismaster": false, 24 | "ok": 1, 25 | "setName": "rs" 26 | } 27 | ] 28 | ] 29 | } 30 | ], 31 | "uri": "mongodb://a" 32 | } 33 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_rsprimary.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Connect to RSPrimary", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": "rs", 9 | "type": "RSPrimary" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "hosts": [ 20 | "a:27017" 21 | ], 22 | "ismaster": true, 23 | "ok": 1, 24 | "setName": "rs" 25 | } 26 | ] 27 | ] 28 | } 29 | ], 30 | "uri": "mongodb://a" 31 | } 32 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_rssecondary.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Connect to RSSecondary", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": "rs", 9 | "type": "RSSecondary" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "hosts": [ 20 | "a:27017" 21 | ], 22 | "ismaster": false, 23 | "ok": 1, 24 | "secondary": true, 25 | "setName": "rs" 26 | } 27 | ] 28 | ] 29 | } 30 | ], 31 | "uri": "mongodb://a" 32 | } 33 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_slave.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Direct connection to slave", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Standalone" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "ismaster": false, 20 | "ok": 1 21 | } 22 | ] 23 | ] 24 | } 25 | ], 26 | "uri": "mongodb://a" 27 | } 28 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/direct_connection_standalone.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Connect to standalone", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Standalone" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "ismaster": true, 20 | "ok": 1 21 | } 22 | ] 23 | ] 24 | } 25 | ], 26 | "uri": "mongodb://a" 27 | } 28 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/not_ok_response.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Handle a not-ok ismaster response", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "ismaster": true, 20 | "ok": 1 21 | } 22 | ], 23 | [ 24 | "a:27017", 25 | { 26 | "ismaster": true, 27 | "ok": 0 28 | } 29 | ] 30 | ] 31 | } 32 | ], 33 | "uri": "mongodb://a" 34 | } 35 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/standalone_removed.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Standalone removed from multi-server topology", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "b:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Unknown" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | { 19 | "ismaster": true, 20 | "ok": 1 21 | } 22 | ] 23 | ] 24 | } 25 | ], 26 | "uri": "mongodb://a,b" 27 | } 28 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_discovery_and_monitoring/single/unavailable_seed.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Unavailable seed", 3 | "phases": [ 4 | { 5 | "outcome": { 6 | "servers": { 7 | "a:27017": { 8 | "setName": null, 9 | "type": "Unknown" 10 | } 11 | }, 12 | "setName": null, 13 | "topologyType": "Single" 14 | }, 15 | "responses": [ 16 | [ 17 | "a:27017", 18 | {} 19 | ] 20 | ] 21 | } 22 | ], 23 | "uri": "mongodb://a" 24 | } 25 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/first_value.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": "NULL", 3 | "new_avg_rtt": 10, 4 | "new_rtt_ms": 10 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/first_value_zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": "NULL", 3 | "new_avg_rtt": 0, 4 | "new_rtt_ms": 0 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 0, 3 | "new_avg_rtt": 1.0, 4 | "new_rtt_ms": 5 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 3.1, 3 | "new_avg_rtt": 9.68, 4 | "new_rtt_ms": 36 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_3.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 9.12, 3 | "new_avg_rtt": 9.12, 4 | "new_rtt_ms": 9.12 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_4.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 1, 3 | "new_avg_rtt": 200.8, 4 | "new_rtt_ms": 1000 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_5.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 0, 3 | "new_avg_rtt": 0.05, 4 | "new_rtt_ms": 0.25 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/ReplicaSetNoPrimary/read/Primary.json: -------------------------------------------------------------------------------- 1 | { 2 | "candidate_servers": [], 3 | "eligible_servers": [], 4 | "in_latency_window": [], 5 | "operation": "read", 6 | "read_preference": { 7 | "mode": "Primary", 8 | "tags": [ 9 | {} 10 | ] 11 | }, 12 | "suitable_servers": [], 13 | "topology_description": { 14 | "servers": [ 15 | { 16 | "address": "b:27017", 17 | "avg_rtt_ms": 5, 18 | "tags": [ 19 | { 20 | "data_center": "nyc" 21 | } 22 | ], 23 | "type": "RSSecondary" 24 | }, 25 | { 26 | "address": "c:27017", 27 | "avg_rtt_ms": 100, 28 | "tags": [ 29 | { 30 | "data_center": "nyc" 31 | } 32 | ], 33 | "type": "RSSecondary" 34 | } 35 | ], 36 | "type": "ReplicaSetNoPrimary" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/Unknown/read/SecondaryPreferred.json: -------------------------------------------------------------------------------- 1 | { 2 | "candidate_servers": [], 3 | "eligible_servers": [], 4 | "in_latency_window": [], 5 | "operation": "read", 6 | "read_preference": { 7 | "mode": "SecondaryPreferred", 8 | "tags": [ 9 | { 10 | "data_center": "nyc" 11 | } 12 | ] 13 | }, 14 | "suitable_servers": [], 15 | "topology_description": { 16 | "servers": [], 17 | "type": "Unknown" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/Unknown/write/SecondaryPreferred.json: -------------------------------------------------------------------------------- 1 | { 2 | "candidate_servers": [], 3 | "eligible_servers": [], 4 | "in_latency_window": [], 5 | "operation": "write", 6 | "read_preference": { 7 | "mode": "SecondaryPreferred", 8 | "tags": [ 9 | { 10 | "data_center": "nyc" 11 | } 12 | ] 13 | }, 14 | "suitable_servers": [], 15 | "topology_description": { 16 | "servers": [], 17 | "type": "Unknown" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/libmongoc/tests/mock_server/sync-queue.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 MongoDB, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | #ifndef SYNC_QUEUE_H 20 | #define SYNC_QUEUE_H 21 | 22 | 23 | typedef struct _sync_queue_t sync_queue_t; 24 | 25 | sync_queue_t *q_new (); 26 | 27 | void q_put (sync_queue_t *q, void *item); 28 | 29 | void *q_get (sync_queue_t *q, int64_t timeout_msec); 30 | 31 | void *q_get_nowait (sync_queue_t *q); 32 | 33 | void q_destroy (sync_queue_t *q); 34 | 35 | #endif //SYNC_QUEUE_H 36 | -------------------------------------------------------------------------------- /src/libmongoc/tests/mongoc-tests.c: -------------------------------------------------------------------------------- 1 | #include "mongoc-tests.h" 2 | 3 | char *TEST_RESULT; 4 | 5 | void 6 | run_test (const char *name, 7 | void (*func) (void)) 8 | { 9 | struct timeval begin; 10 | struct timeval end; 11 | struct timeval diff; 12 | double format; 13 | 14 | TEST_RESULT = "PASS"; 15 | 16 | fprintf(stdout, "%-42s : ", name); 17 | fflush(stdout); 18 | bson_gettimeofday(&begin); 19 | func(); 20 | bson_gettimeofday(&end); 21 | fprintf(stdout, "%s", TEST_RESULT); 22 | 23 | diff.tv_sec = end.tv_sec - begin.tv_sec; 24 | diff.tv_usec = end.tv_usec - begin.tv_usec; 25 | 26 | if (diff.tv_usec < 0) { 27 | diff.tv_sec -= 1; 28 | diff.tv_usec = diff.tv_usec + 1000000; 29 | } 30 | 31 | format = diff.tv_sec + (diff.tv_usec / 1000000.0); 32 | fprintf(stdout, " : %lf\n", format); 33 | } 34 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-mongoc-array.c: -------------------------------------------------------------------------------- 1 | #include "mongoc-array-private.h" 2 | #include "TestSuite.h" 3 | 4 | 5 | static void 6 | test_array (void) 7 | { 8 | mongoc_array_t ar; 9 | int i; 10 | int v; 11 | 12 | _mongoc_array_init(&ar, sizeof i); 13 | assert(ar.element_size == sizeof i); 14 | assert(ar.len == 0); 15 | assert(ar.allocated); 16 | assert(ar.data); 17 | 18 | for (i = 0; i < 100; i++) { 19 | _mongoc_array_append_val(&ar, i); 20 | } 21 | 22 | for (i = 0; i < 100; i++) { 23 | v = _mongoc_array_index(&ar, int, i); 24 | assert(v == i); 25 | } 26 | 27 | assert(ar.len == 100); 28 | assert(ar.allocated >= (100 * sizeof i)); 29 | 30 | _mongoc_array_clear(&ar); 31 | assert(ar.len == 0); 32 | assert(ar.allocated); 33 | assert(ar.data); 34 | assert(ar.element_size); 35 | 36 | _mongoc_array_destroy(&ar); 37 | } 38 | 39 | 40 | void 41 | test_array_install (TestSuite *suite) 42 | { 43 | TestSuite_Add (suite, "/Array/Basic", test_array); 44 | } 45 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-mongoc-buffer.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "TestSuite.h" 6 | 7 | 8 | static void 9 | test_mongoc_buffer_basic (void) 10 | { 11 | mongoc_stream_t *stream; 12 | mongoc_buffer_t buf; 13 | bson_error_t error = { 0 }; 14 | uint8_t *data = (uint8_t *)bson_malloc0(1024); 15 | ssize_t r; 16 | 17 | stream = mongoc_stream_file_new_for_path (BINARY_DIR"/reply1.dat", O_RDONLY, 0); 18 | ASSERT(stream); 19 | 20 | _mongoc_buffer_init(&buf, data, 1024, NULL, NULL); 21 | 22 | r = _mongoc_buffer_fill(&buf, stream, 537, 0, &error); 23 | ASSERT_CMPINT((int)r, ==, -1); 24 | r = _mongoc_buffer_fill(&buf, stream, 536, 0, &error); 25 | ASSERT_CMPINT((int)r, ==, 536); 26 | ASSERT(buf.len == 536); 27 | 28 | _mongoc_buffer_destroy(&buf); 29 | _mongoc_buffer_destroy(&buf); 30 | _mongoc_buffer_destroy(&buf); 31 | _mongoc_buffer_destroy(&buf); 32 | 33 | mongoc_stream_destroy(stream); 34 | } 35 | 36 | 37 | void 38 | test_buffer_install (TestSuite *suite) 39 | { 40 | TestSuite_Add (suite, "/Buffer/Basic", test_mongoc_buffer_basic); 41 | } 42 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-mongoc-queue.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "TestSuite.h" 5 | 6 | 7 | static void 8 | test_mongoc_queue_basic (void) 9 | { 10 | mongoc_queue_t q = MONGOC_QUEUE_INITIALIZER; 11 | 12 | _mongoc_queue_push_head(&q, (void *)1); 13 | _mongoc_queue_push_tail(&q, (void *)2); 14 | _mongoc_queue_push_head(&q, (void *)3); 15 | _mongoc_queue_push_tail(&q, (void *)4); 16 | _mongoc_queue_push_head(&q, (void *)5); 17 | 18 | ASSERT_CMPINT(_mongoc_queue_get_length(&q), ==, 5); 19 | 20 | ASSERT(_mongoc_queue_pop_head(&q) == (void *)5); 21 | ASSERT(_mongoc_queue_pop_head(&q) == (void *)3); 22 | ASSERT(_mongoc_queue_pop_head(&q) == (void *)1); 23 | ASSERT(_mongoc_queue_pop_head(&q) == (void *)2); 24 | ASSERT(_mongoc_queue_pop_head(&q) == (void *)4); 25 | ASSERT(!_mongoc_queue_pop_head(&q)); 26 | } 27 | 28 | 29 | void 30 | test_queue_install (TestSuite *suite) 31 | { 32 | TestSuite_Add (suite, "/Queue/basic", test_mongoc_queue_basic); 33 | } 34 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-mongoc-thread.c: -------------------------------------------------------------------------------- 1 | #include "mongoc-thread-private.h" 2 | 3 | #include "TestSuite.h" 4 | 5 | 6 | static void 7 | test_cond_wait (void) 8 | { 9 | int64_t start, duration_usec; 10 | mongoc_mutex_t mutex; 11 | mongoc_cond_t cond; 12 | 13 | mongoc_mutex_init (&mutex); 14 | mongoc_cond_init (&cond); 15 | 16 | mongoc_mutex_lock (&mutex); 17 | start = bson_get_monotonic_time (); 18 | mongoc_cond_timedwait (&cond, &mutex, 100); 19 | duration_usec = bson_get_monotonic_time () - start; 20 | mongoc_mutex_unlock (&mutex); 21 | 22 | if (!((50 * 1000 < duration_usec) && (150 * 1000 > duration_usec))) { 23 | fprintf (stderr, "expected to wait 100ms, waited %" PRId64 "\n", 24 | duration_usec); 25 | } 26 | 27 | mongoc_cond_destroy (&cond); 28 | mongoc_mutex_destroy (&mutex); 29 | } 30 | 31 | 32 | void 33 | test_thread_install (TestSuite *suite) 34 | { 35 | TestSuite_Add (suite, "/Thread/cond_wait", test_cond_wait); 36 | } 37 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-mongoc-usleep.c: -------------------------------------------------------------------------------- 1 | #include "mongoc-util-private.h" 2 | #include "TestSuite.h" 3 | 4 | 5 | static void 6 | test_mongoc_usleep_basic (void) 7 | { 8 | int64_t start; 9 | int64_t duration; 10 | 11 | start = bson_get_monotonic_time (); 12 | _mongoc_usleep (50 * 1000); /* 50 ms */ 13 | duration = bson_get_monotonic_time () - start; 14 | ASSERT_CMPINT ((int) duration, >, 0); 15 | ASSERT_CMPTIME ((int) duration, 200 * 1000); 16 | } 17 | 18 | void 19 | test_usleep_install (TestSuite *suite) 20 | { 21 | TestSuite_Add (suite, "/Sleep/basic", test_mongoc_usleep_basic); 22 | } 23 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-mongoc-version.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "TestSuite.h" 4 | 5 | static void 6 | test_mongoc_version (void) 7 | { 8 | ASSERT_CMPINT (mongoc_get_major_version(), ==, MONGOC_MAJOR_VERSION); 9 | ASSERT_CMPINT (mongoc_get_minor_version(), ==, MONGOC_MINOR_VERSION); 10 | ASSERT_CMPINT (mongoc_get_micro_version(), ==, MONGOC_MICRO_VERSION); 11 | ASSERT_CMPSTR (mongoc_get_version(), MONGOC_VERSION_S); 12 | 13 | ASSERT (mongoc_check_version (MONGOC_MAJOR_VERSION, 14 | MONGOC_MINOR_VERSION, 15 | MONGOC_MICRO_VERSION)); 16 | 17 | ASSERT (!mongoc_check_version (MONGOC_MAJOR_VERSION, 18 | MONGOC_MINOR_VERSION + 1, 19 | MONGOC_MICRO_VERSION)); 20 | } 21 | 22 | void 23 | test_version_install (TestSuite *suite) 24 | { 25 | TestSuite_Add (suite, "/Version", test_mongoc_version); 26 | } 27 | -------------------------------------------------------------------------------- /src/libmongoc/tests/test-x509.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "TestSuite.h" 5 | 6 | 7 | static void 8 | test_extract_subject (void) 9 | { 10 | char *subject; 11 | 12 | subject = _mongoc_ssl_extract_subject (BINARY_DIR"/../certificates/client.pem"); 13 | ASSERT (0 == strcmp (subject, "CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New York,C=US")); 14 | bson_free (subject); 15 | } 16 | 17 | 18 | void 19 | test_x509_install (TestSuite *suite) 20 | { 21 | TestSuite_Add (suite, "/SSL/extract_subject", test_extract_subject); 22 | } 23 | -------------------------------------------------------------------------------- /src/liboconfig/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stackdriver/collectd/ccc43fa71e9f0697bebf51efdb7fa28166563755/src/liboconfig/AUTHORS -------------------------------------------------------------------------------- /src/liboconfig/ChangeLog: -------------------------------------------------------------------------------- 1 | 2007-02-15, Version 0.1.1 2 | * src/parser.y: Fixes a memory leak. 3 | 4 | 2007-02-11, Version 0.1.0 5 | * Initial release. 6 | -------------------------------------------------------------------------------- /src/liboconfig/aux_types.h: -------------------------------------------------------------------------------- 1 | #ifndef AUX_TYPES_H 2 | #define AUX_TYPES_H 1 3 | 4 | struct statement_list_s 5 | { 6 | oconfig_item_t *statement; 7 | int statement_num; 8 | }; 9 | typedef struct statement_list_s statement_list_t; 10 | 11 | struct argument_list_s 12 | { 13 | oconfig_value_t *argument; 14 | int argument_num; 15 | }; 16 | typedef struct argument_list_s argument_list_t; 17 | 18 | #endif /* AUX_TYPES_H */ 19 | -------------------------------------------------------------------------------- /src/pinba.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto2"; 2 | 3 | package Pinba; 4 | option optimize_for = SPEED; 5 | 6 | message Request { 7 | required string hostname = 1; 8 | required string server_name = 2; 9 | required string script_name = 3; 10 | required uint32 request_count = 4; 11 | required uint32 document_size = 5; 12 | required uint32 memory_peak = 6; 13 | required float request_time = 7; 14 | required float ru_utime = 8; 15 | required float ru_stime = 9; 16 | 17 | repeated uint32 timer_hit_count = 10; 18 | repeated float timer_value = 11; 19 | repeated uint32 timer_tag_count = 12; 20 | repeated uint32 timer_tag_name = 13; 21 | repeated uint32 timer_tag_value = 14; 22 | repeated string dictionary = 15; 23 | optional uint32 status = 16; 24 | } 25 | -------------------------------------------------------------------------------- /src/stackdriver-agent-keys.h: -------------------------------------------------------------------------------- 1 | #ifndef STACKDRIVER_AGENT_KEYS_H 2 | #define STACKDRIVER_AGENT_KEYS_H 3 | 4 | #define SAGT_API_REQUESTS_SUCCESS "api_requests_success" 5 | #define SAGT_API_REQUESTS_CONNECTIVITY_FAILURES "api_requests_connectivity_failures" 6 | #define SAGT_API_REQUESTS_ERRORS "api_requests_errors" 7 | 8 | #define SAGT_STATUS_HTTP_OK "200" 9 | #define SAGT_POINT_COUNT "point_count" 10 | 11 | #define SAGT_STREAMSPACE_SIZE "streamspace_size" 12 | #define SAGT_STREAMSPACE_SIZE_THROTTLING "streamspace_size_throttling" 13 | 14 | #endif // STACKDRIVER_AGENT_KEYS_H 15 | -------------------------------------------------------------------------------- /src/valgrind.FreeBSD.suppress: -------------------------------------------------------------------------------- 1 | { 2 | strlen_bogus_invalid_read_after_strdup 3 | Memcheck:Addr4 4 | fun:parse_value 5 | ... 6 | fun:main 7 | } 8 | -------------------------------------------------------------------------------- /stackdriver/README.md: -------------------------------------------------------------------------------- 1 | Packaging build directory. 2 | -------------------------------------------------------------------------------- /testwrapper.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # collectd -- testwrapper.sh 4 | # 5 | # A wrapper script for running tests. If valgrind is available, memory 6 | # checking will be enabled for all tests. 7 | 8 | set -e 9 | 10 | MEMCHECK="" 11 | 12 | if test -n "$VALGRIND"; then 13 | MEMCHECK="$VALGRIND --quiet --tool=memcheck --error-exitcode=1" 14 | MEMCHECK="$MEMCHECK --trace-children=yes" 15 | MEMCHECK="$MEMCHECK --leak-check=full" 16 | MEMCHECK="$MEMCHECK --gen-suppressions=all" 17 | 18 | for f in "valgrind.$( uname -s ).suppress" "valgrind.suppress"; do 19 | filename="$( dirname "$0" )/src/$f" 20 | if test -e "$filename"; then 21 | # Valgrind supports up to 100 suppression files. 22 | MEMCHECK="$MEMCHECK --suppressions=$filename" 23 | fi 24 | done 25 | fi 26 | 27 | exec $MEMCHECK "$@" 28 | 29 | # vim: set tw=78 sw=4 ts=4 noexpandtab : 30 | 31 | -------------------------------------------------------------------------------- /version-gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DEFAULT_VERSION="5.8.1.git" 4 | 5 | if [ -d .git ]; then 6 | VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//' -e 's/-/./g'`" 7 | fi 8 | 9 | if test -z "$VERSION"; then 10 | VERSION="$DEFAULT_VERSION" 11 | fi 12 | 13 | printf "%s" "$VERSION" 14 | --------------------------------------------------------------------------------