| author | |
| committer | |
| log | 19b34143608a825b6d950035c5264f99298cdb19 |
| tree | 8c1968928db61d16b4b4070febe619cc7c4f1042 |
| parent | 5c892a2a4906837df00bb943faabec17714a406b |
1 files changed, 12 insertions(+), 0 deletions(-)
nfs.zig+12| ... | ... | @@ -14,3 +14,15 @@ pub const Handle = switch (builtin.target.os.tag) { |
| 14 | 14 | pub fn cwd() Dir { |
| 15 | 15 | return .{ .fd = @enumFromInt(sys_libc.AT.FDCWD) }; |
| 16 | 16 | } |
| 17 | ||
| 18 | pub fn stdin() File { | |
| 19 | return .{ .fd = @enumFromInt(0) }; | |
| 20 | } | |
| 21 | ||
| 22 | pub fn stdout() File { | |
| 23 | return .{ .fd = @enumFromInt(1) }; | |
| 24 | } | |
| 25 | ||
| 26 | pub fn stderr() File { | |
| 27 | return .{ .fd = @enumFromInt(2) }; | |
| 28 | } |