pub unsafe extern "C" fn mdb_env_get_fd(
env: *mut MDB_env,
fd: *mut mdb_filehandle_t,
) -> c_int
Expand description
@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.)
@param[in] env An environment handle returned by #mdb_env_create() @param[out] 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.