Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 228 for wasip1 (0.1 sec)

  1. test/fixedbugs/issue22660.go

    // run
    
    //go:build !js && !wasip1 && gc
    
    // Copyright 2017 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.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    )
    
    func main() {
    	f, err := ioutil.TempFile("", "issue22660.go")
    	if err != nil {
    		log.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. src/syscall/timestruct.go

    // Copyright 2016 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 unix || (js && wasm) || wasip1
    
    package syscall
    
    // TimespecToNsec returns the time stored in ts as nanoseconds.
    func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
    
    // NsecToTimespec converts a number of nanoseconds into a [Timespec].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 958 bytes
    - Viewed (0)
  3. src/os/signal/signal_unix.go

    // Copyright 2012 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 unix || (js && wasm) || wasip1 || windows
    
    package signal
    
    import (
    	"os"
    	"syscall"
    )
    
    // Defined by the runtime package.
    func signal_disable(uint32)
    func signal_enable(uint32)
    func signal_ignore(uint32)
    func signal_ignored(uint32) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. src/os/path_unix.go

    // Copyright 2011 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 unix || (js && wasm) || wasip1
    
    package os
    
    const (
    	PathSeparator     = '/' // OS-specific path separator
    	PathListSeparator = ':' // OS-specific path list separator
    )
    
    // IsPathSeparator reports whether c is a directory separator character.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. test/fixedbugs/issue36437.go

    // run
    
    //go:build !nacl && !js && !wasip1 && gc
    
    // Copyright 2020 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.
    
    // Tests that when non-existent files are passed to the
    // compiler, such as in:
    //    go tool compile foo
    // we don't print the beginning position:
    //    foo:0: open foo: no such file or directory
    // but instead omit it and print out:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. src/internal/testenv/testenv_test.go

    	t.Run("MustHaveExec", func(t *testing.T) {
    		testenv.MustHaveExec(t)
    		t.Logf("MustHaveExec did not skip")
    		hasExec = true
    	})
    
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		if hasExec {
    			// js and wasip1 lack an “exec” syscall.
    			t.Errorf("expected MustHaveExec to skip on %v", runtime.GOOS)
    		}
    	case "ios":
    		if b := testenv.Builder(); isCorelliumBuilder(b) && !hasExec {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/internal/poll/sys_cloexec.go

    // license that can be found in the LICENSE file.
    
    // This file implements accept for platforms that do not provide a fast path for
    // setting SetNonblock and CloseOnExec.
    
    //go:build aix || darwin || (js && wasm) || wasip1
    
    package poll
    
    import (
    	"syscall"
    )
    
    // Wrapper around the accept system call that marks the returned file
    // descriptor as nonblocking and close-on-exec.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:17 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/net/port_unix.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 unix || js || wasip1
    
    // Read system port mappings from /etc/services
    
    package net
    
    import (
    	"internal/bytealg"
    	"sync"
    )
    
    var onceReadServices sync.Once
    
    func readServices() {
    	file, err := open("/etc/services")
    	if err != nil {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/net/rlimit_unix.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 unix || wasip1
    
    package net
    
    import "syscall"
    
    // concurrentThreadsLimit returns the number of threads we permit to
    // run concurrently doing DNS lookups via cgo. A DNS lookup may use a
    // file descriptor so we limit this to less than the number of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/net/rawconn_test.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"bytes"
    	"runtime"
    	"testing"
    	"time"
    )
    
    func TestRawConnReadWrite(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9", "js", "wasip1":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	t.Run("TCP", func(t *testing.T) {
    		handler := func(ls *localServer, ln Listener) {
    			c, err := ln.Accept()
    			if err != nil {
    				t.Error(err)
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top