tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / bsdsocket / api / amiga_roadshow.c
blob890ed89bdfa545b83f1838aedba60fdb07ade874
1 /* This file contains Roadshow-specific functions which are not required for MorphOS build */
3 #include <conf.h>
5 #ifdef __CONFIG_ROADSHOW__
7 #include <aros/libcall.h>
8 #include <exec/lists.h>
9 #include <libraries/bsdsocket.h>
10 #include <utility/tagitem.h>
11 //#include <if/route.h>
12 #include <sys/types.h>
13 #include <syslog.h>
14 #include <api/amiga_api.h>
16 AROS_LH1(long, bpf_open,
17 AROS_LHA(long, channel, D0),
18 struct SocketBase *, libPtr, 61, UL)
20 AROS_LIBFUNC_INIT
21 __log(LOG_CRIT,"bpf_open() is not implemented");
22 writeErrnoValue(libPtr, ENOSYS);
23 return -1;
24 AROS_LIBFUNC_EXIT
27 AROS_LH1(long, bpf_close,
28 AROS_LHA(long, handle, D0),
29 struct SocketBase *, libPtr, 62, UL)
31 AROS_LIBFUNC_INIT
32 writeErrnoValue(libPtr, ENOSYS);
33 return -1;
34 AROS_LIBFUNC_EXIT
37 AROS_LH3(long, bpf_read,
38 AROS_LHA(long, handle, D0),
39 AROS_LHA(void *, buffer, A0),
40 AROS_LHA(long, len, D1),
41 struct SocketBase *, libPtr, 63, UL)
43 AROS_LIBFUNC_INIT
44 writeErrnoValue(libPtr, ENOSYS);
45 return -1;
46 AROS_LIBFUNC_EXIT
49 AROS_LH3(long, bpf_write,
50 AROS_LHA(long, handle, D0),
51 AROS_LHA(void *, buffer, A0),
52 AROS_LHA(long, len, D1),
53 struct SocketBase *, libPtr, 64, UL)
55 AROS_LIBFUNC_INIT
56 writeErrnoValue(libPtr, ENOSYS);
57 return -1;
58 AROS_LIBFUNC_EXIT
61 AROS_LH2(long, bpf_set_notify_mask,
62 AROS_LHA(long, handle, D0),
63 AROS_LHA(unsigned long, mask, D1),
64 struct SocketBase *, libPtr, 65, UL)
66 AROS_LIBFUNC_INIT
67 writeErrnoValue(libPtr, ENOSYS);
68 return -1;
69 AROS_LIBFUNC_EXIT
72 AROS_LH2(long, bpf_set_interrupt_mask,
73 AROS_LHA(long, handle, D0),
74 AROS_LHA(unsigned long, mask, D1),
75 struct SocketBase *, libPtr, 66, UL)
77 AROS_LIBFUNC_INIT
78 writeErrnoValue(libPtr, ENOSYS);
79 return -1;
80 AROS_LIBFUNC_EXIT
83 AROS_LH3(long, bpf_ioctl,
84 AROS_LHA(long, handle, D0),
85 AROS_LHA(unsigned long, request, D1),
86 AROS_LHA(char *, argp, A0),
87 struct SocketBase *, libPtr, 67, UL)
89 AROS_LIBFUNC_INIT
90 writeErrnoValue(libPtr, ENOSYS);
91 return -1;
92 AROS_LIBFUNC_EXIT
95 AROS_LH1(long, bpf_data_waiting,
96 AROS_LHA(long, handle, D0),
97 struct SocketBase *, libPtr, 68, UL)
99 AROS_LIBFUNC_INIT
100 writeErrnoValue(libPtr, ENOSYS);
101 return -1;
102 AROS_LIBFUNC_EXIT
105 AROS_LH1(long, AddRouteTagList,
106 AROS_LHA(struct TagItem *, tags, A0),
107 struct SocketBase *, libPtr, 69, UL)
109 AROS_LIBFUNC_INIT
110 __log(LOG_CRIT,"AddRouteTagList() is not implemented");
111 writeErrnoValue(libPtr, ENOSYS);
112 return -1;
113 AROS_LIBFUNC_EXIT
116 AROS_LH1(long, DeleteRouteTagList,
117 AROS_LHA(struct TagItem *, tags, A0),
118 struct SocketBase *, libPtr, 70, UL)
120 AROS_LIBFUNC_INIT
121 __log(LOG_CRIT,"DeleteRouteTagList() is not implemented");
122 writeErrnoValue(libPtr, ENOSYS);
123 return -1;
124 AROS_LIBFUNC_EXIT
127 AROS_LH1(long, ChangeRouteTagList,
128 AROS_LHA(struct TagItem *, tags, A0),
129 struct SocketBase *, libPtr, 71, UL)
131 AROS_LIBFUNC_INIT
132 __log(LOG_CRIT,"ChangeRouteTagList() is not implemented");
133 writeErrnoValue(libPtr, ENOSYS);
134 return -1;
135 AROS_LIBFUNC_EXIT
138 AROS_LH1(void, FreeRouteInfo,
139 AROS_LHA(struct rt_msghdr *, table, A0),
140 struct SocketBase *, libPtr, 72, UL)
142 AROS_LIBFUNC_INIT
143 __log(LOG_CRIT,"FreeRouteInfo() is not implemented");
144 AROS_LIBFUNC_EXIT
147 AROS_LH2(struct rt_msghdr *, GetRouteInfo,
148 AROS_LHA(LONG, address_family, D0),
149 AROS_LHA(LONG, flags, D1),
150 struct SocketBase *, libPtr, 73, UL)
152 AROS_LIBFUNC_INIT
153 __log(LOG_CRIT,"GetRouteInfo() is not implemented\n");
154 writeErrnoValue(libPtr, ENOSYS);
155 return NULL;
156 AROS_LIBFUNC_EXIT
159 AROS_LH4(long, AddInterfaceTagList,
160 AROS_LHA(STRPTR, name, A0),
161 AROS_LHA(STRPTR, device, A1),
162 AROS_LHA(long, unit, D0),
163 AROS_LHA(struct TagItem *, tags, A2),
164 struct SocketBase *, libPtr, 74, UL)
166 AROS_LIBFUNC_INIT
167 __log(LOG_CRIT,"AddInterfaceTagList() is not implemented\n");
168 writeErrnoValue(libPtr, ENOSYS);
169 return -1;
170 AROS_LIBFUNC_EXIT
173 AROS_LH2(long, ConfigureInterfaceTagList,
174 AROS_LHA(STRPTR, name, A0),
175 AROS_LHA(struct TagItem *, tags, A1),
176 struct SocketBase *, libPtr, 75, UL)
178 AROS_LIBFUNC_INIT
179 __log(LOG_CRIT,"ConfigureInterfaceTagList() is not implemented\n");
180 writeErrnoValue(libPtr, ENOSYS);
181 return -1;
182 AROS_LIBFUNC_EXIT
185 AROS_LH1(void, ReleaseInterfaceList,
186 AROS_LHA(struct List *, list, A0),
187 struct SocketBase *, libPtr, 76, UL)
189 AROS_LIBFUNC_INIT
190 __log(LOG_CRIT,"ReleaseInterfaceList() is not implemented");
191 AROS_LIBFUNC_EXIT
194 AROS_LH0(struct List *, ObtainInterfaceList,
195 struct SocketBase *, libPtr, 77, UL)
197 AROS_LIBFUNC_INIT
198 __log(LOG_CRIT,"ObtainInterfaceList() is not implemented");
199 return NULL;
200 AROS_LIBFUNC_EXIT
203 // QueryInterfaceTagList in amiga_netstat.c
205 AROS_LH5(LONG, CreateAddrAllocMessageA,
206 AROS_LHA(LONG, version, D0),
207 AROS_LHA(LONG, protocol, D1),
208 AROS_LHA(STRPTR, interface_name, A0),
209 AROS_LHA(struct AddressAllocationMessage *, result_ptr, A1),
210 AROS_LHA(struct TagItem *, tags, A2),
211 struct SocketBase *, libPtr, 79, UL)
213 AROS_LIBFUNC_INIT
214 __log(LOG_CRIT,"CreateAddrAllocMessageA() is not implemented\n");
215 return 0;
216 AROS_LIBFUNC_EXIT
219 AROS_LH1(void, DeleteAddrAllocMessage,
220 AROS_LHA(struct AddressAllocationMessage *, message, A0),
221 struct SocketBase *, libPtr, 80, UL)
223 AROS_LIBFUNC_INIT
224 __log(LOG_CRIT,"DeleteAddrAllocMessage() is not implemented");
225 AROS_LIBFUNC_EXIT
228 AROS_LH1(void, BeginInterfaceConfig,
229 AROS_LHA(struct AddressAllocationMessage *, message, A0),
230 struct SocketBase *, libPtr, 81, UL)
232 AROS_LIBFUNC_INIT
233 __log(LOG_CRIT,"BeginInterfaceConfig() is not implemented");
234 AROS_LIBFUNC_EXIT
237 AROS_LH1(void, AbortInterfaceConfig,
238 AROS_LHA(struct AddressAllocationMessage *, message, A0),
239 struct SocketBase *, libPtr, 82, UL)
241 AROS_LIBFUNC_INIT
242 __log(LOG_CRIT,"AbortInterfaceConfig() is not implemented");
243 AROS_LIBFUNC_EXIT
246 AROS_LH3(long, AddNetMonitorHookTagList,
247 AROS_LHA(long, type, D0),
248 AROS_LHA(struct Hook *, hook, A0),
249 AROS_LHA(struct TagItem *, tags, A1),
250 struct SocketBase *, libPtr, 83, UL)
252 AROS_LIBFUNC_INIT
253 __log(LOG_CRIT,"AddNetMonitorHookTagList() is not implemented");
254 writeErrnoValue(libPtr, ENOSYS);
255 return -1;
256 AROS_LIBFUNC_EXIT
259 AROS_LH1(void, RemoveNetMonitorHook,
260 AROS_LHA(struct Hook *, hook, A0),
261 struct SocketBase *, libPtr, 84, UL)
263 AROS_LIBFUNC_INIT
264 __log(LOG_CRIT,"RemoveNetMonitorHook() is not implemented");
265 AROS_LIBFUNC_EXIT
268 AROS_LH4(LONG, GetNetworkStatistics,
269 AROS_LHA(LONG, type, D0),
270 AROS_LHA(LONG, version, D1),
271 AROS_LHA(APTR, destination, A0),
272 AROS_LHA(LONG, size, D2),
273 struct SocketBase *, libPtr, 85, UL)
275 AROS_LIBFUNC_INIT
276 __log(LOG_CRIT,"GetNetworkStatistics() is not implemented");
277 writeErrnoValue(libPtr, ENOSYS);
278 return -1;
279 AROS_LIBFUNC_EXIT
282 AROS_LH1(LONG, AddDomainNameServer,
283 AROS_LHA(STRPTR, address, A0),
284 struct SocketBase *, libPtr, 86, UL)
286 AROS_LIBFUNC_INIT
287 __log(LOG_CRIT, "AddDomainNameServer() is not implemented");
288 writeErrnoValue(libPtr, ENOSYS);
289 return -1;
290 AROS_LIBFUNC_EXIT
293 AROS_LH1(LONG, RemoveDomainNameServer,
294 AROS_LHA(STRPTR, address, A0),
295 struct SocketBase *, libPtr, 87, UL)
297 AROS_LIBFUNC_INIT
298 __log(LOG_CRIT, "RemoveDomainNameServer() is not implemented");
299 writeErrnoValue(libPtr, ENOSYS);
300 return -1;
301 AROS_LIBFUNC_EXIT
304 AROS_LH1(void, ReleaseDomainNameServerList,
305 AROS_LHA(struct List *, list, A0),
306 struct SocketBase *, libPtr, 88, UL)
308 AROS_LIBFUNC_INIT
309 __log(LOG_CRIT, "ReleaseDomainNameServerList() is not implemented");
310 AROS_LIBFUNC_EXIT
313 AROS_LH0(struct List *, ObtainDomainNameServerList,
314 struct SocketBase *, libPtr, 89, UL)
316 AROS_LIBFUNC_INIT
317 __log(LOG_CRIT, "ObtainDomainNameServerList() is not implemented");
318 return NULL;
319 AROS_LIBFUNC_EXIT
322 AROS_LH1(void, setnetent,
323 AROS_LHA(int, stayopen, D0),
324 struct SocketBase *, libPtr, 90, UL)
326 AROS_LIBFUNC_INIT
327 __log(LOG_CRIT, "setnetent() is not implemented");
328 AROS_LIBFUNC_EXIT
331 AROS_LH0(void, endnetent,
332 struct SocketBase *, libPtr, 91, UL)
334 AROS_LIBFUNC_INIT
335 __log(LOG_CRIT, "endnetent() is not implemented");
336 AROS_LIBFUNC_EXIT
339 AROS_LH0(struct netent *, getnetent,
340 struct SocketBase *, libPtr, 92, UL)
342 AROS_LIBFUNC_INIT
343 __log(LOG_CRIT, "getnetent() is not implemented");
344 return NULL;
345 AROS_LIBFUNC_EXIT
348 AROS_LH1(void, setprotoent,
349 AROS_LHA(int, stayopen, D0),
350 struct SocketBase *, libPtr, 93, UL)
352 AROS_LIBFUNC_INIT
353 __log(LOG_CRIT, "setprotoent() is not implemented");
354 AROS_LIBFUNC_EXIT
357 // endprotoent defined in amiga_ndbent.c
358 // getprotoent defined in amiga_ndbent.c
360 AROS_LH1(void, setservent,
361 AROS_LHA(int, stayopen, D0),
362 struct SocketBase *, libPtr, 96, UL)
364 AROS_LIBFUNC_INIT
365 __log(LOG_CRIT, "setservent() is not implemented");
366 AROS_LIBFUNC_EXIT
369 AROS_LH0(void, endservent,
370 struct SocketBase *, libPtr, 97, UL)
372 AROS_LIBFUNC_INIT
373 __log(LOG_CRIT, "endservent() is not implemented");
374 AROS_LIBFUNC_EXIT
377 AROS_LH0(struct servent *, getservent,
378 struct SocketBase *, libPtr, 98, UL)
380 AROS_LIBFUNC_INIT
381 __log(LOG_CRIT, "getservent() is not implemented");
382 return NULL;
383 AROS_LIBFUNC_EXIT
386 // inet_aton defined in amiga_libcalls.c
388 #endif