golang/go

syscall: Windows Errno constants invalid

Open

#32,309 opened on May 29, 2019

View on GitHub
 (17 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsFixOS-Windowshelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

These constants: https://golang.org/src/syscall/types_windows.go#L7

Should appear in these constants: https://golang.org/src/syscall/zerrors_windows.go#L16

... because the latter are currently useless for comparison with Errno values, unlike other supported OSes. For example err.(*os.PathError).Err == syscall.ENOTEMPTY is never true on Windows.

Filed at request of @rsc

@gopherbot add OS-Windows

Contributor guide