From: Peter Gerwinski peter@agnes.dida.physik.uni-essen.de Subject: Re: File/Record locking on Linux with GPC To: pismo@warf.com Date: Wed, 3 Dec 1997 23:48:34 +0100 (MET)
Hi, Pismo,
you wrote:
If I could lock a file with GPC (like flock in Perl) then I could create my own record locking implementation. Without being able to lock a file at the OS level trying to accomplish this would be flakey at best. I want to use GPC for multi-user database apps I'm porting from BP/Delphi.
If there is a C function for that you can use that:
extern void foobar ( int foo, char *bar );
becomes
Procedure Foobar ( foo: Integer; bar: CString ); C;
but you should better ask again at the GPC mailing list, gpc@hut.fi. I have no experience with Perl, sorry.
I don't use Perl or C, but I'm sure we must have a C programmer on the list who can answer this for us. BTW how would I check the system clock?