Re: (fcntl fd F_GETLK ...) from Guile

2007-09-01 Thread Kaloian Doganov
Kevin Ryde <[EMAIL PROTECTED]> writes: It'd need something for "struct flock" (and "struct flock64" when available), they're not plain integers like the other fcntl commands. Yes, currently I don't know how to represent this structure in Guile, even with those define's suggested by ds

Re: (fcntl fd F_GETLK ...) from Guile

2007-09-01 Thread dsmich
Kevin Ryde <[EMAIL PROTECTED]> wrote: > Kaloian Doganov <[EMAIL PROTECTED]> writes: > > > > Neighter F_GETLK nor F_SETLK is there. > > Yep, not there. It'd need something for "struct flock" (and "struct > flock64" when available), they're not plain integers like the other > fcntl commands.

Re: (fcntl fd F_GETLK ...) from Guile

2007-09-01 Thread Kevin Ryde
Kaloian Doganov <[EMAIL PROTECTED]> writes: > > I need to do record (range) locking, not whole-file locking, and I > hoped to do it with Guile. If you don't mind breaking out a little C code it shouldn't be too hard. (I can never remember which types of locks are voluntary or mandatory, and which

Re: (fcntl fd F_GETLK ...) from Guile

2007-09-01 Thread Mike Gran
Kaloian- --- Kaloian Doganov <[EMAIL PROTECTED]> wrote: > Is there a way to use fcntl's F_GETLK command from Guile? According > to the docs [1], only the following commands are available: > I put together something. I've attached the more important source files here for reference, but, the bu