head	1.5;
access;
symbols
	release_4_2:1.5
	aix_ok:1.5
	Version_2_1:1.4
	C_Demo_1:1.3;
locks; strict;
comment	@ * @;


1.5
date	91.11.14.19.39.13;	author kemnitz;	state Exp;
branches;
next	1.4;

1.4
date	90.09.25.16.43.59;	author kemnitz;	state Exp;
branches;
next	1.3;

1.3
date	89.09.05.17.23.12;	author mao;	state C_Demo_1;
branches;
next	1.2;

1.2
date	89.02.02.13.47.23;	author dillon;	state Stab;
branches;
next	1.1;

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


desc
@@


1.5
log
@protos checkin.
@
text
@/*
 * imark.c --
 *	POSTGRES buffer manager item marking code.
 *
 * Note:
 *	This is not implemented correctly yet.
 *	The interface should be stable, so the routines should be
 *	called as necessary.
 */

#include "tmp/c.h"

RcsId("$Header: RCS/imark.c,v 1.4 90/09/25 16:43:59 kemnitz Exp Locker: kemnitz $");

#include "access/imark.h"
#include "storage/buf.h"
#include "storage/itemptr.h"
/* #include "storage/buf_protos.h" */

bool
ItemMarkIsValid(mark)
	ItemMark	mark;
{
	return ((bool)PointerIsValid(mark));
}

bool
ItemMarkIsForItemPointer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return (true);	/* XXX */
}

bool
ItemMarkIsForBufferPointer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return (true);	/* XXX */
}

bool
ItemMarkIsForCopiedPointer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return (true);	/* XXX */
}

ItemPointer
ItemMarkGetItemPointer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return ((ItemPointer)mark);	/* XXX */
}

Buffer
ItemMarkGetBuffer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return (1);	/* XXX */
}

Pointer
ItemMarkGetBufferPointer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return ((Pointer)mark);	/* XXX */
}

Pointer
ItemMarkGetCopiedPointer(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return ((Pointer)mark);	/* XXX */
}

void
ItemMarkFree(mark)
	ItemMark	mark;
{
	Assert(ItemMarkIsValid(mark));

	return;	/* XXX */
}

ItemMark
ItemPointerGetItemMark(pointer)
	ItemPointer	pointer;
{
	Assert(ItemPointerIsValid(pointer));

	return ((ItemMark)pointer);	/* XXX */
}

ItemMark
BufferGetItemMark(buffer, pointer)
	Buffer	buffer;
	Pointer	pointer;
{
	Assert(BufferIsValid(buffer));
	Assert(PointerIsValid(pointer));

	return ((ItemMark)pointer);	/* XXX */
}

ItemMark
PointerGetItemMark(pointer)
	Pointer	pointer;
{
	Assert(PointerIsValid(pointer));

	return ((ItemMark)pointer);	/* XXX */
}
@


1.4
log
@Updating from revision 1.3 to revision 1.4
@
text
@d13 1
a13 1
RcsId("$Header: RCS/imark.c,v 1.4 90/08/14 15:29:27 cimarron Exp $");
d18 1
@


1.3
log
@Working version of C-only demo
@
text
@d11 1
a11 1
#include "c.h"
d13 1
a13 2
#include "buf.h"
#include "itemptr.h"
d15 3
a17 3
#include "imark.h"

RcsId("$Header: /usr6/postgres/mao/postgres/src/storage/buffer/RCS/imark.c,v 1.2 89/02/02 13:47:23 dillon Stab $");
@


1.2
log
@Txfer from old tree
@
text
@d18 1
a18 1
RcsId("$Header: imark.c,v 1.1 88/01/04 18:52:00 dillon Locked $");
@


1.1
log
@Initial revision
@
text
@a0 1

a1 26
 * 
 * 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.
 * 
 */



/*
d18 1
a18 1
RcsId("$Header: imark.c,v 1.1 88/11/11 16:36:02 postgres Exp $");
@
