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/08 21:49:08 UTC

[PR] include/memory.h: Add the legacy header. [nuttx]

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

   ## Summary
   
   `<memory.h>` is a legacy header that declares the memory functions of `<string.h>`, such as `memcpy()` and `memset()`. It is not in POSIX, but glibc, musl and newlib provide it, and some programs still include it. On NuttX they fail to compile.
   
   This PR adds `include/memory.h`. It only includes `<string.h>`.
   
   ## Impact
   
   New header only. No code and no configuration change.
   
   ## Testing
   
   A file that includes `<memory.h>` and calls `memcpy()` and `memset()`, compiled with `-Wall -Werror` against a `qemu-armv8a:knsh` export:
   
   Before:
   ```
   memtest.c:1:10: fatal error: memory.h: No such file or directory
   ```
   
   After: it compiles.
   
   `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] include/memory.h: Add the legacy header. [nuttx]

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

   <!-- 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=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   - [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=1f33e4c1266a33133b00753bfa1f1bdf4d7141eb&base=b38a6e0f56f04091b55b2e3f0ce44c05696dd677)
   


-- 
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] include/memory.h: Add the legacy header. [nuttx]

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


-- 
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