mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
All external function definitions now have prototypes that are checked.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.8 1996/11/08 05:58:30 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.9 1996/11/10 03:02:21 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -66,7 +66,7 @@ static struct ONEXIT {
|
||||
} onexit_list[ MAX_ON_EXITS ];
|
||||
|
||||
static int onexit_index;
|
||||
static void IpcConfigTip();
|
||||
static void IpcConfigTip(void);
|
||||
|
||||
typedef struct _PrivateMemStruct {
|
||||
int id;
|
||||
@@ -725,7 +725,7 @@ LockIsFree(int lockid)
|
||||
#endif /* HAS_TEST_AND_SET */
|
||||
|
||||
static void
|
||||
IpcConfigTip()
|
||||
IpcConfigTip(void)
|
||||
{
|
||||
fprintf(stderr,"This type of error is usually caused by improper\n");
|
||||
fprintf(stderr,"shared memory or System V IPC semaphore configuration.\n");
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.7 1996/11/06 06:49:04 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.8 1996/11/10 03:02:26 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -48,6 +48,8 @@
|
||||
|
||||
#if defined(HAS_TEST_AND_SET)
|
||||
|
||||
extern int tas(slock_t *lock);
|
||||
|
||||
#if defined (next)
|
||||
/*
|
||||
* NEXTSTEP (mach)
|
||||
@@ -163,9 +165,7 @@ S_LOCK_FREE(slock_t *lock)
|
||||
|
||||
#if defined(i386_solaris) || \
|
||||
defined(sparc_solaris)
|
||||
|
||||
/* for xxxxx_solaris, this is defined in port/.../tas.s */
|
||||
extern int tas(slock_t *lock);
|
||||
|
||||
void
|
||||
S_LOCK(slock_t *lock)
|
||||
@@ -227,9 +227,6 @@ S_INIT_LOCK(slock_t *lock)
|
||||
|
||||
#if defined(hpux)
|
||||
|
||||
/* defined in port/.../tas.s */
|
||||
extern int tas(slock_t *lock);
|
||||
|
||||
/*
|
||||
* a "set" slock_t has a single word cleared. a "clear" slock_t has
|
||||
* all words set to non-zero.
|
||||
@@ -389,6 +386,7 @@ S_INIT_LOCK(unsigned char *addr)
|
||||
defined(bsdi_2_1) || \
|
||||
defined(linux)
|
||||
|
||||
|
||||
int
|
||||
tas(slock_t *m)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.5 1996/11/08 20:45:51 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.6 1996/11/10 03:02:27 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -98,7 +98,7 @@ static HTAB *BindingTable = NULL;
|
||||
* ----------------------
|
||||
*/
|
||||
void
|
||||
ShmemBindingTabReset()
|
||||
ShmemBindingTabReset(void)
|
||||
{
|
||||
BindingTable = (HTAB *)NULL;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.4 1996/11/06 06:49:09 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.5 1996/11/10 03:02:30 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -75,7 +75,7 @@ AttachSharedInvalidationState(IPCKey key)
|
||||
}
|
||||
|
||||
void
|
||||
InitSharedInvalidationState()
|
||||
InitSharedInvalidationState(void)
|
||||
{
|
||||
SpinAcquire(SInvalLock);
|
||||
if (!SIBackendInit(shmInvalBuffer))
|
||||
|
||||
Reference in New Issue
Block a user