Staging
v0.5.1
https://github.com/python/cpython
Revision 1ddba60e3d084bfca4615bbd77c3c6f4ed34d8ee authored by Thomas Wouters on 25 April 2006, 15:29:46 UTC, committed by Thomas Wouters on 25 April 2006, 15:29:46 UTC
MAXPATHLEN-sized buffers for various output-buffers (like to realpath()),
and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and
does not define MAXPATHLEN.) Cursory googling suggests Linux is following a
newer standard than BSD, but in cases like this, who knows. Using the
greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the
most portable solution.
1 parent 0452049
History
Tip revision: 1ddba60e3d084bfca4615bbd77c3c6f4ed34d8ee authored by Thomas Wouters on 25 April 2006, 15:29:46 UTC
Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
Tip revision: 1ddba60
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.hgtags -rw-r--r-- 3.0 KB
LICENSE -rw-r--r-- 13.2 KB
Makefile.pre.in -rw-r--r-- 33.4 KB
README -rw-r--r-- 52.8 KB
configure -rwxr-xr-x 610.7 KB
configure.in -rw-r--r-- 88.6 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 25.0 KB
setup.py -rw-r--r-- 63.3 KB

README

back to top