syscall_fixed.go 314 B

12345678910
  1. //go:build plan9 || windows || (js && wasm)
  2. // +build plan9 windows js,wasm
  3. // Go defines S_IFMT on windows, plan9 and js/wasm as 0x1f000 instead of
  4. // 0xf000. None of the the other S_IFxyz values include the "1" (in 0x1f000)
  5. // which prevents them from matching the bitmask.
  6. package sftp
  7. const S_IFMT = 0xf000