authorgravatar for 51252236+xdBronch@users.noreply.github.comxdBronch <51252236+xdBronch@users.noreply.github.com> 2023-07-01 23:26:02-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-03 11:00:54-07:00
log0dffab7356685c7643aa6e3cbe0ad1a18bc0dd55
treed5bde4c5f1d0e1792a132d02dd45625865c5a883
parent2b8687ba2d575de2dfbf857133121dfb92d00cb6

check for UEFI in io.StreamSource


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/io/stream_source.zig+2-1
......@@ -7,7 +7,8 @@ const io = std.io;
77/// For memory sources, if the supplied byte buffer is const, then `io.Writer` is not available.
88/// The error set of the stream functions is the error set of the corresponding file functions.
99pub const StreamSource = union(enum) {
10 const has_file = (builtin.os.tag != .freestanding);
10 // TODO: expose UEFI files to std.os in a way that allows this to be true
11 const has_file = (builtin.os.tag != .freestanding and builtin.os.tag != .uefi);
1112
1213 /// The stream access is redirected to this buffer.
1314 buffer: io.FixedBufferStream([]u8),