rpm  4.18.0
rpmsq.h
Go to the documentation of this file.
1 #ifndef H_RPMSQ
2 #define H_RPMSQ
3 
9 #include <rpm/rpmsw.h>
10 #include <signal.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
24 typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
25 
29 #define RPMSQ_DFL ((rpmsqAction_t)0)
30 #define RPMSQ_IGN ((rpmsqAction_t)1)
31 #define RPMSQ_ERR ((rpmsqAction_t)-1)
32 
42 int rpmsqIsCaught(int signum);
43 
50 int rpmsqActivate(int state);
51 
62 
70 int rpmsqBlock(int op);
71 
79 int rpmsqPoll(void);
80 
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* H_RPMSQ */
RPM_GNUC_DEPRECATED void rpmsqSetInterruptSafety(int on)
RPM_GNUC_DEPRECATED int rpmsqActivate(int state)
Activate (or disable) the signal queue.
int rpmsqBlock(int op)
Block or unblock (almost) all signals.
RPM_GNUC_DEPRECATED int rpmsqIsCaught(int signum)
RPM_GNUC_DEPRECATED rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler)
RPM_GNUC_DEPRECATED int rpmsqPoll(void)
void(* rpmsqAction_t)(int signum, siginfo_t *info, void *context)
Definition: rpmsq.h:24
Statistics API.
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81