authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 17:57:54 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 17:57:54 -07:00
logdd01a49b27732c2956621835a83df7d0dcd4d718
treed55204921263deeb0fea4402cdcade201ea4749e
parent90ff1ca33f1482bb8011e97bb12a4335eabfe36a
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add Dir and File convenience decl literals


2 files changed, 6 insertions(+), 0 deletions(-)

Dir.zig+2
......@@ -12,6 +12,8 @@ const sys = switch (os) {
1212 else => unreachable,
1313};
1414
15pub const cwd = nfs.cwd;
16
1517fd: nfs.Handle,
1618
1719// Resource allocation may fail; resource deallocation must succeed.
File.zig+4
......@@ -14,6 +14,10 @@ const sys = switch (os) {
1414 else => unreachable,
1515};
1616
17pub const stdin = nfs.stdin;
18pub const stdout = nfs.stdout;
19pub const stderr = nfs.stderr;
20
1721fd: nfs.Handle,
1822
1923// Resource allocation may fail; resource deallocation must succeed.