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 ...
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.