Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
416bbbff
Commit
416bbbff
authored
Oct 02, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Banish caddr_t (mostly), use Datum where appropriate.
parent
a81aef7f
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
48 additions
and
48 deletions
+48
-48
src/backend/commands/async.c
src/backend/commands/async.c
+5
-5
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+2
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+3
-3
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+4
-3
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+11
-13
src/backend/storage/ipc/sinvaladt.c
src/backend/storage/ipc/sinvaladt.c
+4
-4
src/backend/storage/lmgr/proc.c
src/backend/storage/lmgr/proc.c
+6
-5
src/backend/storage/smgr/smgr.c
src/backend/storage/smgr/smgr.c
+2
-2
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+4
-4
src/backend/utils/init/postinit.c
src/backend/utils/init/postinit.c
+2
-2
src/include/storage/ipc.h
src/include/storage/ipc.h
+5
-5
No files found.
src/backend/commands/async.c
View file @
416bbbff
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.6
8 2000/08/29 09:36:39
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.6
9 2000/10/02 19:42:45
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -70,14 +70,14 @@
...
@@ -70,14 +70,14 @@
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "postgres.h"
#include <unistd.h>
#include <unistd.h>
#include <signal.h>
#include <signal.h>
#include <errno.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include "postgres.h"
#include "access/heapam.h"
#include "access/heapam.h"
#include "catalog/catname.h"
#include "catalog/catname.h"
#include "catalog/indexing.h"
#include "catalog/indexing.h"
...
@@ -255,7 +255,7 @@ Async_Listen(char *relname, int pid)
...
@@ -255,7 +255,7 @@ Async_Listen(char *relname, int pid)
*/
*/
if
(
!
unlistenExitRegistered
)
if
(
!
unlistenExitRegistered
)
{
{
if
(
on_shmem_exit
(
Async_UnlistenOnExit
,
(
caddr_t
)
NULL
)
<
0
)
if
(
on_shmem_exit
(
Async_UnlistenOnExit
,
0
)
<
0
)
elog
(
NOTICE
,
"Async_Listen: out of shmem_exit slots"
);
elog
(
NOTICE
,
"Async_Listen: out of shmem_exit slots"
);
unlistenExitRegistered
=
1
;
unlistenExitRegistered
=
1
;
}
}
...
@@ -373,7 +373,7 @@ Async_UnlistenAll()
...
@@ -373,7 +373,7 @@ Async_UnlistenAll()
*--------------------------------------------------------------
*--------------------------------------------------------------
*/
*/
static
void
static
void
Async_UnlistenOnExit
()
Async_UnlistenOnExit
(
void
)
{
{
/*
/*
...
...
src/backend/libpq/pqcomm.c
View file @
416bbbff
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pqcomm.c,v 1.10
1 2000/09/27 15:17:54
petere Exp $
* $Id: pqcomm.c,v 1.10
2 2000/10/02 19:42:46
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -260,7 +260,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
...
@@ -260,7 +260,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
if
(
family
==
AF_UNIX
)
if
(
family
==
AF_UNIX
)
{
{
on_proc_exit
(
StreamDoUnlink
,
NULL
);
on_proc_exit
(
StreamDoUnlink
,
0
);
/*
/*
* Open the socket file and get an advisory lock on it. The
* Open the socket file and get an advisory lock on it. The
...
...
src/backend/postmaster/postmaster.c
View file @
416bbbff
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.16
6 2000/09/06 19:54
:46 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.16
7 2000/10/02 19:42
:46 petere Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -628,7 +628,7 @@ PostmasterMain(int argc, char *argv[])
...
@@ -628,7 +628,7 @@ PostmasterMain(int argc, char *argv[])
/*
/*
* register clean up proc
* register clean up proc
*/
*/
on_proc_exit
(
UnlinkPidFile
,
NULL
);
on_proc_exit
(
UnlinkPidFile
,
0
);
}
}
/*
/*
...
@@ -727,7 +727,7 @@ pmdaemonize(int argc, char *argv[])
...
@@ -727,7 +727,7 @@ pmdaemonize(int argc, char *argv[])
/*
/*
* register clean up proc
* register clean up proc
*/
*/
on_proc_exit
(
UnlinkPidFile
,
NULL
);
on_proc_exit
(
UnlinkPidFile
,
0
);
}
}
...
...
src/backend/storage/file/fd.c
View file @
416bbbff
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.6
3 2000/08/27 21:48:00 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.6
4 2000/10/02 19:42:47 petere
Exp $
*
*
* NOTES:
* NOTES:
*
*
...
@@ -38,6 +38,8 @@
...
@@ -38,6 +38,8 @@
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "postgres.h"
#include <sys/types.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/file.h>
#include <sys/param.h>
#include <sys/param.h>
...
@@ -46,7 +48,6 @@
...
@@ -46,7 +48,6 @@
#include <unistd.h>
#include <unistd.h>
#include <fcntl.h>
#include <fcntl.h>
#include "postgres.h"
#include "miscadmin.h"
#include "miscadmin.h"
#include "storage/fd.h"
#include "storage/fd.h"
...
@@ -472,7 +473,7 @@ AllocateVfd(void)
...
@@ -472,7 +473,7 @@ AllocateVfd(void)
* register proc-exit call to ensure temp files are dropped at
* register proc-exit call to ensure temp files are dropped at
* exit
* exit
*/
*/
on_proc_exit
(
AtEOXact_Files
,
NULL
);
on_proc_exit
(
AtEOXact_Files
,
0
);
}
}
if
(
VfdCache
[
0
].
nextFree
==
0
)
if
(
VfdCache
[
0
].
nextFree
==
0
)
...
...
src/backend/storage/ipc/ipc.c
View file @
416bbbff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
49 2000/07/22 14:49:01
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
50 2000/10/02 19:42:48
petere Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -25,12 +25,12 @@
...
@@ -25,12 +25,12 @@
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "postgres.h"
#include <sys/types.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/file.h>
#include <errno.h>
#include <errno.h>
#include "postgres.h"
#include "storage/ipc.h"
#include "storage/ipc.h"
#include "storage/s_lock.h"
#include "storage/s_lock.h"
/* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */
/* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */
...
@@ -65,7 +65,7 @@ static void IpcMemoryDetach(int status, char *shmaddr);
...
@@ -65,7 +65,7 @@ static void IpcMemoryDetach(int status, char *shmaddr);
static
struct
ONEXIT
static
struct
ONEXIT
{
{
void
(
*
function
)
();
void
(
*
function
)
();
caddr_t
arg
;
Datum
arg
;
}
on_proc_exit_list
[
MAX_ON_EXITS
],
on_shmem_exit_list
[
MAX_ON_EXITS
];
}
on_proc_exit_list
[
MAX_ON_EXITS
],
on_shmem_exit_list
[
MAX_ON_EXITS
];
static
int
on_proc_exit_index
,
static
int
on_proc_exit_index
,
...
@@ -182,7 +182,7 @@ shmem_exit(int code)
...
@@ -182,7 +182,7 @@ shmem_exit(int code)
* ----------------------------------------------------------------
* ----------------------------------------------------------------
*/
*/
int
int
on_proc_exit
(
void
(
*
function
)
(),
caddr_t
arg
)
on_proc_exit
(
void
(
*
function
)
(),
Datum
arg
)
{
{
if
(
on_proc_exit_index
>=
MAX_ON_EXITS
)
if
(
on_proc_exit_index
>=
MAX_ON_EXITS
)
return
-
1
;
return
-
1
;
...
@@ -203,7 +203,7 @@ int
...
@@ -203,7 +203,7 @@ int
* ----------------------------------------------------------------
* ----------------------------------------------------------------
*/
*/
int
int
on_shmem_exit
(
void
(
*
function
)
(),
caddr_t
arg
)
on_shmem_exit
(
void
(
*
function
)
(),
Datum
arg
)
{
{
if
(
on_shmem_exit_index
>=
MAX_ON_EXITS
)
if
(
on_shmem_exit_index
>=
MAX_ON_EXITS
)
return
-
1
;
return
-
1
;
...
@@ -234,8 +234,7 @@ on_exit_reset(void)
...
@@ -234,8 +234,7 @@ on_exit_reset(void)
/* */
/* */
/****************************************************************************/
/****************************************************************************/
static
void
static
void
IPCPrivateSemaphoreKill
(
int
status
,
IPCPrivateSemaphoreKill
(
int
status
,
int
semId
)
int
semId
)
/* caddr_t */
{
{
union
semun
semun
;
union
semun
semun
;
semun
.
val
=
0
;
/* unused */
semun
.
val
=
0
;
/* unused */
...
@@ -251,8 +250,7 @@ IPCPrivateSemaphoreKill(int status,
...
@@ -251,8 +250,7 @@ IPCPrivateSemaphoreKill(int status,
/* */
/* */
/****************************************************************************/
/****************************************************************************/
static
void
static
void
IPCPrivateMemoryKill
(
int
status
,
IPCPrivateMemoryKill
(
int
status
,
int
shmId
)
int
shmId
)
/* caddr_t */
{
{
if
(
UsePrivateMemory
)
if
(
UsePrivateMemory
)
{
{
...
@@ -343,7 +341,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
...
@@ -343,7 +341,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
}
}
if
(
removeOnExit
)
if
(
removeOnExit
)
on_shmem_exit
(
IPCPrivateSemaphoreKill
,
(
caddr_t
)
semId
);
on_shmem_exit
(
IPCPrivateSemaphoreKill
,
(
Datum
)
semId
);
}
}
#ifdef DEBUG_IPC
#ifdef DEBUG_IPC
...
@@ -565,7 +563,7 @@ IpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
...
@@ -565,7 +563,7 @@ IpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
}
}
/* if (memKey == PrivateIPCKey) */
/* if (memKey == PrivateIPCKey) */
on_shmem_exit
(
IPCPrivateMemoryKill
,
(
caddr_t
)
shmid
);
on_shmem_exit
(
IPCPrivateMemoryKill
,
(
Datum
)
shmid
);
return
shmid
;
return
shmid
;
}
}
...
@@ -629,7 +627,7 @@ IpcMemoryAttach(IpcMemoryId memId)
...
@@ -629,7 +627,7 @@ IpcMemoryAttach(IpcMemoryId memId)
}
}
if
(
!
UsePrivateMemory
)
if
(
!
UsePrivateMemory
)
on_shmem_exit
(
IpcMemoryDetach
,
(
caddr_t
)
memAddress
);
on_shmem_exit
(
IpcMemoryDetach
,
PointerGetDatum
(
memAddress
)
);
return
(
char
*
)
memAddress
;
return
(
char
*
)
memAddress
;
}
}
...
...
src/backend/storage/ipc/sinvaladt.c
View file @
416bbbff
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.3
2 2000/05/31 00:28:29
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.3
3 2000/10/02 19:42:48
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "postgres.h"
#include <signal.h>
#include <signal.h>
#include <unistd.h>
#include <unistd.h>
#include "postgres.h"
#include "miscadmin.h"
#include "miscadmin.h"
#include "storage/backendid.h"
#include "storage/backendid.h"
#include "storage/proc.h"
#include "storage/proc.h"
...
@@ -189,7 +189,7 @@ SIBackendInit(SISeg *segP)
...
@@ -189,7 +189,7 @@ SIBackendInit(SISeg *segP)
stateP
->
procStruct
=
MAKE_OFFSET
(
MyProc
);
stateP
->
procStruct
=
MAKE_OFFSET
(
MyProc
);
/* register exit routine to mark my entry inactive at exit */
/* register exit routine to mark my entry inactive at exit */
on_shmem_exit
(
CleanupInvalidationState
,
(
caddr_t
)
segP
);
on_shmem_exit
(
CleanupInvalidationState
,
PointerGetDatum
(
segP
)
);
return
1
;
return
1
;
}
}
...
...
src/backend/storage/lmgr/proc.c
View file @
416bbbff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.
79 2000/08/29 09:36:44
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.
80 2000/10/02 19:42:48
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -47,8 +47,10 @@
...
@@ -47,8 +47,10 @@
* This is so that we can support more backends. (system-wide semaphore
* This is so that we can support more backends. (system-wide semaphore
* sets run out pretty fast.) -ay 4/95
* sets run out pretty fast.) -ay 4/95
*
*
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.
79 2000/08/29 09:36:44
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.
80 2000/10/02 19:42:48
petere Exp $
*/
*/
#include "postgres.h"
#include <sys/time.h>
#include <sys/time.h>
#include <unistd.h>
#include <unistd.h>
#include <signal.h>
#include <signal.h>
...
@@ -59,7 +61,6 @@
...
@@ -59,7 +61,6 @@
#include <sys/sem.h>
#include <sys/sem.h>
#endif
#endif
#include "postgres.h"
#include "miscadmin.h"
#include "miscadmin.h"
...
@@ -140,7 +141,7 @@ InitProcGlobal(IPCKey key, int maxBackends)
...
@@ -140,7 +141,7 @@ InitProcGlobal(IPCKey key, int maxBackends)
* Arrange to delete semas on exit --- set this up now so that we
* Arrange to delete semas on exit --- set this up now so that we
* will clean up if pre-allocation fails...
* will clean up if pre-allocation fails...
*/
*/
on_shmem_exit
(
ProcFreeAllSemaphores
,
NULL
);
on_shmem_exit
(
ProcFreeAllSemaphores
,
0
);
/*
/*
* Pre-create the semaphores for the first maxBackends processes,
* Pre-create the semaphores for the first maxBackends processes,
...
@@ -306,7 +307,7 @@ InitProcess(IPCKey key)
...
@@ -306,7 +307,7 @@ InitProcess(IPCKey key)
MyProc
->
errType
=
NO_ERROR
;
MyProc
->
errType
=
NO_ERROR
;
SHMQueueElemInit
(
&
(
MyProc
->
links
));
SHMQueueElemInit
(
&
(
MyProc
->
links
));
on_shmem_exit
(
ProcKill
,
(
caddr_t
)
MyProcPid
);
on_shmem_exit
(
ProcKill
,
(
Datum
)
MyProcPid
);
}
}
/* -----------------------
/* -----------------------
...
...
src/backend/storage/smgr/smgr.c
View file @
416bbbff
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.3
7 2000/06/19 23:37:08 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.3
8 2000/10/02 19:42:52 petere
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -112,7 +112,7 @@ smgrinit()
...
@@ -112,7 +112,7 @@ smgrinit()
}
}
/* register the shutdown proc */
/* register the shutdown proc */
on_proc_exit
(
smgrshutdown
,
NULL
);
on_proc_exit
(
smgrshutdown
,
0
);
return
SM_SUCCESS
;
return
SM_SUCCESS
;
}
}
...
...
src/backend/tcop/postgres.c
View file @
416bbbff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.17
5 2000/09/06 14:15:21
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.17
6 2000/10/02 19:42:53
petere Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1284,7 +1284,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
...
@@ -1284,7 +1284,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
/*
/*
* Register clean up proc.
* Register clean up proc.
*/
*/
on_proc_exit
(
UnlinkPidFile
,
NULL
);
on_proc_exit
(
UnlinkPidFile
,
0
);
BaseInit
();
BaseInit
();
snprintf
(
XLogDir
,
MAXPGPATH
,
"%s/pg_xlog"
,
DataDir
);
snprintf
(
XLogDir
,
MAXPGPATH
,
"%s/pg_xlog"
,
DataDir
);
...
@@ -1376,7 +1376,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
...
@@ -1376,7 +1376,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
reset_client_encoding
();
reset_client_encoding
();
#endif
#endif
on_shmem_exit
(
remove_all_temp_relations
,
NULL
);
on_shmem_exit
(
remove_all_temp_relations
,
0
);
/*
/*
* Send this backend's cancellation info to the frontend.
* Send this backend's cancellation info to the frontend.
...
@@ -1397,7 +1397,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
...
@@ -1397,7 +1397,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.17
5 $ $Date: 2000/09/06 14:15:21
$
\n
"
);
puts
(
"$Revision: 1.17
6 $ $Date: 2000/10/02 19:42:53
$
\n
"
);
}
}
/*
/*
...
...
src/backend/utils/init/postinit.c
View file @
416bbbff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.6
6 2000/09/19 18:17:57
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.6
7 2000/10/02 19:42:54
petere Exp $
*
*
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
...
@@ -232,7 +232,7 @@ InitPostgres(const char *dbname, const char *username)
...
@@ -232,7 +232,7 @@ InitPostgres(const char *dbname, const char *username)
#ifndef XLOG
#ifndef XLOG
if
(
!
TransactionFlushEnabled
())
if
(
!
TransactionFlushEnabled
())
on_shmem_exit
(
FlushBufferPool
,
(
caddr_t
)
NULL
);
on_shmem_exit
(
FlushBufferPool
,
0
);
#endif
#endif
SetDatabaseName
(
dbname
);
SetDatabaseName
(
dbname
);
...
...
src/include/storage/ipc.h
View file @
416bbbff
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: ipc.h,v 1.
39 2000/10/02 17:15:58 momjian
Exp $
* $Id: ipc.h,v 1.
40 2000/10/02 19:42:56 petere
Exp $
*
*
* NOTES
* NOTES
* This file is very architecture-specific. This stuff should actually
* This file is very architecture-specific. This stuff should actually
...
@@ -22,13 +22,13 @@
...
@@ -22,13 +22,13 @@
#ifndef IPC_H
#ifndef IPC_H
#define IPC_H
#define IPC_H
#include "config.h"
#include <sys/types.h>
#include <sys/types.h>
#ifdef HAVE_SYS_IPC_H
#ifdef HAVE_SYS_IPC_H
#include <sys/ipc.h>
/* For IPC_PRIVATE */
#include <sys/ipc.h>
/* For IPC_PRIVATE */
#endif
#endif
#include "config.h"
#ifndef HAVE_UNION_SEMUN
#ifndef HAVE_UNION_SEMUN
union
semun
union
semun
{
{
...
@@ -78,8 +78,8 @@ extern bool proc_exit_inprogress;
...
@@ -78,8 +78,8 @@ extern bool proc_exit_inprogress;
extern
void
proc_exit
(
int
code
);
extern
void
proc_exit
(
int
code
);
extern
void
shmem_exit
(
int
code
);
extern
void
shmem_exit
(
int
code
);
extern
int
on_shmem_exit
(
void
(
*
function
)
(),
caddr_t
arg
);
extern
int
on_shmem_exit
(
void
(
*
function
)
(),
Datum
arg
);
extern
int
on_proc_exit
(
void
(
*
function
)
(),
caddr_t
arg
);
extern
int
on_proc_exit
(
void
(
*
function
)
(),
Datum
arg
);
extern
void
on_exit_reset
(
void
);
extern
void
on_exit_reset
(
void
);
extern
IpcSemaphoreId
IpcSemaphoreCreate
(
IpcSemaphoreKey
semKey
,
extern
IpcSemaphoreId
IpcSemaphoreCreate
(
IpcSemaphoreKey
semKey
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment