Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c96ec6e

Browse files
committed
Document new APIs PyOS_getsig() and PyOS_setsig().
(Is there no macro to document a typedef?) Fred, please check my latex!
1 parent beb6d72 commit c96ec6e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Doc/api/api.tex

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,21 @@ \section{OS Utilities \label{os}}
10921092
code.
10931093
\end{cfuncdesc}
10941094

1095+
\begin{cfuncdesc}{PyOS_sighandler_t}{PyOS_getsig}{int i}
1096+
Return the current signal handler for signal \var{i}.
1097+
This is a thin wrapper around either \cfunction{sigaction} or
1098+
\cfunction{signal}. Do not call those functions directly!
1099+
\ctype{PyOS_sighandler_t} is a typedef alias for \ctype{void (*)(int)}.
1100+
\end{cfuncdesc}
1101+
1102+
\begin{cfuncdesc}{PyOS_sighandler_t}{PyOS_setsig}{int i, PyOS_sighandler_t h}
1103+
Set the signal handler for signal \var{i} to be \var{h};
1104+
return the old signal handler.
1105+
This is a thin wrapper around either \cfunction{sigaction} or
1106+
\cfunction{signal}. Do not call those functions directly!
1107+
\ctype{PyOS_sighandler_t} is a typedef alias for \ctype{void (*)(int)}.
1108+
\end{cfuncdesc}
1109+
10951110

10961111
\section{Process Control \label{processControl}}
10971112

0 commit comments

Comments
 (0)