4 * Copyright 1998-2003 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
11 * A copy of this license is available in file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
23 #if defined( HAVE_SIGACTION )
24 #define SIGNAL lutil_sigaction
25 typedef void (*lutil_sig_t)(int);
26 LDAP_LUTIL_F(lutil_sig_t) lutil_sigaction( int sig, lutil_sig_t func );
27 #define SIGNAL_REINSTALL(sig,act) (void)0
28 #elif defined( HAVE_SIGSET )
30 #define SIGNAL_REINSTALL sigset
33 #define SIGNAL_REINSTALL signal
36 #if !defined( LDAP_SIGUSR1 ) || !defined( LDAP_SIGUSR2 )
40 # if defined(WINNT) || defined(_WINNT) || defined(_WIN32)
41 # define LDAP_SIGUSR1 SIGILL
42 # define LDAP_SIGUSR2 SIGTERM
44 # elif !defined(HAVE_LINUX_THREADS)
45 # define LDAP_SIGUSR1 SIGUSR1
46 # define LDAP_SIGUSR2 SIGUSR2
50 * Some versions of LinuxThreads unfortunately uses the only
51 * two signals reserved for user applications. This forces
52 * OpenLDAP to use other signals reserved for other uses.
55 # if defined( SIGSTKFLT )
56 # define LDAP_SIGUSR1 SIGSTKFLT
57 # elif defined ( SIGSYS )
58 # define LDAP_SIGUSR1 SIGSYS
61 # if defined( SIGUNUSED )
62 # define LDAP_SIGUSR2 SIGUNUSED
63 # elif defined ( SIGINFO )
64 # define LDAP_SIGUSR2 SIGINFO
65 # elif defined ( SIGEMT )
66 # define LDAP_SIGUSR2 SIGEMT
73 #define LDAP_SIGCHLD SIGCHLD
75 #define LDAP_SIGCHLD SIGCLD
79 #endif /* _AC_SIGNAL_H */