rpm  4.16.1.2
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 
22 typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
23 
27 #define RPMSQ_DFL ((rpmsqAction_t)0)
28 #define RPMSQ_IGN ((rpmsqAction_t)1)
29 #define RPMSQ_ERR ((rpmsqAction_t)-1)
30 
37 int rpmsqIsCaught(int signum);
38 
44 int rpmsqActivate(int state);
45 
53 
61 int rpmsqBlock(int op);
62 
67 int rpmsqPoll(void);
68 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* H_RPMSQ */
rpmsqActivate
int rpmsqActivate(int state)
Activate (or disable) the signal queue.
rpmsqPoll
int rpmsqPoll(void)
Poll for caught signals, executing their handlers.
rpmsqSetInterruptSafety
void rpmsqSetInterruptSafety(int on)
rpmsqBlock
int rpmsqBlock(int op)
Block or unblock (almost) all signals.
rpmsqAction_t
void(* rpmsqAction_t)(int signum, siginfo_t *info, void *context)
Default signal handler prototype.
Definition: rpmsq.h:22
rpmsqIsCaught
int rpmsqIsCaught(int signum)
Test if given signal has been caught (while signals blocked).
rpmsqSetAction
rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler)
Set or delete a signal handler for a signal.