
This adds true GOOS=wasip1 support in addition to our existing -target=wasi support. The old support for WASI isn't removed, but should be treated as deprecated and will likely be removed eventually to reduce the test burden.
21 строка
730 Б
Go
21 строка
730 Б
Go
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris || wasip1 || windows
|
|
|
|
package os
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// The only signal values guaranteed to be present in the os package on all
|
|
// systems are os.Interrupt (send the process an interrupt) and os.Kill (force
|
|
// the process to exit). On Windows, sending os.Interrupt to a process with
|
|
// os.Process.Signal is not implemented; it will return an error instead of
|
|
// sending a signal.
|
|
var (
|
|
Interrupt Signal = syscall.SIGINT
|
|
Kill Signal = syscall.SIGKILL
|
|
)
|