tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / netlib / stubs.c
blob4bd39758ac54d5950409e2be1ce3609967696ad1
1 /* $Id$
3 * stubs.c - common stubs for bsdsocket.library
5 * Copyright © 1994 AmiTCP/IP Group,
6 * Network Solutions Development Inc.
7 * All rights reserved.
8 */
10 #include <exec/types.h>
11 #include <sys/types.h>
12 #include <proto/socket.h>
14 #include <sys/param.h>
15 #include <sys/ioctl.h>
16 #include <sys/socket.h>
18 #include <netinet/in_systm.h>
19 #include <net/if.h>
20 #include <net/route.h>
21 #include <netinet/in.h>
22 #include <netinet/in_var.h>
24 #include <netinet/ip.h>
26 #undef select
28 int
29 select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
30 struct timeval *timeout)
32 /* call WaitSelect with NULL signal mask pointer */
33 return WaitSelect(nfds, readfds, writefds, exeptfds, timeout, NULL);
36 #undef inet_ntoa
38 char *
39 inet_ntoa(struct in_addr addr)
41 return Inet_NtoA(addr.s_addr);
44 #undef inet_makeaddr
46 struct in_addr
47 inet_makeaddr(int net, int host)
49 struct in_addr addr;
50 addr.s_addr = Inet_MakeAddr(net, host);
51 return addr;
54 #undef inet_lnaof
56 unsigned long
57 inet_lnaof(struct in_addr addr)
59 return Inet_LnaOf(addr.s_addr);
62 #undef inet_netof
64 unsigned long
65 inet_netof(struct in_addr addr)
67 return Inet_NetOf(addr.s_addr);