[windows] expose pipe’s buffer size parameter

This commit is contained in:
Guillaume Lessard committed 2024-10-17 14:31:37 -07:00
1 parent 5cd7eade6d
commit 3f4e7cb45c
1 file changed
+4 -2
@@ -184,8 +184,10 @@ internal func pwrite(
}
@inline(__always)
internal func pipe(_ fds: UnsafeMutablePointer<Int32>) -> CInt {
return _pipe(fds, 4096, _O_BINARY | _O_NOINHERIT);
internal func pipe(
_ fds: UnsafeMutablePointer<Int32>, bytesReserved: UInt32 = 4096
) -> CInt {
  return _pipe(fds, bytesReserved, _O_BINARY | _O_NOINHERIT);
}
@inline(__always)