26 Jun 2012 01:07
F_SETLK value
Rob Wilkens <robwilkens <at> gmail.com>
2012-06-25 23:07:32 GMT
2012-06-25 23:07:32 GMT
In Mono.Posix/Mono.Unix.Native/Syscall.cs:
F_SETLK is hard coded to be 13
That may work on 32-bit linux.
But it doesn't work on 64-bit linux, and from what i can tell it won't work on Mac.
On 64-bit Linux: The value should be 6.
On my 64-bit Mac: The value should be 8.
I wouldn't be surprised if the whole FcntlCommand enum has to be platform specific. If so, I can handle 64-bit Linux and Mac, perhaps, if i knew what #ifdef's to include for each, which i'm sure i can figure out by digging around code.
Anyone have suggestions on how to do this, or want to do it themselves? This is in response to this bug report: https://bugzilla.xamarin.com/show_bug.cgi?id=2014
=Rpb
F_SETLK is hard coded to be 13
That may work on 32-bit linux.
But it doesn't work on 64-bit linux, and from what i can tell it won't work on Mac.
On 64-bit Linux: The value should be 6.
On my 64-bit Mac: The value should be 8.
I wouldn't be surprised if the whole FcntlCommand enum has to be platform specific. If so, I can handle 64-bit Linux and Mac, perhaps, if i knew what #ifdef's to include for each, which i'm sure i can figure out by digging around code.
Anyone have suggestions on how to do this, or want to do it themselves? This is in response to this bug report: https://bugzilla.xamarin.com/show_bug.cgi?id=2014
=Rpb
_______________________________________________ Mono-devel-list mailing list Mono-devel-list <at> lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RSS Feed