Skip to content

nuttx: type IovLen to c_ulong#664

Open
wllenyj wants to merge 1 commit into
rust-lang:masterfrom
wllenyj:nuttx
Open

nuttx: type IovLen to c_ulong#664
wllenyj wants to merge 1 commit into
rust-lang:masterfrom
wllenyj:nuttx

Conversation

@wllenyj

@wllenyj wllenyj commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The msg_iovlen is the unsigned long in the Nuttx.

The origin define is as follows, in nuttx/include/sys/socket.h

struct msghdr
{
  FAR void *msg_name;
  socklen_t msg_namelen;
  FAR struct iovec *msg_iov;
  unsigned long msg_iovlen;
  FAR void *msg_control;
  unsigned long msg_controllen;
  unsigned int msg_flags;
};

The `msg_iovlen` is the `unsigned long` in the Nuttx.

The origin define is as follows, in nuttx/include/sys/socket.h
```
struct msghdr
{
  FAR void *msg_name;
  socklen_t msg_namelen;
  FAR struct iovec *msg_iov;
  unsigned long msg_iovlen;
  FAR void *msg_control;
  unsigned long msg_controllen;
  unsigned int msg_flags;
};
```

Signed-off-by: wanglei <wllenyj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant