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


1.5
date	92.06.10.05.08.19;	author mer;	state Exp;
branches;
next	1.4;

1.4
date	91.02.02.18.32.39;	author mao;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


1.5
log
@remove old macros that are no longer used
@
text
@#ifndef	_MASTER_H_
#define	_MASTER_H_	"$Header: /u/mer/pg.debug/src/lib/H/support/RCS/master.h,v 1.4 1991/02/02 18:32:39 mao Exp mer $"

/*
 *	Structure definitions for the postmaster
 */

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>

/* The following expansions are done by the postmaster */
/* '~' expands into the home direcotory of postgres */
/* '&' expands into the directory of a database */
/* '%' expands into the directory of global data */

#define	DEF_PORT	4321
#define	DEF_LOGLVL	0
#define	DEF_BIN		"~/bin/postgres"
#define	DefaultVacuumDemonPath	"~/bin/vacuumd"

struct	bcommon {
	char	user[16];	/* users name */
	short	pid;		/* process number of backend */
	short	debuglvl;	/* debug level */
	long	key;		/* process' key */
};

struct	backend	{
	struct	bcommon	bcomm;	/* data both backend and postmaster need */
	char	database[64];	/* path to database */
	char	globdata[64];	/* path to global data */
	char	tty[16];	/* users terminal */
	char	options[16];	/* options to pass to backend */
	char	dblog[64];	/* per database log file */
	char	back[64];	/* file using as binary */
	struct	sockaddr_in sin; /* address of datagram port of backend */
	struct	rusage	ruse;	/* resource use */
	union	wait	ecode;	/* exit status place holder */
	struct	backend	*next, *last;
};

struct	dpacket	{
	long	len;		/* packet length */
	long	key;		/* process' key */
	short	pid;		/* process num */
	short	type;		/* packet type */
	char	data[1000];	/* packet data */
};

#endif
@


1.4
log
@add options[] entry to struct backend -- gets options that should be
passed to backend on cmd line.
@
text
@d2 1
a2 1
#define	_MASTER_H_	"$Header: RCS/master.h,v 1.3 89/09/05 17:08:27 mao Version_2 Locker: mao $"
a20 3
#define	DEF_PACK	4322
#define	DEF_SLOG	"%/PG_SYSLOG"
#define DEF_DBLOG	"&/PG_DBLOG"
@


1.3
log
@Working version of C-only demo
@
text
@d2 1
a2 1
#define	_MASTER_H_	"$Header: /usr6/postgres/mao/postgres/src/lib/H/RCS/master.h,v 1.2 89/03/22 17:33:50 muir Stab $"
d40 1
@


1.2
log
@copyright removal
@
text
@d2 1
a2 1
#define	_MASTER_H_	"$Header: /usr6/postgres/muir/postgres/src/lib/H/RCS/master.h,v 1.1 89/01/17 05:54:31 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
#define	_MASTER_H_	"$Header: master.h,v 1.1 88/11/11 16:37:16 postgres Exp $"
@
