Can anyone please tell me how to find the system value for _POSIX_PATH_MAX
in Linux mint? I know that it is available in the <limits.h> file but I do not know how to find its value.
How to determine system value for _POSIX_PATH_MAX
2.9k views Asked by robert williams At
3
There are 3 answers
0
On
#define
one of the following
#define _POSIX_SOURCE
#define _POSIX_C_SOURCE 1 /* or any value larger then 1 */
#define _XOPEN_SOURCE
before #include
ing <limits.h>
and the compiler will see _POSIX_PATH_MAX
.
You also can specify this on the command line via the compiler option -D
:
gcc -c main.c -D_POSIX_C_SOURCE=1
for example.
One more way to get it's value.