]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport r45505, r45573, r45576
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 9 Oct 2006 19:29:06 +0000 (19:29 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 9 Oct 2006 19:29:06 +0000 (19:29 +0000)
commitb8f82e6febddbd534e0f08ab480367561daa0717
tree7fc776a1bc70a1b0ab7029442cbff46cbbf94efb
parent2fafa251dba5df1f90326a825ac6de2b6b906bc3
Backport r45505, r45573, r45576
- reset errno before calling confstr - use confstr() doc to simplify
  checks afterwards
- Correct implementation and documentation of os.confstr.  Add a simple
  test case.  I've yet to figure out how to provoke a None return I can test.
- Address issues brought up by MvL on python-checkins.
  I tested this with valgrind on amd64.

  The man pages I found for diff architectures are inconsistent on this.
  I'm not entirely sure this change is correct for all architectures
  either.

  Perhaps we should just over-allocate and not worry about it?

The change to return None instead of "" in case of unconfigured
values has not been backported.
Doc/lib/libos.tex
Lib/test/test_posix.py
Misc/NEWS
Modules/posixmodule.c