home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 2.ddi / UNIX / CTMSSG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-04-18  |  1.4 KB  |  52 lines

  1. /*
  2.  *    Unix V System Dependent Message Headers
  3.  *    Two Queue Approach
  4.  *
  5.  *    This program is the CONFIDENTIAL and PROPRIETARY property 
  6.  *    of FairCom(R) Corporation. Any unauthorized use, reproduction or
  7.  *    transfer of this program is strictly prohibited.
  8.  *
  9.  *      Copyright (c) 1987, 1988, 1989 FairCom Corporation
  10.  *    (Subject to limited distribution and
  11.  *     restricted disclosure only.)
  12.  *    *** ALL RIGHTS RESERVED ***
  13.  *
  14.  *    4006 West Broadway
  15.  *    Columbia, MO 65203
  16.  *
  17.  *
  18.  *    c-tree(R)    Version 4.3
  19.  *            Release C
  20.  *            February 7, 1989 17:30
  21.  *
  22.  */
  23.  
  24. /* system dependent headers: unix/xenix queue control */
  25. #include <sys/types.h>
  26. #include <sys/ipc.h> 
  27. #include <sys/msg.h>
  28.  
  29. /* SERVER and SERVER2 must be defined to the name of files which
  30.  * will be guaranteed to exist.  They will be used in
  31.  * the ftok() function to get the proper queue id for the server.
  32.  *
  33.  * For example, you may create empty files with names used in the
  34.  * following 2 defines.
  35.  */
  36.  
  37. #define SERVER        "/usr/bin/CTSQ1"
  38. #define SERVER2        "/usr/bin/CTSQ2"
  39. #define SERVER3        "/usr/bin/CTSQ3"
  40.  
  41. LOCAL struct msqid_ds qidbuf;
  42. LOCAL key_t srvkey,appkey;
  43. LOCAL int   srvid,apxid;
  44.  
  45. #define NOKEY    ((key_t) -1)
  46.  
  47. /* LTYPE is the number of bytes from the beginning of the message to
  48. ** the c-tree portion of the message. In Unix, a long precedes the message.
  49. */
  50. #define LTYPE    4
  51.  
  52.