/* File:  plsync.h    Wed Jul  6 16:49:47 PDT 1988   w.klas   	    */
/* 	$Header: plsync.h,v 1.2 89/02/02 16:21:44 aoki Exp $*/
/* TabWidth 4 */


/*#include <sys/types.h>    */
/*#include <sys/ipc.h>	    */
#include "ipci.h"      /* this includes also sys/types.h and sys/ipc.h	*/
#include <sys/sem.h>
#include <sys/shm.h>
#include <stdio.h>
#include <sys/file.h>
#include "pldebug.h"
#include "xid.h"

#define LT_LockStartValue   255
#define LT_ExclusiveLock    (-255)
#define LT_SharedLock	    (-1)

#define PLT_LockStartValue  255
#define PLT_ExclusiveLock   (-255)
#define PLT_SharedLock	    (-1)


/* the following manipulation modes are allowed	on a transaction    */
/*   semaphore	    	    	    	    	    	    	    */
typedef     int	    SemManipulationMode;  
#define	    PLT_SemUnlock   1
#define	    PLT_SemLock	    2
    	    	    	    	    	
static int  LockSemId = -1; 	    /* semaphore associated with shared     */
    	    	    	    	    /*	    lock table segment	    	    */
static int  TransactionSemId = -1;  /* semaphore associated with XID 	    */
    	    	    	    	    /*	semaphore set 	    	    	    */
static int  SynchInteraction = 0;   /*flag for controlling the CONTINUE	    */
    	    	    	    	    /*  intercation 	    	    	    */
