aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2019-12-09 21:56:19 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-12-10 11:09:41 -0500
commit4b4fbe388732da795c924293b4d1af3d9ca5ea69 (patch)
tree278ddda90440c1f68aee5acb7318371aa2a2a7ad /lib/std/os/linux.zig
parentf0ee0688f20dd012b4e069324abdba081ff19369 (diff)
downloadzig-4b4fbe388732da795c924293b4d1af3d9ca5ea69.tar.gz
zig-4b4fbe388732da795c924293b4d1af3d9ca5ea69.zip
Replace @typeOf with @TypeOf in all zig source
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
Diffstat (limited to 'lib/std/os/linux.zig')
-rw-r--r--lib/std/os/linux.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig
index 907fd24db1..899bb2a060 100644
--- a/lib/std/os/linux.zig
+++ b/lib/std/os/linux.zig
@@ -706,7 +706,7 @@ pub fn sigaction(sig: u6, noalias act: *const Sigaction, noalias oact: ?*Sigacti
.restorer = @ptrCast(extern fn () void, restorer_fn),
};
var ksa_old: k_sigaction = undefined;
- const ksa_mask_size = @sizeOf(@typeOf(ksa_old.mask));
+ const ksa_mask_size = @sizeOf(@TypeOf(ksa_old.mask));
@memcpy(@ptrCast([*]u8, &ksa.mask), @ptrCast([*]const u8, &act.mask), ksa_mask_size);
const result = syscall4(SYS_rt_sigaction, sig, @ptrToInt(&ksa), @ptrToInt(&ksa_old), ksa_mask_size);
const err = getErrno(result);
@@ -786,7 +786,7 @@ pub fn sendmsg(fd: i32, msg: *msghdr_const, flags: u32) usize {
}
pub fn sendmmsg(fd: i32, msgvec: [*]mmsghdr_const, vlen: u32, flags: u32) usize {
- if (@typeInfo(usize).Int.bits > @typeInfo(@typeOf(mmsghdr(undefined).msg_len)).Int.bits) {
+ if (@typeInfo(usize).Int.bits > @typeInfo(@TypeOf(mmsghdr(undefined).msg_len)).Int.bits) {
// workaround kernel brokenness:
// if adding up all iov_len overflows a i32 then split into multiple calls
// see https://www.openwall.com/lists/musl/2014/06/07/5