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)
RPM_GNUC_DEPRECATED
int rpmsqIsCaught(int signum);
RPM_GNUC_DEPRECATED
int rpmsqActivate(int state);
RPM_GNUC_DEPRECATED
rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler);
int rpmsqBlock(int op);
RPM_GNUC_DEPRECATED
int rpmsqPoll(void);
RPM_GNUC_DEPRECATED
void rpmsqSetInterruptSafety(int on);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMSQ */
rpmsqSetInterruptSafety
RPM_GNUC_DEPRECATED void rpmsqSetInterruptSafety(int on)
rpmsqActivate
RPM_GNUC_DEPRECATED int rpmsqActivate(int state)
Activate (or disable) the signal queue.
rpmsqBlock
int rpmsqBlock(int op)
Block or unblock (almost) all signals.
rpmsqIsCaught
RPM_GNUC_DEPRECATED int rpmsqIsCaught(int signum)
rpmsqSetAction
RPM_GNUC_DEPRECATED rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler)
rpmsqPoll
RPM_GNUC_DEPRECATED int rpmsqPoll(void)
rpmsqAction_t
void(* rpmsqAction_t)(int signum, siginfo_t *info, void *context)
Definition: rpmsq.h:24
rpmsw.h
Statistics API.
RPM_GNUC_DEPRECATED
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81