On Mon, 2006-01-02 at 11:44 +0100, Hoehle, Joerg-Cyril wrote: > May I suggest you defined a CLCS condition, so there's > a) a known slot where to get the errno value (instead of pulling it > out of a string) > b) a known condition and a possibility to hook in with HANDLER-BIND > etc.? > > I believe exporting an interface to errno from CFFI will avoid many > headaches to users (writing unportable or otherwise broken code to get > its value). Please go ahead and include this stuff in the main tree, > not examples/.
Yeah, I would like to do this as well, but I'm still figuring out how to get access to 'errno' in all the supported Lisps. > >haven't found anything in Allegro CL or CLISP (Jörg?) for this yet. > See clisp/modules/bindings/glibc/linux.lisp as a source of inspiration > & read the comments about errno there. It's hairy indeed. I'm not an expert CLISP user---is this not built as a part of the standard image? I went APROPOSing around for "errno" and didn't find anything. James _______________________________________________ cffi-devel mailing list cffi-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel