diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-11-02 18:46:17 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-11-03 15:25:43 -0700 |
| commit | ede41759be736a1c4ce2a6dbdd8f2d0b5afceb5f (patch) | |
| tree | 76107a498ce75f89ba4d3f514b1af1afd089de35 /lib/std/c | |
| parent | 37bc6ee54a388717095ab59959e5b0282d1ef8ef (diff) | |
| download | zig-ede41759be736a1c4ce2a6dbdd8f2d0b5afceb5f.tar.gz zig-ede41759be736a1c4ce2a6dbdd8f2d0b5afceb5f.zip | |
std.fs.File.writeFileAll: support unseekable files
With this commit, the function tries to use more efficient syscalls, and
then falls back to non-positional reads.
The motivating use case for this change is to support something like the
following:
try io.getStdOut().writeFileAll(dest_file, .{});
Diffstat (limited to 'lib/std/c')
0 files changed, 0 insertions, 0 deletions
