Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for WASI (0.12 sec)

  1. src/runtime/os_wasip1.go

    // structs and arrays passed as arguments to WASI functions.
    //
    // Note that the use of an integer type prevents the compiler from tracking
    // pointers passed to WASI functions, so we must use KeepAlive to explicitly
    // retain the objects that could otherwise be reclaimed by the GC.
    type uintptr32 = uint32
    
    // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-size-u32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. src/runtime/internal/wasitest/tcpecho_test.go

    	// cannot access any information about the socket due to limitations
    	// with WASI preview 1 networking, and the WASM runtimes do not log the
    	// port when you pre-open a socket. So, we probe for a free port here.
    	// Given there's an unavoidable race condition, the test is disabled by
    	// default.
    	if os.Getenv("GOWASIENABLERACYTEST") != "1" {
    		t.Skip("skipping WASI test with unavoidable race condition")
    	}
    	var host string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 22:01:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. misc/wasm/go_wasip1_wasm_exec

    		;;
    	"wasmtime" | "")
    		exec wasmtime run --dir=/ --env PWD="$PWD" --env PATH="$PATH" -W max-wasm-stack=1048576 ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
    		;;
    	*)
    		echo "Unknown Go WASI runtime specified: $GOWASIRUNTIME"
    		exit 1
    		;;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 17:09:10 UTC 2024
    - 797 bytes
    - Viewed (0)
  4. src/syscall/fs_wasip1.go

    		RIGHT_PATH_REMOVE_DIRECTORY |
    		RIGHT_PATH_UNLINK_FILE
    )
    
    // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-fd_closefd-fd---result-errno
    //
    //go:wasmimport wasi_snapshot_preview1 fd_close
    //go:noescape
    func fd_close(fd int32) Errno
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  5. src/runtime/lock_wasip1.go

    		throw("notewakeup - double wakeup")
    	}
    	n.key = 1
    }
    
    func notesleep(n *note) {
    	throw("notesleep not supported by wasi")
    }
    
    func notetsleep(n *note, ns int64) bool {
    	throw("notetsleep not supported by wasi")
    	return false
    }
    
    // same as runtimeĀ·notetsleep, but called on user g (not g0)
    func notetsleepg(n *note, ns int64) bool {
    	gp := getg()
    	if gp == gp.m.g0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/net/fd_fake.go

    	family      int
    	sotype      int
    	isConnected bool // handshake completed or use of association with peer
    	net         string
    	laddr       Addr
    	raddr       Addr
    
    	// The only networking available in WASI preview 1 is the ability to
    	// sock_accept on a pre-opened socket, and then fd_read, fd_write,
    	// fd_close, and sock_shutdown on the resulting connection. We
    	// intercept applicable netFD calls on this instance, and then pass
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/link/internal/wasm/asm.go

    		idx := uint32(lenHostImports) + uint32(ldr.SymValue(s)>>16) - funcValueOffset
    		writeName(ctxt.Out, "_start")       // the wasi entrypoint
    		ctxt.Out.WriteByte(0x00)            // func export
    		writeUleb128(ctxt.Out, uint64(idx)) // funcidx
    		writeName(ctxt.Out, "memory")       // memory in wasi
    		ctxt.Out.WriteByte(0x02)            // mem export
    		writeUleb128(ctxt.Out, 0)           // memidx
    	case "js":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top