~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/emulator/beam/external.h

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
 
 * 
4
 
 * Copyright Ericsson AB 1996-2009. All Rights Reserved.
5
 
 * 
 
3
 *
 
4
 * Copyright Ericsson AB 1996-2010. All Rights Reserved.
 
5
 *
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
8
8
 * compliance with the License. You should have received a copy of the
9
9
 * Erlang Public License along with this software. If not, it can be
10
10
 * retrieved online at http://www.erlang.org/.
11
 
 * 
 
11
 *
12
12
 * Software distributed under the License is distributed on an "AS IS"
13
13
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
 * the License for the specific language governing rights and limitations
15
15
 * under the License.
16
 
 * 
 
16
 *
17
17
 * %CopyrightEnd%
18
18
 */
19
19
 
98
98
    Eterm atom[ERTS_ATOM_CACHE_SIZE];
99
99
} ErtsAtomTranslationTable;
100
100
 
101
 
#define ERTS_DIST_EXT_DFLAG_HDR (((Uint32) 1) << 31)
102
 
#define ERTS_DIST_EXT_ATOM_TRANS_TAB (((Uint32) 1) << 30)
103
 
#define ERTS_DIST_EXT_CON_ID_MASK ((Uint32) 0x3fffffff)
 
101
/*
 
102
 * These flags are tagged onto the high bits of a connection ID and stored in
 
103
 * the ErtsDistExternal structure's flags field.  They are used to indicate
 
104
 * various bits of state necessary to decode binaries in a variety of
 
105
 * scenarios. The mask ERTS_DIST_EXT_CON_ID_MASK is used later to separate the
 
106
 * connection ID from the flags. Be careful to ensure that the mask does not
 
107
 * overlap any of the bits used for flags, or ERTS will leak flags bits into
 
108
 * connection IDs and leak connection ID bits into the flags.
 
109
 */
 
110
#define ERTS_DIST_EXT_DFLAG_HDR      ((Uint32) 0x80000000)
 
111
#define ERTS_DIST_EXT_ATOM_TRANS_TAB ((Uint32) 0x40000000)
 
112
#define ERTS_DIST_EXT_BTT_SAFE       ((Uint32) 0x20000000)
 
113
#define ERTS_DIST_EXT_CON_ID_MASK    ((Uint32) 0x1fffffff)
104
114
 
105
115
#define ERTS_DIST_EXT_CON_ID(DIST_EXTP) \
106
116
  ((DIST_EXTP)->flags & ERTS_DIST_EXT_CON_ID_MASK)