1 /* This file contains Roadshow-specific functions which are not required for MorphOS build */
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>
14 #include <api/amiga_api.h>
16 AROS_LH1(long, bpf_open
,
17 AROS_LHA(long, channel
, D0
),
18 struct SocketBase
*, libPtr
, 61, UL
)
21 __log(LOG_CRIT
,"bpf_open() is not implemented");
22 writeErrnoValue(libPtr
, ENOSYS
);
27 AROS_LH1(long, bpf_close
,
28 AROS_LHA(long, handle
, D0
),
29 struct SocketBase
*, libPtr
, 62, UL
)
32 writeErrnoValue(libPtr
, ENOSYS
);
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
)
44 writeErrnoValue(libPtr
, ENOSYS
);
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
)
56 writeErrnoValue(libPtr
, ENOSYS
);
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
)
67 writeErrnoValue(libPtr
, ENOSYS
);
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
)
78 writeErrnoValue(libPtr
, ENOSYS
);
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
)
90 writeErrnoValue(libPtr
, ENOSYS
);
95 AROS_LH1(long, bpf_data_waiting
,
96 AROS_LHA(long, handle
, D0
),
97 struct SocketBase
*, libPtr
, 68, UL
)
100 writeErrnoValue(libPtr
, ENOSYS
);
105 AROS_LH1(long, AddRouteTagList
,
106 AROS_LHA(struct TagItem
*, tags
, A0
),
107 struct SocketBase
*, libPtr
, 69, UL
)
110 __log(LOG_CRIT
,"AddRouteTagList() is not implemented");
111 writeErrnoValue(libPtr
, ENOSYS
);
116 AROS_LH1(long, DeleteRouteTagList
,
117 AROS_LHA(struct TagItem
*, tags
, A0
),
118 struct SocketBase
*, libPtr
, 70, UL
)
121 __log(LOG_CRIT
,"DeleteRouteTagList() is not implemented");
122 writeErrnoValue(libPtr
, ENOSYS
);
127 AROS_LH1(long, ChangeRouteTagList
,
128 AROS_LHA(struct TagItem
*, tags
, A0
),
129 struct SocketBase
*, libPtr
, 71, UL
)
132 __log(LOG_CRIT
,"ChangeRouteTagList() is not implemented");
133 writeErrnoValue(libPtr
, ENOSYS
);
138 AROS_LH1(void, FreeRouteInfo
,
139 AROS_LHA(struct rt_msghdr
*, table
, A0
),
140 struct SocketBase
*, libPtr
, 72, UL
)
143 __log(LOG_CRIT
,"FreeRouteInfo() is not implemented");
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
)
153 __log(LOG_CRIT
,"GetRouteInfo() is not implemented\n");
154 writeErrnoValue(libPtr
, ENOSYS
);
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
)
167 __log(LOG_CRIT
,"AddInterfaceTagList() is not implemented\n");
168 writeErrnoValue(libPtr
, ENOSYS
);
173 AROS_LH2(long, ConfigureInterfaceTagList
,
174 AROS_LHA(STRPTR
, name
, A0
),
175 AROS_LHA(struct TagItem
*, tags
, A1
),
176 struct SocketBase
*, libPtr
, 75, UL
)
179 __log(LOG_CRIT
,"ConfigureInterfaceTagList() is not implemented\n");
180 writeErrnoValue(libPtr
, ENOSYS
);
185 AROS_LH1(void, ReleaseInterfaceList
,
186 AROS_LHA(struct List
*, list
, A0
),
187 struct SocketBase
*, libPtr
, 76, UL
)
190 __log(LOG_CRIT
,"ReleaseInterfaceList() is not implemented");
194 AROS_LH0(struct List
*, ObtainInterfaceList
,
195 struct SocketBase
*, libPtr
, 77, UL
)
198 __log(LOG_CRIT
,"ObtainInterfaceList() is not implemented");
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
)
214 __log(LOG_CRIT
,"CreateAddrAllocMessageA() is not implemented\n");
219 AROS_LH1(void, DeleteAddrAllocMessage
,
220 AROS_LHA(struct AddressAllocationMessage
*, message
, A0
),
221 struct SocketBase
*, libPtr
, 80, UL
)
224 __log(LOG_CRIT
,"DeleteAddrAllocMessage() is not implemented");
228 AROS_LH1(void, BeginInterfaceConfig
,
229 AROS_LHA(struct AddressAllocationMessage
*, message
, A0
),
230 struct SocketBase
*, libPtr
, 81, UL
)
233 __log(LOG_CRIT
,"BeginInterfaceConfig() is not implemented");
237 AROS_LH1(void, AbortInterfaceConfig
,
238 AROS_LHA(struct AddressAllocationMessage
*, message
, A0
),
239 struct SocketBase
*, libPtr
, 82, UL
)
242 __log(LOG_CRIT
,"AbortInterfaceConfig() is not implemented");
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
)
253 __log(LOG_CRIT
,"AddNetMonitorHookTagList() is not implemented");
254 writeErrnoValue(libPtr
, ENOSYS
);
259 AROS_LH1(void, RemoveNetMonitorHook
,
260 AROS_LHA(struct Hook
*, hook
, A0
),
261 struct SocketBase
*, libPtr
, 84, UL
)
264 __log(LOG_CRIT
,"RemoveNetMonitorHook() is not implemented");
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
)
276 __log(LOG_CRIT
,"GetNetworkStatistics() is not implemented");
277 writeErrnoValue(libPtr
, ENOSYS
);
282 AROS_LH1(LONG
, AddDomainNameServer
,
283 AROS_LHA(STRPTR
, address
, A0
),
284 struct SocketBase
*, libPtr
, 86, UL
)
287 __log(LOG_CRIT
, "AddDomainNameServer() is not implemented");
288 writeErrnoValue(libPtr
, ENOSYS
);
293 AROS_LH1(LONG
, RemoveDomainNameServer
,
294 AROS_LHA(STRPTR
, address
, A0
),
295 struct SocketBase
*, libPtr
, 87, UL
)
298 __log(LOG_CRIT
, "RemoveDomainNameServer() is not implemented");
299 writeErrnoValue(libPtr
, ENOSYS
);
304 AROS_LH1(void, ReleaseDomainNameServerList
,
305 AROS_LHA(struct List
*, list
, A0
),
306 struct SocketBase
*, libPtr
, 88, UL
)
309 __log(LOG_CRIT
, "ReleaseDomainNameServerList() is not implemented");
313 AROS_LH0(struct List
*, ObtainDomainNameServerList
,
314 struct SocketBase
*, libPtr
, 89, UL
)
317 __log(LOG_CRIT
, "ObtainDomainNameServerList() is not implemented");
322 AROS_LH1(void, setnetent
,
323 AROS_LHA(int, stayopen
, D0
),
324 struct SocketBase
*, libPtr
, 90, UL
)
327 __log(LOG_CRIT
, "setnetent() is not implemented");
331 AROS_LH0(void, endnetent
,
332 struct SocketBase
*, libPtr
, 91, UL
)
335 __log(LOG_CRIT
, "endnetent() is not implemented");
339 AROS_LH0(struct netent
*, getnetent
,
340 struct SocketBase
*, libPtr
, 92, UL
)
343 __log(LOG_CRIT
, "getnetent() is not implemented");
348 AROS_LH1(void, setprotoent
,
349 AROS_LHA(int, stayopen
, D0
),
350 struct SocketBase
*, libPtr
, 93, UL
)
353 __log(LOG_CRIT
, "setprotoent() is not implemented");
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
)
365 __log(LOG_CRIT
, "setservent() is not implemented");
369 AROS_LH0(void, endservent
,
370 struct SocketBase
*, libPtr
, 97, UL
)
373 __log(LOG_CRIT
, "endservent() is not implemented");
377 AROS_LH0(struct servent
*, getservent
,
378 struct SocketBase
*, libPtr
, 98, UL
)
381 __log(LOG_CRIT
, "getservent() is not implemented");
386 // inet_aton defined in amiga_libcalls.c