aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/lib/kernel/include/dist.hrl
blob: db4a5eaebc9d0ede03719fe0a9bcec3a2f7bbcb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%%
%% %CopyrightBegin%
%% 
%% Copyright Ericsson AB 1999-2016. All Rights Reserved.
%% 
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%%     http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%% 
%% %CopyrightEnd%
%%

%%
%% Distribution capabilities flags (corresponds with dist.h).
%%

-define(DFLAG_PUBLISHED,1).
-define(DFLAG_ATOM_CACHE,2).
-define(DFLAG_EXTENDED_REFERENCES,4).
-define(DFLAG_DIST_MONITOR,8).
-define(DFLAG_FUN_TAGS,16#10).
-define(DFLAG_DIST_MONITOR_NAME,16#20).
-define(DFLAG_HIDDEN_ATOM_CACHE,16#40).
-define(DFLAG_NEW_FUN_TAGS,16#80).
-define(DFLAG_EXTENDED_PIDS_PORTS,16#100).
-define(DFLAG_EXPORT_PTR_TAG,16#200).
-define(DFLAG_BIT_BINARIES,16#400).
-define(DFLAG_NEW_FLOATS,16#800).
-define(DFLAG_UNICODE_IO,16#1000).
-define(DFLAG_DIST_HDR_ATOM_CACHE,16#2000).
-define(DFLAG_SMALL_ATOM_TAGS, 16#4000).
-define(DFLAG_UTF8_ATOMS, 16#10000).
-define(DFLAG_MAP_TAG, 16#20000).
-define(DFLAG_BIG_CREATION, 16#40000).
-define(DFLAG_SEND_SENDER, 16#80000).

%% DFLAGs that require strict ordering or:ed together...
-define(DFLAGS_STRICT_ORDER_DELIVERY,
        ?DFLAG_DIST_HDR_ATOM_CACHE).


%% Also update dflag2str() in ../src/dist_util.erl
%% when adding flags...

-define(DFLAGS_ALL,
        (?DFLAG_PUBLISHED
             bor ?DFLAG_ATOM_CACHE
             bor ?DFLAG_EXTENDED_REFERENCES
             bor ?DFLAG_DIST_MONITOR
             bor ?DFLAG_FUN_TAGS
             bor ?DFLAG_DIST_MONITOR_NAME
             bor ?DFLAG_HIDDEN_ATOM_CACHE
             bor ?DFLAG_NEW_FUN_TAGS
             bor ?DFLAG_EXTENDED_PIDS_PORTS
             bor ?DFLAG_EXPORT_PTR_TAG
             bor ?DFLAG_BIT_BINARIES
             bor ?DFLAG_NEW_FLOATS
             bor ?DFLAG_UNICODE_IO
             bor ?DFLAG_DIST_HDR_ATOM_CACHE
             bor ?DFLAG_SMALL_ATOM_TAGS
             bor ?DFLAG_UTF8_ATOMS
             bor ?DFLAG_MAP_TAG
             bor ?DFLAG_BIG_CREATION
             bor ?DFLAG_SEND_SENDER)).