source: vendor/emx/current/src/os2/emxdll.inc

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.8 KB
Line 
1;
2; EMXDLL.INC
3;
4; Copyright (c) 1992-1995 by Eberhard Mattes
5;
6; This file is part of emx.
7;
8; emx is free software; you can redistribute it and/or modify it
9; under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2, or (at your option)
11; any later version.
12;
13; emx is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16; GNU General Public License for more details.
17;
18; You should have received a copy of the GNU General Public License
19; along with emx; see the file COPYING. If not, write to
20; the Free Software Foundation, 59 Temple Place - Suite 330,
21; Boston, MA 02111-1307, USA.
22;
23; As special exception, emx.dll can be distributed without source code
24; unless it has been changed. If you modify emx.dll, this exception
25; no longer applies and you must remove this paragraph from all source
26; files for emx.dll.
27;
28
29 OPTION PROC:PRIVATE
30
31; ----------------------------------------------------------------------------
32; Segments
33; ----------------------------------------------------------------------------
34
35TEXT32 SEGMENT DWORD FLAT PUBLIC 'CODE'
36TEXT32 ENDS
37
38TEXT16 SEGMENT DWORD USE16 PUBLIC 'CODE'
39TEXT16 ENDS
40
41BSS16 SEGMENT DWORD USE16 PUBLIC 'BSS'
42BSS16 ENDS
43
44BSS32 SEGMENT DWORD FLAT PUBLIC 'BSS'
45BSS32 ENDS
46
47c_common SEGMENT DWORD FLAT PUBLIC 'BSS'
48c_common ENDS
49
50COMMON32 SEGMENT DWORD FLAT PUBLIC 'COMMON'
51COMMON32 ENDS
52
53DGROUP GROUP c_common
54
55; ----------------------------------------------------------------------------
56; Constants
57; ----------------------------------------------------------------------------
58
59;
60; NOT FALSE will be used instead of TRUE to avoid size problems
61;
62FALSE = 0
63
64__EMXDOS = FALSE
65
66SIGA_KILL = 0
67SIGA_IGNORE = 1
68SIGA_ACCEPT = 2
69SIGA_ERROR = 3
70SIGA_ACKNOWLEDGE = 4
71
72L_FLAG_DLL = 0001H ; Executable is a DLL
73L_FLAG_LINK386 = 0002H ; Linked by LINK386
74
75; ----------------------------------------------------------------------------
76; Structures
77; ----------------------------------------------------------------------------
78
79LAYOUT_TABLE STRUC
80L_TEXT_BASE DD ?
81L_TEXT_END DD ?
82L_DATA_BASE DD ?
83L_DATA_END DD ?
84L_BSS_BASE DD ?
85L_BSS_END DD ?
86L_HEAP_BASE DD ?
87L_HEAP_END DD ?
88L_HEAP_BRK DD ?
89L_HEAP_OFF DD ?
90L_OS2_DLL DD ?
91L_STACK_BASE DD ?
92L_STACK_END DD ?
93L_FLAGS DD ?
94L_RESERVED DD 2 DUP (?)
95L_OPTIONS DB 64 DUP (?)
96LAYOUT_TABLE ENDS
97
98EXC_REGISTER STRUCT
99ES_PREV DD ?
100ES_HANDLER DD ?
101EXC_REGISTER ENDS
102
103TIB STRUCT
104TIB_EXC_CHAIN DD ?
105TIB_STACK_BASE DD ?
106TIB_STACK_END DD ?
107TIB_SYS_PTR DD ?
108TIB_VERSION DD ?
109TIB_USER_DATA DD ?
110TIB ENDS
111
112TIB2 STRUCT
113TID DWORD ?
114PRIORITY DWORD ?
115VERSION DWORD ?
116MC_COUNT WORD ?
117MC_FORCE_FLAG WORD ?
118TIB2 ENDS
119
120;
121; A REXX string (used by emxio.asm)
122;
123RXSTRING STRUCT
124RXSTRLEN DWORD ?
125RXSTRPTR DWORD ?
126RXSTRING ENDS
127
128
129; ----------------------------------------------------------------------------
130; Macros
131; ----------------------------------------------------------------------------
132
133DALIGN MACRO VAL:REQ
134 ALIGN VAL
135 ENDM
136
137TALIGN MACRO VAL:REQ
138 ALIGN VAL
139 ENDM
140
141; End of EMXDLL.INC
Note: See TracBrowser for help on using the repository browser.