File indexing completed on 2025-01-18 10:06:51
0001
0002
0003
0004 #ifndef Py_SYSMODULE_H
0005 #define Py_SYSMODULE_H
0006 #ifdef __cplusplus
0007 extern "C" {
0008 #endif
0009
0010 PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
0011 PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
0012
0013 Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
0014 Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
0015 Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
0016
0017 PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
0018 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
0019 PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
0020 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
0021 PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
0022 PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
0023
0024 PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
0025 Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
0026 Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
0027 Py_DEPRECATED(3.11) PyAPI_FUNC(int) PySys_HasWarnOptions(void);
0028
0029 Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
0030 PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
0031
0032 #if !defined(Py_LIMITED_API)
0033 typedef struct {
0034 FILE* perf_map;
0035 PyThread_type_lock map_lock;
0036 } PerfMapState;
0037
0038 PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void);
0039
0040 PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(const void *code_addr, unsigned int code_size, const char *entry_name);
0041
0042 PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);
0043 #endif
0044
0045 #ifndef Py_LIMITED_API
0046 # define Py_CPYTHON_SYSMODULE_H
0047 # include "cpython/sysmodule.h"
0048 # undef Py_CPYTHON_SYSMODULE_H
0049 #endif
0050
0051 #ifdef __cplusplus
0052 }
0053 #endif
0054 #endif