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

2007-09-11 Thread Mike Gran
--- Kaloian Doganov <[EMAIL PROTECTED]> wrote: > I've just managed to backport your example to Guile 1.6.x. and come > up > with the following table of correspondence: > > Guile 1.8.xGuile 1.6.x > -- --- > scm_is_integer SCM_INUMP > scm_is_true

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

2007-09-11 Thread Kaloian Doganov
Mike Gran <[EMAIL PROTECTED]> writes: If it fails again, you should write me directly, as autoconf problems (and my failings as a coder) are off-topic for the list. ;-) I don't have any autoconf problems anymore, thank you. I've just managed to backport your example to Guile 1.6.x. a

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

2007-09-03 Thread Mike Gran
--- Kaloian Doganov <[EMAIL PROTECTED]> wrote: > I guess by "Linux" you actually mean GNU/Linux, since the make > program > can not run on the bare kernel. I knew I was going to get in trouble for that the moment I hit "send". > Unfortunately, the configure script > fails on my system (gNewSe

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

2007-09-03 Thread Kaloian Doganov
Kevin Ryde <[EMAIL PROTECTED]> writes: If you don't mind breaking out a little C code it shouldn't be too hard. I don't mind, but I'm still clueless about C and don't have any experience in extending Guile with C. -- Protect your digital freedom and privacy, eliminate DRM, learn mo

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

2007-09-03 Thread Kaloian Doganov
Mike Gran <[EMAIL PROTECTED]> writes: I put together something. I've attached the more important source files here for reference, but, the buildable files are in http://lonelycactus.com/getlk-0.0.tar.gz Mike, I really appreciate your help. For me, it does "./configure && mak

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

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 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 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-08-31 Thread Kevin Ryde
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. There's `flock' already for whole-file, if that's enough.

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

2007-08-31 Thread dsmich
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: > > F_DUPFD > F_GETFD > F_SETFD > F_GETFL > F_SETFL > F_GETOWN > F_SETOWN > FD_CLOE

(fcntl fd F_GETLK ...) from Guile

2007-08-31 Thread Kaloian Doganov
Is there a way to use fcntl's F_GETLK command from Guile? According to the docs [1], only the following commands are available: F_DUPFD F_GETFD F_SETFD F_GETFL F_SETFL F_GETOWN F_SETOWN FD_CLOEXEC Neighter F_GETLK nor F_SETLK is there. Am I missing something? Ma