// CopyFDFlag copies env to the file descriptor fd, with options. // // See mdb_env_copyfd2. func (env *Env) CopyFDFlag(fd uintptr, flags uint) error { ret := C.mdb_env_copyfd2(env._env, C.mdb_filehandle_t(fd), C.uint(flags)) return operrno("mdb_env_copyfd2", ret) }
func (env *Env) CopyFD2(fd uintptr, flags uint) error { cfd := C.mdb_filehandle_t(fd) ret := C.mdb_env_copyfd2(env._env, cfd, C.uint(flags)) return errno(ret) }