EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: FW: ms and setvbuf
From: "Jeff Hill" <[email protected]>
To: "'EPICS core-talk'" <[email protected]>
Date: Tue, 29 Nov 2005 10:14:22 -0700

-----Original Message-----
From: Jeff Hill [mailto:[email protected]] 
Sent: Tuesday, November 29, 2005 10:13 AM
To: 'Ralph Lange'
Cc: Janet Anderson ([email protected]); Andrew Johnson ([email protected])
Subject: ms and setvbuf


I resolved mantis 230.

I had a closer look at the MS and the POSIX doc. It appears that there is
confusion between the two related to how the setvbuf arguments will be
interpreted if the user buffer pointer is null. In the POSIX doc it clearly
states that the count only applies if the user pointer isn't nill. In the MS
doc it clearly states that the count is also the size of the internally
allocated buffer when the user pointer is nill. This explains, after sending
your brain to Redmond WA for a lobotomy, why there is an assert fail in
setvbuf if the buffer size is zero.

It seems that a reasonable compromise will be to specify a buffer size of
BUFSIZ (defined by POSIX and fortunately also by windows).

I committed that change.

Jeff
__________________________________________________________
Jeffrey O. Hill               Mail         [email protected]
LANL MS H820                  Voice        505 665 1831
Los Alamos NM 87545 USA       Fax          505 665 5107





Navigate by Date:
Prev: Re: R3.14.8 makeBaseApp.pl - File::Find problem on cygwin Ralph Lange
Next: release notes update Jeff Hill
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: R3.14.8 makeBaseApp.pl - File::Find problem on cygwin Andrew Johnson
Next: release notes update Jeff Hill
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·