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