Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 152 for syscall1 (0.1 sec)

  1. src/os/pidfd_other.go

    //go:build (unix && !linux) || (js && wasm) || wasip1 || windows
    
    package os
    
    import "syscall"
    
    func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr {
    	return sysAttr
    }
    
    func getPidfd(_ *syscall.SysProcAttr) (uintptr, bool) {
    	return 0, false
    }
    
    func pidfdFind(_ int) (uintptr, error) {
    	return 0, syscall.ENOSYS
    }
    
    func (p *Process) pidfdRelease() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 692 bytes
    - Viewed (0)
  2. src/os/exec_unix.go

    		// active call to the signal method to complete.
    		p.sigMu.Lock()
    		p.sigMu.Unlock()
    	}
    
    	var (
    		status syscall.WaitStatus
    		rusage syscall.Rusage
    		pid1   int
    		e      error
    	)
    	for {
    		pid1, e = syscall.Wait4(p.Pid, &status, 0, &rusage)
    		if e != syscall.EINTR {
    			break
    		}
    	}
    	if e != nil {
    		return nil, NewSyscallError("wait", e)
    	}
    	p.pidDeactivate(statusDone)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/net/file_plan9.go

    	var ctl *os.File
    	close := func(fd int) {
    		if err != nil {
    			syscall.Close(fd)
    		}
    	}
    
    	path, err := syscall.Fd2path(int(f.Fd()))
    	if err != nil {
    		return nil, os.NewSyscallError("fd2path", err)
    	}
    	comp := splitAtBytes(path, "/")
    	n := len(comp)
    	if n < 3 || comp[0][0:3] != "net" {
    		return nil, syscall.EPLAN9
    	}
    
    	name := comp[2]
    	switch file := comp[n-1]; file {
    	case "ctl", "clone":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/aliases.go

    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
    
    package unix
    
    import "syscall"
    
    type Signal = syscall.Signal
    type Errno = syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 385 bytes
    - Viewed (0)
  5. src/internal/syscall/unix/at_sysnum_openbsd.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    import "syscall"
    
    const unlinkatTrap uintptr = syscall.SYS_UNLINKAT
    const openatTrap uintptr = syscall.SYS_OPENAT
    const fstatatTrap uintptr = syscall.SYS_FSTATAT
    
    const (
    	AT_EACCESS          = 0x1
    	AT_FDCWD            = -0x64
    	AT_REMOVEDIR        = 0x08
    	AT_SYMLINK_NOFOLLOW = 0x02
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:36:52 UTC 2024
    - 479 bytes
    - Viewed (0)
  6. src/os/exec_plan9.go

    package os
    
    import (
    	"internal/itoa"
    	"runtime"
    	"syscall"
    	"time"
    )
    
    // The only signal values guaranteed to be present in the os package
    // on all systems are Interrupt (send the process an interrupt) and
    // Kill (force the process to exit). Interrupt is not implemented on
    // Windows; using it with [os.Process.Signal] will return an error.
    var (
    	Interrupt Signal = syscall.Note("interrupt")
    	Kill      Signal = syscall.Note("kill")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/tests/go122-syscall-steal-proc-reacquire-new-proc.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 592 bytes
    - Viewed (0)
  8. src/net/interface_windows.go

    		const flags = windows.GAA_FLAG_INCLUDE_PREFIX | windows.GAA_FLAG_INCLUDE_GATEWAYS
    		err := windows.GetAdaptersAddresses(syscall.AF_UNSPEC, flags, 0, (*windows.IpAdapterAddresses)(unsafe.Pointer(&b[0])), &l)
    		if err == nil {
    			if l == 0 {
    				return nil, nil
    			}
    			break
    		}
    		if err.(syscall.Errno) != syscall.ERROR_BUFFER_OVERFLOW {
    			return nil, os.NewSyscallError("getadaptersaddresses", err)
    		}
    		if l <= uint32(len(b)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/tests/go122-syscall-steal-proc-simple-bare-m.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 472 bytes
    - Viewed (0)
  10. src/internal/trace/testdata/testprog/wait-on-pipe.go

    // Tests a goroutine sitting blocked in a syscall for
    // an entire generation. This is a regression test for
    // #65196.
    
    //go:build ignore
    
    package main
    
    import (
    	"log"
    	"os"
    	"runtime/trace"
    	"syscall"
    	"time"
    )
    
    func main() {
    	// Create a pipe to block on.
    	var p [2]int
    	if err := syscall.Pipe(p[:]); err != nil {
    		log.Fatalf("failed to create pipe: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top