package
0.0.0-20250213023541-cf7ad5b41f2f
Repository: https://github.com/cheuhxg/kernel-aeg.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CloseMemMappedFile destroys memory mapping created by CreateMemMappedFile.
No description provided by the author
Command is similar to os/exec.Command, but also sets PDEATHSIG to SIGKILL on linux, i.e.
CommandContext is similar to os/exec.CommandContext, but also sets PDEATHSIG to SIGKILL on linux, i.e.
No description provided by the author
CopyFile atomically copies oldFile to newFile preserving permissions and modification time.
CopyFiles copies files from srcDir to dstDir as atomically as possible.
CreateMemMappedFile creates a temp file with the requested size and maps it into memory.
In the case of Linux, we can just use the memfd_create syscall.
FilesExist returns true if all files exist in dir.
Command is similar to os/exec.Command, but also sets PDEATHSIG to SIGTERM on linux, i.e.
HandleInterrupts closes shutdown chan on first SIGINT (expecting that the program will gracefully shutdown and exit) and terminates the process on third SIGINT.
IsAccessible checks if the file can be opened.
No description provided by the author
IsExist returns true if the file name exists.
IsWritable checks if the file can be written.
LinkFiles creates hard links for files from dstDir to srcDir.
Return all files in a directory.
No description provided by the author
No description provided by the author
No description provided by the author
ProcessExitStatus returns process exit status.
ProcessTempDir creates a new temp dir in where and returns its path and an unique index.
RemoveAll is similar to os.RemoveAll, but can handle more cases.
Rename is similar to os.Rename but handles cross-device renaming (by copying).
Run runs cmd with the specified timeout.
RunCmd runs "bin args..." in dir with timeout and returns its output.
No description provided by the author
No description provided by the author
No description provided by the author
TempFile creates a unique temp filename.
No description provided by the author
No description provided by the author
No description provided by the author
WriteTempFile writes data to a temp file and returns its name.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author