Skip to content

FIX: DARWIN: aarch64: tstatfs.fstypename length error (#39873)

rich2014 requested to merge rich2014/source:fix/darwin_aarch64_tstatfs into main

FIX issue #39873 (closed) (DARWIN: aarch64: tstatfs.fstypename length error)

Summary

  1. record tstatfs in ptypes.inc error (darwin and aarch64)
  2. fstypename in tstatfs should be MFSTYPENAMELEN(16 bytes), but MFSNAMELEN(15 bytes) used
  3. related functions such as getfsstat() broken
  4. FYI: https://opensource.apple.com/source/xnu/xnu-6153.41.3/bsd/sys/mount.h.auto.html

System Information

  • Operating System: MacOS 12.2.1
  • CPU / Bitness: M1 / aarch64
  • FPC Version: FPC 3.2.2

Merge request reports