1
/*-------------------------------------------------------------------------
4
* prototypes for the reliable BSD-style signal(2) routine.
7
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
8
* Portions Copyright (c) 1994, Regents of the University of California
10
* $PostgreSQL: pgsql/src/include/libpq/pqsignal.h,v 1.29 2004-12-31 22:03:32 pgsql Exp $
13
* This shouldn't be in libpq, but the monitor and some other
16
*-------------------------------------------------------------------------
23
#ifdef HAVE_SIGPROCMASK
24
extern sigset_t UnBlockSig,
28
#define PG_SETMASK(mask) sigprocmask(SIG_SETMASK, mask, NULL)
30
extern int UnBlockSig,
35
#define PG_SETMASK(mask) sigsetmask(*((int*)(mask)))
37
#define PG_SETMASK(mask) pqsigsetmask(*((int*)(mask)))
38
int pqsigsetmask(int mask);
42
typedef void (*pqsigfunc) (int);
44
extern void pqinitmask(void);
46
extern pqsigfunc pqsignal(int signo, pqsigfunc func);
48
#endif /* PQSIGNAL_H */