Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68ed296

Browse files
committed
Don't use 'private' as a parameter name in visible headers ... makes C++
very unhappy ...
1 parente7c8022 commit68ed296

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(uint32size,boolprivate,intpermission)
666+
IpcMemoryCreate(uint32size,boolmakePrivate,intpermission)
667667
{
668668
void*memAddress;
669669
PGShmemHeader*hdr;
@@ -677,7 +677,7 @@ IpcMemoryCreate(uint32 size, bool private, int permission)
677677
IpcMemoryIdshmid;
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(boolprivate,intmaxBackends)
40+
CreateSharedMemoryAndSemaphores(boolmakePrivate,intmaxBackends)
4141
{
4242
intsize;
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
externboolIpcSemaphoreTryLock(IpcSemaphoreIdsemId,intsem);
105105
externintIpcSemaphoreGetValue(IpcSemaphoreIdsemId,intsem);
106106

107-
externPGShmemHeader*IpcMemoryCreate(uint32size,boolprivate,
107+
externPGShmemHeader*IpcMemoryCreate(uint32size,boolmakePrivate,
108108
intpermission);
109109

110110
/* ipci.c */
111-
externvoidCreateSharedMemoryAndSemaphores(boolprivate,intmaxBackends);
111+
externvoidCreateSharedMemoryAndSemaphores(boolmakePrivate,
112+
intmaxBackends);
112113

113114
#endif/* IPC_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp