anchor.diff:  lock_stat(Opts) ->
       Flags = process_flags(Opts),
       Cmd = <<Flags:32/native>>,
  -    <<Result:32/signed-native>> = erlang:port_control(get_port(), ?CMD_LOCK_STAT, Cmd),
  -    case decode_rc(Result) of
  -        ok ->
  -            receive
  -                {error, Reason} ->
  -                    {error, Reason};
  -                {ok, Stats} ->
  -                    {ok, Stats}
  -            end;
  -        Error ->
  -            {error, Error}
  -    end.
  +    <<Rc:32/signed-native>> = erlang:port_control(get_port(), ?CMD_LOCK_STAT, Cmd),
  +    recv_val(Rc).
   
   %%--------------------------------------------------------------------
   %% @doc
  
positive.code: 
  cursor_close() ->
      <<Rc:32/signed-native>> = erlang:port_control(get_port(), ?CMD_CURSOR_CLOSE, <<>>),
      case decode_rc(Rc) of
          ok ->
              receive
                  ok -> ok;
                  {error, Reason} -> {error, Reason}
              end;
          Reason ->
              {error, Reason}
      end.
  
  
  %%--------------------------------------------------------------------
  %% @doc
  
negative.code:     Flags = process_flags(Opts),
      Cmd = <<Db:32/signed-native, Flags:32/native>>,
      <<Rc:32/signed-native>> = erlang:port_control(get_port(), ?CMD_CLOSE_DB, Cmd),
      recv_ok(Rc).
  
  %%--------------------------------------------------------------------
  %% @doc
  