Is PATH_MAX really that big or do I have something wrong?
Printable View
Is PATH_MAX really that big or do I have something wrong?
What tools are you using to get that value and assuming you are on one of the UNIX's are you using the getconf utility?
oh I just did this:
Code:printf("%d\n", PATH_MAX);
What OS platform are you on? Show the entire code instead of just the printf() statement.
I think it must have been:
Code:#include <linux/limits.h>
#include <stdio.h>
int main () {
printf("%d\n", PATH_MAX);
}
So then 4k is correct as the PATH_MAX symbolic constant is defined in the <limits.h> include file on Unix/Linux.
So there you can have deeply nested directories and/or really long names for them.
that's not a nest, it's obscene
Original DOS was 8.3 and no subdirectories, and people complained it was too little.
Now 4K is too much, and people complain it's too much.
*shrug*
4k is perfectly reasonable for a path. I suppose this is under Linux?