Skip to content

Conversation

@extinguish
Copy link
Contributor

Summary

Update the sendmsg() stub implementation in the libuv NuttX port (src/unix/nuttx.c) to match the POSIX‑compliant signature by changing the msg parameter from struct msghdr * to const struct msghdr *. This change synchronizes the libuv port with the recent NuttX socket API update.

Impact

  1. Ensures the libuv NuttX port compiles cleanly with the updated NuttX socket headers.
  2. Maintains type consistency between libuv and the underlying NuttX socket API.
  3. No functional change—the stub still returns UV_ENOTSUP as before.

Testing

Verified that the modified libuv patch applies successfully and compiles without type‑mismatch warnings.

@extinguish
Copy link
Contributor Author

this patch need to build together with #3324

Update the libuv NuttX port patch to change sendmsg() parameter from
"struct msghdr *msg" to "const struct msghdr *msg" in the NuttX-specific
implementation stub. This maintains compatibility after NuttX's socket API
was made POSIX-compliant with const-correct parameters.

Signed-off-by: guoshichao <[email protected]>
@extinguish extinguish force-pushed the libuv_fix_sendmsg_signature branch from add07e6 to 3a57e53 Compare January 15, 2026 02:06
@cederom
Copy link
Contributor

cederom commented Jan 15, 2026

still some typos? :-P

@extinguish
Copy link
Contributor Author

still some typos? :-P

the error info are:

/home/runner/work/nuttx-apps/nuttx-apps/apps/system/libuv/0001-libuv-port-for-nuttx.patch:3490: PASE ==> PASS, PACE, PARSE

but the PASE is a trademark, not a valid English word, how can skip this single word check ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants