Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 228 for wasip1 (0.24 sec)

  1. src/os/file_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 && wasm) || wasip1
    
    package os
    
    import (
    	"internal/poll"
    	"internal/syscall/unix"
    	"io/fs"
    	"runtime"
    	"sync/atomic"
    	"syscall"
    	_ "unsafe" // for go:linkname
    )
    
    const _UTIME_OMIT = unix.UTIME_OMIT
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/example_test.go

    // license that can be found in the LICENSE file.
    
    // Only run where builders (build.golang.org) have
    // access to compiled packages for import.
    //
    //go:build !android && !ios && !js && !wasip1
    
    package types2_test
    
    // This file shows examples of basic usage of the go/types API.
    //
    // To locate a Go package, use (*go/build.Context).Import.
    // To load, parse, and type-check a complete Go program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. src/net/unixsock_posix.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 || windows
    
    package net
    
    import (
    	"context"
    	"errors"
    	"os"
    	"syscall"
    )
    
    func unixSocket(ctx context.Context, net string, laddr, raddr sockaddr, mode string, ctxCtrlFn func(context.Context, string, string, syscall.RawConn) error) (*netFD, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/internal/trace/trace_test.go

    			}
    		}
    	})
    }
    
    func TestTraceStress(t *testing.T) {
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		t.Skip("no os.Pipe on " + runtime.GOOS)
    	}
    	testTraceProg(t, "stress.go", nil)
    }
    
    func TestTraceStressStartStop(t *testing.T) {
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		t.Skip("no os.Pipe on " + runtime.GOOS)
    	}
    	testTraceProg(t, "stress-start-stop.go", nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. src/net/tcpsock_posix.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 || windows
    
    package net
    
    import (
    	"context"
    	"io"
    	"os"
    	"syscall"
    )
    
    func sockaddrToTCP(sa syscall.Sockaddr) Addr {
    	switch sa := sa.(type) {
    	case *syscall.SockaddrInet4:
    		return &TCPAddr{IP: sa.Addr[0:], Port: sa.Port}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. src/os/file_posix.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 && wasm) || wasip1 || windows
    
    package os
    
    import (
    	"runtime"
    	"syscall"
    	"time"
    )
    
    // Close closes the [File], rendering it unusable for I/O.
    // On files that support [File.SetDeadline], any pending I/O operations will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/net/udpsock_posix.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 || windows
    
    package net
    
    import (
    	"context"
    	"net/netip"
    	"syscall"
    )
    
    func sockaddrToUDP(sa syscall.Sockaddr) Addr {
    	switch sa := sa.(type) {
    	case *syscall.SockaddrInet4:
    		return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. src/net/dial_test.go

    	}
    	c.Close()
    	t.Logf(`Dial("tcp4", %q) succeeded`, dialAddr)
    }
    
    func TestDialerControl(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	case "js", "wasip1":
    		t.Skipf("skipping: fake net does not support Dialer.Control")
    	}
    
    	t.Run("StreamDial", func(t *testing.T) {
    		for _, network := range []string{"tcp", "tcp4", "tcp6", "unix", "unixpacket"} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. src/syscall/fs_wasip1.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
    
    package syscall
    
    import (
    	"internal/stringslite"
    	"runtime"
    	"unsafe"
    )
    
    func init() {
    	// Try to set stdio to non-blocking mode before the os package
    	// calls NewFile for each fd. NewFile queries the non-blocking flag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  10. src/go/types/example_test.go

    // license that can be found in the LICENSE file.
    
    // Only run where builders (build.golang.org) have
    // access to compiled packages for import.
    //
    //go:build !android && !ios && !js && !wasip1
    
    package types_test
    
    // This file shows examples of basic usage of the go/types API.
    //
    // To locate a Go package, use (*go/build.Context).Import.
    // To load, parse, and type-check a complete Go program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top