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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
|
/* -*- C++ -*- */
// $Id$
ACE_INLINE int
ACE_OS_TLI::t_accept (ACE_HANDLE handle, int reshandle,
struct t_call *call)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_accept (handle, reshandle, call), int, -1);
#else
ACE_UNUSED_ARG (call);
ACE_UNUSED_ARG (reshandle);
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE char *
ACE_OS_TLI::t_alloc (ACE_HANDLE handle, int struct_type,
int fields)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_alloc (handle, struct_type, fields),
char *, 0);
#else
ACE_UNUSED_ARG (fields);
ACE_UNUSED_ARG (struct_type);
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (0);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_bind (ACE_HANDLE handle, struct t_bind *req,
struct t_bind *ret)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_bind (handle, req, ret), int, -1);
#else
ACE_UNUSED_ARG (ret);
ACE_UNUSED_ARG (req);
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_close (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_close (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_connect(int fildes,
struct t_call *sndcall,
struct t_call *rcvcall)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_connect (fildes, sndcall, rcvcall), int, -1);
#else
ACE_UNUSED_ARG (fildes);
ACE_UNUSED_ARG (sndcall);
ACE_UNUSED_ARG (rcvcall);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE void
ACE_OS_TLI::t_error (const char *errmsg)
{
#if defined (ACE_HAS_TLI)
#if defined (ACE_HAS_BROKEN_T_ERROR)
::t_error (ACE_const_cast (char *, errmsg));
#else
::t_error (errmsg);
#endif /* ACE_HAS_BROKEN_T_ERROR */
#else
ACE_UNUSED_ARG (errmsg);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_free (char *ptr, int struct_type)
{
#if defined (ACE_HAS_TLI)
if (ptr == 0)
return 0;
ACE_OSCALL_RETURN (::t_free (ptr, struct_type), int, -1);
#else
ACE_UNUSED_ARG (struct_type);
ACE_UNUSED_ARG (ptr);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_getinfo (ACE_HANDLE handle, struct t_info *info)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_getinfo (handle, info), int, -1);
#else
ACE_UNUSED_ARG (info);
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_getname (ACE_HANDLE handle,
struct netbuf *namep,
int type)
{
#if defined (ACE_HAS_SVR4_TLI)
ACE_OSCALL_RETURN (::t_getname (handle, namep, type), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (namep);
ACE_UNUSED_ARG (type);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_SVR4_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_getstate (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_getstate (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_listen (ACE_HANDLE handle, struct t_call *call)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_listen (handle, call), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (call);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_look (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_look (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_open (char *path, int oflag, struct t_info *info)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_open (path, oflag, info), int, -1);
#else
ACE_UNUSED_ARG (path);
ACE_UNUSED_ARG (oflag);
ACE_UNUSED_ARG (info);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_optmgmt (ACE_HANDLE handle,
struct t_optmgmt *req,
struct t_optmgmt *ret)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_optmgmt (handle, req, ret), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (req);
ACE_UNUSED_ARG (ret);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_rcv (ACE_HANDLE handle,
char *buf,
unsigned int nbytes,
int *flags)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_rcv (handle, buf, nbytes, flags),
int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (buf);
ACE_UNUSED_ARG (nbytes);
ACE_UNUSED_ARG (flags);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_rcvdis (ACE_HANDLE handle, struct t_discon *discon)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_rcvdis (handle, discon), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (discon);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_rcvrel (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_rcvrel (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_rcvudata (ACE_HANDLE handle,
struct t_unitdata *unitdata,
int *flags)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_rcvudata (handle, unitdata, flags),
int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (unitdata);
ACE_UNUSED_ARG (flags);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_rcvuderr (ACE_HANDLE handle, struct t_uderr *uderr)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_rcvuderr (handle, uderr), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (uderr);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_snd (ACE_HANDLE handle,
const char *buf,
unsigned int nbytes,
int flags)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_snd (handle, (char *) buf, nbytes, flags), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (buf);
ACE_UNUSED_ARG (nbytes);
ACE_UNUSED_ARG (flags);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_snddis (ACE_HANDLE handle, struct t_call *call)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_snddis (handle, call), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (call);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_sndrel (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_sndrel (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_sync (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_sync (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
ACE_INLINE int
ACE_OS_TLI::t_unbind (ACE_HANDLE handle)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_unbind (handle), int, -1);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_TLI */
}
|