Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: iocshCmd, redirection, and function pointers
From: Eric Norum <wenorum@lbl.gov>
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Wed, 14 Mar 2012 08:39:11 -0700
On Mar 14, 2012, at 3:12 AM, Dirk Zimoch wrote:

> Eric Norum wrote:
>> For I/O redirection to work a source file must include epicsStdioRedirect.h.  
> 
> This sucks.

Perhaps, but it does work across all supported platforms.

> 
> It this is the case, I would say that there is something wrong with the EPICS redirection. Code should not need to know about its "environment". This contradicts any good programming practice.

When this was originally implemented we felt it should be optional.  Perhaps now after 10 years in the field we should just add
#include <epicsStdioRedirect.h>
in epicsStdio.h.

-- 
Eric Norum
wenorum@lbl.gov



Replies:
RE: iocshCmd, redirection, and function pointers Kim, Kukhee
Re: iocshCmd, redirection, and function pointers Andrew Johnson
References:
iocshCmd, redirection, and function pointers Allison, Stephanie
Re: iocshCmd, redirection, and function pointers Eric Norum
Re: iocshCmd, redirection, and function pointers Dirk Zimoch

Navigate by Date:
Prev: Synchronising CA shut down michael.abbott
Next: ENV Variables in EDM Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: iocshCmd, redirection, and function pointers Dirk Zimoch
Next: RE: iocshCmd, redirection, and function pointers Kim, Kukhee
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·