Message175183
Two immediate issues identified whilst trying to build on HP-UX and IRIX:
1. Our source is wildly inconsistent with regards to using PATH_MAX versus MAXPATHLEN.
2. The current logic in osdefs.h is insufficient for ensuring one or the other always has a value (complicated by issue 1 above).
Christian alluded to introducing a PY_PATH_MAX define, which I like. So, my proposal is to fix the logic in osdefs.h so that it works on a wider range of platforms, with the end goal of defining PY_PATH_MAX, then replacing all occurrences of PATH_MAX|MAXPATHLEN in our tree with the new PY_PATH_MAX.
(It's worth mentioning that, technically, we shouldn't be using PATH_MAX or MAXPATHLEN. We should be using pathconf(..., _PC_PATH_CONF) to determine the maximum length of the underlying filesystem at runtime and dynamically allocating buffers based on that value.
However, that's a huge, non-trivial change. For another day.) |
|
Date |
User |
Action |
Args |
2012-11-08 16:48:46 | trent | set | recipients:
+ trent |
2012-11-08 16:48:46 | trent | set | messageid: <1352393326.63.0.0902907389394.issue16442@psf.upfronthosting.co.za> |
2012-11-08 16:48:46 | trent | link | issue16442 messages |
2012-11-08 16:48:45 | trent | create | |
|