Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for wasip1 (0.22 sec)

  1. src/os/exec_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 (
    	"internal/itoa"
    	"internal/syscall/execenv"
    	"runtime"
    	"syscall"
    )
    
    // The only signal values guaranteed to be present in the os package on all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/os/read_test.go

    	}
    }
    
    func TestReadOnlyWriteFile(t *testing.T) {
    	if Getuid() == 0 {
    		t.Skipf("Root can write to read-only files anyway, so skip the read-only test.")
    	}
    	if runtime.GOOS == "wasip1" {
    		t.Skip("no support for file permissions on " + runtime.GOOS)
    	}
    	t.Parallel()
    
    	// We don't want to use CreateTemp directly, since that opens a file for us as 0600.
    	tempDir, err := MkdirTemp("", t.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/net/iprawsock_posix.go

    // Copyright 2010 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"
    	"syscall"
    )
    
    func sockaddrToIP(sa syscall.Sockaddr) Addr {
    	switch sa := sa.(type) {
    	case *syscall.SockaddrInet4:
    		return &IPAddr{IP: sa.Addr[0:]}
    	case *syscall.SockaddrInet6:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/os/exec_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 (
    	"errors"
    	"runtime"
    	"syscall"
    	"time"
    )
    
    const (
    	// Special values for Process.Pid.
    	pidUnset    = 0
    	pidReleased = -1
    )
    
    func (p *Process) wait() (ps *ProcessState, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/internal/poll/fd_poll_runtime.go

    // Copyright 2013 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 || windows || wasip1
    
    package poll
    
    import (
    	"errors"
    	"sync"
    	"syscall"
    	"time"
    	_ "unsafe" // for go:linkname
    )
    
    // runtimeNano returns the current value of the runtime clock in nanoseconds.
    //
    //go:linkname runtimeNano runtime.nanotime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/runtime/netpoll_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 runtime
    
    import "unsafe"
    
    // WASI network poller.
    //
    // WASI preview 1 includes a poll_oneoff host function that behaves similarly
    // to poll(2) on Linux. Like poll(2), poll_oneoff is level triggered. It
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/dir.go

    	runtime.GOOS == "android" || // #60967
    	runtime.GOOS == "illumos" || // #65544
    	// These platforms fundamentally can't be supported:
    	runtime.GOOS == "js" || // #60971
    	runtime.GOOS == "wasip1" || // #60971
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/internal/poll/fd_wasip1.go

    		SysFile:       fd.SysFile.ref(),
    		IsStream:      fd.IsStream,
    		ZeroReadIsEOF: fd.ZeroReadIsEOF,
    		isBlocking:    fd.isBlocking,
    		isFile:        fd.isFile,
    	}
    }
    
    // dupCloseOnExecOld always errors on wasip1 because there is no mechanism to
    // duplicate file descriptors.
    func dupCloseOnExecOld(fd int) (int, string, error) {
    	return -1, "dup", syscall.ENOSYS
    }
    
    // Fchdir wraps syscall.Fchdir.
    func (fd *FD) Fchdir() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top