mdb_env_get_fd function
@brief Return the filedescriptor for the given environment.
This function may be called after fork(), so the descriptor can be closed before exec*(). Other LMDB file descriptors have FD_CLOEXEC. (Until LMDB 0.9.18, only the lockfile had that.)
@paramin
env An environment handle returned by #mdb_env_create()
@paramout
fd Address of a mdb_filehandle_t to contain the descriptor.
@return A non-zero error value on failure and 0 on success. Some possible
errors are:
- EINVAL - an invalid parameter was specified.
Implementation
@ffi.FfiNative<
ffi.Int Function(
ffi.Pointer<MDB_env>, ffi.Pointer<mdb_filehandle_t>)>('mdb_env_get_fd')
external int mdb_env_get_fd(
ffi.Pointer<MDB_env> env,
ffi.Pointer<mdb_filehandle_t> fd,
);