4 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
7 * Redistribution and use in source and binary forms are permitted only
8 * as authorized by the OpenLDAP Public License. A copy of this
9 * license is available at http://www.OpenLDAP.org/license.html or
10 * in file LICENSE in the top-level directory of the distribution.
20 #if defined( HAVE_SIGACTION )
21 #define SIGNAL lutil_sigaction
22 typedef void (*lutil_sig_t)(int);
23 LDAP_LUTIL_F(lutil_sig_t) lutil_sigaction( int sig, lutil_sig_t func );
24 #define SIGNAL_REINSTALL(sig,act) (void)0
25 #elif defined( HAVE_SIGSET )
27 #define SIGNAL_REINSTALL sigset
30 #define SIGNAL_REINSTALL signal
33 #if !defined( LDAP_SIGUSR1 ) || !defined( LDAP_SIGUSR2 )
37 # if defined(WINNT) || defined(_WINNT) || defined(_WIN32)
38 # define LDAP_SIGUSR1 SIGILL
39 # define LDAP_SIGUSR2 SIGTERM
41 # elif !defined(HAVE_LINUX_THREADS)
42 # define LDAP_SIGUSR1 SIGUSR1
43 # define LDAP_SIGUSR2 SIGUSR2
47 * Some versions of LinuxThreads unfortunately uses the only
48 * two signals reserved for user applications. This forces
49 * OpenLDAP to use other signals reserved for other uses.
52 # if defined( SIGSTKFLT )
53 # define LDAP_SIGUSR1 SIGSTKFLT
54 # elif defined ( SIGSYS )
55 # define LDAP_SIGUSR1 SIGSYS
58 # if defined( SIGUNUSED )
59 # define LDAP_SIGUSR2 SIGUNUSED
60 # elif defined ( SIGINFO )
61 # define LDAP_SIGUSR2 SIGINFO
62 # elif defined ( SIGEMT )
63 # define LDAP_SIGUSR2 SIGEMT
70 #define LDAP_SIGCHLD SIGCHLD
72 #define LDAP_SIGCHLD SIGCLD
76 #endif /* _AC_SIGNAL_H */