From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- docs/installation/build_vxworks_notes.html | 98 +++++++++++++++++++----------- 1 file changed, 61 insertions(+), 37 deletions(-) (limited to 'docs/installation/build_vxworks_notes.html') diff --git a/docs/installation/build_vxworks_notes.html b/docs/installation/build_vxworks_notes.html index ad75e763..c6a9592c 100644 --- a/docs/installation/build_vxworks_notes.html +++ b/docs/installation/build_vxworks_notes.html @@ -14,7 +14,7 @@ -

Berkeley DB currently disallows the DB_TRUNCATE flag to the -DB->open() method on VxWorks because the operations this flag represents -are not fully supported under VxWorks.

-

The DB->sync() method is implemented using an ioctl call into the file -system driver with the FIOSYNC command. Most, but not all file system -drivers support this call. Berkeley DB requires the use of a file system -that supports FIOSYNC.

+

+ Berkeley DB currently disallows the DB_TRUNCATE flag to + the DB->open() method on VxWorks because the operations this + flag represents are not fully supported under VxWorks. +

+

+ The DB->sync() method is implemented using an ioctl call into + the file system driver with the FIOSYNC command. Most, but not + all file system drivers support this call. Berkeley DB + requires the use of a file system that supports + FIOSYNC. +

-

Building and Running the Demo Program

+

Building and Running the Demo Program

-

The demo program should be built in a manner very similar to building -Berkeley DB. If you want different or additional BSP build specifications you -should add them by following the directions indicated in -Building for VxWorks 6.x.

-

The demo program can be downloaded and run by calling the entry function -dbdemo with the pathname of a database to use. The demo -program will ask for some input keys. It creates a database and adds -those keys into the database, using the reverse of the key as the data -value. When complete you can either enter EOF (control-D) or -quit and the demo program will display all of the key/data -items in the database.

+

+ The demo program should be built in a manner very + similar to building Berkeley DB. If you want different or + additional BSP build specifications you should add them by + following the directions indicated in Building for VxWorks 6.x. +

+

+ The demo program can be downloaded and run by calling + the entry function dbdemo + with the pathname of a database to use. The demo program + will ask for some input keys. It creates a database and + adds those keys into the database, using the reverse of + the key as the data value. When complete you can either + enter EOF (control-D) or quit + and the demo program will display all + of the key/data items in the database. +

-

Building and Running the Utility Programs

+

Building and Running the Utility Programs

-

The Berkeley DB utilities can be downloaded and run by calling the function equivalent to the utility's name. The utility functions take a string containing all the supported arguments. The program will then decompose that string into a traditional argc/argv used internally. For example, to execute db_stat utility on a database within an environment you would execute the following from the windsh prompt. Obviously you would change the pathname and database name to reflect -your system.

+

+ The Berkeley DB utilities can be downloaded and run by + calling the function equivalent to the utility's name. The + utility functions take a string containing all the + supported arguments. The program will then decompose that + string into a traditional argc/argv used internally. For + example, to execute db_stat utility on a database within an + environment you would execute the following from the + windsh prompt. Obviously you would change the pathname and + database name to reflect your system. +

> db_stat "-h /tmp/myenvhome -d mydatabase.db"
-

Support for Replication Manager

+

Support for Replication Manager

-

The Berkeley DB Replication Manager component is available on Vxworks 6.x because it provides support for TCP/IP sockets and POSIX 1003.1 - style networking and threads. You must build Berkley DB for Vxworks using the command line. Prior to building Berkeley DB, ensure you set appropriate values for the variables - specified in Step 1 of Building for VxWorks 6.x. To use Berkeley DB Replication Manager, netLib and ioLib must be present in the Vxworks image. -

+

+ The Berkeley DB Replication Manager component is + available on Vxworks 6.x because it provides support for + TCP/IP sockets and POSIX 1003.1 style networking and + threads. You must build Berkley DB for Vxworks using the + command line. Prior to building Berkeley DB, ensure you + set appropriate values for the variables specified in Step + 1 of Building for VxWorks 6.x. To use + Berkeley DB Replication Manager, netLib + and ioLib must be present in the + Vxworks image. +