Size _POSIX_PATH_MAX

The size of _POSIX_PATH_MAX is the same for all unix flovors (linux, solaris) ..

+3
source share
1 answer

No, this is not even necessarily the same for given instances of the same kernel version. In most cores, its configurable parameter. This often requires the kernel to be recompiled or rewritten, but it can change without having a whole new kernel.

On some (I think most currently) systems, that a macro does not translate to an integer literal, it translates to a system call that returns an integer. Therefore, if the kernel allows you to reconfigure the system at run time, it will return the current value of the parameter.

, . , , , , , , . , , , , , , , .

POSIX-:

, , , .

+6
source

Source: https://habr.com/ru/post/1733295/


All Articles