diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-05 00:03:29 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-05 00:03:29 +0000 |
commit | 72a3902a664c7fbceb2034e28e444b28f96fa717 (patch) | |
tree | ff42e4494af6ea1c1cdf524f3feb5fc670217f0c /src/include/miscadmin.h | |
parent | 91fc10fdacfcbadc123fd9d8ee16a4568f8c636b (diff) | |
download | postgresql-72a3902a664c7fbceb2034e28e444b28f96fa717.tar.gz postgresql-72a3902a664c7fbceb2034e28e444b28f96fa717.zip |
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.
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r-- | src/include/miscadmin.h | 9 |
1 files changed, 5 insertions, 4 deletions
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 <sys/types.h> + /***************************************************************************** * 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); |