Merge pull request #205 from glessard/1.4.0-pipe-correction

[windows] expose pipe’s buffer size parameter
This commit is contained in:
Guillaume Lessard authored and GitHub committed 2024-10-17 14:57:49 -07:00
commit 154cbf7c95
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)