//go:build !linux && !windows12// SPDX-FileCopyrightText: Copyright The Lima Authors3// SPDX-License-Identifier: Apache-2.045package osutil67import (8"io/fs"9"syscall"10)1112// UnixPathMax is the value of UNIX_PATH_MAX.13const UnixPathMax = 1041415// Stat is a selection of syscall.Stat_t.16type Stat struct {17Uid uint3218Gid uint3219}2021func SysStat(fi fs.FileInfo) (Stat, bool) {22stat, ok := fi.Sys().(*syscall.Stat_t)23return Stat{Uid: stat.Uid, Gid: stat.Gid}, ok24}2526// SigInt is the value of SIGINT.27const SigInt = Signal(syscall.SIGINT)2829// SigKill is the value of SIGKILL.30const SigKill = Signal(syscall.SIGKILL)3132type Signal syscall.Signal3334func SysKill(pid int, sig Signal) error {35return syscall.Kill(pid, syscall.Signal(sig))36}373839