You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2026/10/14 08:22:11 UTC
(nuttx) 03/03: include/sys/param.h: Add MAXPATHLEN.
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 <ma...@gmail.com>
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 <ma...@gmail.com>
---
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. */