Documentation ¶
Overview ¶
Package syscallx provides system call utilities that attempt to hide platform differences. Operations return ErrUnsupported if not implemented on the given platform. Consumers of this package should generally treat that error specially.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("not supported on platform")
ErrUnsupported is the error returned for unsupported operations.
Functions ¶
func FreeDiskSpace ¶
FreeDiskSpace returns the free disk space for a given path.
func PhysicalMemorySize ¶
PhysicalMemorySize returns the total physical memory size.
func SetProcessMemoryCeiling ¶ added in v2.41.0
SetProcessMemoryCeiling sets current and max process memory limit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.