This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 3ecf1408abffe1709116e73c61585bcf2d720398
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 12 01:20:13 2026 +0200

    include/sys/param.h: Add MAXPATHLEN.
    
    BSD code sizes path buffers with MAXPATHLEN from sys/param.h, as it
    does host names with MAXHOSTNAMELEN, which NuttX already defines.  Add
    it as PATH_MAX.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 include/sys/param.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/sys/param.h b/include/sys/param.h
index ebce5444ccc..2ca11c53be5 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -34,6 +34,7 @@
  ****************************************************************************/
 
 #define MAXHOSTNAMELEN HOST_NAME_MAX
+#define MAXPATHLEN     PATH_MAX
 
 /* Macros for min/max. */
 

Reply via email to