2016-10-26 15:03:40 -07:00
|
|
|
// Shim for the Host Compute Service (HCS) to manage Windows Server
|
2015-05-27 13:15:14 -07:00
|
|
|
// containers and Hyper-V containers.
|
|
|
|
|
|
|
|
package hcsshim
|
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
2016-05-23 16:12:06 -07:00
|
|
|
|
2018-08-31 01:18:39 +00:00
|
|
|
"github.com/Microsoft/hcsshim/internal/hcserror"
|
2015-05-27 13:15:14 -07:00
|
|
|
)
|
|
|
|
|
2018-08-31 01:18:39 +00:00
|
|
|
//go:generate go run mksyscall_windows.go -output zsyscall_windows.go hcsshim.go
|
2016-02-01 23:09:35 +00:00
|
|
|
|
2016-09-20 18:21:19 -07:00
|
|
|
//sys SetCurrentThreadCompartmentId(compartmentId uint32) (hr error) = iphlpapi.SetCurrentThreadCompartmentId
|
2016-02-01 23:09:35 +00:00
|
|
|
|
|
|
|
const (
|
2015-10-12 16:34:03 -07:00
|
|
|
// Specific user-visible exit codes
|
|
|
|
WaitErrExecFailed = 32767
|
|
|
|
|
2018-08-31 01:18:39 +00:00
|
|
|
ERROR_GEN_FAILURE = hcserror.ERROR_GEN_FAILURE
|
2016-02-03 12:11:21 -08:00
|
|
|
ERROR_SHUTDOWN_IN_PROGRESS = syscall.Errno(1115)
|
|
|
|
WSAEINVAL = syscall.Errno(10022)
|
2015-10-12 16:34:03 -07:00
|
|
|
|
|
|
|
// Timeout on wait calls
|
|
|
|
TimeoutInfinite = 0xFFFFFFFF
|
2015-05-27 13:15:14 -07:00
|
|
|
)
|
|
|
|
|
2018-08-31 01:18:39 +00:00
|
|
|
type HcsError = hcserror.HcsError
|