// SPDX-FileCopyrightText: Copyright The Lima Authors1// SPDX-License-Identifier: Apache-2.023package osutil45import (6"io/fs"7"syscall"8)910// UnixPathMax is the value of UNIX_PATH_MAX.11const UnixPathMax = 1081213// Stat is a selection of syscall.Stat_t.14type Stat struct {15Uid uint3216Gid uint3217}1819func SysStat(fi fs.FileInfo) (Stat, bool) {20stat, ok := fi.Sys().(*syscall.Stat_t)21return Stat{Uid: stat.Uid, Gid: stat.Gid}, ok22}2324// SigInt is the value of SIGINT.25const SigInt = Signal(syscall.SIGINT)2627// SigKill is the value of SIGKILL.28const SigKill = Signal(syscall.SIGKILL)2930type Signal syscall.Signal3132func SysKill(pid int, sig Signal) error {33return syscall.Kill(pid, syscall.Signal(sig))34}353637