⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notes.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: notes.so,v 1.20 2004/10/08 17:16:54 sue Exp $])m4_ref_title(Building m4_db for VxWorks systems,    VxWorks notes, @VxWorks notes, build_vxworks/intro, build_vxworks/faq)m4_p([dnlm4_db currently disallows the DB_TRUNC flag to m4_ref(dbh_open).  Theoperations that this flag represents are not fully supported underVxWorks.])m4_p([dnlThe m4_ref(dbh_sync) function is implemented using an ioctl call intothe file system driver with the FIOSYNC command.  Most, but not all filesystem drivers support this call.  m4_db requires the use of a filesystem supporting FIOSYNC.])m4_section([Building and Running the Demo Program])m4_p([dnlThe demo program should be built in a manner very similar tobuilding m4_db.  If you want different or additional BSPbuild specifications you should add them by following thedirections indicated in m4_link(M4RELDIR/ref/build_vxworks/intro, Buildingwith Tornado 2.0 or Tornado 2.2).])m4_p([dnlThe demo program can be downloaded and run by calling the entry functionm4_bold(dbdemo) with the pathname of a database to use.  The demoprogram will ask for some input keys.  It creates a database and addsthose keys into the database, using the reverse of the key as the datavalue.  When complete you can either enter EOF (control-D) orm4_bold(quit) and the demo program will display all of the key/dataitems in the database.])m4_section([Building and Running the Utility Programs])m4_p([dnlThe m4_db  m4_link(M4RELDIR/utility/index, utility programs)can be downloaded and run by calling thefunction equivalent to the utility's name.  The utility functions takea string containing all the supported arguments.  The program will thendecompose that string into a traditional argc/argv used internally.For example, to execute m4_ref(db_stat) on a database within anenvironment you would execute the following from the windsh prompt.Obviously you would change the pathname and database name to reflectyour system.])m4_indent([-__GT__ db_stat "-h /tmp/myenvhome -d mydatabase.db"])m4_section([Notes for VxWorks 5.4/5.5])m4_p([dnlThe memory on VxWorks is always resident and fully shared among alltasks running on the target.  For this reason, the m4_ref(DB_SYSTEM_MEM)flag is implied for any application that does not specify them4_ref(DB_PRIVATE) flag.  Additionally, applications must use a segmentID to ensure that different applications do not overwrite each other'sdatabase environments.  See the m4_refT(dbenv_set_shm_key) for moreinformation.  Also, the m4_ref(DB_LOCKDOWN) flag has no effect.])m4_p([dnlA default small footprint build is provided.  This default providesequivalent to the m4_arg(--enable-smallbuild) configuration optiondescribed in m4_link(M4RELDIR/ref/build_unix/small, Building asmall memory footprint library).  In order to build the smallfootprint, you should move m4_path([db_config.h]) aside and copym4_path([db_config_small.h]) to m4_path([db_config.h]).  Then open upthe appropriate small workspace file via Tornado and build as usual.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -