diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-29 11:13:00 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-29 11:13:00 -0700 |
| commit | 717cf00fe0d68dc1213fb645b184afe1cbf52104 (patch) | |
| tree | bcfdeec3c406aeb2a0427d816d0f3d242354fdce /lib/std/os/windows/bits.zig | |
| parent | 892b37cdae89fe23d2a19b0b512fc1f7a73dd6ce (diff) | |
| download | zig-717cf00fe0d68dc1213fb645b184afe1cbf52104.tar.gz zig-717cf00fe0d68dc1213fb645b184afe1cbf52104.zip | |
std.ChildProcess: improvements to collectOutputPosix
* read directly into the ArrayList buffers.
* respect max_output_bytes
* std.ArrayList:
- make `allocatedSlice` public.
- add `unusedCapacitySlice`.
I removed the Windows implementation of this stuff; I am doing a partial
merge of LemonBoy's patch with the understanding that a later patch can
add the Windows implementation after it is vetted.
Diffstat (limited to 'lib/std/os/windows/bits.zig')
| -rw-r--r-- | lib/std/os/windows/bits.zig | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/std/os/windows/bits.zig b/lib/std/os/windows/bits.zig index 0d69087a46..f5d520c580 100644 --- a/lib/std/os/windows/bits.zig +++ b/lib/std/os/windows/bits.zig @@ -438,19 +438,6 @@ pub const SECURITY_ATTRIBUTES = extern struct { pub const PSECURITY_ATTRIBUTES = *SECURITY_ATTRIBUTES; pub const LPSECURITY_ATTRIBUTES = *SECURITY_ATTRIBUTES; -pub const PIPE_ACCESS_INBOUND = 0x00000001; -pub const PIPE_ACCESS_OUTBOUND = 0x00000002; -pub const PIPE_ACCESS_DUPLEX = 0x00000003; - -pub const PIPE_TYPE_BYTE = 0x00000000; -pub const PIPE_TYPE_MESSAGE = 0x00000004; - -pub const PIPE_READMODE_BYTE = 0x00000000; -pub const PIPE_READMODE_MESSAGE = 0x00000002; - -pub const PIPE_WAIT = 0x00000000; -pub const PIPE_NOWAIT = 0x00000001; - pub const GENERIC_READ = 0x80000000; pub const GENERIC_WRITE = 0x40000000; pub const GENERIC_EXECUTE = 0x20000000; |
