46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<meta name="Author" content="jba">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<center>
|
|
<h2>Converting an EPICS R3.14.6 application to R3.14.7</h2>
|
|
</center>
|
|
|
|
<p>This document describes how to convert a R3.14.6 application so that it
|
|
builds with release R3.14.7.</p>
|
|
|
|
|
|
<h3>State Notation Compiler flags</h3>
|
|
|
|
<blockquote>
|
|
To make the run-time code reentrant, thus allowing more than one
|
|
instance of the state program to run on an IOC add the line
|
|
<pre><name>_SNCFLAGS += +r"</pre> to the Makefile, replacing <name> with the
|
|
state notation language code file name.
|
|
</blockquote>
|
|
|
|
<h3>epicsExit</h3>
|
|
<blockquote>
|
|
Code that calls exit or atexit should change these calls to epicsExit
|
|
and epicsAtExit. epicsAtexit was created because of problems on
|
|
vxWorks and windows with the implementation of atexit,
|
|
i.e. neither of these systems implements exit and atexit according to the POSIX standard.
|
|
</blockquote>
|
|
<blockquote>
|
|
Add the following lines
|
|
<blockquote>
|
|
<pre>
|
|
#include "epicsExit.h"
|
|
epicsExit(0);
|
|
</pre>
|
|
</blockquote>
|
|
</blockquote>
|
|
|