Description: Generic GDBM database and log routines.
db_openRead // db_openWrite // db_reopenRead // db_reopenWrite // db_close // db_getAccessTime // db_setAccessTime // db_getUID
log_add // log_clean // log_flush // log_info // log_outstrSuffix // log_purge // log_purgeAll // log_print // log_search // log_suffix
The following functions manipulate GDBM databases.
Opens a database for reading.
No return value.
No return value.
Reopens a database in read mode.
No return value.
Reopens a database in write mode.
No return value.
Closes a database.
No return value.
Returns the time that an object in the database was last accessed by a particular client and user. The information is stored under the tuple <ClientHost, User, Object>.
Returns the access time for the object, or 0 if the the object is not found in the database.
Sets the time that an object in the database was last accessed by a particular client and user. The information is stored under the tuple <ClientHost, User, Object>.
No return value.
Generates a unique object identifier.
Returns a newly allocated string containing a unique object identifier. The caller is responsible for freeing the string.
All the following functions manipulate the operation log for a particular object.
Adds a log record to an object in the data base.
No return value.
Clean the log records for an object in the database.
No return value.
Flush out all log information and log records.
No return value.
Return information about an object's log records.
Returns -1, if no log information is found for the object. Otherwise, returns 1.
Given a log record, output it as a log suffix record.
Returns 1.
Purge the log records for an object.
No return value.
Purge the log records for all objects in the database.
No return value.
Print the log records for an object in the database.
No return value.
Search for a matching log record for an object in the database.
Returns the log record, if one is found. Otherwise, returns NULL.
Generate a log suffix for an object in the database.
No return value.