[Ecls-list] Determining if a pathname refers to a directory

2011-02-26 Thread Zach Beane
If I've gotten a pathname like #p/foo/bar, is there an ecl-specific function I can call to determine if /foo/bar names a directory? Thanks, Zach -- Free Software Download: Index, Search Analyze Logs and other IT data in

Re: [Ecls-list] Determining if a pathname refers to a directory

2011-02-26 Thread KDr2
Is this one OK? (ext:file-kind #P/ t) :DIRECTORY (ext:file-kind path follow-links) -- Best Regards, -- KDr2 http://kdr2.net On Sat, Feb 26, 2011 at 8:50 PM, Zach Beane x...@xach.com wrote: If I've gotten a pathname like #p/foo/bar, is there an ecl-specific function I can call to

Re: [Ecls-list] building against system provided libatomic-ops

2011-02-26 Thread Christoph Egger
Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com writes: On Mon, Feb 21, 2011 at 12:52 AM, Christoph Egger christ...@debian.org wrote:    It seems 11.1.1 lost the ability to build against the system provided libatomic-ops (10.3.1 did build against it just fine). Is there

Re: [Ecls-list] Determining if a pathname refers to a directory

2011-02-26 Thread Juan Jose Garcia-Ripoll
$ ls -l |grep tmp drwxr-xr-x 20 jjgarcia jjgarcia680 Feb 20 23:59 tmp $ ln -sf tmp foo $ ecl -norc -eval '(print (truename foo))' -eval '(quit)' #P/Users/jjgarcia/tmp/ I would rather use this method. It is more portable and FILE-KIND may or may not exist in the future! Juanjo --

Re: [Ecls-list] building against system provided libatomic-ops

2011-02-26 Thread Juan Jose Garcia-Ripoll
On Sat, Feb 26, 2011 at 5:38 PM, Christoph Egger christ...@debian.orgwrote: It *seems* the resulting binaries do not use that internally built lib -- bot why is it still build? Because it is my intention to export the CAS and other atomic operations. Does the current build fail on your system

[Ecls-list] Fwd: Making an external signal handler play nice with embedded ECL

2011-02-26 Thread Juan Jose Garcia-Ripoll
-- Forwarded message -- From: Nils Bruin nbr...@cecm.sfu.ca Date: Sat, Feb 26, 2011 at 3:34 AM Subject: Re: [Ecls-list] Making an external signal handler play nice with embedded ECL To: Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com Dear Juanjo, Thank you! That is

Re: [Ecls-list] Making an external signal handler play nice with embedded ECL

2011-02-26 Thread Juan Jose Garcia-Ripoll
On Sat, Feb 26, 2011 at 3:34 AM, Nils Bruin nbr...@cecm.sfu.ca wrote: I did not quite understand the mprotect trick first but I think I do now. Let me verify: - If the ECL signal handler finds that the interrupted code is not safe, then the handler stores the signal information and marks env

Re: [Ecls-list] Determining if a pathname refers to a directory

2011-02-26 Thread Juan Jose Garcia-Ripoll
On Sat, Feb 26, 2011 at 8:33 PM, Zach Beane x...@xach.com wrote: Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com writes: $ ls -l |grep tmp drwxr-xr-x 20 jjgarcia jjgarcia680 Feb 20 23:59 tmp $ ln -sf tmp foo $ ecl -norc -eval '(print (truename foo))' -eval '(quit)'

[Ecls-list] ECL ships with libffi

2011-02-26 Thread Juan Jose Garcia-Ripoll
As the subject suggests, ECL's source tree now contains a subset of libffi (*) and this library is configured and built automatically. It remains to integrate this library in the Windows build. The main obstacle is that libffi does not come with a set of makefiles for Windows -- it just has a

[Ecls-list] RUN-PROCESS with input from string.

2011-02-26 Thread Rupert Swarbrick
Hi there, I'm busy trying to port some website code to work with ECL as well as SBCL. To do so, I'm trying to write a function that will create a process with a given string as standard input. On sbcl, I'd do the following: (with-input-from-string (s str) (sb-ext:run-program program args