home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / gdbm-1.7.1-bin.lha / info / gdbm.info
Encoding:
GNU Info File  |  1994-02-22  |  23.4 KB  |  698 lines

  1. This is Info file gdbm.info, produced by Makeinfo-1.49 from the input
  2. file ./gdbm.texinfo.
  3.  
  4.    This file documents the GNU dbm utility.
  5.  
  6.    Copyright (C) 1989-1993 Free Software Foundation, Inc.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the entire resulting derived work is distributed under the terms
  15. of a permission notice identical to this one.
  16.  
  17.    Permission is granted to copy and distribute translations of this
  18. manual into another language, under the above conditions for modified
  19. versions.
  20.  
  21. 
  22. File: gdbm.info,  Node: Top,  Next: Copying,  Prev: (dir),  Up: (dir)
  23.  
  24.    GNU `dbm' is a library of functions implementing a hashed database
  25. on a disk file.  This manual documents GNU `dbm' Version 1.7.1
  26. (`gdbm').  The software was written by Philip A. Nelson. This document
  27. was originally written by Pierre Gaumond from texts written by Phil.
  28.  
  29. * Menu:
  30.  
  31. Introduction:
  32.  
  33. * Copying::                    Your rights.
  34. * Intro::                      Introduction to GNU dbm.
  35. * List::                       List of functions.
  36.  
  37. Functions:
  38.  
  39. * Open::                       Opening the database.
  40. * Close::                      Closing the database.
  41. * Store::                      Inserting and replacing records in the database.
  42. * Fetch::                      Searching records in the database.
  43. * Delete::                     Removing records from the database.
  44. * Sequential::                 Sequential access to records.
  45. * Reorganization::             Database reorganization.
  46. * Sync::                       Insure all writes to disk have competed.
  47. * Errors::                     Convert internal error codes into English.
  48. * Options::                    Setting internal options.
  49.  
  50. Other topics:
  51.  
  52. * Variables::                  Two useful variables.
  53. * Compatibility::              Compatibility with UNIX dbm and ndbm.
  54. * Conversion::                 Converting dbm files to gdbm format.
  55. * Bugs::                       Problems and bugs.
  56.  
  57. 
  58. File: gdbm.info,  Node: Copying,  Next: Intro,  Prev: Top,  Up: Top
  59.  
  60. Copying Conditions.
  61. *******************
  62.  
  63.    This library is "free"; this means that everyone is free to use it
  64. and free to redistribute it on a free basis.  GNU `dbm' (`gdbm') is not
  65. in the public domain; it is copyrighted and there are restrictions on
  66. its distribution, but these restrictions are designed to permit
  67. everything that a good cooperating citizen would want to do.  What is
  68. not allowed is to try to prevent others from further sharing any
  69. version of `gdbm' that they might get from you.
  70.  
  71.    Specifically, we want to make sure that you have the right to give
  72. away copies `gdbm', that you receive source code or else can get it if
  73. you want it, that you can change these functions or use pieces of them
  74. in new free programs, and that you know you can do these things.
  75.  
  76.    To make sure that everyone has such rights, we have to forbid you to
  77. deprive anyone else of these rights.  For example, if you distribute
  78. copies `gdbm', you must give the recipients all the rights that you
  79. have.  You must make sure that they, too, receive or can get the source
  80. code.  And you must tell them their rights.
  81.  
  82.    Also, for our own protection, we must make certain that everyone
  83. finds out that there is no warranty for anything in the `gdbm'
  84. distribution. If these functions are modified by someone else and
  85. passed on, we want their recipients to know that what they have is not
  86. what we distributed, so that any problems introduced by others will not
  87. reflect on our reputation.
  88.  
  89.    `gdbm' is currently distributed under the terms of the GNU General
  90. Public License, Version 2.  (*NOT* under the GNU General Library Public
  91. License.)  A copy the GNU General Public License is included with the
  92. distribution of `gdbm'.
  93.  
  94. 
  95. File: gdbm.info,  Node: Intro,  Next: List,  Prev: Copying,  Up: Top
  96.  
  97. Introduction to GNU `dbm'.
  98. **************************
  99.  
  100.    GNU `dbm' (`gdbm')is a library of database functions that use
  101. extendible hashing and works similar to the standard UNIX `dbm'
  102. functions.  These routines are provided to a programmer needing to
  103. create and manipulate a hashed database. (`gdbm' is *NOT* a complete
  104. database package for an end user.)
  105.  
  106.    The basic use of `gdbm' is to store key/data pairs in a data file.
  107. Each key must be unique and each key is paired with only one data item.
  108. The keys can not be directly accessed in sorted order.  The basic unit
  109. of data in `gdbm' is the structure:
  110.  
  111.        typedef struct {
  112.                   char *dptr;
  113.                   int  dsize;
  114.                } datum;
  115.  
  116.    This structure allows for arbitrary sized keys and data items.
  117.  
  118.    The key/data pairs are stored in a `gdbm' disk file, called a `gdbm'
  119. database.  An application must open a `gdbm' database to be able
  120. manipulate the keys and data contained in the database. `gdbm' allows
  121. an application to have multiple databases open at the same time.  When
  122. an application opens a `gdbm' database, it is designated as a `reader'
  123. or a `writer'.  A `gdbm' database opened by at most one writer at a
  124. time.  However, many readers may open the database open simultaneously.
  125.  Readers and writers can not open the `gdbm' database at the same time.
  126.  
  127. 
  128. File: gdbm.info,  Node: List,  Next: Open,  Prev: Intro,  Up: Top
  129.  
  130. List of functions.
  131. ******************
  132.  
  133.    The following is a quick list of the functions contained in the
  134. `gdbm' library. The include file `gdbm.h', that can be included by the
  135. user, contains a definition of these functions.
  136.  
  137.      #include <gdbm.h>
  138.      
  139.      GDBM_FILE gdbm_open(name, block_size, flags, mode, fatal_func);
  140.      void gdbm_close(dbf);
  141.      int gdbm_store(dbf, key, content, flag);
  142.      datum gdbm_fetch(dbf, key);
  143.      int gdbm_delete(dbf, key);
  144.      datum gdbm_firstkey(dbf);
  145.      datum gdbm_nextkey(dbf, key);
  146.      int gdbm_reorganize(dbf);
  147.      void gdbm_sync(dbf);
  148.      int gdbm_exists(dbf, key);
  149.      char *gdbm_strerror(errno);
  150.      int gdbm_setopt(dbf, option, value, size)
  151.  
  152.    The `gdbm.h' include file is often in the `/gnu/include'
  153. directory. (The actual location of `gdbm.h' depends on your local
  154. installation of `gdbm'.)
  155.  
  156. 
  157. File: gdbm.info,  Node: Open,  Next: Close,  Prev: List,  Up: Top
  158.  
  159. Opening the database.
  160. *********************
  161.  
  162.    Initialize `gdbm' system. If the file has a size of zero bytes, a
  163. file initialization procedure is performed, setting up the initial
  164. structure in the file.
  165.  
  166.    The procedure for opening a `gdbm' file is:
  167.  
  168.      GDBM_FILE dbf;
  169.      
  170.      dbf = gdbm_open(name, block_size, flags, mode, fatal_func);
  171.  
  172.    The parameters are:
  173.  
  174. char *name
  175.      The name of the file (the complete name, `gdbm' does not append any
  176.      characters to this name).
  177.  
  178. int block_size
  179.      It is used during initialization to determine the size of various
  180.      constructs. It is the size of a single transfer from disk to
  181.      memory. This parameter is ignored if the file has been previously
  182.      initialized. The minimum size is 512. If the value is less than
  183.      512, the file system blocksize is used, otherwise the value of
  184.      `block_size' is used.
  185.  
  186. int flags
  187.      If `flags' is set to GDBM_READER, the user wants to just read the
  188.      database and any call to `gdbm_store' or `gdbm_delete' will fail.
  189.      Many readers can access the database at the same time. If `flags'
  190.      is set to GDBM_WRITER, the user wants both read and write access
  191.      to the database and requires exclusive access. If `flags' is set
  192.      to GDBM_WRCREAT, the user wants both read and write access to the
  193.      database and if the database does not exist, create a new one. If
  194.      `flags' is set to GDBM_NEWDB, the user want a new database
  195.      created, regardless of whether one existed, and wants read and
  196.      write access to the new database.  For all writers (GDBM_WRITER,
  197.      GDBM_WRCREAT and GDBM_NEWDB) the value GDBM_FAST can be added to
  198.      the `flags' field using logical or.  This option causes `gdbm' to
  199.      write the database without any disk file synchronization.  This
  200.      allows faster writes, but may produce an inconsistent database in
  201.      the event of abnormal termination of the writer. Any error
  202.      detected will cause a return value of NULL and an appropriate
  203.      value will be in `gdbm_errno' (see Variables). If no errors occur,
  204.      a pointer to the `gdbm' file descriptor will be returned.
  205.  
  206. int mode
  207.      File mode (see chmod(2) and open(2) if the file is created).
  208.  
  209. void (*fatal_func) ()
  210.      A function for `gdbm' to call if it detects a fatal error. The only
  211.      parameter of this function is a string. If the value of NULL is
  212.      provided, `gdbm' will use a default function.
  213.  
  214.    The return value, `dbf', is the pointer needed by all other
  215. functions to access that `gdbm' file. If the return is the NULL pointer,
  216. `gdbm_open' was not successful. The errors can be found in `gdbm_errno'
  217. for `gdbm' errors and in `errno' for file system errors (for error
  218. codes, see `gdbm.h').
  219.  
  220.    In all of the following calls, the parameter `dbf' refers to the
  221. pointer returned from `gdbm_open'.
  222.  
  223. 
  224. File: gdbm.info,  Node: Close,  Next: Store,  Prev: Open,  Up: Top
  225.  
  226. Closing the database.
  227. *********************
  228.  
  229.    It is important that every file opened is also closed. This is
  230. needed to update the reader/writer count on the file. This is done by:
  231.  
  232.      gdbm_close(dbf);
  233.  
  234.    The parameter is:
  235.  
  236. GDBM_FILE dbf
  237.      The pointer returned by `gdbm_open'.
  238.  
  239.    Closes the `gdbm' file and frees all memory associated with the file
  240. `dbf'.
  241.  
  242. 
  243. File: gdbm.info,  Node: Store,  Next: Fetch,  Prev: Close,  Up: Top
  244.  
  245. Inserting and replacing records in the database.
  246. ************************************************
  247.  
  248.    The function `gdbm_store' inserts or replaces records in the
  249. database.
  250.  
  251.      ret = gdbm_store(dbf, key, content, flag);
  252.  
  253.    The parameters are:
  254.  
  255. GDBM_FILE dbf
  256.      The pointer returned by `gdbm_open'.
  257.  
  258. datum key
  259.      The `key' data.
  260.  
  261. datum content
  262.      The data to be associated with the key.
  263.  
  264. int flag
  265.      Defines the action to take when the key is already in the
  266.      database. The value GDBM_REPLACE (defined in `gdbm.h') asks that
  267.      the old data be replaced by the new `content'. The value
  268.      GDBM_INSERT asks that an error be returned and no action taken if
  269.      the `key' already exists.
  270.  
  271.    The values returned in `ret' are:
  272.  
  273. -1
  274.      The item was not stored in the database because the caller was not
  275.      an official writer or either `key' or `content' have a NULL dptr
  276.      field. Both `key' and `content' must have the dptr field be a
  277.      non-NULL value. Since a NULL dptr field is used by other functions
  278.      to indicate an error, a NULL field cannot be valid data.
  279.  
  280. +1
  281.      The item was not stored because the argument `flag' was
  282.      GDBM_INSERT and the `key' was already in the database.
  283.  
  284. 0
  285.      No error. `content' is keyed by `key'. The file on disk is updated
  286.      to reflect the structure of the new database before returning from
  287.      this function.
  288.  
  289.    If you store data for a `key' that is already in the data base,
  290. `gdbm' replaces the old data with the new data if called with
  291. GDBM_REPLACE. You do not get two data items for the same `key' and you
  292. do not get an error from `gdbm_store'.
  293.  
  294.    The size in `gdbm' is not restricted like `dbm' or `ndbm'. Your data
  295. can be as large as you want.
  296.  
  297. 
  298. File: gdbm.info,  Node: Fetch,  Next: Delete,  Prev: Store,  Up: Top
  299.  
  300. Searching for records in the database.
  301. **************************************
  302.  
  303.    Looks up a given `key' and returns the information associated with
  304. that key. The pointer in the structure that is  returned is a pointer
  305. to dynamically allocated memory block. To search for some data:
  306.  
  307.      content = gdbm_fetch(dbf, key);
  308.  
  309.    The parameters are:
  310.  
  311. GDBM_FILE dbf
  312.      The pointer returned by `gdbm_open'.
  313.  
  314. datum key
  315.      The `key' data.
  316.  
  317.    The datum returned in `content' is a pointer to the data found. If
  318. the dptr is NULL, no data was found. If dptr is not NULL, then it points
  319. to data allocated by malloc. `gdbm' does not automatically free this
  320. data. The user must free this storage when done using it. This
  321. eliminates the need to copy the result to save it for later use (you
  322. just save the pointer).
  323.  
  324.    You may also search for a particular key without retrieving it,
  325. using:
  326.  
  327.      ret = gdbm_exists(dbf, key);
  328.  
  329.    The parameters are:
  330.  
  331. GDBM_FILE dbf
  332.      The pointer returned by `gdbm_open'.
  333.  
  334. datum key
  335.      The `key' data.
  336.  
  337.    Unlike `gdbm_fetch', this routine does not allocate any memory, and
  338. simply returns true or false, depending on whether the `key' exists, or
  339. not.
  340.  
  341. 
  342. File: gdbm.info,  Node: Delete,  Next: Sequential,  Prev: Fetch,  Up: Top
  343.  
  344. Removing records from the database.
  345. ***********************************
  346.  
  347.    To remove some data from the database:
  348.  
  349.      ret = gdbm_delete(dbf, key);
  350.  
  351.    The parameters are:
  352.  
  353. GDBM_FILE dbf
  354.      The pointer returned by `gdbm_open'.
  355.  
  356. datum key
  357.      The `key' data.
  358.  
  359.    The ret value is -1 if the item is not present or the requester is a
  360. reader. The ret value is 0 if there was a successful delete.
  361.  
  362.    `gdbm_delete' removes the keyed item and the `key' from the database
  363. `dbf'. The file on disk is updated to reflect the structure of the new
  364. database before returning from this function.
  365.  
  366. 
  367. File: gdbm.info,  Node: Sequential,  Next: Reorganization,  Prev: Delete,  Up: Top
  368.  
  369. Sequential access to records.
  370. *****************************
  371.  
  372.    The next two functions allow for accessing all items in the
  373. database. This access is not `key' sequential, but it is guaranteed to
  374. visit every `key' in the database once. The order has to do with the
  375. hash values. `gdbm_firstkey' starts the visit of all keys in the
  376. database. `gdbm_nextkey' finds and reads the next entry in the hash
  377. structure for `dbf'.
  378.  
  379.      key = gdbm_firstkey(dbf);
  380.      
  381.      nextkey = gdbm_nextkey(dbf, key);
  382.  
  383.    The parameters are:
  384.  
  385. GDBM_FILE dbf
  386.      The pointer returned by `gdbm_open'.
  387.  
  388. datum `key'
  389. datum nextkey
  390.      The `key' data.
  391.  
  392.    The return values are both datum. If `key'.dptr or nextkey.dptr is
  393. NULL, there is no first `key' or next `key'. Again notice that dptr
  394. points to data allocated by malloc and `gdbm' will not free it for you.
  395.  
  396.    These functions were intended to visit the database in read-only
  397. algorithms, for instance, to validate the database or similar
  398. operations.
  399.  
  400.    File `visiting' is based on a `hash table'. `gdbm_delete'
  401. re-arranges the hash table to make sure that any collisions in the
  402. table do not leave some item `un-findable'. The original key order is
  403. NOT guaranteed to remain unchanged in ALL instances. It is possible
  404. that some key will not be visited if a loop like the following is
  405. executed:
  406.  
  407.         key = gdbm_firstkey ( dbf );
  408.         while ( key.dptr ) {
  409.            nextkey = gdbm_nextkey ( dbf, key );
  410.            if ( some condition ) {
  411.               gdbm_delete ( dbf, key );
  412.               free ( key.dptr );
  413.            }
  414.            key = nextkey;
  415.         }
  416.  
  417. 
  418. File: gdbm.info,  Node: Reorganization,  Next: Sync,  Prev: Sequential,  Up: Top
  419.  
  420. Database reorganization.
  421. ************************
  422.  
  423.    The following function should be used very seldom.
  424.  
  425.      ret = gdbm_reorganize(dbf);
  426.  
  427.    The parameter is:
  428.  
  429. GDBM_FILE dbf
  430.      The pointer returned by `gdbm_open'.
  431.  
  432.    If you have had a lot of deletions and would like to shrink the space
  433. used by the `gdbm' file, this function will reorganize the database.
  434. `gdbm' will not shorten the length of a `gdbm' file (deleted file space
  435. will be reused) except by using this reorganization.
  436.  
  437.    This reorganization requires creating a new file and inserting all
  438. the elements in the old file `dbf' into the new file. The new file is
  439. then renamed to the same name as the old file and `dbf' is updated to
  440. contain all the correct information about the new file. If an error is
  441. detected, the return value is negative. The value zero is returned
  442. after a successful reorganization.
  443.  
  444. 
  445. File: gdbm.info,  Node: Sync,  Next: Errors,  Prev: Reorganization,  Up: Top
  446.  
  447. Database Synchronization
  448. ************************
  449.  
  450.    If your database was opened with the GDBM_FAST flag, `gdbm' does not
  451. wait for writes to the disk to complete before continuing.  This allows
  452. faster writing of databases at the risk of having a corrupted database
  453. if the application terminates in an abnormal fashion.  The following
  454. function allows the programmer to make sure the disk version of the
  455. database has been completely updated with all changes to the current
  456. time.
  457.  
  458.      gdbm_sync(dbf);
  459.  
  460.    The parameter is:
  461.  
  462. GDBM_FILE dbf
  463.      The pointer returned by `gdbm_open'.
  464.  
  465.    This would usually be called after a complete set of changes have
  466. been made to the database and before some long waiting time.
  467. `gdbm_close' automatically calls the equivalent of `gdbm_sync' so no
  468. call is needed if the database is to be closed immediately after the
  469. set of changes have been made.
  470.  
  471. 
  472. File: gdbm.info,  Node: Errors,  Next: Options,  Prev: Sync,  Up: Top
  473.  
  474. Error strings.
  475. **************
  476.  
  477.    To convert a `gdbm' error code into English text, use this routine:
  478.  
  479.      ret = gdbm_strerror(errno)
  480.  
  481.    The parameter is:
  482.  
  483. gdbm_error errno
  484.      The `gdbm' error code, usually `gdbm_errno'.
  485.  
  486.    The appropiate phrase for reading by humans is returned.
  487.  
  488. 
  489. File: gdbm.info,  Node: Options,  Next: Variables,  Prev: Errors,  Up: top
  490.  
  491. Seting options.
  492. ***************
  493.  
  494.    `Gdbm' now supports the ability to set certain options on an already
  495. open database.
  496.  
  497.      ret = gdbm_setopt(dbf, option, value, size)
  498.  
  499.    The parameters are:
  500.  
  501. GDBM_FILE dbf
  502.      The pointer returned by `gdbm_open'.
  503.  
  504. int option
  505.      The option to be set.
  506.  
  507. int *value
  508.      A pointer to the value to which `option' will be set.
  509.  
  510. int size
  511.      The length of the data pointed to by `value'.
  512.  
  513.    The only legal option currently is GDBM_CACHESIZE, which sets the
  514. size of the internal bucket cache.  This option may only be set once on
  515. each GDBM_FILE descriptor, and is set automatically to 100 upon the
  516. first access to the database.
  517.  
  518.    The return value will be -1 upon failure, or 0 upon success.  The
  519. global variable `gdbm_errno' will be set upon failure.
  520.  
  521.    For instance, to set a database to use a cache of 10, after opening
  522. it with `gdbm_open', but prior to accessing it in any way, the following
  523. code could be used:
  524.  
  525.      int value = 10;
  526.      ret = gdbm_setopt(dbf, GDBM_CACHESIZE, &value, sizeof(int));
  527.  
  528. 
  529. File: gdbm.info,  Node: Variables,  Next: Compatibility,  Prev: Options,  Up: Top
  530.  
  531. Two useful variables.
  532. *********************
  533.  
  534.    The following two variables are variables that may need to be used:
  535.  
  536. gdbm_error gdbm_errno
  537.      The variable that contains more information about `gdbm' errors
  538.      (`gdbm.h' has the definitions of the error values).
  539.  
  540. char * gdbm_version
  541.      The string containing the version information.
  542.  
  543. 
  544. File: gdbm.info,  Node: Compatibility,  Next: Conversion,  Prev: Variables,  Up: Top
  545.  
  546. Compatibility with standard `dbm' and `ndbm'.
  547. *********************************************
  548.  
  549.    GNU `dbm' files are not `sparse'. You can copy them with the UNIX
  550. `cp' command and they will not expand in the copying process.
  551.  
  552.    There is a compatibility mode for use with programs that already use
  553. UNIX `dbm' and UNIX `ndbm'.
  554.  
  555.    GNU `dbm' has compatibility functions for `dbm'. For `dbm'
  556. compatibility functions, you need the include file `dbm.h'.
  557.  
  558.    In this compatibility mode, no `gdbm' file pointer is required by
  559. the user, and Only one file may be opened at a time. All users in
  560. compatibility mode are assumed to be writers. If the `gdbm' file is a
  561. read only, it will fail as a writer, but will also try to open it as a
  562. reader. All returned pointers in datum structures point to data that
  563. `gdbm' WILL free. They should be treated as static pointers (as
  564. standard UNIX `dbm' does). The compatibility function names are the
  565. same as the UNIX `dbm' function names. Their definitions follow:
  566.  
  567.      int dbminit(name);
  568.      int store(key, content);
  569.      datum fetch(key);
  570.      int delete(key);
  571.      datum firstkey();
  572.      datum nextkey(key);
  573.      int dbmclose();
  574.  
  575.    Standard UNIX `dbm' and GNU `dbm' do not have the same data format
  576. in the file. You cannot access a standard UNIX `dbm' file with GNU
  577. `dbm'!  If you want to use an old database with GNU `dbm', you must use
  578. the `conv2gdbm' program.
  579.  
  580.    Also, GNU `dbm' has compatibility functions for `ndbm'. For `ndbm'
  581. compatibility functions, you need the include file `ndbm.h'.
  582.  
  583.    Again, just like `ndbm', any returned datum can be assumed to be
  584. static storage. You do not have to free that memory, the `ndbm'
  585. compatibility functions will do it for you.
  586.  
  587.    The functions are:
  588.  
  589.      DBM *dbm_open(name, flags, mode);
  590.      void dbm_close(file);
  591.      datum dbm_fetch(file, key);
  592.      int dbm_store(file, key, `content', flags);
  593.      int dbm_delete(file, key);
  594.      datum dbm_firstkey(file);
  595.      datum dbm_nextkey(file);
  596.      int dbm_error(file);
  597.      int dbm_clearerr(file);
  598.      int dbm_dirfno(file);
  599.      int dbm_pagfno(file);
  600.      int dbm_rdonly(file);
  601.  
  602.    If you want to compile an old C program that used UNIX `dbm' or
  603. `ndbm' and want to use `gdbm' files, execute the following `cc' command:
  604.  
  605.      cc ... -L /gnu/lib -lgdbm
  606.  
  607. 
  608. File: gdbm.info,  Node: Conversion,  Next: Bugs,  Prev: Compatibility,  Up: Top
  609.  
  610. Converting `dbm' files to `gdbm' format.
  611. ****************************************
  612.  
  613.    The program `conv2gdbm' has been provided to help you convert from
  614. `dbm' databases to `gdbm'. The usage is:
  615.  
  616.      conv2gdbm [-q] [-b block_size] dbm_file [gdbm_file]
  617.  
  618.    The options are:
  619.  
  620. -q
  621.      Causes `conv2gdbm' to work quietly.
  622.  
  623. block_size
  624.      Is the same as in `gdbm_open'.
  625.  
  626. dbm_file
  627.      Is the name of the `dbm' file without the `.pag' or `.dir'
  628.      extensions.
  629.  
  630. gdbm_file
  631.      Is the complete file name. If not included, the `gdbm' file name
  632.      is the same as the `dbm' file name without any extensions. That is
  633.      `conv2gdbm' `dbmfile' converts the files `dbmfile.pag' and
  634.      `dbmfile.dir' into a `gdbm' file called `dbmfile'.
  635.  
  636. 
  637. File: gdbm.info,  Node: Bugs,  Prev: Conversion,  Up: Top
  638.  
  639. Problems and bugs.
  640. ******************
  641.  
  642.    If you have problems with GNU `dbm' or think you've found a bug,
  643. please report it. Before reporting a bug, make sure you've actually
  644. found a real bug. Carefully reread the documentation and see if it
  645. really says you can do what you're trying to do. If it's not clear
  646. whether you should be able to do something or not, report that too; it's
  647. a bug in the documentation!
  648.  
  649.    Before reporting a bug or trying to fix it yourself, try to isolate
  650. it to the smallest possible input file that reproduces the problem. Then
  651. send us the input file and the exact results `gdbm' gave you. Also say
  652. what you expected to occur; this will help us decide whether the
  653. problem was really in the documentation.
  654.  
  655.    Once you've got a precise problem, send e-mail to:
  656.  
  657.      Internet: `bug-gnu-utils@prep.ai.mit.edu'.
  658.      UUCP: `mit-eddie!prep.ai.mit.edu!bug-gnu-utils'.
  659.  
  660.    Please include the version number of GNU `dbm' you are using. You
  661. can get this information by printing the variable `gdbm_version' (see
  662. Variables).
  663.  
  664.    Non-bug suggestions are always welcome as well. If you have questions
  665. about things that are unclear in the documentation or are just obscure
  666. features, please report them too.
  667.  
  668.    You may contact the author by:
  669.          e-mail:  phil@cs.wwu.edu
  670.         us-mail:  Philip A. Nelson
  671.                   Computer Science Department
  672.                   Western Washington University
  673.                   Bellingham, WA 98226
  674.  
  675.  
  676. 
  677. Tag Table:
  678. Node: Top768
  679. Node: Copying2198
  680. Node: Intro3979
  681. Node: List5395
  682. Node: Open6324
  683. Node: Close9215
  684. Node: Store9650
  685. Node: Fetch11443
  686. Node: Delete12691
  687. Node: Sequential13356
  688. Node: Reorganization15036
  689. Node: Sync15991
  690. Node: Errors16951
  691. Node: Options17311
  692. Node: Variables18430
  693. Node: Compatibility18854
  694. Node: Conversion21227
  695. Node: Bugs22041
  696. 
  697. End Tag Table
  698.