Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] many of _POSIX_xxx constants seem inappropriate #15464

Open
1 task done
yamt opened this issue Jan 8, 2025 · 0 comments
Open
1 task done

[BUG] many of _POSIX_xxx constants seem inappropriate #15464

yamt opened this issue Jan 8, 2025 · 0 comments
Labels
Arch: all Issues that apply to all architectures Area: Api API Issues OS: Mac Issues related to MacOS (building system, etc) Type: Bug Something isn't working

Comments

@yamt
Copy link
Contributor

yamt commented Jan 8, 2025

Description / Steps to reproduce the issue

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.

reference:
search "Minimum Acceptable Value" in https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/limits.h.html

On which OS does this issue occur?

[OS: Mac]

What is the version of your OS?

macOS 15.2

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: Api]

Verification

  • I have verified before submitting the report.
@yamt yamt added the Type: Bug Something isn't working label Jan 8, 2025
@github-actions github-actions bot added Arch: all Issues that apply to all architectures Area: Api API Issues OS: Mac Issues related to MacOS (building system, etc) labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: all Issues that apply to all architectures Area: Api API Issues OS: Mac Issues related to MacOS (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant