diff options
| author | 2023-08-28 04:39:16 -0700 | |
|---|---|---|
| committer | 2023-08-28 04:39:16 -0700 | |
| commit | e2a17344dc543c9c652cfe2b14cd2709dd6cfd22 (patch) | |
| tree | fe93965d39886494aee12dca71bdcf2a991d806f /src/bun.js/base.zig | |
| parent | efe987e8d12e824dde840b56cbb704feabe26ed1 (diff) | |
| download | bun-e2a17344dc543c9c652cfe2b14cd2709dd6cfd22.tar.gz bun-e2a17344dc543c9c652cfe2b14cd2709dd6cfd22.tar.zst bun-e2a17344dc543c9c652cfe2b14cd2709dd6cfd22.zip | |
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>
Diffstat (limited to 'src/bun.js/base.zig')
| -rw-r--r-- | src/bun.js/base.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bun.js/base.zig b/src/bun.js/base.zig index 66cc50f5d..44f33d670 100644 --- a/src/bun.js/base.zig +++ b/src/bun.js/base.zig @@ -1696,7 +1696,7 @@ const KQueueGenerationNumber = if (Environment.isMac and Environment.allow_asser pub const FilePoll = struct { var max_generation_number: KQueueGenerationNumber = 0; - fd: u32 = invalid_fd, + fd: bun.UFileDescriptor = invalid_fd, flags: Flags.Set = Flags.Set{}, owner: Owner = undefined, @@ -2009,7 +2009,7 @@ pub const FilePoll = struct { pub fn initWithOwner(vm: *JSC.VirtualMachine, fd: bun.FileDescriptor, flags: Flags.Struct, owner: Owner) *FilePoll { var poll = vm.rareData().filePolls(vm).get(); - poll.fd = @as(u32, @intCast(fd)); + poll.fd = @intCast(fd); poll.flags = Flags.Set.init(flags); poll.owner = owner; if (KQueueGenerationNumber != u0) { @@ -2194,11 +2194,11 @@ pub const FilePoll = struct { if (errno != .SUCCESS) { return JSC.Maybe(void){ - .err = JSC.Node.Syscall.Error.fromCode(errno, .kqueue), + .err = bun.sys.Error.fromCode(errno, .kqueue), }; } } else { - @compileError("TODO: Pollable"); + bun.todo(@src(), {}); } if (this.canActivate()) this.activate(loop); @@ -2220,7 +2220,7 @@ pub const FilePoll = struct { return this.unregisterWithFd(loop, this.fd); } - pub fn unregisterWithFd(this: *FilePoll, loop: *uws.Loop, fd: u64) JSC.Maybe(void) { + pub fn unregisterWithFd(this: *FilePoll, loop: *uws.Loop, fd: bun.UFileDescriptor) JSC.Maybe(void) { if (!(this.flags.contains(.poll_readable) or this.flags.contains(.poll_writable) or this.flags.contains(.poll_process) or this.flags.contains(.poll_machport))) { // no-op return JSC.Maybe(void).success; @@ -2338,7 +2338,7 @@ pub const FilePoll = struct { else => {}, } } else { - @compileError("TODO: Pollable"); + bun.todo(@src(), {}); } this.flags.remove(.needs_rearm); |
