aboutsummaryrefslogtreecommitdiff
path: root/src/io/io_darwin.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-13 21:57:14 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-13 21:57:14 -0800
commit69eedb4c9232c7c3e75bc9f17a6ca81c06adcfe0 (patch)
tree7734953f483cdb074f4b45e7b67c4353be868ddf /src/io/io_darwin.zig
parent4a8bbc22161c7ffabf10195b55145c796d4b436a (diff)
downloadbun-69eedb4c9232c7c3e75bc9f17a6ca81c06adcfe0.tar.gz
bun-69eedb4c9232c7c3e75bc9f17a6ca81c06adcfe0.tar.zst
bun-69eedb4c9232c7c3e75bc9f17a6ca81c06adcfe0.zip
use `write$NOCANCEL`, more logging
Diffstat (limited to 'src/io/io_darwin.zig')
-rw-r--r--src/io/io_darwin.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io/io_darwin.zig b/src/io/io_darwin.zig
index a551f935b..77a4c5c4d 100644
--- a/src/io/io_darwin.zig
+++ b/src/io/io_darwin.zig
@@ -273,6 +273,7 @@ pub const darwin = struct {
pub extern "c" fn @"open$NOCANCEL"(path: [*:0]const u8, oflag: c_uint, ...) c_int;
pub extern "c" fn @"read$NOCANCEL"(fd: c.fd_t, buf: [*]u8, nbyte: usize) isize;
pub extern "c" fn @"pread$NOCANCEL"(fd: c.fd_t, buf: [*]u8, nbyte: usize, offset: c.off_t) isize;
+ pub extern "c" fn @"write$NOCANCEL"(fd: c.fd_t, buf: [*]const u8, nbyte: usize) isize;
};
pub const OpenError = error{
/// In WASI, this error may occur when the file descriptor does