Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst #114825

Merged
merged 11 commits into from
Feb 11, 2024
Prev Previous commit
Next Next commit
feedback from Serhiy
  • Loading branch information
smontanaro committed Feb 8, 2024
commit e721a948078d01eab682cc9b3dcfab1e41facb02
14 changes: 5 additions & 9 deletions Doc/c-api/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@
Operating System Utilities
==========================

.. c:type:: PyOS_sighandler_t

``PyOS_sighandler_t`` is a typedef alias for :c:expr:`void (\*)(int)`.


.. c:type:: Py_AuditHookFunction

``Py_AuditHookFunction`` is a typedef alias for :c:expr:`int(\*) (const char \*, PyObject \*, void \*)`.


.. c:function:: PyObject* PyOS_FSPath(PyObject *path)

Expand Down Expand Up @@ -116,6 +107,9 @@ Operating System Utilities
change the definition in your own code.


.. c:type:: void (*PyOS_sighandler_t)(int)


.. c:function:: PyOS_sighandler_t PyOS_getsig(int i)

Return the current signal handler for signal *i*. This is a thin wrapper around
Expand Down Expand Up @@ -362,6 +356,8 @@ accessible to C code. They all work with the current interpreter thread's
:ref:`audit events table <audit-events>`.
Details are in each function's documentation.

.. c:type:: int (*Py_AuditHookFunction) (const char *, PyObject *, void *)
smontanaro marked this conversation as resolved.
Show resolved Hide resolved

.. audit-event:: sys.addaudithook "" c.PySys_AddAuditHook

If the interpreter is initialized, this function raises a auditing event
Expand Down
Loading