]> granicus.if.org Git - python/commitdiff
Document new APIs PyOS_getsig() and PyOS_setsig().
authorGuido van Rossum <guido@python.org>
Sat, 16 Sep 2000 16:30:48 +0000 (16:30 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 16 Sep 2000 16:30:48 +0000 (16:30 +0000)
(Is there no macro to document a typedef?)

Fred, please check my latex!

Doc/api/api.tex

index d4d2425779c2655eff4a4744f8a2577c3e576a2e..43624487f2b148e8206cea338b1c9a0c131e84d1 100644 (file)
@@ -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}}