Skip to content

Commit 68ed296

Browse files
committed
Don't use 'private' as a parameter name in visible headers ... makes C++
very unhappy ...
1 parent e7c8022 commit 68ed296

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/backend/storage/ipc/ipc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.55 2000/11/30 03:11:24 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.56 2000/12/03 17:18:10 tgl Exp $
1212
*
1313
* NOTES
1414
*
@@ -663,7 +663,7 @@ IpcInitKeyAssignment(int port)
663663
* but we do not fail upon collision with non-Postgres shmem segments.
664664
*/
665665
PGShmemHeader *
666-
IpcMemoryCreate(uint32 size, bool private, int permission)
666+
IpcMemoryCreate(uint32 size, bool makePrivate, int permission)
667667
{
668668
void *memAddress;
669669
PGShmemHeader *hdr;
@@ -677,7 +677,7 @@ IpcMemoryCreate(uint32 size, bool private, int permission)
677677
IpcMemoryId shmid;
678678

679679
/* Special case if creating a private segment --- just malloc() it */
680-
if (private)
680+
if (makePrivate)
681681
{
682682
memAddress = PrivateMemoryCreate(size);
683683
break;

src/backend/storage/ipc/ipci.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.36 2000/11/30 01:39:07 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.37 2000/12/03 17:18:10 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -33,11 +33,11 @@
3333
* It is NEVER called by a backend forked from the postmaster;
3434
* for such a backend, the shared memory is already ready-to-go.
3535
*
36-
* If "private" is true then we only need private memory, not shared
36+
* If "makePrivate" is true then we only need private memory, not shared
3737
* memory. This is true for a standalone backend, false for a postmaster.
3838
*/
3939
void
40-
CreateSharedMemoryAndSemaphores(bool private, int maxBackends)
40+
CreateSharedMemoryAndSemaphores(bool makePrivate, int maxBackends)
4141
{
4242
int size;
4343
PGShmemHeader *seghdr;
@@ -62,7 +62,7 @@ CreateSharedMemoryAndSemaphores(bool private, int maxBackends)
6262
/*
6363
* Create the shmem segment
6464
*/
65-
seghdr = IpcMemoryCreate(size, private, IPCProtection);
65+
seghdr = IpcMemoryCreate(size, makePrivate, IPCProtection);
6666

6767
/*
6868
* First initialize spinlocks --- needed by InitShmemAllocation()

src/include/storage/ipc.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: ipc.h,v 1.43 2000/11/28 23:27:57 tgl Exp $
10+
* $Id: ipc.h,v 1.44 2000/12/03 17:18:09 tgl Exp $
1111
*
1212
* Some files that would normally need to include only sys/ipc.h must
1313
* instead include this file because on Ultrix, sys/ipc.h is not designed
@@ -104,10 +104,11 @@ extern void IpcSemaphoreUnlock(IpcSemaphoreId semId, int sem);
104104
extern bool IpcSemaphoreTryLock(IpcSemaphoreId semId, int sem);
105105
extern int IpcSemaphoreGetValue(IpcSemaphoreId semId, int sem);
106106

107-
extern PGShmemHeader *IpcMemoryCreate(uint32 size, bool private,
107+
extern PGShmemHeader *IpcMemoryCreate(uint32 size, bool makePrivate,
108108
int permission);
109109

110110
/* ipci.c */
111-
extern void CreateSharedMemoryAndSemaphores(bool private, int maxBackends);
111+
extern void CreateSharedMemoryAndSemaphores(bool makePrivate,
112+
int maxBackends);
112113

113114
#endif /* IPC_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy