Files
bun.sh/src/shell/util.zig
pfg 83760fc446 Sort imports in all files (#21119)
Co-authored-by: taylor.fish <contact@taylor.fish>
2025-07-21 13:26:47 -07:00

22 lines
446 B
Zig

pub const OutKind = enum {
stdout,
stderr,
pub fn toFd(this: OutKind) bun.FileDescriptor {
return switch (this) {
.stdout => .stdout(),
.stderr => .stderr(),
};
}
};
pub const Stdio = bun.spawn.Stdio;
pub const WatchFd = if (Environment.isLinux) posix.fd_t else i32;
const bun = @import("bun");
const Environment = bun.Environment;
const std = @import("std");
const posix = std.posix;