+I'Berkeley DB: memp_fclose[P

memp_fclose





#include <db.h>

intmemp_fclose(DB_MPOOLFILE *mpf);





Description



@The memp_fclose function closes the source file indicated by the;DB_MPOOLFILE structure. Calling memp_fclose does not implyma call to memp_fsync, i.e. no pages are written to the source+file as as a result of calling memp_fclose.

pIn addition, if the file argument to memp_fopen was NULL,Cany underlying files created for this DB_MPOOLFILE will be removed.

The memp_fcloseHfunction returns the value of errno on failure, and 0 on success.



Errors

TIf a fatal error occurs in Berkeley DB, the memp_fclose function may fail and returnFDB_RUNRECOVERY, at which point all subsequent database calls will alsoreturn DB_RUNRECOVERY.

The memp_fclose)function may fail and return errnoKfor any of the errors specified for the following Berkeley DB and C library functions: abort(3), close(3), fcntl(3), fflush(3), fprintf(3),free(3), getpid(3), memset(3), munmap(3), strerror(3), vfprintf(3),and vsnprintf(3).



See Also

8memp_close, memp_fclose,9memp_fget,;memp_fopen,9memp_fput,9memp_fset,;memp_fsync,6memp_open,Amemp_register,6memp_stat,6memp_stat,6memp_sync,;memp_trickleand:memp_unlink.
ÿÿ