head     1.4;
branch   ;
access   ;
symbols  Version_2_1:1.4 Version_2:1.3 C_Demo_1:1.3;
locks    ; strict;
comment  @ * @;


1.4
date     90.08.17.08.53.37;  author cimarron;  state Exp;
branches ;
next     1.3;

1.3
date     89.09.05.17.10.20;  author mao;  state Version_2;
branches ;
next     1.2;

1.2
date     89.03.22.17.34.12;  author muir;  state Stab;
branches ;
next     1.1;

1.1
date     89.01.17.05.54.40;  author cimarron;  state Exp;
branches ;
next     ;


desc
@@


1.4
log
@added pathnames to #include statements
@
text
@/* FILE plm.h	    Wed Jul  6 16:49:47 PDT 1988    w.klas      */
/* 	$Header: RCS/plm.h,v 1.3 89/09/05 17:10:20 mao Version_2 Locker: cimarron $*/
/* TabWidth = 4 */

#ifndef PlmHIncluded
#define PlmHIncluded 1		/* include once only */

#include <sys/types.h>
#include <string.h>

#include "tmp/postgres.h"
#include "storage/pladt.h"

#define KEY 273
#define ADDR 0x00ff0000


#define L_REFUSE    -2	    	/* lock has been refused    	    	*/
#define L_ERROR	    -1	    	/* general error    	    	    	*/
#define L_DONE	     1	    	/* operation terminated successful  	*/
#define L_InProgress 0	    	/* processing a lock request	    	*/
#define L_UNDO	     2	    	/* there was an undo operation	    	*/

#define LM_ERROR    	-1  	/* generic error message    	    	*/
#define LM_INVALID  	-3  	/* invalid arguments detected	    	*/


#define MAXNUMLOCKINSET	10  	/* maximal number of requests in a lock	*/
    	    	    	    	/*  set	    	    	    	    	*/




typedef struct LockRequest {
	LockMode	mode;
	LockMode	undoFlag;  /* yet not used */
	LRelId		*rel;
	ObjectId	*page;
	ObjectId	*line;
	TransactionId	xid;
	LockType	lock;
} LockRequest;

#endif PlmHIncluded
@


1.3
log
@Working version of C-only demo
@
text
@d2 1
a2 1
/* 	$Header: /usr6/postgres/mao/postgres/src/lib/H/RCS/plm.h,v 1.2 89/03/22 17:34:12 muir Stab $*/
d5 2
d11 2
a12 2
#include "oid.h"
#include "pladt.h"
d43 2
@


1.2
log
@copyright removal
@
text
@d2 1
a2 1
/* 	$Header: /usr6/postgres/muir/postgres/src/lib/H/RCS/plm.h,v 1.1 89/01/17 05:54:40 cimarron Exp $*/
@


1.1
log
@Initial revision
@
text
@a0 27

; /*
; * 
; * POSTGRES Data Base Management System
; * 
; * Copyright (c) 1988 Regents of the University of California
; * 
; * Permission to use, copy, modify, and distribute this software and its
; * documentation for educational, research, and non-profit purposes and
; * without fee is hereby granted, provided that the above copyright
; * notice appear in all copies and that both that copyright notice and
; * this permission notice appear in supporting documentation, and that
; * the name of the University of California not be used in advertising
; * or publicity pertaining to distribution of the software without
; * specific, written prior permission.  Permission to incorporate this
; * software into commercial products can be obtained from the Campus
; * Software Office, 295 Evans Hall, University of California, Berkeley,
; * Ca., 94720 provided only that the the requestor give the University
; * of California a free licence to any derived software for educational
; * and research purposes.  The University of California makes no
; * representations about the suitability of this software for any
; * purpose.  It is provided "as is" without express or implied warranty.
; * 
; */



d2 1
a2 1
/* 	$Header: plm.h,v 1.1 88/11/11 16:37:20 postgres Exp $*/
@
