head     1.6;
branch   ;
access   ;
symbols  Version_2_1:1.6 Version_2:1.5 C_Demo_1:1.5;
locks    ; strict;
comment  @ * @;


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

1.5
date     89.09.05.17.09.06;  author mao;  state Version_2;
branches ;
next     1.4;

1.4
date     89.05.22.18.01.12;  author hirohama;  state Exp;
branches ;
next     1.3;

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

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

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


desc
@@


1.6
log
@added pathnames to #include statements
@
text
@/*
 * os.h --
 *	Operating system definitions.
 *
 * Note:
 *	This file is OPERATING SYSTEM dependent!!!
 *
 * Identification:
 *	$Header: RCS/os.h,v 1.5 89/09/05 17:09:06 mao Version_2 Locker: cimarron $
 */

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

#include "tmp/c.h"
#include "tmp/unix.h"	/* UNIX operating system definitions */

/*
 * SystemPort --
 *	Unbuffered system I/O port.
 */
typedef HostSystemPort	SystemPort;

/*
 * SystemFileMode --
 *	File mode.
 */
typedef HostSystemFileMode	SystemFileMode;

/*
 * SystemByteCount --
 *	Number of bytes--used in calls to read, write, etc.
 */
typedef HostSystemByteCount	SystemByteCount;

/*
 * SystemFilePosition --
 *	Number of bytes from beginning of file.
 */
typedef HostSystemFilePosition	SystemFilePosition;

/*
 * SystemFileOffset --
 *	Number of offset bytes for lseek.
 */
typedef HostSystemFileOffset	SystemFileOffset;

/*
 * SystemTime --
 *	Time in seconds.
 */
typedef HostSystemTime	SystemTime;

/*
 * open --
 *	open(2)
 */
extern
SystemPort
OpenSystemPortFile ARGS((
	const String		path,
	const int		flags,
	const SystemFileMode	mode
));

/*
 * close --
 *	close(2)
 */
extern
void
CloseSystemPort ARGS((
	const SystemPort	port
));

/*
 * read --
 *	read(2)
 *
 * Note:
 *	String may not be proper usage here.
 */
extern
SystemByteCount
SystemPortRead ARGS((
	const SystemPort	port,
	const String		buffer,
	const SystemByteCount	numberBytes
));

/*
 * write --
 *	write(2)
 *
 * Note:
 *	String may not be proper usage here.
 */
extern
SystemByteCount
SystemPortWrite ARGS((
	const SystemPort	port,
	const String		buffer,
	const SystemByteCount	numberBytes
));

/*
 * lseek --
 *	lseek(2)
 */
extern
SystemFilePosition
SystemPortSeek ARGS((
	const SystemPort	port,
	const SystemFileOffset	offset,
	const int		whence
));

/*
 * GetSystemTime --
 *	Returns system time.
 */
SystemTime
GetSystemTime ARGS((
	void
));

/*
 * PointerIsToStaticData --
 * PointerIsToDynamicData --
 *	True iff pointer points to memory allocated at compile-time or
 *	run-time, respectively.
 *
 * Note:
 *	This is compiler and operating system dependent.
 *	Look in "unix.h", etc. for the appropriate definition.
 */

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


1.5
log
@Working version of C-only demo
@
text
@d9 1
a9 1
 *	$Header: /usr6/postgres/mao/postgres/src/lib/H/RCS/os.h,v 1.4 89/05/22 18:01:12 hirohama Exp $
d15 2
a16 5
#ifndef	C_H
#include "c.h"
#endif

#include "unix.h"	/* UNIX operating system definitions */
@


1.4
log
@defined PointerIsTo{Dynamic,Static}Data
@
text
@d9 1
a9 1
 *	$Header: os.h,v 1.3 89/04/12 19:55:20 hirohama Locked $
@


1.3
log
@c.h
@
text
@d9 1
a9 1
 *	$Header: /usr6/postgres/dillon/ptree/src/lib/H/RCS/os.h,v 1.2 89/03/22 17:34:03 muir Stab $
d12 1
a12 1
#ifndef	OSIncluded	/* Include this file only once. */
d15 1
a15 1
#ifndef C_H
d129 11
@


1.2
log
@copyright removal
@
text
@d9 1
a9 1
 *	$Header: /usr6/postgres/muir/postgres/src/lib/H/RCS/os.h,v 1.1 89/01/17 05:54:36 cimarron Exp $
d15 1
d17 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.
; * 
; */



d9 1
a9 1
 *	$Header: os.h,v 1.1 88/11/11 16:37:18 postgres Exp $
@
