| author | |
| committer | |
| log | 4b326c089069592f075c7ddefc421a1e41094535 |
| tree | c5adbf6b0b009173fecb9e1a6834b404ea7cd6d3 |
| parent | 4c6b77b141abab5f6ac70ea712521f062b54df65 |
| signature |
2 files changed, 1 insertions(+), 11 deletions(-)
Dir.zig+1-1| ... | ... | @@ -101,7 +101,7 @@ pub fn statFileC(self: Dir, sub_path: []const u8) !File.Stat { |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | pub fn makePath(self: Dir, sub_path: [:0]const u8) !void { |
| 104 | var it = try std.fs.path.componentIterator(sub_path); | |
| 104 | var it = std.fs.path.componentIterator(sub_path); | |
| 105 | 105 | var component = it.last() orelse return; |
| 106 | 106 | var zuffer: [sys.NAME_MAX + 1]u8 = undefined; |
| 107 | 107 | while (true) { |
File.zig-10| ... | ... | @@ -138,16 +138,6 @@ pub const Stat = struct { |
| 138 | 138 | |
| 139 | 139 | pub fn fromPosix(st: sys.struct_stat) Stat { |
| 140 | 140 | if (os == .linux) { |
| 141 | if (builtin.target.cpu.arch.isMIPS64()) { | |
| 142 | return .{ | |
| 143 | .inode = st.ino, | |
| 144 | .size = @bitCast(st.size), | |
| 145 | .mode = st.mode, | |
| 146 | .atime = @as(i128, st.atim) * time.ns_per_s + st.atim_nsec, | |
| 147 | .mtime = @as(i128, st.mtim) * time.ns_per_s + st.mtim_nsec, | |
| 148 | .ctime = @as(i128, st.ctim) * time.ns_per_s + st.ctim_nsec, | |
| 149 | }; | |
| 150 | } | |
| 151 | 141 | return .{ |
| 152 | 142 | .inode = st.ino, |
| 153 | 143 | .size = @bitCast(st.size), |