home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / mmpm2tk / mmpmtlk2 / fssht / fsshgdat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-06  |  3.1 KB  |  51 lines

  1. /*static char *SCCSID = "@(#)fsshgdat.c    13.2 92/05/01";*/
  2. /****************************************************************************/
  3. /*                                                                          */
  4. /*                    Copyright (c) IBM Corporation 1992                    */
  5. /*                           All Rights Reserved                            */
  6. /*                                                                          */
  7. /* SOURCE FILE NAME:  FSSHGDAT.C                                            */
  8. /*                                                                          */
  9. /* DESCRIPTIVE NAME:  File System Stream Handler Global Data                */
  10. /*                                                                          */
  11. /* NOTES: This is a DLL global data file. It contains the global data       */
  12. /*        declarations for this stream handler.                             */
  13. /*                                                                          */
  14. /* ENTRY POINTS: None                                                       */
  15. /*                                                                          */
  16. /*************************** END OF SPECIFICATIONS **************************/
  17. #define  INCL_NOPMAPI
  18. #define  INCL_DOSSEMAPHORES
  19. #define  INCL_DOSPROCESS
  20. #include <os2.h>
  21. #include <os2me.h>
  22. #include <hhpheap.h>
  23. #include <shi.h>
  24. #include <fssh.h>
  25. #pragma data_seg (FSSH_SHR)                // Put this into a seperate data seg
  26.  
  27. PESPCB pESPCB_ListHead = NULL;           // Pointer to list of Extended SPCB's
  28.  
  29. ULONG  ulProcessCount = 0;               // # of processes using this stream
  30.                                          //  handler.  Access to this variable
  31.                                          //  is controlled by the hmtxProcCnt
  32.                                          //  semaphore.
  33. PSIB pSIB_list_head = NULL;              // Pointer to list of SIB's in use
  34.                                          //  for this process. Access to
  35.                                          //  this list is controlled by the
  36.                                          //  hmtxGlobalData semaphore.
  37. PSZ pszHandlerName = FSSH_HANDLER_NAME;  // Name of this stream handler
  38. ULONG ulHandlerVersion = FSSH_VERSION;   // Version of this handler
  39. HID SrcHandlerID = 0;                    // Handler ID returned from Register
  40. HID TgtHandlerID = 0;                    // Handler ID returned from Register
  41. HHUGEHEAP hHeap = NULL;                  // Handle of heap for SIB's and EVCB's
  42. PSZ pszProcCntMutexName = FSSH_PROCCNT_MTX; // Name of semaphore to control the
  43.                                          //  usProcessCount variable.
  44. HMTX hmtxProcCnt = 0;                    // Handle of semaphore to control the
  45.                                          //  usProcessCount variable.
  46. HMTX hmtxGlobalData = 0;                 // Handle of semaphore to control the
  47.                                          //  Global Data structures.
  48. PFN ShWriteRtn = (PFN) FsshWrite;        // Write routine
  49. PFN ShReadRtn = (PFN) FsshRead;          // Read routine
  50. #pragma data_seg ()
  51.