[Ecls-list] EPIPE and C errors

Juan Jose Garcia-Ripoll juanjose.garciaripoll at gmail.com
Mon Sep 24 20:23:31 UTC 2012


On Fri, Sep 21, 2012 at 12:11 AM, Matthew Mondor
<mm_lists at pulsar-zone.net>wrote:

> I noticed that functions such as WRITE-SEQUENCE will signal a condition
> of type SIMPLE-ERROR if EPIPE is returned when writing.  This is
> admitedly in non-standard territory, as only TYPE-ERROR is specified
> for WRITE-SEQUENCE.
>
> I could wrap these calls closely inside a HANDLER-CASE/HANDLER-BIND and
> perhaps signal there another custom condition, but without printing the
> error, it's still awkward for code to determine the exact error cause
> (I don't see an ERRNO slot in the SIMPLE-ERROR condition object).  I
> also wondered if such cases shouldn't actually signal a FILE-ERROR or
> perhaps even a C-ERROR, which could include an ERRNO slot?
>

I would say no ERRNO is needed, provided we have the appropriate error
hierarchy. Right now ECL does not return ERRNO in any of the errors
generated by the C library. To be fair, the errno would be rather useless
unless we exported also a list of constants with values such as EPIPE, etc.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120924/ce96c112/attachment.html>


More information about the ecl-devel mailing list