- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for wasip1 (0.14 sec)
-
src/syscall/dirent.go
} rec := buf[:reclen] buf = buf[reclen:] ino, ok := direntIno(rec) if !ok { break } // See src/os/dir_unix.go for the reason why this condition is // excluded on wasip1. if ino == 0 && runtime.GOOS != "wasip1" { // File absent in directory. continue } const namoff = uint64(unsafe.Offsetof(Dirent{}.Name)) namlen, ok := direntNamlen(rec) if !ok || namoff+namlen > uint64(len(rec)) { break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:13:24 UTC 2024 - 2.4K bytes - Viewed (0) -
src/syscall/net_fake.go
// Copyright 2023 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. // Fake networking for js/wasm and wasip1/wasm. //go:build js || wasip1 package syscall const ( AF_UNSPEC = iota AF_UNIX AF_INET AF_INET6 ) const ( SOCK_STREAM = 1 + iota SOCK_DGRAM SOCK_RAW SOCK_SEQPACKET ) const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 883 bytes - Viewed (0) -
src/net/cgo_stub.go
// - on a Unix system without the cgo resolver functions // (Darwin always provides the cgo functions, in cgo_unix_syscall.go) // - on wasip1, where cgo is never available //go:build (netgo && unix) || (unix && !cgo && !darwin) || js || wasip1 package net import "context" // cgoAvailable set to false to indicate that the cgo resolver // is not available on this system. const cgoAvailable = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 1.3K bytes - Viewed (0) -
src/net/parse_test.go
"bufio" "os" "runtime" "testing" ) func TestReadLine(t *testing.T) { // /etc/services file does not exist on android, plan9, windows, or wasip1 // where it would be required to be mounted from the host file system. switch runtime.GOOS { case "android", "plan9", "windows", "wasip1": t.Skipf("not supported on %s", runtime.GOOS) } filename := "/etc/services" // a nice big file fd, err := os.Open(filename)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 00:04:48 UTC 2024 - 1.6K bytes - Viewed (0) -
src/net/file_test.go
var fileConnTests = []struct { network string }{ {"tcp"}, {"udp"}, {"unix"}, {"unixpacket"}, } func TestFileConn(t *testing.T) { switch runtime.GOOS { case "plan9", "windows", "js", "wasip1": t.Skipf("not supported on %s", runtime.GOOS) } for _, tt := range fileConnTests { if !testableNetwork(tt.network) { t.Logf("skipping %s test", tt.network) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 6.4K bytes - Viewed (0) -
src/runtime/internal/wasitest/tcpecho_test.go
subProcess.Env = append(os.Environ(), "GOOS=wasip1", "GOARCH=wasm") switch os.Getenv("GOWASIRUNTIME") { case "wazero": subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--listen="+host) case "wasmtime", "": subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--tcplisten="+host) default: t.Skip("WASI runtime does not support sockets") } var b bytes.Buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 22:01:11 UTC 2024 - 2.4K bytes - Viewed (0) -
src/net/unixsock_readmsg_other.go
// Copyright 2021 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 js || wasip1 || windows package net const readMsgFlags = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 275 bytes - Viewed (0) -
src/net/main_wasm_test.go
// Copyright 2023 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 wasip1 || js package net func installTestHooks() {} func uninstallTestHooks() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 284 bytes - Viewed (0) -
test/sigchld.go
// run //go:build !plan9 && !windows && !wasip1 // 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. // Test that a program can survive SIGCHLD. package main import "syscall" func main() { syscall.Kill(syscall.Getpid(), syscall.SIGCHLD) println("survived SIGCHLD")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 381 bytes - Viewed (0) -
src/os/dir_unix.go
ino, ok := direntIno(rec) if !ok { break } // When building to wasip1, the host runtime might be running on Windows // or might expose a remote file system which does not have the concept // of inodes. Therefore, we cannot make the assumption that it is safe // to skip entries with zero inodes. if ino == 0 && runtime.GOOS != "wasip1" { continue } const namoff = uint64(unsafe.Offsetof(syscall.Dirent{}.Name))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:11:45 UTC 2024 - 4.8K bytes - Viewed (0)