3 * stubs.c - common stubs for bsdsocket.library
5 * Copyright © 1994 AmiTCP/IP Group,
6 * Network Solutions Development Inc.
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>
20 #include <net/route.h>
21 #include <netinet/in.h>
22 #include <netinet/in_var.h>
24 #include <netinet/ip.h>
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
);
39 inet_ntoa(struct in_addr addr
)
41 return Inet_NtoA(addr
.s_addr
);
47 inet_makeaddr(int net
, int host
)
50 addr
.s_addr
= Inet_MakeAddr(net
, host
);
57 inet_lnaof(struct in_addr addr
)
59 return Inet_LnaOf(addr
.s_addr
);
65 inet_netof(struct in_addr addr
)
67 return Inet_NetOf(addr
.s_addr
);