- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Errno (0.01 sec)
-
cmd/xl-storage-errors.go
if runtime.GOOS != globalWindowsOSName { return false } // Check if err contains ERROR_INVALID_HANDLE errno var pathErr *os.PathError if errors.As(err, &pathErr) { var errno syscall.Errno if errors.As(pathErr.Err, &errno) { // ERROR_PATH_NOT_FOUND return errno == 0x6 } } return false } func isSysErrCrossDevice(err error) bool { return errors.Is(err, syscall.EXDEV) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:29 UTC 2023 - 3.8K bytes - Viewed (0) -
cmd/xl-storage-errors_test.go
t.Fatalf("Unexpected error expecting %s", syscall.ENOTEMPTY) } } else { pathErr = &os.PathError{Err: syscall.Errno(0x91)} ok = isSysErrNotEmpty(pathErr) if !ok { t.Fatal("Unexpected error expecting 0x91") } } if runtime.GOOS == globalWindowsOSName { pathErr = &os.PathError{Err: syscall.Errno(0x03)} ok = isSysErrPathNotFound(pathErr) if !ok { t.Fatal("Unexpected error expecting 0x03") } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 1.7K bytes - Viewed (0) -
internal/lock/lock_windows.go
lockFileExclusiveLock = 2 lockFileFailImmediately = 1 // see https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx errLockViolation syscall.Errno = 0x21 ) // lockedOpenFile is an internal function. func lockedOpenFile(path string, flag int, perm os.FileMode, lockType uint32) (*LockedFile, error) { f, err := Open(path, flag, perm) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 7.9K bytes - Viewed (0)