EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Asyn/VXI-11 problems
From: Eric Norum <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: TECHTALK tech-talk <[email protected]>
Date: Fri, 21 Sep 2007 10:03:18 -0500
The code in question was added by Marty Kraimer -- there's nothing in the CVS log to suggest why, though.
I'm leaning towards doing as Andrew and Benjamin suggest, but I still have this niggling feeling that the extra check must have been put there for a reason.


On Sep 21, 2007, at 9:52 AM, Andrew Johnson wrote:

Eric Norum wrote:
which leads to pseudo errors; errno should be checked only if the return
value is abnormal. It should be just


    if(stat!=RPC_SUCCESS) {
        /* error handling */
    }
Both the places where this code appears are preceded by assignments of 0 to errno. The fact that this was done makes me think that the code was placed there for a reason. There appear to be several substandard versions of RPC libraries out there.

That may be true (I have no knowledge), but on vxWorks at least what Ben says is right — if you haven't been handed an error return status you should assume that any value placed in errno has been handled internally by the routine you called. I believe that older versions of auto-save/ restore suffered from the same misapprehension and generated bogus error messages as a result, but I think Tim Mooney has cleaned them all up now.


- Andrew
--
When a distinguished but elderly scientist states that something is
possible, he is almost certainly right.  When he states that something
is impossible, he is very probably wrong.  -- Arthur C. Clarke

-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793




Replies:
Re: Asyn/VXI-11 problems Benjamin Franksen
References:
Asyn/VXI-11 problems Benjamin Franksen
Re: Asyn/VXI-11 problems Eric Norum
Re: Asyn/VXI-11 problems Benjamin Franksen
Re: Asyn/VXI-11 problems Benjamin Franksen
Re: Asyn/VXI-11 problems Eric Norum
Re: Asyn/VXI-11 problems Andrew Johnson

Navigate by Date:
Prev: Re: Asyn/VXI-11 problems Andrew Johnson
Next: Re: Asyn/VXI-11 problems Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Asyn/VXI-11 problems Andrew Johnson
Next: Re: Asyn/VXI-11 problems Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·