system

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyRegularFile

func CopyRegularFile(src, dest string) (err error)

CopyRegularFile copies a file in place, updates are not atomic. If the destination doesn't exist it will be created with the same permissions as the original but umask is respected. If the destination already exists the permissions will remain as-is.

func GetProcessors

func GetProcessors() (uint, error)

GetProcessors returns a count for number of cores we should use; this value is appropriate to pass to e.g. make -J as well as qemu -smp for example.

Types

This section is empty.

Directories

Path Synopsis
exec is extension of the standard os.exec package.
exec is extension of the standard os.exec package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL