| author | |
| committer | |
| log | a6f33e3dc56eab57ee148c2ec7592540470d582c |
| tree | 0c6a666db735c2a87a66d2f06e0613da96b1640a |
| parent | 46a0f60e4c0c91f840982cb98066d60301624548 |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 4 insertions(+), 0 deletions(-)
std/os/freebsd/index.zig+4| ... | ... | @@ -580,6 +580,10 @@ pub fn getdirentries(fd: i32, buf_ptr: [*]u8, buf_len: usize, basep: *i64) usize |
| 580 | 580 | return errnoWrap(@bitCast(isize, c.getdirentries(fd, buf_ptr, buf_len, basep))); |
| 581 | 581 | } |
| 582 | 582 | |
| 583 | pub fn realpath(noalias filename: [*]const u8, noalias resolved_name: [*]u8) usize { | |
| 584 | return if (c.realpath(filename, resolved_name) == null) @bitCast(usize, -isize(c._errno().*)) else 0; | |
| 585 | } | |
| 586 | ||
| 583 | 587 | pub fn isatty(fd: i32) bool { |
| 584 | 588 | return c.isatty(fd) != 0; |
| 585 | 589 | } |