* file locking (F_GETLK) porting workaround anyone???
@ 2001-07-09 0:54 hardon
2001-07-09 1:28 ` Corinna Vinschen
0 siblings, 1 reply; 4+ messages in thread
From: hardon @ 2001-07-09 0:54 UTC (permalink / raw)
To: cygwin
Any known workaround for the unimplemented F_GETLK, file locking func???
Whats the big deal with this thing anyway??
If we don't need the lockers pid, just try std. lock and check for errors,
right??
Gunnar Dalsnes.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file locking (F_GETLK) porting workaround anyone???
2001-07-09 0:54 file locking (F_GETLK) porting workaround anyone??? hardon
@ 2001-07-09 1:28 ` Corinna Vinschen
2001-07-15 16:15 ` Gunnar Andre Dalsnes
0 siblings, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2001-07-09 1:28 UTC (permalink / raw)
To: cygwin
On Mon, Jul 09, 2001 at 09:56:20AM +0200, hardon wrote:
> Any known workaround for the unimplemented F_GETLK, file locking func???
> Whats the big deal with this thing anyway??
> If we don't need the lockers pid, just try std. lock and check for errors,
> right??
You're welcome to contribute F_GETLK and F_SETLK(W) in Cygwin if you've
found a way to implement them correctly.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: file locking (F_GETLK) porting workaround anyone???
2001-07-09 1:28 ` Corinna Vinschen
@ 2001-07-15 16:15 ` Gunnar Andre Dalsnes
2001-07-16 2:00 ` Corinna Vinschen
0 siblings, 1 reply; 4+ messages in thread
From: Gunnar Andre Dalsnes @ 2001-07-15 16:15 UTC (permalink / raw)
To: Corinna Vinschen
At 09.07.01 10:28, you wrote:
>On Mon, Jul 09, 2001 at 09:56:20AM +0200, hardon wrote:
>> Any known workaround for the unimplemented F_GETLK, file locking func???
>> Whats the big deal with this thing anyway??
>> If we don't need the lockers pid, just try std. lock and check for errors,
>> right??
>
>You're welcome to contribute F_GETLK and F_SETLK(W) in Cygwin if you've
>found a way to implement them correctly.
What's wrong with F_SETLK(W)? Missing signal interrupt support?
If so, could consistent asynchronous file IO (on NT) fix this?
LockFileEx do support asynchronous IO.
Proper implementation of F_GETLK could be done (on NT) with use of a kernel mode filesystem filter driver.
>Corinna
>
>--
>Corinna Vinschen Please, send mails regarding Cygwin to
>Cygwin Developer mailto:cygwin@cygwin.com
>Red Hat, Inc.
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: file locking (F_GETLK) porting workaround anyone???
2001-07-15 16:15 ` Gunnar Andre Dalsnes
@ 2001-07-16 2:00 ` Corinna Vinschen
0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2001-07-16 2:00 UTC (permalink / raw)
To: cygwin
On Mon, Jul 16, 2001 at 01:10:59AM +0200, Gunnar Andre Dalsnes wrote:
> At 09.07.01 10:28, you wrote:
> >On Mon, Jul 09, 2001 at 09:56:20AM +0200, hardon wrote:
> >> Any known workaround for the unimplemented F_GETLK, file locking func???
> >> Whats the big deal with this thing anyway??
> >> If we don't need the lockers pid, just try std. lock and check for errors,
> >> right??
> >
> >You're welcome to contribute F_GETLK and F_SETLK(W) in Cygwin if you've
> >found a way to implement them correctly.
>
> What's wrong with F_SETLK(W)? Missing signal interrupt support?
> If so, could consistent asynchronous file IO (on NT) fix this?
> LockFileEx do support asynchronous IO.
At least three problems here:
- LockFileEx() is not implemented on 9x/ME.
- Lock requests given to LockFileEx() may not overlap existing locked
regions of the file.
- There's not nearly a functionality similar to F_GETLK in the Win32 API.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-07-16 2:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-09 0:54 file locking (F_GETLK) porting workaround anyone??? hardon
2001-07-09 1:28 ` Corinna Vinschen
2001-07-15 16:15 ` Gunnar Andre Dalsnes
2001-07-16 2:00 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).