dbm_open()

open a database 

Function


SYNOPSIS

#include <ndbm.h>

DBM *dbm_open(const char *file, int open_flags, mode_t file_mode);


DESCRIPTION

The dbm_open() function opens a database.


PARAMETERS

file 

Is the path name of the database.

open_flags 

Has the same meaning as the flags parameter to open(), except that a database opened for write-only access opens the database for read and write access, and the behavior of the O_APPEND flag is unspecified.

file_mode 

has the same meaning as the third argument to open().


RETURN VALUES

The dbm_open() function returns a pointer to a database structure. If an error is detected during the operation, dbm_open() returns a null pointer.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

None


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
dbm_clearerr(), dbm_close(), dbm_delete(), dbm_error(), dbm_fetch(), dbm_firstkey(), dbm_nextkey(), dbm_store(), dbopen(), open()


PTC MKS Toolkit 10.4 Documentation Build 39.