You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] many of _POSIX_xxx constants seem inappropriate #15464
Arch: allIssues that apply to all architecturesArea: ApiAPI IssuesOS: MacIssues related to MacOS (building system, etc)Type: BugSomething isn't working
limits.h has the "Configurable limits required by POSIX" section
with _POSIX_xxx and _POSIX2_xxx constants.
for example,
#define _POSIX_NAME_MAX CONFIG_NAME_MAX
it seems inappropriate to me as these constants are not meant to be configurable.
My understanding is that these values are the minimum values allowed for POSIX-conforming platforms.
For example, _POSIX_PATH_MAX is the minimum acceptable value for PATH_MAX and so on.
Thus these values should not depend on any NuttX configs at all.
why POSIX constant shouldn't be configurable from Kconfig? it perfect to allow the different OS or even the same OS with the different configuration choice a different value, otherwise, spec should give a fix number.
why POSIX constant shouldn't be configurable from Kconfig? it perfect to allow the different OS or even the same OS with the different configuration choice a different value, otherwise, spec should give a fix number.
_POSIX_NAME_MAX is the Minimum Acceptable Value of NAME_MAX.
actually posix gives a fixed number. (14)
Arch: allIssues that apply to all architecturesArea: ApiAPI IssuesOS: MacIssues related to MacOS (building system, etc)Type: BugSomething isn't working
Activity
xiaoxiang781216 commentedon Jan 22, 2025
why POSIX constant shouldn't be configurable from Kconfig? it perfect to allow the different OS or even the same OS with the different configuration choice a different value, otherwise, spec should give a fix number.
yamt commentedon Jan 27, 2025
_POSIX_NAME_MAX is the Minimum Acceptable Value of NAME_MAX.
actually posix gives a fixed number. (14)
otoh, it's ok to make NAME_MAX depend on Kconfig.
include/limits.h: decouple _POSIX_* invariant constants from Kconfig