Typedefs | |
typedef struct rpmsig_s * | rpmsig |
typedef struct rpmsqElem * | rpmsq |
typedef void(* | rpmsqAction_t )(int signum) |
Default signal handler prototype. | |
Functions | |
int | rpmsqIsCaught (int signum) |
Test if given signal has been caught (while signals blocked). | |
void | rpmsqAction (int signum) |
Default signal handler. | |
int | rpmsqEnable (int signum, rpmsqAction_t handler) |
Enable or disable a signal handler. | |
pid_t | rpmsqFork (rpmsq sq) |
Fork a child process. | |
pid_t | rpmsqWait (rpmsq sq) |
Wait for child process to be reaped. | |
void * | rpmsqThread (void *(*start)(void *arg), void *arg) |
Call a function in a thread. | |
int | rpmsqJoin (void *thread) |
Wait for thread to terminate. | |
int | rpmsqThreadEqual (void *thread) |
Compare thread with current thread. | |
int | rpmsqExecve (const char **argv) |
Execute a command, returning its status. |
typedef void(* rpmsqAction_t)(int signum) |
void rpmsqAction | ( | int | signum | ) |
Default signal handler.
signum | signal number | |
info | (siginfo_t) signal info | |
context | signal context |
int rpmsqEnable | ( | int | signum, | |
rpmsqAction_t | handler | |||
) |
Enable or disable a signal handler.
signum | signal to enable (or disable if negative) | |
handler | sa_sigaction handler (or NULL to use rpmsqHandler()) |
int rpmsqExecve | ( | const char ** | argv | ) |
Execute a command, returning its status.
pid_t rpmsqFork | ( | rpmsq | sq | ) |
Fork a child process.
sq | scriptlet queue element |
int rpmsqIsCaught | ( | int | signum | ) |
Test if given signal has been caught (while signals blocked).
Similar to sigismember() but operates on internal signal queue.
signum | signal to test for |
int rpmsqJoin | ( | void * | thread | ) |
Wait for thread to terminate.
thread | thread |
void* rpmsqThread | ( | void *(*)(void *arg) | start, | |
void * | arg | |||
) |
Call a function in a thread.
start | function | |
arg | function argument |
int rpmsqThreadEqual | ( | void * | thread | ) |
Compare thread with current thread.
thread | thread |
pid_t rpmsqWait | ( | rpmsq | sq | ) |
Wait for child process to be reaped.
sq | scriptlet queue element |