Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for closeHandle (2.53 sec)

  1. src/os/exec_nohandle.go

    // Copyright 2024 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 !linux && !windows
    
    package os
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 238 bytes
    - Viewed (0)
  2. src/os/exec_windows.go

    		return syscall.EINVAL
    	}
    
    	// no need for a finalizer anymore
    	runtime.SetFinalizer(p, nil)
    	return nil
    }
    
    func (p *Process) closeHandle() {
    	syscall.CloseHandle(syscall.Handle(p.handle))
    }
    
    func findProcess(pid int) (p *Process, err error) {
    	const da = syscall.STANDARD_RIGHTS_READ |
    		syscall.PROCESS_QUERY_INFORMATION | syscall.SYNCHRONIZE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/os/exec_linux.go

    // Copyright 2024 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 os
    
    import (
    	"syscall"
    )
    
    func (p *Process) closeHandle() {
    	syscall.Close(int(p.handle))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 261 bytes
    - Viewed (0)
  4. src/internal/poll/fd_windows_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	fd := poll.FD{Sysfd: s, IsStream: true, ZeroReadIsEOF: true}
    	_, err = fd.Init("tcp", true)
    	if err != nil {
    		syscall.CloseHandle(s)
    		t.Fatal(err)
    	}
    	defer fd.Close()
    
    	const SIO_TCP_INFO = syscall.IOC_INOUT | syscall.IOC_VENDOR | 39
    	inbuf := uint32(0)
    	var outbuf _TCP_INFO_v0
    	cbbr := uint32(0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 08:33:36 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_windows.go

    }
    
    func munmapFile(d Data) error {
    	err := windows.UnmapViewOfFile(uintptr(unsafe.Pointer(&d.Data[0])))
    	x, ok := d.Windows.(windows.Handle)
    	if ok {
    		windows.CloseHandle(x)
    	}
    	d.f.Close()
    	return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/os/stat_windows.go

    		// FileInfo with a known-accurate Mode, we must return an error.
    		return nil, &PathError{Op: "CreateFile", Path: name, Err: err}
    	}
    
    	fi, err := statHandle(name, h)
    	syscall.CloseHandle(h)
    	if err == nil && followSurrogates && fi.(*fileStat).isReparseTagNameSurrogate() {
    		// To obtain information about the link target, we reopen the file without
    		// FILE_FLAG_OPEN_REPARSE_POINT and examine the resulting handle.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/os/exec.go

    	// handle is the OS handle for process actions, used only in
    	// modeHandle.
    	//
    	// handle must be accessed only via the handleTransientAcquire method
    	// (or during closeHandle), not directly! handle is immutable.
    	//
    	// On Windows, it is a handle from OpenProcess.
    	// On Linux, it is a pidfd.
    	// It is unused on other GOOSes.
    	handle uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    //sys	SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) [failretval==0xffffffff]
    //sys	CloseHandle(handle Handle) (err error)
    //sys	GetStdHandle(stdhandle uint32) (handle Handle, err error) [failretval==InvalidHandle]
    //sys	SetStdHandle(stdhandle uint32, handle Handle) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. src/os/file_windows.go

    	if winreadlinkvolume.Value() != "0" {
    		return `\\?\` + path[4:], nil
    	}
    	winreadlinkvolume.IncNonDefault()
    
    	h, err := openSymlink(path)
    	if err != nil {
    		return "", err
    	}
    	defer syscall.CloseHandle(h)
    
    	buf := make([]uint16, 100)
    	for {
    		n, err := windows.GetFinalPathNameByHandle(h, &buf[0], uint32(len(buf)), windows.VOLUME_NAME_DOS)
    		if err != nil {
    			return "", err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. src/os/os_windows_test.go

    	if err != nil {
    		return
    	}
    	defer syscall.CloseHandle(mar)
    	//LanmanWorkstation is the service name, and Workstation is the display name.
    	srv, err := windows.OpenService(mar, syscall.StringToUTF16Ptr("LanmanWorkstation"), windows.SERVICE_QUERY_STATUS)
    	if err != nil {
    		return
    	}
    	defer syscall.CloseHandle(srv)
    	var state windows.SERVICE_STATUS
    	err = windows.QueryServiceStatus(srv, &state)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top