]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197) (#152207)
authorVictor Stinner <vstinner@python.org>
Thu, 25 Jun 2026 15:24:36 +0000 (17:24 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2026 15:24:36 +0000 (15:24 +0000)
commit704c4c79e8485c20fb59cea1acec005f365a4fca
tree60fef730e41247e4b83f9eea2996a004295efa6b
parent5b5f372e4a51bb651eec517ddffad10a9eb72a60
[3.13] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197) (#152207)

[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197)

gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189)

* Check sysctlbyname() function and sys/sysctl.h header in
  configure.
* Add _testcapi.uptime_bsd() function.

(cherry picked from commit b6d89edc4a13a71734ae1f1e386122bf62d68ed8)
(cherry picked from commit d25cf02a71ee1a77cd672a49b3b660e650d5e7a8)
Lib/test/pythoninfo.py
Modules/_testcapimodule.c
configure
configure.ac
pyconfig.h.in