mirror of
https://github.com/samba-team/samba.git
synced 2025-03-02 08:58:33 +03:00
switch from SIG_ATOMIC_T to sig_atomic_t
(This used to be commit b881b72cb9cb5a4a8ad27b621e8cbe9dcfa7ba7f)
This commit is contained in:
parent
3744324dbd
commit
9403f3dc7e
@ -422,10 +422,8 @@
|
||||
/*
|
||||
* Define additional missing types
|
||||
*/
|
||||
#if defined(HAVE_SIG_ATOMIC_T_TYPE)
|
||||
typedef sig_atomic_t SIG_ATOMIC_T;
|
||||
#else
|
||||
typedef int SIG_ATOMIC_T;
|
||||
#ifndef HAVE_SIG_ATOMIC_T_TYPE
|
||||
typedef int sig_atomic_t;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SOCKLEN_T_TYPE
|
||||
|
@ -194,9 +194,9 @@ struct list_struct {
|
||||
a blocking lock on SIGALRM.
|
||||
***************************************************************/
|
||||
|
||||
static SIG_ATOMIC_T *palarm_fired;
|
||||
static sig_atomic_t *palarm_fired;
|
||||
|
||||
void tdb_set_lock_alarm(SIG_ATOMIC_T *palarm)
|
||||
void tdb_set_lock_alarm(sig_atomic_t *palarm)
|
||||
{
|
||||
palarm_fired = palarm;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ int tdb_lockall(TDB_CONTEXT *tdb);
|
||||
void tdb_unlockall(TDB_CONTEXT *tdb);
|
||||
|
||||
/* Low level locking functions: use with care */
|
||||
void tdb_set_lock_alarm(SIG_ATOMIC_T *palarm);
|
||||
void tdb_set_lock_alarm(sig_atomic_t *palarm);
|
||||
int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key);
|
||||
int tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key);
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
/* these are little tdb utility functions that are meant to make
|
||||
dealing with a tdb database a little less cumbersome in Samba */
|
||||
|
||||
static SIG_ATOMIC_T gotalarm;
|
||||
static sig_atomic_t gotalarm;
|
||||
|
||||
/***************************************************************
|
||||
Signal function to tell us we timed out.
|
||||
|
@ -81,7 +81,7 @@ static void nmbd_terminate(int msg_type, pid_t src, void *buf, size_t len)
|
||||
Catch a SIGTERM signal.
|
||||
**************************************************************************** */
|
||||
|
||||
static SIG_ATOMIC_T got_sig_term;
|
||||
static sig_atomic_t got_sig_term;
|
||||
|
||||
static void sig_term(int sig)
|
||||
{
|
||||
@ -93,7 +93,7 @@ static void sig_term(int sig)
|
||||
Catch a SIGHUP signal.
|
||||
**************************************************************************** */
|
||||
|
||||
static SIG_ATOMIC_T reload_after_sighup;
|
||||
static sig_atomic_t reload_after_sighup;
|
||||
|
||||
static void sig_hup(int sig)
|
||||
{
|
||||
|
@ -80,7 +80,7 @@ BOOL reload_services(BOOL test)
|
||||
Catch a sighup.
|
||||
****************************************************************************/
|
||||
|
||||
VOLATILE SIG_ATOMIC_T reload_after_sighup = False;
|
||||
VOLATILE sig_atomic_t reload_after_sighup = False;
|
||||
|
||||
static void sig_hup(int sig)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user