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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
