Mercurial > noffle
comparison src/util.h @ 164:94f2e5607772 noffle
[svn] * src/client.c,src/protocol.c,src/util.h,src/util.c: Common up
repeated signal handler setting code into Utl_installSignalHandler.
* src/client.c: Ensure Client_retrieveArt always exits with the global
lock held. Previously it would be held on error, not held if OK.
author | bears |
---|---|
date | Thu, 25 Jan 2001 11:00:03 +0000 |
parents | 93cc929329eb |
children | 4e69e9b722ae |
comparison
equal
deleted
inserted
replaced
163:3d243292468d | 164:94f2e5607772 |
---|---|
1 /* | 1 /* |
2 util.h | 2 util.h |
3 | 3 |
4 Miscellaneous helper functions. | 4 Miscellaneous helper functions. |
5 | 5 |
6 $Id: util.h 110 2000-05-19 15:12:45Z bears $ | 6 $Id: util.h 248 2001-01-25 11:00:03Z bears $ |
7 */ | 7 */ |
8 | 8 |
9 #ifndef UTL_H | 9 #ifndef UTL_H |
10 #define UTL_H | 10 #define UTL_H |
11 | 11 |
12 #if HAVE_CONFIG_H | 12 #if HAVE_CONFIG_H |
13 #include <config.h> | 13 #include <config.h> |
14 #endif | 14 #endif |
15 | |
16 #include <signal.h> | |
15 | 17 |
16 #if TIME_WITH_SYS_TIME | 18 #if TIME_WITH_SYS_TIME |
17 #include <sys/time.h> | 19 #include <sys/time.h> |
18 #include <time.h> | 20 #include <time.h> |
19 #else | 21 #else |
98 | 100 |
99 /* String allocation and copying. */ | 101 /* String allocation and copying. */ |
100 void | 102 void |
101 Utl_allocAndCpy( char **dst, const char *src ); | 103 Utl_allocAndCpy( char **dst, const char *src ); |
102 | 104 |
105 /* Install signal handler. */ | |
106 sig_t | |
107 Utl_installSignalHandler( int sig, sig_t handler ); | |
108 | |
103 #endif | 109 #endif |