diff options
author | Guido van Rossum <guido@python.org> | 2000-09-16 16:30:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-16 16:30:48 (GMT) |
commit | c96ec6ef2b81ab20f52edb223f31601578e73cb4 (patch) | |
tree | c4b54987e8dae3cb84b2af7d780e5f4248bd7855 /Doc | |
parent | beb6d72f3127280ade0be24d09b069487d204294 (diff) | |
download | cpython-c96ec6ef2b81ab20f52edb223f31601578e73cb4.zip cpython-c96ec6ef2b81ab20f52edb223f31601578e73cb4.tar.gz cpython-c96ec6ef2b81ab20f52edb223f31601578e73cb4.tar.bz2 |
Document new APIs PyOS_getsig() and PyOS_setsig().
(Is there no macro to document a typedef?)
Fred, please check my latex!
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/api.tex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex index d4d2425..4362448 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -1092,6 +1092,21 @@ automatically; you should never change the definition in your own code. \end{cfuncdesc} +\begin{cfuncdesc}{PyOS_sighandler_t}{PyOS_getsig}{int i} +Return the current signal handler for signal \var{i}. +This is a thin wrapper around either \cfunction{sigaction} or +\cfunction{signal}. Do not call those functions directly! +\ctype{PyOS_sighandler_t} is a typedef alias for \ctype{void (*)(int)}. +\end{cfuncdesc} + +\begin{cfuncdesc}{PyOS_sighandler_t}{PyOS_setsig}{int i, PyOS_sighandler_t h} +Set the signal handler for signal \var{i} to be \var{h}; +return the old signal handler. +This is a thin wrapper around either \cfunction{sigaction} or +\cfunction{signal}. Do not call those functions directly! +\ctype{PyOS_sighandler_t} is a typedef alias for \ctype{void (*)(int)}. +\end{cfuncdesc} + \section{Process Control \label{processControl}} |