Is there an equivalent to LockFileEx on Linux? What would it be?
How would you lock a file that will work on .net on windows and mono on linux
and mono on windows and mono on mac os x, etc?
I would like this info so all DllImport attributes can be removed from
csharp-sqlite to make it fully
On Tue, 2010-03-02 at 12:29 -0800, Daniel Morgan wrote:
Is there an equivalent to LockFileEx on Linux? What would it be?
No. There's flock(2) and fcntl(2), but these are advisory in nature
only. (Meaning that any other process with access rights to the file
can come along, ignore the advisory
On Tue, Mar 2, 2010 at 4:28 PM, Jonathan Pryor jonpr...@vt.edu wrote:
On Tue, 2010-03-02 at 12:29 -0800, Daniel Morgan wrote:
Is there an equivalent to LockFileEx on Linux? What would it be?
No. There's flock(2) and fcntl(2), but these are advisory in nature
only. (Meaning that any other
On Tue, 2010-03-02 at 21:03 -0500, Avery Pennarun wrote:
Probably the question needs to be rephrased a little. sqlite itself
obviously works fine on Linux, so clearly Linux has the kind of
locking that is needed in order to make sqlite work...
Yes, work. There's a difference between working
On Tue, Mar 2, 2010 at 9:54 PM, Jonathan Pryor jonpr...@vt.edu wrote:
In short, SQLite (1) uses advisory file locking (as FileStream.Lock()
provides under Mono), then (2) requires that all SQLite users actually
use libsqlite.so (otherwise they won't use the internal management).
Well, I'm