rpm  4.13.0
rpmsq.h
Go to the documentation of this file.
1 #ifndef H_RPMSQ
2 #define H_RPMSQ
3 
8 #include <rpm/rpmsw.h>
9 #include <signal.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
21 #ifdef SA_SIGINFO
22 typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
23 #else
24 typedef void (*rpmsqAction_t) (int signum);
25 #endif
26 
33 int rpmsqIsCaught(int signum);
34 
41 #ifdef SA_SIGINFO
42 void rpmsqAction(int signum, siginfo_t * info, void * context);
43 #else
44 void rpmsqAction(int signum);
45 #endif
46 
53 int rpmsqEnable(int signum, rpmsqAction_t handler);
54 
55 void rpmsqSetInterruptSafety(int on);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* H_RPMSQ */
void rpmsqAction(int signum)
Default signal handler.
void(* rpmsqAction_t)(int signum)
Default signal handler prototype.
Definition: rpmsq.h:24
int rpmsqEnable(int signum, rpmsqAction_t handler)
Enable or disable a signal handler.
void rpmsqSetInterruptSafety(int on)
int rpmsqIsCaught(int signum)
Test if given signal has been caught (while signals blocked).