Skip to content

[libc] added _POSIX_ARG_MAX in limits.h #124954

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

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

alexprabhat99
Copy link
Contributor

Fixes: #124947

@llvmbot llvmbot added the libc label Jan 29, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 29, 2025

@llvm/pr-subscribers-libc

Author: Alex Prabhat Bara (alexprabhat99)

Changes

Fixes: #124947


Full diff: https://github.com/llvm/llvm-project/pull/124954.diff

1 Files Affected:

  • (modified) libc/include/llvm-libc-macros/limits-macros.h (+4)
diff --git a/libc/include/llvm-libc-macros/limits-macros.h b/libc/include/llvm-libc-macros/limits-macros.h
index d4aa7ae539e8aa..a4957225c9d344 100644
--- a/libc/include/llvm-libc-macros/limits-macros.h
+++ b/libc/include/llvm-libc-macros/limits-macros.h
@@ -235,4 +235,8 @@
 #define _POSIX_PATH_MAX 256
 #endif
 
+#ifndef _POSIX_ARG_MAX
+#define _POSIX_ARG_MAX 4096
+#endif
+
 #endif // LLVM_LIBC_MACROS_LIMITS_MACROS_H

@nickdesaulniers nickdesaulniers self-requested a review January 29, 2025 20:52
Copy link
Member

@nickdesaulniers nickdesaulniers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! Need us to merge this for you?

@alexprabhat99
Copy link
Contributor Author

Yes, please.
Thank you @nickdesaulniers

@nickdesaulniers nickdesaulniers merged commit 9b52dbe into llvm:main Jan 30, 2025
14 checks passed
@alexprabhat99 alexprabhat99 deleted the _POSIX_ARG_MAX branch January 31, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[libc][POSIX] provide _POSIX_ARG_MAX in limits.h
3 participants