Date: Tue, 29 Apr 1997 12:29:14 +0300 (IDT) From: Eli Zaretskii To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Dynamic pathconf? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Is there any reason why `pathconf' always returns static info? For example, the NAME_MAX and PATH_MAX parameters can change at run time, if you are on an LFN platform, but `pathconf' always reports the low DOS-based values. Does POSIX specify such static behavior? If not, then I can post the necessary patches (they are trivial). Then we could use `pathconf' as a vehicle to make DJGPP ports of Unix programs aware of the maximum length of the filename on any given filesystem. Currently, the ports use `_USE_LFN' macro for that purpose, but that is inherently DJGPP-specific and requires #ifdef __DJGPP__, whereas `pathconf' is POSIX.