python (3.12.0)

(root)/
include/
python3.12/
sysmodule.h
       1  
       2  /* System module interface */
       3  
       4  #ifndef Py_SYSMODULE_H
       5  #define Py_SYSMODULE_H
       6  #ifdef __cplusplus
       7  extern "C" {
       8  #endif
       9  
      10  PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
      11  PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
      12  
      13  Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
      14  Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
      15  Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
      16  
      17  PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
      18                   Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
      19  PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
      20                   Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
      21  PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
      22  PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
      23  
      24  PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
      25  Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
      26  Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
      27  Py_DEPRECATED(3.11) PyAPI_FUNC(int) PySys_HasWarnOptions(void);
      28  
      29  Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
      30  PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
      31  
      32  #if !defined(Py_LIMITED_API)
      33  typedef struct {
      34      FILE* perf_map;
      35      PyThread_type_lock map_lock;
      36  } PerfMapState;
      37  
      38  PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void);
      39  
      40  PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(const void *code_addr, unsigned int code_size, const char *entry_name);
      41  
      42  PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);
      43  #endif
      44  
      45  #ifndef Py_LIMITED_API
      46  #  define Py_CPYTHON_SYSMODULE_H
      47  #  include "cpython/sysmodule.h"
      48  #  undef Py_CPYTHON_SYSMODULE_H
      49  #endif
      50  
      51  #ifdef __cplusplus
      52  }
      53  #endif
      54  #endif /* !Py_SYSMODULE_H */