From 72a3902a664c7fbceb2034e28e444b28f96fa717 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 5 May 2002 00:03:29 +0000 Subject: Create an internal semaphore API that is not tied to SysV semaphores. As proof of concept, provide an alternate implementation based on POSIX semaphores. Also push the SysV shared-memory implementation into a separate file so that it can be replaced conveniently. --- src/include/miscadmin.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/include/miscadmin.h') diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 99f7fae88bf..09e1c0fe635 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: miscadmin.h,v 1.102 2002/04/04 04:25:51 momjian Exp $ + * $Id: miscadmin.h,v 1.103 2002/05/05 00:03:29 tgl Exp $ * * NOTES * some of the information in this file should be moved to @@ -23,7 +23,8 @@ #ifndef MISCADMIN_H #define MISCADMIN_H -#include "storage/ipc.h" +#include + /***************************************************************************** * System interrupt and critical section handling @@ -291,8 +292,8 @@ extern void BaseInit(void); extern bool CreateDataDirLockFile(const char *datadir, bool amPostmaster); extern bool CreateSocketLockFile(const char *socketfile, bool amPostmaster); extern void TouchSocketLockFile(void); -extern void RecordSharedMemoryInLockFile(IpcMemoryKey shmKey, - IpcMemoryId shmId); +extern void RecordSharedMemoryInLockFile(unsigned long id1, + unsigned long id2); extern void ValidatePgVersion(const char *path); -- cgit v1.2.3