]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197)
authorVictor Stinner <vstinner@python.org>
Thu, 25 Jun 2026 13:40:29 +0000 (15:40 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2026 13:40:29 +0000 (13:40 +0000)
commitd25cf02a71ee1a77cd672a49b3b660e650d5e7a8
treea14f9aab48b682d50629de758b2728361f490b97
parentbe65a38eb71aff2f9cf001099af11a746068609c
[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)
Lib/test/pythoninfo.py
Modules/_testcapimodule.c
configure
configure.ac
pyconfig.h.in