Skip to content

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