home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp / src / l / inet-handler / handler / begin.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-17  |  1.4 KB  |  64 lines

  1. /* Created: Wed Nov 10 13:02:10 1993 too
  2.  * Last modified: Sun Apr 17 20:53:55 1994 too
  3.  */
  4. #define SOCLIBNAME "bsdsocket.library"
  5. #define SOCLIBVERS 2
  6.  
  7. #include <exec/types.h>
  8. #include <exec/nodes.h>
  9. #include <exec/ports.h>
  10. #include <exec/memory.h>
  11. #include <dos/dos.h>
  12. #include <dos/dosextens.h>
  13. #include <rexx/rexxio.h>
  14.  
  15. #include "global.h"
  16.  
  17. #define BSDSOCKET_H /* defining BSDSOCKET_H inhibitis automatic inline incl.*/
  18. #include <sys/types.h>
  19. #include <sys/time.h>
  20. #include <sys/socket.h>
  21. #include <sys/ioctl.h>
  22. #include <sys/errno.h>
  23. #include <netinet/in.h>
  24. #include <amitcp/socketbasetags.h>
  25.  
  26. #include "system_includes.h"
  27. #include "c.h"
  28. #include "applport.h"
  29. #include "handler.h"
  30. #include "dirindex.h"
  31. #include "args.h"
  32.  
  33. #ifndef __GNUC__
  34. #include "runstart.h"
  35. #endif
  36.  
  37. #include "debug.h"
  38.  
  39. /*****************************************************************************/
  40.  
  41. /*
  42.  * in case of ...
  43.  * handler.c:xxx: fixed or forbidden register was spilled.
  44.  * This may be due to a compiler bug or to impossible asm statements.
  45.  */
  46.  
  47. LONG WaitSelect2(
  48. #ifdef __GNUC__         
  49.          struct Library * SocketBase,
  50. #endif         
  51.          int n,
  52.          struct fd_set * r, struct fd_set * w, ULONG * s)
  53. {
  54.   return WaitSelect(n, r, w, NULL, NULL, s);
  55. }
  56.  
  57. #ifdef __GNUC__
  58. #define WaitSelect2(rest...) WaitSelect2(SocketBase, rest)
  59. #endif
  60.  
  61. /****************************************************************************/
  62.  
  63. #include "cleanup.h"
  64.