| author | |
| committer | |
| log | afdd04356cbf7821e1f992d1f3aedf7226a7e564 |
| tree | 24c7ccad792a828636fcdb981633251210864a7a |
| parent | bf9082518c32ce7d53d011777bf8d8056472cbf9 |
https://github.com/SerenityOS/serenity/commit/2a9154e77c61d79d4b96b5f957aca2d70325ac6d2 files changed, 3 insertions(+), 4 deletions(-)
lib/std/Io/Threaded.zig+2-2| ... | ... | @@ -356,7 +356,7 @@ pub fn ioBasic(t: *Threaded) Io { |
| 356 | 356 | }; |
| 357 | 357 | } |
| 358 | 358 | |
| 359 | pub const socket_flags_unsupported = native_os.isDarwin() or native_os == .haiku; // 💩💩 | |
| 359 | pub const socket_flags_unsupported = native_os.isDarwin() or native_os == .haiku; | |
| 360 | 360 | const have_accept4 = !socket_flags_unsupported; |
| 361 | 361 | const have_flock_open_flags = @hasField(posix.O, "EXLOCK"); |
| 362 | 362 | const have_networking = native_os != .wasi; |
| ... | ... | @@ -367,7 +367,7 @@ const have_futex = switch (builtin.cpu.arch) { |
| 367 | 367 | else => true, |
| 368 | 368 | }; |
| 369 | 369 | const have_preadv = switch (native_os) { |
| 370 | .windows, .haiku, .serenity => false, // 💩💩💩 | |
| 370 | .windows, .haiku => false, | |
| 371 | 371 | else => true, |
| 372 | 372 | }; |
| 373 | 373 | const have_sig_io = posix.SIG != void and @hasField(posix.SIG, "IO"); |
lib/std/posix.zig+1-2| ... | ... | @@ -1114,9 +1114,8 @@ pub fn ftruncate(fd: fd_t, length: u64) TruncateError!void { |
| 1114 | 1114 | /// * Windows |
| 1115 | 1115 | /// On these systems, the read races with concurrent writes to the same file descriptor. |
| 1116 | 1116 | pub fn preadv(fd: fd_t, iov: []const iovec, offset: u64) PReadError!usize { |
| 1117 | // NOTE: serenity does not have preadv but it *does* have pwritev. | |
| 1118 | 1117 | const have_pread_but_not_preadv = switch (native_os) { |
| 1119 | .windows, .macos, .ios, .watchos, .tvos, .visionos, .haiku, .serenity => true, | |
| 1118 | .windows, .macos, .ios, .watchos, .tvos, .visionos, .haiku => true, | |
| 1120 | 1119 | else => false, |
| 1121 | 1120 | }; |
| 1122 | 1121 | if (have_pread_but_not_preadv) { |