Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 228 for wasip1 (0.22 sec)

  1. src/net/fd_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 net
    
    import (
    	"syscall"
    )
    
    func (fd *netFD) closeRead() error {
    	if fd.fakeNetFD != nil {
    		return fd.fakeNetFD.closeRead()
    	}
    	return fd.shutdown(syscall.SHUT_RD)
    }
    
    func (fd *netFD) closeWrite() error {
    	if fd.fakeNetFD != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 496 bytes
    - Viewed (0)
  2. src/net/internal/socktest/main_unix_test.go

    // Copyright 2015 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 && !plan9 && !wasip1 && !windows
    
    package socktest_test
    
    import "syscall"
    
    var (
    	socketFunc func(int, int, int) (int, error)
    	closeFunc  func(int) error
    )
    
    func installTestHooks() {
    	socketFunc = sw.Socket
    	closeFunc = sw.Close
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:10 UTC 2023
    - 493 bytes
    - Viewed (0)
  3. src/os/sys_bsd.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || (js && wasm) || netbsd || openbsd || wasip1
    
    package os
    
    import "syscall"
    
    func hostname() (name string, err error) {
    	name, err = syscall.Sysctl("kern.hostname")
    	if err != nil {
    		return "", NewSyscallError("sysctl kern.hostname", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 466 bytes
    - Viewed (0)
  4. src/net/tcpsockopt_stub.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 js || wasip1
    
    package net
    
    import (
    	"syscall"
    	"time"
    )
    
    func setNoDelay(fd *netFD, noDelay bool) error {
    	return syscall.ENOPROTOOPT
    }
    
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	return syscall.ENOPROTOOPT
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 570 bytes
    - Viewed (0)
  5. src/os/sticky_bsd.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin || dragonfly || freebsd || (js && wasm) || netbsd || openbsd || solaris || wasip1
    
    package os
    
    // According to sticky(8), neither open(2) nor mkdir(2) will create
    // a file with the sticky bit set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 425 bytes
    - Viewed (0)
  6. src/net/net_fake_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 js || wasip1
    
    package net
    
    // GOOS=js and GOOS=wasip1 do not have typical socket networking capabilities
    // found on other platforms. To help run test suites of the stdlib packages,
    // an in-memory "fake network" facility is implemented.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/os/export_unix_test.go

    // Copyright 2019 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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 241 bytes
    - Viewed (0)
  8. src/cmd/go/internal/mmap/mmap_other.go

    // Copyright 2022 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 && wasm) || wasip1 || plan9
    
    package mmap
    
    import (
    	"io"
    	"os"
    )
    
    // mmapFile on other systems doesn't mmap the file. It just reads everything.
    func mmapFile(f *os.File) (Data, error) {
    	b, err := io.ReadAll(f)
    	if err != nil {
    		return Data{}, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 454 bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/nettest/nettest.go

    		// package net of the standard library.
    		switch runtime.GOOS {
    		case "android", "fuchsia", "hurd", "ios", "js", "nacl", "plan9", "wasip1", "windows":
    			return false
    		}
    	case "ip", "ip4", "ip6":
    		switch runtime.GOOS {
    		case "fuchsia", "hurd", "js", "nacl", "plan9", "wasip1":
    			return false
    		default:
    			if os.Getuid() != 0 {
    				return false
    			}
    		}
    	case "unix", "unixgram":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/os/sys_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 os
    
    // supportsCloseOnExec reports whether the platform supports the
    // O_CLOEXEC flag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 309 bytes
    - Viewed (0)
Back to top