Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 228 for wasip1 (0.11 sec)

  1. 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)
  2. src/net/error_unix.go

    // Copyright 2018 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
    
    package net
    
    import "syscall"
    
    func isConnError(err error) bool {
    	if se, ok := err.(syscall.Errno); ok {
    		return se == syscall.ECONNRESET || se == syscall.ECONNABORTED
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:12 UTC 2023
    - 382 bytes
    - Viewed (0)
  3. src/crypto/rand/rand_wasip1.go

    // license that can be found in the LICENSE file.
    
    //go:build wasip1
    
    package rand
    
    import "syscall"
    
    func init() {
    	Reader = &reader{}
    }
    
    type reader struct{}
    
    func (r *reader) Read(b []byte) (int, error) {
    	// This uses the wasi_snapshot_preview1 random_get syscall defined in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 787 bytes
    - Viewed (0)
  4. src/os/sticky_notbsd.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 && !netbsd && !openbsd && !solaris && !wasip1
    
    package os
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 320 bytes
    - Viewed (0)
  5. src/cmd/test2json/signal_unix.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 unix || js || wasip1
    
    package main
    
    import (
    	"os"
    	"syscall"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 301 bytes
    - Viewed (0)
  6. src/time/zoneinfo_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.
    
    package time
    
    // in wasip1 zoneinfo is managed by the runtime.
    var platformZoneSources = []string{}
    
    func initLocal() {
    	localLoc.name = "Local"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:10 UTC 2023
    - 307 bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/go/internal/base/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 || wasip1
    
    package base
    
    import (
    	"os"
    	"syscall"
    )
    
    var signalsToIgnore = []os.Signal{os.Interrupt, syscall.SIGQUIT}
    
    // SignalTrace is the signal to send to make a Go program
    // crash with a stack trace.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 433 bytes
    - Viewed (0)
  9. src/cmd/internal/osinfo/os_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 osinfo
    
    import (
    	"errors"
    	"fmt"
    )
    
    // Version returns the OS version name/number.
    func Version() (string, error) {
    	return "", fmt.Errorf("unable to determine OS version: %w", errors.ErrUnsupported)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 390 bytes
    - Viewed (0)
  10. src/internal/poll/hook_unix.go

    // 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.
    
    //go:build unix || (js && wasm) || wasip1
    
    package poll
    
    import "syscall"
    
    // CloseFunc is used to hook the close call.
    var CloseFunc func(int) error = syscall.Close
    
    // AcceptFunc is used to hook the accept call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:17 UTC 2023
    - 447 bytes
    - Viewed (0)
Back to top