[Info-vax] yet another sys$qiow question

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Wed Aug 19 07:03:36 EDT 2015


On 2015-08-19 02:46:48 +0000, John Reagan said:

> You don't need memory barriers.  You do need volatile.  The IOSB is 
> written behind your back.  volatile says we have to re-fetch.

If that's the case, then there's a shedload of broken C code around 
(including all of the SYS$EXAMPLES: IOSB references I can find; all of 
those are not declared volatile, no volatile use in tcpip$examples:, 
etc), and the OpenVMS and the C documentation and the OpenVMS and C 
source code examples need updates (e.g. 
<http://h71000.www7.hp.com/commercial/c/docs/5492profile_016.html>), 
and a release note in the C compiler to flag all this stuff.



-- 
Pure Personal Opinion | HoffmanLabs LLC




More information about the Info-vax mailing list