MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / errnoErr

Function errnoErr

pkg/sys/zsyscall_windows.go:27–38  ·  view source on GitHub ↗

errnoErr returns common boxed Errno values, to prevent allocations at runtime.

(e syscall.Errno)

Source from the content-addressed store, hash-verified

25// errnoErr returns common boxed Errno values, to prevent
26// allocations at runtime.
27func errnoErr(e syscall.Errno) error {
28 switch e {
29 case 0:
30 return errERROR_EINVAL
31 case errnoERROR_IO_PENDING:
32 return errERROR_IO_PENDING
33 }
34 // TODO: add more here, after collecting data on the common
35 // error values see on Windows. (perhaps when running
36 // all.bat?)
37 return e
38}
39
40var (
41 moddbghelp = windows.NewLazySystemDLL("dbghelp.dll")

Callers 15

GetPackageIDFunction · 0.70
TerminateThreadFunction · 0.70
EnumDeviceDriversFunction · 0.70
QueryWorkingSetFunction · 0.70
SHGetStockIconInfoFunction · 0.70
ShellNotifyIconFunction · 0.70
CreateWindowExFunction · 0.70
LoadImageFunction · 0.70
RegisterClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected