[PATCH v3 2/2] ntdll: Use the F_PREALLOCATE fcntl(2) on Mac OS when posix_fallocate(2/3) isn't available.

Alexandre Julliard julliard at winehq.org
Wed Sep 15 04:39:07 CDT 2021


Huw Davies <huw at codeweavers.com> writes:

> On Wed, Sep 15, 2021 at 10:52:35AM +0200, Alexandre Julliard wrote:
>> Do we actually need this in the first place? I thought posix_fallocate()
>> was supposed to be the portable solution <g>
>
> It's not available on macOS (at least not on 10.14), so apparently
> it's not that portable ;-/

I'd suggest to ignore it then. It's only an optimization, and
F_PREALLOCATE doesn't seem like a good match for this.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list