Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for WASI (0.06 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. .idea/dictionaries/skuzmich.xml

    <component name="ProjectDictionaryState">
      <dictionary name="skuzmich">
        <words>
          <w>anyref</w>
          <w>dataref</w>
          <w>ushr</w>
          <w>wasi</w>
          <w>wasm</w>
        </words>
      </dictionary>
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Dec 29 19:25:23 UTC 2022
    - 221 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/net/file_wasip1_test.go

    // the public interface by constructing an *os.File from a file descriptor
    // opened on a socket, but the WASI preview 1 specification is too limited to
    // support this approach for UDP sockets. Instead, we test the internals that
    // make it possible for WASI host runtimes and guest programs to integrate
    // socket extensions with the net package using net.FileConn/net.FileListener.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:06:56 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. 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)
  8. src/runtime/mem_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
    
    func resetMemoryDataView() {
    	// This function is a no-op on WASI, it is only used to notify the browser
    	// that its view of the WASM memory needs to be updated when compiling for
    	// GOOS=js.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 392 bytes
    - Viewed (0)
  9. src/time/sys_unix.go

    //go:build unix || (js && wasm) || wasip1
    
    package time
    
    import (
    	"errors"
    	"runtime"
    	"syscall"
    )
    
    // for testing: whatever interrupts a sleep
    func interrupt() {
    	// There is no mechanism in wasi to interrupt the call to poll_oneoff
    	// used to implement runtime.usleep so this function does nothing, which
    	// somewhat defeats the purpose of TestSleep but we are still better off
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:10 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/os/dirent_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 os
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    // https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#-dirent-record
    const sizeOfDirent = 24
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top