You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "casaroli (via GitHub)" <gi...@apache.org> on 2026/10/11 18:58:06 UTC

[PR] libs/libc/unistd: Return ARG_MAX from sysconf(_SC_ARG_MAX). [nuttx]

casaroli opened a new pull request, #20602:
URL: https://github.com/apache/nuttx/pull/20602

   ## Summary
   
   `sysconf(_SC_ARG_MAX)` returned -1 with `ENOSYS`. POSIX requires it to return `ARG_MAX`, and programs that build command lines, such as xargs, use it to size them.
   
   This PR returns `ARG_MAX` from `<limits.h>`.
   
   ## Impact
   
   `sysconf(_SC_ARG_MAX)` works. No other change.
   
   ## Testing
   
   The run-time tests ran on a local branch that has this change and other pending changes on top of master; the builds are of this branch alone.
   
   On master, `sysconf(_SC_ARG_MAX)` takes the default branch and fails with `ENOSYS`. With this change, Python's `os.sysconf("SC_ARG_MAX")` returns 32768 on qemu-armv8a (kernel build, QEMU 11 with HVF, a local configuration with `ARG_MAX` set to 32768 through `CONFIG_TASK_ARG_MAX` from #20596).
   
   Builds with `-Wno-cpp -Werror`: `qemu-armv8a:nsh`, `qemu-armv8a:knsh`. `tools/checkpatch.sh -c -u -m -g` passes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] libs/libc/unistd: Return ARG_MAX from sysconf(_SC_ARG_MAX). [nuttx]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20602:
URL: https://github.com/apache/nuttx/pull/20602#issuecomment-6112598884

   <!-- membrowse-pr-comment -->
   ## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
   
   *No memory changes detected for:*
   - [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   - [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=0347c6be05cb547914beeb9b6323be40ae9b9a97&base=4bc1ab2fd7bede547e91c8e3a7dac3bd6eb941f7)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] libs/libc/unistd: Return ARG_MAX from sysconf(_SC_ARG_MAX). [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #20602:
URL: https://github.com/apache/nuttx/pull/20602


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org