SILENT KILLERPanel

Current Path: > > opt > alt > python312 > include > python3.12 > > > internal


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python312/include/python3.12///internal

NameTypeSizeLast ModifiedActions
pycore_abstract.h File 611 bytes June 03 2025 15:41:47.
pycore_asdl.h File 3035 bytes June 03 2025 15:41:47.
pycore_ast.h File 31288 bytes June 03 2025 15:41:47.
pycore_ast_state.h File 6749 bytes June 03 2025 15:41:47.
pycore_atexit.h File 1149 bytes June 03 2025 15:41:47.
pycore_atomic.h File 16979 bytes June 03 2025 15:41:47.
pycore_atomic_funcs.h File 2438 bytes June 03 2025 15:41:47.
pycore_bitutils.h File 6062 bytes June 03 2025 15:41:47.
pycore_blocks_output_buffer.h File 8688 bytes June 03 2025 15:41:47.
pycore_bytes_methods.h File 3384 bytes June 03 2025 15:41:47.
pycore_bytesobject.h File 1339 bytes June 03 2025 15:41:47.
pycore_call.h File 3920 bytes June 03 2025 15:41:47.
pycore_ceval.h File 5265 bytes June 03 2025 15:41:47.
pycore_ceval_state.h File 2744 bytes June 03 2025 15:41:47.
pycore_code.h File 15835 bytes June 03 2025 15:41:47.
pycore_compile.h File 3453 bytes June 03 2025 15:41:47.
pycore_condvar.h File 2909 bytes June 03 2025 15:41:47.
pycore_context.h File 1301 bytes June 03 2025 15:41:47.
pycore_descrobject.h File 499 bytes June 03 2025 15:41:47.
pycore_dict.h File 6384 bytes June 03 2025 15:41:47.
pycore_dict_state.h File 1095 bytes June 03 2025 15:41:47.
pycore_dtoa.h File 1615 bytes June 03 2025 15:41:47.
pycore_emscripten_signal.h File 562 bytes June 03 2025 15:41:47.
pycore_exceptions.h File 842 bytes June 03 2025 15:41:47.
pycore_faulthandler.h File 2220 bytes June 03 2025 15:41:47.
pycore_fileutils.h File 7910 bytes June 03 2025 15:41:47.
pycore_fileutils_windows.h File 2724 bytes June 03 2025 15:41:47.
pycore_floatobject.h File 1578 bytes June 03 2025 15:41:47.
pycore_flowgraph.h File 4630 bytes June 03 2025 15:41:47.
pycore_format.h File 480 bytes June 03 2025 15:41:47.
pycore_frame.h File 9255 bytes June 03 2025 15:41:47.
pycore_function.h File 611 bytes June 03 2025 15:41:47.
pycore_gc.h File 7658 bytes June 03 2025 15:41:47.
pycore_genobject.h File 1186 bytes June 03 2025 15:41:47.
pycore_getopt.h File 490 bytes June 03 2025 15:41:47.
pycore_gil.h File 1565 bytes June 03 2025 15:41:47.
pycore_global_objects.h File 3035 bytes June 03 2025 15:41:47.
pycore_global_objects_fini_generated.h File 115361 bytes June 03 2025 15:41:47.
pycore_global_strings.h File 25438 bytes June 03 2025 15:41:47.
pycore_hamt.h File 3742 bytes June 03 2025 15:41:47.
pycore_hashtable.h File 4286 bytes June 03 2025 15:41:47.
pycore_import.h File 6358 bytes June 03 2025 15:41:47.
pycore_initconfig.h File 5706 bytes June 03 2025 15:41:47.
pycore_instruments.h File 2998 bytes June 03 2025 15:41:47.
pycore_interp.h File 9086 bytes June 03 2025 15:41:47.
pycore_intrinsics.h File 1397 bytes June 03 2025 15:41:47.
pycore_list.h File 1980 bytes June 03 2025 15:41:47.
pycore_long.h File 7805 bytes June 03 2025 15:41:47.
pycore_memoryobject.h File 383 bytes June 03 2025 15:41:47.
pycore_moduleobject.h File 1192 bytes June 03 2025 15:41:47.
pycore_namespace.h File 392 bytes June 03 2025 15:41:47.
pycore_object.h File 14917 bytes June 03 2025 15:41:47.
pycore_object_state.h File 1016 bytes June 03 2025 15:41:47.
pycore_obmalloc.h File 27284 bytes June 03 2025 15:41:47.
pycore_obmalloc_init.h File 2085 bytes June 03 2025 15:41:47.
pycore_opcode.h File 20081 bytes June 03 2025 15:41:47.
pycore_opcode_utils.h File 2686 bytes June 03 2025 15:41:47.
pycore_parser.h File 1358 bytes June 03 2025 15:41:47.
pycore_pathconfig.h File 606 bytes June 03 2025 15:41:47.
pycore_pyarena.h File 2733 bytes June 03 2025 15:41:47.
pycore_pyerrors.h File 3110 bytes June 03 2025 15:41:47.
pycore_pyhash.h File 709 bytes June 03 2025 15:41:47.
pycore_pylifecycle.h File 3365 bytes June 03 2025 15:41:47.
pycore_pymath.h File 8600 bytes June 03 2025 15:41:47.
pycore_pymem.h File 3040 bytes June 03 2025 15:41:47.
pycore_pymem_init.h File 2654 bytes June 03 2025 15:41:47.
pycore_pystate.h File 4982 bytes June 03 2025 15:41:47.
pycore_pythread.h File 2075 bytes June 03 2025 15:41:47.
pycore_range.h File 346 bytes June 03 2025 15:41:47.
pycore_runtime.h File 8429 bytes June 03 2025 15:41:47.
pycore_runtime_init.h File 5912 bytes June 03 2025 15:41:47.
pycore_runtime_init_generated.h File 45751 bytes June 03 2025 15:41:47.
pycore_signal.h File 2611 bytes June 03 2025 15:41:47.
pycore_sliceobject.h File 414 bytes June 03 2025 15:41:47.
pycore_strhex.h File 937 bytes June 03 2025 15:41:47.
pycore_structseq.h File 923 bytes June 03 2025 15:41:47.
pycore_symtable.h File 7035 bytes June 03 2025 15:41:47.
pycore_sysmodule.h File 999 bytes June 03 2025 15:41:47.
pycore_time.h File 388 bytes June 03 2025 15:41:47.
pycore_token.h File 3050 bytes June 03 2025 15:41:47.
pycore_traceback.h File 3501 bytes June 03 2025 15:41:47.
pycore_tracemalloc.h File 3075 bytes June 03 2025 15:41:47.
pycore_tuple.h File 2197 bytes June 03 2025 15:41:47.
pycore_typeobject.h File 4731 bytes June 03 2025 15:41:47.
pycore_typevarobject.h File 763 bytes June 03 2025 15:41:47.
pycore_ucnhash.h File 898 bytes June 03 2025 15:41:47.
pycore_unicodeobject.h File 2657 bytes June 03 2025 15:41:47.
pycore_unicodeobject_generated.h File 125516 bytes June 03 2025 15:41:47.
pycore_unionobject.h File 682 bytes June 03 2025 15:41:47.
pycore_warnings.h File 740 bytes June 03 2025 15:41:47.

Reading File: //opt/alt/python312/include/python3.12///internal/pycore_runtime.h

#ifndef Py_INTERNAL_RUNTIME_H
#define Py_INTERNAL_RUNTIME_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

#include "pycore_atexit.h"          // struct atexit_runtime_state
#include "pycore_atomic.h"          /* _Py_atomic_address */
#include "pycore_ceval_state.h"     // struct _ceval_runtime_state
#include "pycore_floatobject.h"     // struct _Py_float_runtime_state
#include "pycore_faulthandler.h"    // struct _faulthandler_runtime_state
#include "pycore_global_objects.h"  // struct _Py_global_objects
#include "pycore_import.h"          // struct _import_runtime_state
#include "pycore_interp.h"          // PyInterpreterState
#include "pycore_object_state.h"    // struct _py_object_runtime_state
#include "pycore_parser.h"          // struct _parser_runtime_state
#include "pycore_pymem.h"           // struct _pymem_allocators
#include "pycore_pyhash.h"          // struct pyhash_runtime_state
#include "pycore_pythread.h"        // struct _pythread_runtime_state
#include "pycore_signal.h"          // struct _signals_runtime_state
#include "pycore_time.h"            // struct _time_runtime_state
#include "pycore_tracemalloc.h"     // struct _tracemalloc_runtime_state
#include "pycore_typeobject.h"      // struct types_runtime_state
#include "pycore_unicodeobject.h"   // struct _Py_unicode_runtime_ids

struct _getargs_runtime_state {
    PyThread_type_lock mutex;
    struct _PyArg_Parser *static_parsers;
};

/* GIL state */

struct _gilstate_runtime_state {
    /* bpo-26558: Flag to disable PyGILState_Check().
       If set to non-zero, PyGILState_Check() always return 1. */
    int check_enabled;
    /* The single PyInterpreterState used by this process'
       GILState implementation
    */
    /* TODO: Given interp_main, it may be possible to kill this ref */
    PyInterpreterState *autoInterpreterState;
};

/* Runtime audit hook state */

typedef struct _Py_AuditHookEntry {
    struct _Py_AuditHookEntry *next;
    Py_AuditHookFunction hookCFunction;
    void *userData;
} _Py_AuditHookEntry;

/* Full Python runtime state */

/* _PyRuntimeState holds the global state for the CPython runtime.
   That data is exposed in the internal API as a static variable (_PyRuntime).
   */
typedef struct pyruntimestate {
    /* Has been initialized to a safe state.

       In order to be effective, this must be set to 0 during or right
       after allocation. */
    int _initialized;

    /* Is running Py_PreInitialize()? */
    int preinitializing;

    /* Is Python preinitialized? Set to 1 by Py_PreInitialize() */
    int preinitialized;

    /* Is Python core initialized? Set to 1 by _Py_InitializeCore() */
    int core_initialized;

    /* Is Python fully initialized? Set to 1 by Py_Initialize() */
    int initialized;

    /* Set by Py_FinalizeEx(). Only reset to NULL if Py_Initialize()
       is called again.

       Use _PyRuntimeState_GetFinalizing() and _PyRuntimeState_SetFinalizing()
       to access it, don't access it directly. */
    _Py_atomic_address _finalizing;

    struct pyinterpreters {
        PyThread_type_lock mutex;
        /* The linked list of interpreters, newest first. */
        PyInterpreterState *head;
        /* The runtime's initial interpreter, which has a special role
           in the operation of the runtime.  It is also often the only
           interpreter. */
        PyInterpreterState *main;
        /* next_id is an auto-numbered sequence of small
           integers.  It gets initialized in _PyInterpreterState_Enable(),
           which is called in Py_Initialize(), and used in
           PyInterpreterState_New().  A negative interpreter ID
           indicates an error occurred.  The main interpreter will
           always have an ID of 0.  Overflow results in a RuntimeError.
           If that becomes a problem later then we can adjust, e.g. by
           using a Python int. */
        int64_t next_id;
    } interpreters;

    unsigned long main_thread;

    /* ---------- IMPORTANT ---------------------------
     The fields above this line are declared as early as
     possible to facilitate out-of-process observability
     tools. */

    // XXX Remove this field once we have a tp_* slot.
    struct _xidregistry xidregistry;

    struct _pymem_allocators allocators;
    struct _obmalloc_global_state obmalloc;
    struct pyhash_runtime_state pyhash_state;
    struct _time_runtime_state time;
    struct _pythread_runtime_state threads;
    struct _signals_runtime_state signals;

    /* Used for the thread state bound to the current thread. */
    Py_tss_t autoTSSkey;

    /* Used instead of PyThreadState.trash when there is not current tstate. */
    Py_tss_t trashTSSkey;

    PyWideStringList orig_argv;

    struct _parser_runtime_state parser;

    struct _atexit_runtime_state atexit;

    struct _import_runtime_state imports;
    struct _ceval_runtime_state ceval;
    struct _gilstate_runtime_state gilstate;
    struct _getargs_runtime_state getargs;
    struct _fileutils_state fileutils;
    struct _faulthandler_runtime_state faulthandler;
    struct _tracemalloc_runtime_state tracemalloc;

    PyPreConfig preconfig;

    // Audit values must be preserved when Py_Initialize()/Py_Finalize()
    // is called multiple times.
    Py_OpenCodeHookFunction open_code_hook;
    void *open_code_userdata;
    struct {
        PyThread_type_lock mutex;
        _Py_AuditHookEntry *head;
    } audit_hooks;

    struct _py_object_runtime_state object_state;
    struct _Py_float_runtime_state float_state;
    struct _Py_unicode_runtime_state unicode_state;
    struct _types_runtime_state types;

    /* All the objects that are shared by the runtime's interpreters. */
    struct _Py_static_objects static_objects;
    struct _Py_cached_objects cached_objects;

    /* The ID of the OS thread in which we are finalizing.
       We use _Py_atomic_address instead of adding a new _Py_atomic_ulong. */
    _Py_atomic_address _finalizing_id;
    /* The value to use for sys.path[0] in new subinterpreters.
       Normally this would be part of the PyConfig struct.  However,
       we cannot add it there in 3.12 since that's an ABI change. */
    wchar_t *sys_path_0;

    /* The following fields are here to avoid allocation during init.
       The data is exposed through _PyRuntimeState pointer fields.
       These fields should not be accessed directly outside of init.

       All other _PyRuntimeState pointer fields are populated when
       needed and default to NULL.

       For now there are some exceptions to that rule, which require
       allocation during init.  These will be addressed on a case-by-case
       basis.  Most notably, we don't pre-allocated the several mutex
       (PyThread_type_lock) fields, because on Windows we only ever get
       a pointer type.
       */

    /* PyInterpreterState.interpreters.main */
    PyInterpreterState _main_interpreter;
} _PyRuntimeState;


/* other API */

PyAPI_DATA(_PyRuntimeState) _PyRuntime;

PyAPI_FUNC(PyStatus) _PyRuntimeState_Init(_PyRuntimeState *runtime);
PyAPI_FUNC(void) _PyRuntimeState_Fini(_PyRuntimeState *runtime);

#ifdef HAVE_FORK
extern PyStatus _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime);
#endif

/* Initialize _PyRuntimeState.
   Return NULL on success, or return an error message on failure. */
PyAPI_FUNC(PyStatus) _PyRuntime_Initialize(void);

PyAPI_FUNC(void) _PyRuntime_Finalize(void);


static inline PyThreadState*
_PyRuntimeState_GetFinalizing(_PyRuntimeState *runtime) {
    return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->_finalizing);
}

static inline unsigned long
_PyRuntimeState_GetFinalizingID(_PyRuntimeState *runtime) {
    return (unsigned long)_Py_atomic_load_relaxed(&runtime->_finalizing_id);
}

static inline void
_PyRuntimeState_SetFinalizing(_PyRuntimeState *runtime, PyThreadState *tstate) {
    _Py_atomic_store_relaxed(&runtime->_finalizing, (uintptr_t)tstate);
    if (tstate == NULL) {
        _Py_atomic_store_relaxed(&runtime->_finalizing_id, 0);
    }
    else {
        // XXX Re-enable this assert once gh-109860 is fixed.
        //assert(tstate->thread_id == PyThread_get_thread_ident());
        _Py_atomic_store_relaxed(&runtime->_finalizing_id,
                                 (uintptr_t)tstate->thread_id);
    }
}

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_RUNTIME_H */

SILENT KILLER Tool