- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for WASI (0.03 sec)
-
src/cmd/internal/osinfo/os_js.go
// Version returns the OS version name/number. func Version() (string, error) { // Version detection on Wasm varies depending on the underlying runtime // (browser, node, etc), nor is there a standard via something like // WASI (see https://go.dev/issue/31105). For now, attempt a few simple // combinations for the convenience of reading logs at build.golang.org // and local development. It's not a goal to recognize all environments.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:43:17 UTC 2023 - 1K bytes - Viewed (0) -
src/crypto/rand/rand_wasip1.go
func init() { Reader = &reader{} } type reader struct{} func (r *reader) Read(b []byte) (int, error) { // This uses the wasi_snapshot_preview1 random_get syscall defined in // https://github.com/WebAssembly/WASI/blob/23a52736049f4327dd335434851d5dc40ab7cad1/legacy/preview1/docs.md#-random_getbuf-pointeru8-buf_len-size---result-errno. // The definition does not explicitly guarantee that the entire buffer will
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:54:07 UTC 2023 - 787 bytes - Viewed (0) -
src/syscall/syscall_wasip1.go
// not have a mechanism to to spawn processes so there is no reason for an // application to take a dependency on this type. type Rusage struct { Utime Timeval Stime Timeval } // ProcAttr is a placeholder to allow compilation of the [os/exec] package // because we need Go programs to be portable across platforms. WASI does
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
src/runtime/netpoll_wasip1.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build wasip1 package runtime import "unsafe" // WASI network poller. // // WASI preview 1 includes a poll_oneoff host function that behaves similarly // to poll(2) on Linux. Like poll(2), poll_oneoff is level triggered. It // accepts one or more subscriptions to FD read or write events. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 6.1K bytes - Viewed (0) -
src/internal/poll/fd_wasip1.go
package poll import ( "internal/byteorder" "sync/atomic" "syscall" "unsafe" ) type SysFile struct { // RefCountPtr is a pointer to the reference count of Sysfd. // // WASI preview 1 lacks a dup(2) system call. When the os and net packages // need to share a file/socket, instead of duplicating the underlying file // descriptor, we instead provide a way to copy FD instances and manage the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0)