Miguel de Icaza
miguel at xamarin.com
Tue Jan 13 04:15:41 UTC 2015
I added support for this on master.
That said, there is an issue that I think will bite us.
Currently the fcntl P/Invoke declaration uses a "long" as a general purpose
way of passing flags to fcntl, and I suspect the parameter to F_NOCACHE
should be an int.
On Mon, Jan 12, 2015 at 7:28 PM, Greg Young <gregoryyoung1 at gmail.com> wrote:
> I have been trying to set F_NOCACHE via fcntl on a mac to no avail.
> r = Syscall.fcntl
> (handle.DangerousGetHandle().ToInt32(), (FcntlCommand) MAC_F_NOCACHE,
> } while (UnixMarshal.ShouldRetrySyscall ((int) r));
> if (r == -1)
> UnixMarshal.ThrowExceptionForLastError ();
> I have tried
> and 0x40000
> for F_NOCACHE though from
> Given FcntlCommandFlags does not expose F_NOCACHE but it still should
> be fine to jam the value into the enum
> Has anyone set this before? Chances of finding this on google are
> slightly better than 0 :)
> Studying for the Turing test
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list