in reply to macOS Fcntl.pm missing F_NOCACHE

My guess is that you would have to explicitly export F_NOCACHE as you do with other flags according to the documentation.

use Fcntl qw(F_GETFL F_SETFL O_NONBLOCK);

So yours would be:

use Fcntl qw(F_NOCACHE);

I don't have anything with iOS to be test it.

Replies are listed 'Best First'.
Re^2: macOS Fcntl.pm missing F_NOCACHE
by bernuli (Novice) on Oct 09, 2022 at 23:59 UTC

    Thank you for the reply.

    Unfortunately that does not work as my Fcntl.pm knows nothing of F_NOCACHE

    Adding F_NOCACHE to the @EXPORT array of Fcntl.pm does not work either as the script dies with "F_NOCACHE is not a valid Fcntl macro".