home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / GRAPH / GWAITV.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  469 b   |  26 lines

  1. /* gwaitv.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <stdlib.h>
  4. #include <graph.h>
  5. #define INCL_VIO
  6. #include <os2emx.h>
  7. #include "graph2.h"
  8. #include <sys/hw.h>
  9.  
  10. static int port_flag = 0;
  11.  
  12. void g_waitv (void)
  13. {
  14.   if (port_flag == 0)
  15.     if (_portaccess (0x3da, 0x3da) == 0)
  16.       port_flag = 1;
  17.     else
  18.       port_flag = -1;
  19.   if (port_flag == 1)
  20.     {
  21.      GLOCK;
  22.      _wait01 (0x3da, 0x08);
  23.       GUNLOCK;
  24.     }
  25. }
  26.