aboutsummaryrefslogtreecommitdiff
path: root/doc/html/lio_8h_source.html
blob: 71b30a931188fc7e0217c7c61d4a1940845de3c5 (plain)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>IsisReader: contrib/openisis/lio.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>contrib/openisis/lio.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">        openisis - an open implementation of the CDS/ISIS database</span>
<a name="l00003"></a>00003 <span class="comment">        Version 0.8.x (patchlevel see file Version)</span>
<a name="l00004"></a>00004 <span class="comment">        Copyright (C) 2001-2003 by Erik Grziwotz, erik@openisis.org</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">        This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment">        modify it under the terms of the GNU Lesser General Public</span>
<a name="l00008"></a>00008 <span class="comment">        License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment">        version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">        This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">        but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00014"></a>00014 <span class="comment">        Lesser General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">        You should have received a copy of the GNU Lesser General Public</span>
<a name="l00017"></a>00017 <span class="comment">        License along with this library; if not, write to the Free Software</span>
<a name="l00018"></a>00018 <span class="comment">        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">        see README for more information</span>
<a name="l00021"></a>00021 <span class="comment">EOH */</span>
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef LIO_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="comment">/*</span>
<a name="l00025"></a>00025 <span class="comment">        $Id: lio.h,v 1.22 2003/05/29 18:02:54 kripke Exp $</span>
<a name="l00026"></a>00026 <span class="comment">        I/O support for the openisis library.</span>
<a name="l00027"></a>00027 <span class="comment">        Provides non-blocking, look-ahead network streams and other nice stuff.</span>
<a name="l00028"></a>00028 <span class="comment">*/</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;luti.h&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;lll.h&quot;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="comment">/* ************************************************************</span>
<a name="l00035"></a>00035 <span class="comment">        time</span>
<a name="l00036"></a>00036 <span class="comment">*/</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">/* struct wrapper just for struct Tm *Time */</span> 
<a name="l00039"></a><a class="code" href="structTm.html">00039</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structTm.html">Tm</a> {
<a name="l00040"></a>00040         lll   millis;
<a name="l00041"></a>00041 }       <a class="code" href="structTm.html">Tm</a>;
<a name="l00042"></a>00042 
<a name="l00046"></a>00046 <span class="keyword">extern</span> <span class="keywordtype">int</span> timeUpd ( <a class="code" href="structTm.html">Tm</a> * );
<a name="l00053"></a>00053 <span class="keyword">extern</span> <span class="keywordtype">char</span> *timeGtf ( <span class="keywordtype">char</span> *buf, <a class="code" href="structTm.html">Tm</a> * );
<a name="l00058"></a>00058 <span class="keyword">extern</span> <span class="keywordtype">char</span> *timeGtfm ( <span class="keywordtype">char</span> *buf, <a class="code" href="structTm.html">Tm</a> * );
<a name="l00062"></a>00062 <span class="keyword">extern</span> <span class="keywordtype">void</span> timeSleep ( <a class="code" href="structTm.html">Tm</a> * );
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/* ************************************************************</span>
<a name="l00066"></a>00066 <span class="comment">        system files</span>
<a name="l00067"></a>00067 <span class="comment">*/</span>
<a name="l00068"></a>00068 
<a name="l00076"></a>00076 <span class="preprocessor">#define LIO_WANT  0xfff00000 </span><span class="comment">/* what we want: open flags */</span>
<a name="l00077"></a>00077 <span class="preprocessor">#define LIO_FD    0x0000ffff </span><span class="comment">/* what we get: system fd */</span>
<a name="l00078"></a>00078 <span class="preprocessor">#define LIO_STAT  0x000f0000 </span><span class="comment">/* how it&apos;s going: it&apos;s status */</span>
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 <span class="comment">/* status flags */</span>
<a name="l00081"></a>00081 <span class="preprocessor">#define LIO_IN    0x00010000 </span><span class="comment">/* support input */</span>
<a name="l00082"></a>00082 <span class="preprocessor">#define LIO_OUT   0x00020000 </span><span class="comment">/* support output */</span>
<a name="l00083"></a>00083 <span class="preprocessor">#define LIO_INOUT 0x00030000 </span><span class="comment">/* support both */</span>
<a name="l00084"></a>00084 <span class="preprocessor">#define LIO_ISOPEN( file ) (LIO_INOUT &amp; (file))</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>
<a name="l00086"></a>00086 <span class="comment">/* common requirements that are also used by non-system streams. */</span>
<a name="l00087"></a>00087 <span class="preprocessor">#define LIO_RD    0x00100000 </span><span class="comment">/* shall be opened for input */</span>
<a name="l00088"></a>00088 <span class="preprocessor">#define LIO_WR    0x00200000 </span><span class="comment">/* shall be opened for output */</span>
<a name="l00089"></a>00089 <span class="preprocessor">#define LIO_RDWR  0x00300000 </span><span class="comment">/* shall be opened for both */</span>
<a name="l00090"></a>00090 <span class="preprocessor">#define LIO_SYNC  0x00400000 </span><span class="comment">/* with WR: syncing output */</span>
<a name="l00091"></a>00091 <span class="preprocessor">#define LIO_NBLK  0x00800000 </span><span class="comment">/* non blocking IO (not used) */</span>
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="comment">/* system files only. */</span>
<a name="l00094"></a>00094 <span class="preprocessor">#define LIO_CREAT 0x01000000 </span><span class="comment">/* with WR: shall be created */</span>
<a name="l00095"></a>00095 <span class="preprocessor">#define LIO_TRY   0x01000000 </span><span class="comment">/* w/o  WR: do not complain if open fails */</span>
<a name="l00096"></a>00096 <span class="preprocessor">#define LIO_TRUNC 0x02000000 </span><span class="comment">/* with WR: shall be truncated */</span>
<a name="l00097"></a>00097 <span class="preprocessor">#define LIO_SEEK  0x04000000 </span><span class="comment">/* random access (with WR: else append mode) */</span>
<a name="l00098"></a>00098 <span class="preprocessor">#define LIO_SOCK  0x08000000 </span><span class="comment">/* is a socket (support shutdown) */</span>
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="comment">/* locking */</span>
<a name="l00101"></a>00101 <span class="preprocessor">#define LIO_TLOCK 0x10000000 </span><span class="comment">/* try locking (EX with WR) */</span>
<a name="l00102"></a>00102 <span class="preprocessor">#define LIO_WLOCK 0x20000000 </span><span class="comment">/* lock waiting (EX with WR) */</span>
<a name="l00103"></a>00103 <span class="preprocessor">#define LIO_FLOCK 0x30000000 </span><span class="comment">/* any locking is set */</span>
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 
<a name="l00110"></a>00110 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_open ( <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> flags );
<a name="l00111"></a>00111 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_close ( <span class="keywordtype">int</span> *file, <span class="keywordtype">int</span> flags );
<a name="l00112"></a>00112 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_size ( <span class="keywordtype">int</span> file );
<a name="l00113"></a>00113 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> lio_time ( <span class="keywordtype">int</span> file ); <span class="comment">/* mtime sec */</span>
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_in;
<a name="l00116"></a>00116 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_out;
<a name="l00117"></a>00117 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_err;
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 <span class="comment">/*</span>
<a name="l00121"></a>00121 <span class="comment">        Like the syscalls, this returns the number of bytes on success.</span>
<a name="l00122"></a>00122 <span class="comment">        Unlike the syscalls, it returns 0 rather than an error</span>
<a name="l00123"></a>00123 <span class="comment">        when no bytes are available after interrupt (EINTR)</span>
<a name="l00124"></a>00124 <span class="comment">        or on non-blocking IO (EAGAIN); i.e. you may try later.</span>
<a name="l00125"></a>00125 <span class="comment">        On error, a negative value is returned.</span>
<a name="l00126"></a>00126 <span class="comment">        On errors that render the file unusable,</span>
<a name="l00127"></a>00127 <span class="comment">        it is closed for input or output, resp.</span>
<a name="l00128"></a>00128 <span class="comment">        These are most errors but EFAULT (bad buf)</span>
<a name="l00129"></a>00129 <span class="comment">        and ESPIPE (which clears the SEEK bit).</span>
<a name="l00130"></a>00130 <span class="comment">        For files that do not have the SEEK bit set,</span>
<a name="l00131"></a>00131 <span class="comment">        EOF is considered such an error and -LERR_EOF is returned.</span>
<a name="l00132"></a>00132 <span class="comment">        If you want to stream a disk file like &apos;tail -f&apos;, set the SEEK bit.</span>
<a name="l00133"></a>00133 <span class="comment">*/</span>
<a name="l00134"></a>00134 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_read ( <span class="keywordtype">int</span> *file, <span class="keywordtype">void</span> *buf, <span class="keywordtype">unsigned</span> count );
<a name="l00135"></a>00135 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_write ( <span class="keywordtype">int</span> *file, <span class="keyword">const</span> <span class="keywordtype">void</span> *buf, <span class="keywordtype">unsigned</span> count );
<a name="l00136"></a>00136 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_pread ( <span class="keywordtype">int</span> *file, <span class="keywordtype">void</span> *buf, <span class="keywordtype">unsigned</span> count, <span class="keywordtype">int</span> offset );
<a name="l00137"></a>00137 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_pwrite ( <span class="keywordtype">int</span> *file, <span class="keyword">const</span> <span class="keywordtype">void</span> *buf, <span class="keywordtype">unsigned</span> count, <span class="keywordtype">int</span> offset );
<a name="l00138"></a>00138 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_seek ( <span class="keywordtype">int</span> *file, <span class="keywordtype">int</span> offset );
<a name="l00139"></a>00139 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_trunc ( <span class="keywordtype">int</span> *file, <span class="keywordtype">int</span> offset );
<a name="l00150"></a>00150 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_mmap ( <span class="keywordtype">int</span> *file, <span class="keywordtype">void</span> **map, <span class="keywordtype">int</span> length );
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 
<a name="l00161"></a>00161 <span class="keyword">extern</span> <span class="keywordtype">int</span> lio_slurp ( <span class="keywordtype">char</span> **buf, <span class="keywordtype">int</span> sz, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> opt );
<a name="l00162"></a>00162 
<a name="l00163"></a>00163 
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 <span class="comment">/* ************************************************************</span>
<a name="l00166"></a>00166 <span class="comment">        streams</span>
<a name="l00167"></a>00167 <span class="comment">*/</span>
<a name="l00168"></a>00168 
<a name="l00181"></a>00181 <span class="keyword">typedef</span> <span class="keywordtype">int</span> lio_sfunc ( <span class="keyword">struct</span> <a class="code" href="structIos.html">Ios</a> *s, <span class="keywordtype">int</span> op );
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 <span class="keyword">enum</span> {
<a name="l00184"></a>00184         LIO_BUFSIZ = 8192
<a name="l00185"></a>00185 };
<a name="l00186"></a>00186 
<a name="l00187"></a><a class="code" href="structBuf.html">00187</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structBuf.html">Buf</a> {
<a name="l00188"></a>00188         <span class="comment">/* struct Buf     *nxt; chain -- not used */</span>
<a name="l00189"></a>00189         <span class="keywordtype">short</span>           fill; <span class="comment">/* total #bytes in the buffer */</span>
<a name="l00190"></a>00190         <span class="keywordtype">short</span>           done; <span class="comment">/* #bytes done */</span>
<a name="l00191"></a>00191         <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>   c[LIO_BUFSIZ]; <span class="comment">/* actual buffer may be longer */</span>
<a name="l00192"></a>00192 } <a class="code" href="structBuf.html">Buf</a>;
<a name="l00193"></a>00193 <span class="comment">/* fill - done is the number of available bytes */</span>
<a name="l00194"></a>00194 <span class="preprocessor">#define LIO_BAVAIL( b )  ((b)-&gt;fill - (b)-&gt;done)</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span><span class="preprocessor">#define LIO_BINIT( b ) do { \</span>
<a name="l00196"></a>00196 <span class="preprocessor">        </span><span class="comment">/*(b)-&gt;nxt = 0;*/</span> (b)-&gt;fill = 0; (b)-&gt;done = 0; \
<a name="l00197"></a>00197         } while (0)
<a name="l00198"></a>00198 <span class="preprocessor">#define LIO_BINITIALIZER { 0,0,&quot;&quot; }</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span>
<a name="l00200"></a><a class="code" href="structIos.html">00200</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structIos.html">Ios</a> {
<a name="l00201"></a>00201         lio_sfunc  *func;
<a name="l00202"></a>00202         <span class="keyword">const</span> <span class="keywordtype">char</span> *name; <span class="comment">/* stream&apos;s name */</span>
<a name="l00203"></a>00203         <span class="keywordtype">int</span>         file; <span class="comment">/* file &quot;id&quot; and flags as above */</span>
<a name="l00204"></a>00204         <span class="keywordtype">int</span>         pos;  <span class="comment">/* logical position of buffer start within stream */</span>
<a name="l00205"></a>00205         <a class="code" href="structBuf.html">Buf</a>         b;
<a name="l00206"></a>00206 }       <a class="code" href="structIos.html">Ios</a>;
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 <span class="preprocessor">#define LIO_SISOPEN( s ) LIO_ISOPEN( (s)-&gt;file )</span>
<a name="l00209"></a>00209 <span class="preprocessor"></span><span class="preprocessor">#define LIO_SAVAIL( s )  LIO_BAVAIL( &amp;(s)-&gt;b )</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span><span class="preprocessor">#define LIO_SINIT( s, fun, nam, fil ) do { \</span>
<a name="l00211"></a>00211 <span class="preprocessor">        (s)-&gt;func = fun; (s)-&gt;name = nam; (s)-&gt;file = fil; \</span>
<a name="l00212"></a>00212 <span class="preprocessor">        (s)-&gt;pos = 0; \</span>
<a name="l00213"></a>00213 <span class="preprocessor">        LIO_BINIT( &amp;(s)-&gt;b ); \</span>
<a name="l00214"></a>00214 <span class="preprocessor">        } while (0)</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span><span class="preprocessor">#define LIO_STDINIT( s, nam, fil ) LIO_SINIT( s, lio_stdio, nam, fil )</span>
<a name="l00216"></a>00216 <span class="preprocessor"></span><span class="preprocessor">#define LIO_SINITIALIZER( fun, nam, fil ) { fun, nam, fil, 0, LIO_BINITIALIZER }</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span><span class="preprocessor">#define LIO_STDINITIALIZER( nam, fil ) LIO_SINITIALIZER( lio_stdio, nam, fil )</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span>        
<a name="l00219"></a>00219 
<a name="l00222"></a>00222 <span class="keyword">enum</span> {
<a name="l00223"></a>00223         LIO_SSIZE,  <span class="comment">/* tell the size of the stream structure */</span>
<a name="l00224"></a>00224         LIO_SOPEN,  <span class="comment">/* initialize the structure */</span>
<a name="l00225"></a>00225         LIO_SCLOSE, <span class="comment">/* close */</span>
<a name="l00226"></a>00226         LIO_SPURGE, <span class="comment">/* kill the done bytes. return fill buffer size */</span>
<a name="l00227"></a>00227         LIO_SFILL,  <span class="comment">/* try to refill the buffer (poll input). return # new bytes */</span>
<a name="l00228"></a>00228         LIO_SFLUSH, <span class="comment">/* try to flush the buffer. return # bytes written */</span>
<a name="l00229"></a>00229         LIO_SPUSH   <span class="comment">/* push input stream: munge prefilled input */</span>
<a name="l00230"></a>00230 };
<a name="l00231"></a>00231 
<a name="l00236"></a>00236 <span class="keyword">extern</span> <span class="keywordtype">int</span> ioStream ( <a class="code" href="structIos.html">Ios</a> *s, <span class="keywordtype">int</span> op );
<a name="l00237"></a>00237 
<a name="l00243"></a>00243 <span class="keyword">extern</span> <span class="keywordtype">int</span> ioStdio ( <a class="code" href="structIos.html">Ios</a> *s, <span class="keywordtype">int</span> op );
<a name="l00244"></a>00244 
<a name="l00245"></a>00245 <span class="preprocessor">#define LIO_OPEN( s )  (s)-&gt;func( (s), LIO_SOPEN )</span>
<a name="l00246"></a>00246 <span class="preprocessor"></span><span class="preprocessor">#define LIO_CLOSE( s ) (s)-&gt;func( (s), LIO_SCLOSE )</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="preprocessor">#define LIO_FILL( s )  (s)-&gt;func( (s), LIO_SFILL )</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span><span class="preprocessor">#define LIO_FLUSH( s ) (s)-&gt;func( (s), LIO_SFLUSH )</span>
<a name="l00249"></a>00249 <span class="preprocessor"></span>
<a name="l00250"></a>00250 
<a name="l00251"></a>00251 
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 <span class="comment">/* ************************************************************</span>
<a name="l00254"></a>00254 <span class="comment">        inter process communication</span>
<a name="l00255"></a>00255 <span class="comment">*/</span>
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="keyword">extern</span> CLockFunc *lio_lock;
<a name="l00258"></a>00258 <span class="preprocessor">#define LIO_LOCK() (NULL != lio_lock &amp;&amp; lio_lock(OPENISIS_LOCK))</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span><span class="preprocessor">#define LIO_RELE() (NULL != lio_lock &amp;&amp; lio_lock(OPENISIS_RELE))</span>
<a name="l00260"></a>00260 <span class="preprocessor"></span><span class="preprocessor">#define LIO_WAIT( c ) (NULL != lio_lock &amp;&amp; lio_lock(OPENISIS_WAIT \</span>
<a name="l00261"></a>00261 <span class="preprocessor">        | (OPENISIS_COND &amp; (c))))</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span><span class="preprocessor">#define LIO_WAKE( c ) (NULL != lio_lock &amp;&amp; lio_lock(OPENISIS_WAKE \</span>
<a name="l00263"></a>00263 <span class="preprocessor">        | (OPENISIS_COND &amp; (c))))</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span>
<a name="l00265"></a>00265 <span class="preprocessor">#define LIO_H</span>
<a name="l00266"></a>00266 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* LIO_H */</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Mar 30 14:47:13 2010 for IsisReader by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>