Documentation
¶
Overview ¶
Package syscall provides additional functionality on top of the standard syscall library.
Index ¶
- func CreateLockFile(path string) (int, error)
- func FileExists(path string) bool
- func GetCPUCount() int
- func GetOSType() string
- func GetPID() int
- func GetPPID() int
- func GetPriority(pid int) (int, error)
- func GetSystemInfo() (string, error)
- func ReleaseLockFile(fd int, path string) error
- func SetPriority(pid, priority int) error
- func Timeout(timeout time.Duration, f func() error) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLockFile ¶
CreateLockFile creates a lock file and returns its file descriptor
func FileExists ¶
FileExists checks if a file exists using syscalls
func GetSystemInfo ¶
GetSystemInfo returns basic system information
func ReleaseLockFile ¶
ReleaseLockFile releases a lock file by file descriptor
Types ¶
Click to show internal directories.
Click to hide internal directories.