Mail Archives: cygwin/1997/02/06/14:08:05
Hmm, ok, simple question, is there flock? I have looked around the include
files and can't find it. I know that Win32 can do it because I have seen
the stuff about locking/lock/unlock and the whole issue of DOS machines
required to load share.exe to use those features. My question is whether
or not we have the UNIX calls or whether I would have to find out what the
correct Win32 ones are.
At the moment I am trying to come up with a couple of IO manipulators for
streams so that you can just pass manipulators such as,
lock/lock(attempts,timeout) and unlock() just as you would endl
setprecision setfill and their like. So I need a reliable way to lock
files and I would rather take advantage of system calls rather that
(eeeuuughh) use temp files. Just so you know what I needed flock for.
Or indeed lockf, I have read someone looking for this (BSD??) call, I use
Linux but if they are the same, functionally, then thats what I need. You
get the idea.
Any suggestions gratefully accepted,
Nige
p.s. Is that mail loop really gone now?
Nigel Rantor - WEB Ltd
e-mail - nigel AT web DOT co DOT uk / wiggly AT bogo DOT co DOT uk
tel - (+44|0)181-960-3050 fax - (+44|0)181-960-0825
"We challenge one another to be funnier and smarter....
It's the way friends make love to one another."
- Annie Gottlieb
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -