37 lines
1.7 KiB
Erlang
37 lines
1.7 KiB
Erlang
%%-------------------------------------------------------------------
|
|
%% This file is part of LMDB - Erlang Lightning MDB API
|
|
%%
|
|
%% Copyright (c) 2012 by Aleph Archives. All rights reserved.
|
|
%% Copyright (c) 2013 by Basho Technologies, Inc. All rights reserved.
|
|
%%
|
|
%%-------------------------------------------------------------------
|
|
%% Redistribution and use in source and binary forms, with or without
|
|
%% modification, are permitted only as authorized by the OpenLDAP
|
|
%% Public License.
|
|
%%
|
|
%% A copy of this license is available in the file LICENSE in the
|
|
%% top-level directory of the distribution or, alternatively, at
|
|
%% <http://www.OpenLDAP.org/license.html>.
|
|
%%
|
|
%% Permission to use, copy, modify, and distribute this software for any
|
|
%% purpose with or without fee is hereby granted, provided that the above
|
|
%% copyright notice and this permission notice appear in all copies.
|
|
%%
|
|
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
%%-------------------------------------------------------------------
|
|
|
|
|
|
%% Environment Flags
|
|
-define(MDB_FIXEDMAP, 16#01).
|
|
-define(MDB_NOSUBDIR, 16#02).
|
|
-define(MDB_NOSYNC, 16#10000).
|
|
-define(MDB_RDONLY, 16#20000).
|
|
-define(MDB_NOMETASYNC, 16#40000).
|
|
-define(MDB_WRITEMAP, 16#80000).
|
|
-define(MDB_MAPASYNC, 16#100000).
|