home *** CD-ROM | disk | FTP | other *** search
- RCS_ID_C = "$Id: stubs.c,v 4.1 1994/09/29 23:09:02 jraja Exp $";
- /*
- * stubs.c - common stubs for bsdsocket.library
- *
- * Copyright © 1994 AmiTCP/IP Group,
- * Network Solutions Development Inc.
- * All rights reserved.
- */
-
- #undef _OPTINLINE
- #include <proto/socket.h>
-
- int
- select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
- struct timeval *timeout)
- {
- /* call WaitSelect with NULL signal mask pointer */
- return WaitSelect(nfds, readfds, writefds, exeptfds, timeout, NULL);
- }
-
- char *
- inet_ntoa(struct in_addr addr)
- {
- return Inet_NtoA(addr.s_addr);
- }
-
- struct in_addr
- inet_makeaddr(int net, int host)
- {
- struct in_addr addr;
- addr.s_addr = Inet_MakeAddr(net, host);
- return addr;
- }
-
- unsigned long
- inet_lnaof(struct in_addr addr)
- {
- return Inet_LnaOf(addr.s_addr);
- }
-
- unsigned long
- inet_netof(struct in_addr addr)
- {
- return Inet_NetOf(addr.s_addr);
- }
-