Files
scummvm/backends/audiocd
Donovan Watteau 39e24cac2e BACKENDS: MACOS: Use two getfsstat() calls instead of allocating a giant buffer
For the statfs buffer used by detectAllDrives(), only allocate what is
needed, instead of an arbitrary value.

Calling getfsstat() a first time with a NULL pointer will return the
number of mounted file systems. We can then use that a allocate a
buffer at the right size for the next getfsstat() call.

It looks like we can then reasonably expect MNT_NOWAIT to be enough
for the second call that immediately follows...

Idea from criezy.
2025-04-16 16:11:53 +02:00
..
…