DBENV→open

						#include <db.h>
						int
						DBENV→open(DB_ENV *, char *db_home, u_int32_t flags, int mode);
					

Description

The DBENV→open function is the interface for opening the Berkeley DB environment. It provides a structure for creating a consistent environment for processes using one or more of the features of Berkeley DB.

The db_home argument to DBENV→open (and file name resolution in general) is described in “Berkeley DB File Naming.”

The flags argument specifies the subsystems that are initialized and how the application’s environment affects Berkeley DB file naming, among other things.

The flags value must be set to 0 or by bitwise inclusively OR’ing together one or more of the following values.

Because there are a large number of flags that can ...

Get Berkeley DB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.