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