- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for InvalidHandle (0.19 sec)
-
src/os/file_windows.go
// methods to stop working. func (file *File) Fd() uintptr { if file == nil { return uintptr(syscall.InvalidHandle) } return uintptr(file.pfd.Sysfd) } // newFile returns a new File with the given file handle and name. // Unlike NewFile, it does not check that h is syscall.InvalidHandle. func newFile(h syscall.Handle, name string, kind string) *File { if kind == "file" { var m uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:38:38 UTC 2024 - 13.4K bytes - Viewed (0) -
src/internal/poll/fd_windows.go
if err := fd.readLock(); err != nil { return syscall.InvalidHandle, nil, 0, "", err } defer fd.readUnlock() o := &fd.rop var rawsa [2]syscall.RawSockaddrAny for { s, err := sysSocket() if err != nil { return syscall.InvalidHandle, nil, 0, "", err } errcall, err := fd.acceptOne(s, rawsa[:], o) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 16:50:42 UTC 2024 - 34.1K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_windows.go
func lockPath(path string) (uintptr, error) { if len(path) == 0 { return uintptr(syscall.InvalidHandle), syscall.ERROR_FILE_NOT_FOUND } pathp, err := syscall.UTF16PtrFromString(path) if err != nil { return uintptr(syscall.InvalidHandle), err } access := uint32(syscall.GENERIC_READ) sharemode := uint32(syscall.FILE_SHARE_READ) createmode := uint32(syscall.OPEN_EXISTING)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 12:57:11 UTC 2023 - 12.5K bytes - Viewed (0) -
src/internal/syscall/windows/syscall_windows.go
Control syscall.WSABuf Flags uint32 } //sys WSASocket(af int32, typ int32, protocol int32, protinfo *syscall.WSAProtocolInfo, group uint32, flags uint32) (handle syscall.Handle, err error) [failretval==syscall.InvalidHandle] = ws2_32.WSASocketW //sys WSAGetOverlappedResult(h syscall.Handle, o *syscall.Overlapped, bytes *uint32, wait bool, flags *uint32) (err error) = ws2_32.WSAGetOverlappedResult func loadWSASendRecvMsg() error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 15.5K bytes - Viewed (0) -
src/internal/syscall/windows/zsyscall_windows.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 18.4K bytes - Viewed (0) -
src/os/os_windows_test.go
}) allowsPerRun(1, func() { syscall.UTF16FromString("abc") }) } func TestNewFileInvalid(t *testing.T) { t.Parallel() if f := os.NewFile(uintptr(syscall.InvalidHandle), "invalid"); f != nil { t.Errorf("NewFile(InvalidHandle) got %v want nil", f) } } func TestReadDirPipe(t *testing.T) { dir := `\\.\pipe\` fi, err := os.Stat(dir) if err != nil || !fi.IsDir() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.8K bytes - Viewed (0)