#include <Python.h>#include <signal.h>
Go to the source code of this file.
Defines | |
| #define | PyMODINIT_FUNC void |
Functions | |
| static PyObject * | block_signal (PyObject *self, PyObject *args) |
| PyMODINIT_FUNC | initsigblock (void) |
| static PyObject * | restore_mask (PyObject *self, PyObject *args) |
| static PyObject * | save_mask (PyObject *self, PyObject *args) |
Variables | |
| static PyMethodDef | module_methods [] |
| static PyObject * | SigblockError |
| static sigset_t | the_mask |
| static int | the_mask_is_set |
| #define PyMODINIT_FUNC void |
Definition at line 108 of file sigblock.c.
| static PyObject* block_signal | ( | PyObject * | self, |
| PyObject * | args | ||
| ) | [static] |
Definition at line 72 of file sigblock.c.
| PyMODINIT_FUNC initsigblock | ( | void | ) |
Definition at line 111 of file sigblock.c.
| static PyObject* restore_mask | ( | PyObject * | self, |
| PyObject * | args | ||
| ) | [static] |
Definition at line 48 of file sigblock.c.
| static PyObject* save_mask | ( | PyObject * | self, |
| PyObject * | args | ||
| ) | [static] |
Definition at line 29 of file sigblock.c.
PyMethodDef module_methods[] [static] |
{
{"save_mask", save_mask, METH_VARARGS,
"Saves the current signal mask internally."},
{"restore_mask", restore_mask, METH_VARARGS,
"Sets the current signal mask to match that of the last call to save_mask."},
{"block_signal", block_signal, METH_VARARGS,
"Remove specified signal from the signal mask."},
{NULL, NULL, 0, NULL}
}
Definition at line 95 of file sigblock.c.
PyObject* SigblockError [static] |
Definition at line 23 of file sigblock.c.
sigset_t the_mask [static] |
Definition at line 26 of file sigblock.c.
int the_mask_is_set [static] |
Definition at line 25 of file sigblock.c.