perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

win32_isatty() dont call a mostly failing syscall, NT->WIN err conv is slow

Open bulk88 opened this issue 6 months ago • 0 comments

GetFileType() has shortcuts, it first checks against -1 -2 -3, then checks
against PEB's 3 master IN, OUT, ERR kernel handles, then checks if it is
tagged/unaligned [open secret, not frozen API], and only then does the
NtRequestWaitReplyPort() RPC call to csrss.exe instead of
NtQueryVolumeInformationFile(). GetFileType() from kernel32.dll is different
from GetFileType() in kernelbase.dll.

  • This set of changes does not require a perldelta entry.

bulk88 avatar Jun 17 '25 10:06 bulk88