]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-151929: Get uptime on BSD/macOS in pythoninfo (GH-152189) (#152196)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Jun 2026 13:41:18 +0000 (15:41 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2026 13:41:18 +0000 (13:41 +0000)
commit1926cf3dc9e8bae3f169687c715d548ee5c9bf83
tree9eb2cbaa358230a73f79a2c252829678d6a34224
parenta53c6ca1433eaf45cdb941854ff3c15791b0af15
[3.15] gh-151929: Get uptime on BSD/macOS in pythoninfo (GH-152189) (#152196)

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

* Check sysctlbyname() function and sys/sysctl.h header in
  configure.
* Add _testcapi.uptime_bsd() function.
(cherry picked from commit b6d89edc4a13a71734ae1f1e386122bf62d68ed8)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/pythoninfo.py
Modules/_testcapimodule.c
configure
configure.ac
pyconfig.h.in