mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
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.