rpmsq.h
Go to the documentation of this file.
#ifndef H_RPMSQ
#define H_RPMSQ
#include <rpm/rpmsw.h>
#include <signal.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
#define RPMSQ_DFL ((rpmsqAction_t)0)
#define RPMSQ_IGN ((rpmsqAction_t)1)
#define RPMSQ_ERR ((rpmsqAction_t)-1)
int rpmsqIsCaught(int signum);
int rpmsqActivate(int state);
rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler);
int rpmsqBlock(int op);
int rpmsqPoll(void);
void rpmsqSetInterruptSafety(int on);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMSQ */
rpmsqActivate
int rpmsqActivate(int state)
Activate (or disable) the signal queue.
rpmsqIsCaught
int rpmsqIsCaught(int signum)
Test if given signal has been caught (while signals blocked).
rpmsqPoll
int rpmsqPoll(void)
Poll for caught signals, executing their handlers.
rpmsqBlock
int rpmsqBlock(int op)
Block or unblock (almost) all signals.
rpmsqSetAction
rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler)
Set or delete a signal handler for a signal.
rpmsqAction_t
void(* rpmsqAction_t)(int signum, siginfo_t *info, void *context)
Default signal handler prototype.
Definition: rpmsq.h:22
rpmsqSetInterruptSafety
void rpmsqSetInterruptSafety(int on)