O'Reilly logo

Berkeley DB by Sleepycat™ Software, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

memp_fopen

						#include <db.h>
						int
						memp_fopen(DB_ENV *env, char *file, u_int32_t flags,
						int mode, size_t pagesize, DB_MPOOL_FINFO *finfop,
						DB_MPOOLFILE **mpf);
					

Description

The memp_fopen function opens a file in the pool specified by the DB_ENV env, copying the DB_MPOOLFILE pointer representing it into the memory location referenced by mpf.

The file argument is the name of the file to be opened. If file is NULL, a private temporary file is created that cannot be shared with any other process (although it may be shared with other threads).

The flags and mode arguments specify how files will be opened and/or created if they do not already exist.

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required