# add const to msghdr_const iov and control pointers · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/523fae420bd569dc79153eb3a9adb176e18a115c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 523fae420bd569dc79153eb3a9adb176e18a115c

Requested commit: 523fae420bd569dc79153eb3a9adb176e18a115c

Commit: 523fae420bd569dc79153eb3a9adb176e18a115c

Tree: 5012af9a953e6f24a88b77ca513b8bc367b7b38d

Author: Jonathan Marler

Committer: Andrew Kelley

## Message

```
add const to msghdr_const iov and control pointers

alongside the typical msghdr struct, Zig has added a msghdr_const
type that can be used with sendmsg which allows const data to
be provided.  I believe that data pointed to by the iov and control
fields in msghdr are also left unmodified, in which case they can
be marked const as well.

```

## Parents

- [e9fc58eab77d60dfb02155ff17178b496d75d035](https://git.cafe/gitcafe/zig/commit/e9fc58eab77d60dfb02155ff17178b496d75d035?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/523fae420bd569dc79153eb3a9adb176e18a115c?format=markdown)
