head	1.8;
access;
symbols
	Version_2_1:1.8
	Version_2:1.7
	C_Demo_1:1.4;
locks
	mer:1.8; strict;
comment	@ * @;


1.8
date	90.08.17.08.54.58;	author cimarron;	state Exp;
branches;
next	1.7;

1.7
date	90.05.15.13.04.00;	author mao;	state Version_2;
branches;
next	1.6;

1.6
date	89.09.25.11.24.37;	author cimarron;	state Exp;
branches;
next	1.5;

1.5
date	89.09.21.19.13.23;	author hirohama;	state Exp;
branches;
next	1.4;

1.4
date	89.09.05.17.12.33;	author mao;	state C_Demo_1;
branches;
next	1.3;

1.3
date	89.04.12.19.56.42;	author dillon;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.8
log
@added pathnames to #include statements
@
text
@/*
 * tim.h --
 *	POSTGRES time definitions.
 */

#ifndef	TimIncluded		/* Include this file only once */
#define TimIncluded	1

/*
 * Identification:
 */
#define TIM_H	"$Header: RCS/tim.h,v 1.7 90/05/15 13:04:00 mao Version_2 Locker: cimarron $"

#include "tmp/c.h"

typedef uint32	AbsoluteTime;

#define InvalidAbsoluteTime	0

typedef uint32	RelativeTime;

#define InvalidRelativeTime	0

typedef uint32	Time;		/* XXX this will disappear */

#define InvalidTime	0	/* XXX this will disappear */

/*
 * XXX INVALID_ABSTIME from adt/date.h.
 * XXX access/tim and adt/date should be merged somehow.
 */
#ifndef	INVALID_ABSTIME
#define INVALID_ABSTIME	2147483647
#endif	/* !defined(INVALID_ABSTIME) */

/*
 * AbsoluteTimeIsValid --
 *	True iff absolute time is valid.
 */
extern
bool
AbsoluteTimeIsValid ARGS((
	AbsoluteTime	time
));

/*
 * RelativeTimeIsValid --
 *	True iff relative time is valid.
 */
extern
bool
RelativeTimeIsValid ARGS((
	AbsoluteTime	time
));

/*
 * GetCurrentAbsoluteTime --
 *	Returns the current absolute time.
 */
AbsoluteTime
GetCurrentAbsoluteTime ARGS((
	void
));

/*
 * AbsoluteTimeIsBefore --
 *	True iff an absolute time is before or the same as another.
 *
 * Note:
 *	Assumes absolute times are valid.
 */
bool
AbsoluteTimeIsBefore ARGS((
	AbsoluteTime	time1,
	AbsoluteTime	time2
));

/*
 * AbsoluteTimeIsAfter --
 *	True iff an absolute time is strictly after another.
 *
 * Note:
 *	Assumes absolute times are valid.
 */
bool
AbsoluteTimeIsAfter ARGS((
	AbsoluteTime	time1,
	AbsoluteTime	time2
));

#endif	/* !defined(TimIncluded) */
@


1.7
log
@add AbsoluteTimeIsAfter
@
text
@d12 1
a12 1
#define TIM_H	"$Header: RCS/tim.h,v 1.6 89/09/25 11:24:37 cimarron Exp Locker: mao $"
d14 1
a14 3
#ifndef C_H
#include "c.h"
#endif
@


1.6
log
@moved dynamic symbol stuff to syms.h
@
text
@d12 1
a12 1
#define TIM_H	"$Header: RCS/tim.h,v 1.5 89/09/21 19:13:23 hirohama Exp $"
d69 1
a69 1
 *	True iff an absolute time is strictly before another.
d76 13
@


1.5
log
@added ...SYMBOLS declarations
miscellaneous cleanup
@
text
@d12 1
a12 1
#define TIM_H	"$Header: RCS/tim.h,v 1.4 89/09/05 17:12:33 mao C_Demo_1 Locker: hirohama $"
a78 6

#define TIM_SYMBOLS \
	SymbolDecl(AbsoluteTimeIsValid, "_AbsoluteTimeIsValid"), \
	SymbolDecl(RelativeTimeIsValid, "_RelativeTimeIsValid"), \
	SymbolDecl(GetCurrentAbsoluteTime, "_GetCurrentAbsoluteTime"), \
	SymbolDecl(AbsoluteTimeIsBefore, "_AbsoluteTimeIsBefore")
@


1.4
log
@Working version of C-only demo
@
text
@a3 3
 *
 * Identification:
 *	$Header: /usr6/postgres/mao/postgres/src/lib/H/RCS/tim.h,v 1.3 89/04/12 19:56:42 dillon Exp $
d6 1
a6 1
#ifndef	TimIncluded	/* Include this file only once. */
d9 6
a14 1
#ifndef c_H
d68 1
a68 1
 * TimeIsBefore --
d79 6
@


1.3
log
@c.h
@
text
@d6 1
a6 1
 *	$Header: /usr6/postgres/dillon/ptree/src/lib/H/RCS/tim.h,v 1.2 89/03/22 17:34:44 muir Stab $
@


1.2
log
@copyright removal
@
text
@d6 1
a6 1
 *	$Header: /usr6/postgres/muir/postgres/src/lib/H/RCS/tim.h,v 1.1 89/01/17 05:54:57 cimarron Exp $
d12 1
d14 1
@


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.
; * 
; */



d6 1
a6 1
 *	$Header: tim.h,v 1.1 88/11/11 16:37:27 postgres Exp $
@
