mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
just kernel32 things (#4354)
* just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -401,7 +401,7 @@ const Scanner = struct {
|
||||
if (@as(FileSystem.RealFS.EntriesOption.Tag, root.*) == .entries) {
|
||||
var iter = root.entries.data.iterator();
|
||||
const fd = root.entries.fd;
|
||||
std.debug.assert(fd != 0);
|
||||
std.debug.assert(fd != bun.invalid_fd);
|
||||
while (iter.next()) |entry| {
|
||||
this.next(entry.value_ptr.*, fd);
|
||||
}
|
||||
@@ -409,8 +409,8 @@ const Scanner = struct {
|
||||
}
|
||||
|
||||
while (this.dirs_to_scan.readItem()) |entry| {
|
||||
var dir = std.fs.Dir{ .fd = entry.relative_dir };
|
||||
std.debug.assert(dir.fd != 0);
|
||||
var dir = std.fs.Dir{ .fd = bun.fdcast(entry.relative_dir) };
|
||||
std.debug.assert(bun.toFD(dir.fd) != bun.invalid_fd);
|
||||
|
||||
var parts2 = &[_]string{ entry.dir_path, entry.name.slice() };
|
||||
var path2 = this.fs.absBuf(parts2, &this.open_dir_buf);
|
||||
|
||||
Reference in New Issue
Block a user