mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Revert removal of signed, volatile, and signal handler arg type tests.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.67 2000/08/27 19:00:24 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.68 2000/08/29 09:36:39 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -587,7 +587,7 @@ AtAbort_Notify()
|
||||
*/
|
||||
|
||||
void
|
||||
Async_NotifyHandler(int signum)
|
||||
Async_NotifyHandler(SIGNAL_ARGS)
|
||||
{
|
||||
|
||||
/*
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.161 2000/08/27 19:00:26 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.162 2000/08/29 09:36:41 petere Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -231,10 +231,10 @@ static void pmdaemonize(int argc, char *argv[]);
|
||||
static Port *ConnCreate(int serverFd);
|
||||
static void ConnFree(Port *port);
|
||||
static void reset_shared(int port);
|
||||
static void SIGHUP_handler(int signum);
|
||||
static void pmdie(int signum);
|
||||
static void reaper(int signum);
|
||||
static void dumpstatus(int signum);
|
||||
static void SIGHUP_handler(SIGNAL_ARGS);
|
||||
static void pmdie(SIGNAL_ARGS);
|
||||
static void reaper(SIGNAL_ARGS);
|
||||
static void dumpstatus(SIGNAL_ARGS);
|
||||
static void CleanupProc(int pid, int exitstatus);
|
||||
static int DoBackend(Port *port);
|
||||
static void ExitPostmaster(int status);
|
||||
@@ -246,7 +246,7 @@ static int processCancelRequest(Port *port, PacketLen len, void *pkt);
|
||||
static int initMasks(fd_set *rmask, fd_set *wmask);
|
||||
static long PostmasterRandom(void);
|
||||
static void RandomSalt(char *salt);
|
||||
static void SignalChildren(int signum);
|
||||
static void SignalChildren(SIGNAL_ARGS);
|
||||
static int CountChildren(void);
|
||||
static bool CreateOptsFile(int argc, char *argv[]);
|
||||
|
||||
@@ -1266,7 +1266,7 @@ reset_shared(int port)
|
||||
* main loop
|
||||
*/
|
||||
static void
|
||||
SIGHUP_handler(int signum)
|
||||
SIGHUP_handler(SIGNAL_ARGS)
|
||||
{
|
||||
got_SIGHUP = true;
|
||||
if (Shutdown > SmartShutdown)
|
||||
@@ -1281,14 +1281,14 @@ SIGHUP_handler(int signum)
|
||||
* pmdie -- signal handler for cleaning up after a kill signal.
|
||||
*/
|
||||
static void
|
||||
pmdie(int signum)
|
||||
pmdie(SIGNAL_ARGS)
|
||||
{
|
||||
PG_SETMASK(&BlockSig);
|
||||
|
||||
if (DebugLvl >= 1)
|
||||
elog(DEBUG, "pmdie %d", signum);
|
||||
elog(DEBUG, "pmdie %d", postgres_signal_arg);
|
||||
|
||||
switch (signum)
|
||||
switch (postgres_signal_arg)
|
||||
{
|
||||
case SIGUSR2:
|
||||
|
||||
@@ -1399,7 +1399,7 @@ pmdie(int signum)
|
||||
* Reaper -- signal handler to cleanup after a backend (child) dies.
|
||||
*/
|
||||
static void
|
||||
reaper(int signum)
|
||||
reaper(SIGNAL_ARGS)
|
||||
{
|
||||
/* GH: replace waitpid for !HAVE_WAITPID. Does this work ? */
|
||||
#ifdef HAVE_WAITPID
|
||||
@@ -1970,7 +1970,7 @@ ExitPostmaster(int status)
|
||||
}
|
||||
|
||||
static void
|
||||
dumpstatus(int signum)
|
||||
dumpstatus(SIGNAL_ARGS)
|
||||
{
|
||||
Dlelem *curr;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.78 2000/08/27 19:00:28 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.79 2000/08/29 09:36:44 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -47,7 +47,7 @@
|
||||
* This is so that we can support more backends. (system-wide semaphore
|
||||
* sets run out pretty fast.) -ay 4/95
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.78 2000/08/27 19:00:28 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.79 2000/08/29 09:36:44 petere Exp $
|
||||
*/
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
#include "storage/proc.h"
|
||||
|
||||
void HandleDeadLock(int signum);
|
||||
void HandleDeadLock(SIGNAL_ARGS);
|
||||
static void ProcFreeAllSemaphores(void);
|
||||
static bool GetOffWaitqueue(PROC *);
|
||||
|
||||
@@ -812,7 +812,7 @@ ProcAddLock(SHM_QUEUE *elem)
|
||||
* --------------------
|
||||
*/
|
||||
void
|
||||
HandleDeadLock(int signum)
|
||||
HandleDeadLock(SIGNAL_ARGS)
|
||||
{
|
||||
LOCK *mywaitlock;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.172 2000/08/27 19:00:31 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.173 2000/08/29 09:36:47 petere Exp $
|
||||
*
|
||||
* NOTES
|
||||
* this is the "main" module of the postgres backend and
|
||||
@@ -83,7 +83,7 @@ CommandDest whereToSendOutput = Debug;
|
||||
extern void StartupXLOG(void);
|
||||
extern void ShutdownXLOG(void);
|
||||
|
||||
extern void HandleDeadLock(int signum);
|
||||
extern void HandleDeadLock(SIGNAL_ARGS);
|
||||
|
||||
extern char XLogDir[];
|
||||
extern char ControlFilePath[];
|
||||
@@ -129,9 +129,9 @@ int XfuncMode = 0;
|
||||
static int InteractiveBackend(StringInfo inBuf);
|
||||
static int SocketBackend(StringInfo inBuf);
|
||||
static int ReadCommand(StringInfo inBuf);
|
||||
static void SigHupHandler(int signum);
|
||||
static void FloatExceptionHandler(int signum);
|
||||
static void quickdie(int signum);
|
||||
static void SigHupHandler(SIGNAL_ARGS);
|
||||
static void FloatExceptionHandler(SIGNAL_ARGS);
|
||||
static void quickdie(SIGNAL_ARGS);
|
||||
|
||||
/*
|
||||
* Flag to mark SIGHUP. Whenever the main loop comes around it
|
||||
@@ -705,13 +705,13 @@ pg_exec_query_dest(char *query_string, /* string to execute */
|
||||
*/
|
||||
|
||||
void
|
||||
handle_warn(int signum)
|
||||
handle_warn(SIGNAL_ARGS)
|
||||
{
|
||||
siglongjmp(Warn_restart, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
quickdie(int signum)
|
||||
quickdie(SIGNAL_ARGS)
|
||||
{
|
||||
PG_SETMASK(&BlockSig);
|
||||
elog(NOTICE, "Message from PostgreSQL backend:"
|
||||
@@ -735,7 +735,7 @@ quickdie(int signum)
|
||||
* Abort transaction and exit
|
||||
*/
|
||||
void
|
||||
die(int signum)
|
||||
die(SIGNAL_ARGS)
|
||||
{
|
||||
PG_SETMASK(&BlockSig);
|
||||
|
||||
@@ -752,7 +752,7 @@ die(int signum)
|
||||
|
||||
/* signal handler for floating point exception */
|
||||
static void
|
||||
FloatExceptionHandler(int signum)
|
||||
FloatExceptionHandler(SIGNAL_ARGS)
|
||||
{
|
||||
elog(ERROR, "floating point exception!"
|
||||
" The last floating point operation either exceeded legal ranges"
|
||||
@@ -761,7 +761,7 @@ FloatExceptionHandler(int signum)
|
||||
|
||||
/* signal handler for query cancel signal from postmaster */
|
||||
static void
|
||||
QueryCancelHandler(int signum)
|
||||
QueryCancelHandler(SIGNAL_ARGS)
|
||||
{
|
||||
QueryCancel = true;
|
||||
LockWaitCancel();
|
||||
@@ -779,7 +779,7 @@ CancelQuery(void)
|
||||
}
|
||||
|
||||
static void
|
||||
SigHupHandler(int signum)
|
||||
SigHupHandler(SIGNAL_ARGS)
|
||||
{
|
||||
got_SIGHUP = true;
|
||||
}
|
||||
@@ -1404,7 +1404,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
||||
if (!IsUnderPostmaster)
|
||||
{
|
||||
puts("\nPOSTGRES backend interactive interface ");
|
||||
puts("$Revision: 1.172 $ $Date: 2000/08/27 19:00:31 $\n");
|
||||
puts("$Revision: 1.173 $ $Date: 2000/08/29 09:36:47 $\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user