diff options
| author | daurnimator <quae@daurnimator.com> | 2019-04-21 21:49:15 +1000 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2019-04-21 21:53:24 +1000 |
| commit | 217b95da31227fa346bb80568a9dc2971d1c7c1d (patch) | |
| tree | eeb2b1e32b79be61a852b565940ae6c54d1bac12 /std/os/linux/arm64.zig | |
| parent | 9babcac7a650373d9da7945c860fddcabe7050c8 (diff) | |
| download | zig-217b95da31227fa346bb80568a9dc2971d1c7c1d.tar.gz zig-217b95da31227fa346bb80568a9dc2971d1c7c1d.zip | |
std: add msghdr_const
As `iovec_const` is to `iovec`, `msghdr_const` is to `msghdr`
Diffstat (limited to 'std/os/linux/arm64.zig')
| -rw-r--r-- | std/os/linux/arm64.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/std/os/linux/arm64.zig b/std/os/linux/arm64.zig index 25806640bb..4ae55765fb 100644 --- a/std/os/linux/arm64.zig +++ b/std/os/linux/arm64.zig @@ -2,6 +2,7 @@ const std = @import("../../std.zig"); const linux = std.os.linux; const socklen_t = linux.socklen_t; const iovec = linux.iovec; +const iovec_const = linux.iovec_const; pub const SYS_io_setup = 0; pub const SYS_io_destroy = 1; @@ -426,6 +427,18 @@ pub const msghdr = extern struct { msg_flags: i32, }; +pub const msghdr_const = extern struct { + msg_name: ?*const sockaddr, + msg_namelen: socklen_t, + msg_iov: [*]iovec_const, + msg_iovlen: i32, + __pad1: i32, + msg_control: ?*c_void, + msg_controllen: socklen_t, + __pad2: socklen_t, + msg_flags: i32, +}; + /// Renamed to Stat to not conflict with the stat function. pub const Stat = extern struct { dev: u64, |
