1998-10-25 09:41:42 +08:00
|
|
|
/* Generic signal.h */
|
1999-08-30 16:08:00 +08:00
|
|
|
/* $OpenLDAP$ */
|
1998-12-29 03:51:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms are permitted only
|
|
|
|
* as authorized by the OpenLDAP Public License. A copy of this
|
|
|
|
* license is available at http://www.OpenLDAP.org/license.html or
|
|
|
|
* in file LICENSE in the top-level directory of the distribution.
|
|
|
|
*/
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
#ifndef _AC_SIGNAL_H
|
|
|
|
#define _AC_SIGNAL_H
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
1999-05-25 07:01:57 +08:00
|
|
|
#undef SIGNAL
|
1998-10-25 09:41:42 +08:00
|
|
|
#ifdef HAVE_SIGSET
|
|
|
|
#define SIGNAL sigset
|
|
|
|
#else
|
|
|
|
#define SIGNAL signal
|
|
|
|
#endif
|
|
|
|
|
1998-11-19 01:45:32 +08:00
|
|
|
#if !defined( LDAP_SIGUSR1 ) || !defined( LDAP_SIGUSR2 )
|
|
|
|
#undef LDAP_SIGUSR1
|
|
|
|
#undef LDAP_SIGUSR2
|
|
|
|
|
1999-10-31 10:26:41 +08:00
|
|
|
# if defined(WINNT) || defined(_WINNT) || defined(_WIN32)
|
1999-10-28 15:27:00 +08:00
|
|
|
# define LDAP_SIGUSR1 SIGILL
|
|
|
|
# define LDAP_SIGUSR2 SIGTERM
|
|
|
|
|
|
|
|
# elif !defined(HAVE_LINUX_THREADS)
|
1998-11-19 01:45:32 +08:00
|
|
|
# define LDAP_SIGUSR1 SIGUSR1
|
|
|
|
# define LDAP_SIGUSR2 SIGUSR2
|
|
|
|
|
|
|
|
# else
|
|
|
|
/*
|
|
|
|
LinuxThreads implemented unfortunately uses the only
|
|
|
|
two signals reserved for user applications. This forces
|
|
|
|
OpenLDAP to use, hopefullly unused, signals reserved
|
|
|
|
for other uses.
|
|
|
|
*/
|
|
|
|
|
|
|
|
# if defined( SIGSTKFLT )
|
|
|
|
# define LDAP_SIGUSR1 SIGSTKFLT
|
|
|
|
# elif defined ( SIGSYS )
|
|
|
|
# define LDAP_SIGUSR1 SIGSYS
|
|
|
|
# endif
|
|
|
|
|
1998-11-22 18:26:51 +08:00
|
|
|
# if defined( SIGUNUSED )
|
1998-11-19 01:45:32 +08:00
|
|
|
# define LDAP_SIGUSR2 SIGUNUSED
|
|
|
|
# elif defined ( SIGINFO )
|
1998-11-26 07:35:04 +08:00
|
|
|
# define LDAP_SIGUSR2 SIGINFO
|
1998-11-19 01:45:32 +08:00
|
|
|
# elif defined ( SIGEMT )
|
1998-11-26 07:35:04 +08:00
|
|
|
# define LDAP_SIGUSR2 SIGEMT
|
1998-11-19 01:45:32 +08:00
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
1999-03-29 17:04:35 +08:00
|
|
|
#ifndef LDAP_SIGCHLD
|
|
|
|
#ifdef SIGCHLD
|
|
|
|
#define LDAP_SIGCHLD SIGCHLD
|
|
|
|
#elif SIGCLD
|
|
|
|
#define LDAP_SIGCHLD SIGCLD
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
#endif /* _AC_SIGNAL_H */
|