pub fn stdin() File
117 118 119 120 121 122 123 124 125 126 127 128
pub fn stdin() File { return switch (native_os) { .windows => .{ .handle = std.os.windows.peb().ProcessParameters.hStdInput, .flags = .{ .nonblocking = false }, }, else => .{ .handle = std.posix.STDIN_FILENO, .flags = .{ .nonblocking = false }, }, }; }