Re: fcntl(HANDLE, F_GETLK,&fl) with perl

2003-06-19 Thread Nick Phillips
On Wed, Jun 18, 2003 at 03:19:50PM -0700, Philippe Troin wrote: > Bill Allombert <[EMAIL PROTECTED]> writes: > > but it does not seems to work. In fact the documentation > > is unclear whether a struct flock can be passed at all > > (some form of fcntl use a long arg instead). > > You have to pac

Re: fcntl(HANDLE, F_GETLK,&fl) with perl

2003-06-18 Thread Philippe Troin
Bill Allombert <[EMAIL PROTECTED]> writes: > Hello Debian-devel, > > I try to code the following in perl > > struct flock fl; > if (fcntl(fd,F_GETLK,&fl) == -1) > > to query the dpkg lock. > > I have tried the above > > fcntl DPKG_LOCKFILE,F_GETLK, \%fl; > > but it does not seems to wor