8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

SINIX-Z: POSIX stylish sigaction.

This commit is contained in:
eku 2003-10-14 13:10:05 +00:00
parent 6f4b622926
commit b6151b52c2
5 changed files with 43 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#ident "$Id: config.h.in,v 1.2 2003-08-12 10:06:12 eku Exp $"
#ident "$Id: config.h.in,v 1.3 2003-10-14 13:10:00 eku Exp $"
/*
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete ports:
@ -46,6 +46,8 @@
#undef HAVE_STDLIB_H
#undef HAVE_STRING_H
#undef HAVE_SIGNAL_H
#undef HAVE_SYS_SIGNAL_H
#undef HAVE_SYS_SIGINFO_H
#undef HAVE_TERMIO_H
#undef HAVE_TERMIOS_H
#undef HAVE_DIRENT_H

View File

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.160 2003-10-10 23:56:47 skidder Exp $
dnl $Id: configure.in,v 1.161 2003-10-14 13:09:56 eku Exp $
dnl ############################# INITIALISATION ###############################
@ -297,7 +297,7 @@ AC_CHECK_HEADERS(setjmp.h)
AC_CHECK_HEADERS(stdarg.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(signal.h)
AC_CHECK_HEADERS(signal.h sys/signal.h sys/siginfo.h)
if test "$EDITLINE_FLG" = "Y"; then
AC_CHECK_HEADERS(termio.h termios.h)
AC_HEADER_DIRENT

View File

@ -97,6 +97,8 @@
#define HAVE_STDLIB_H
#define HAVE_STRING_H
#define HAVE_SIGNAL_H
#undef HAVE_SYS_SIGNAL_H
#undef HAVE_SYS_SIGINFO_H
#undef HAVE_EDITLINE_H
#undef HAVE_TERMIO_H
#undef HAVE_TERMIOS_H

View File

@ -49,7 +49,7 @@
*
*/
/*
$Id: common.h,v 1.88 2003-10-12 14:21:14 skidder Exp $
$Id: common.h,v 1.89 2003-10-14 13:10:03 eku Exp $
*/
#ifndef JRD_COMMON_H
@ -176,6 +176,35 @@ int syslog(int pri, char *fmt, ...);
#define dlopen(a,b) dlopen((char *)(a),(b))
#define dlsym(a,b) dlsym((a), (char *)(b))
#include <signal.h>
#include <sys/siginfo.h>
struct sinixz_sigaction
{
int sa_flags;
union
{
/* Used if SA_SIGINFO is not set. */
void (*sa_handler)(int);
/* Used if SA_SIGINFO is set. */
void (*sa_sigaction) (int, siginfo_t *, void *);
}
__sigaction_handler;
#define sa_handler __sigaction_handler.sa_handler
#define sa_sigaction __sigaction_handler.sa_sigaction
sigset_t sa_mask;
int sa_resv[2];
};
static inline int sinixz_sigaction(int sig, const struct sinixz_sigaction *act,
struct sinixz_sigaction *oact)
{
return sigaction(sig, (struct sigaction*)act, (struct sigaction*)oact);
}
// Re-define things actually
#define sigaction sinixz_sigaction
#define QUADFORMAT "ll"
#define QUADCONST(n) (n##LL)

View File

@ -36,7 +36,7 @@
*
*/
/* $Id: isc_ipc.cpp,v 1.2 2003-10-03 01:48:29 brodsom Exp $ */
/* $Id: isc_ipc.cpp,v 1.3 2003-10-14 13:10:05 eku Exp $ */
#include "firebird.h"
#include "../jrd/ib_stdio.h"
@ -71,6 +71,10 @@
#include <sys/signal.h>
#endif
#ifdef HAVE_SYS_SIGINFO_H
#include <sys/siginfo.h>
#endif
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>