3a2d225682d79f79c84852dbcb98d54cb250d62f
fprintf returns a negative value in order to signal an error. We have to detect this situation in epicsStrPrintEscaped and return a negative when fprintf returns a negative value in order to give the calling code a chance to detect this situation. The old implementation (of simply accumulating the return values of fprintf) was wrong anyway, because it would not only lead to an error in fprintf to be lost but would also cause the returned number to be too small (not representing the actual number of bytes written) in such a case. The only case where the old implementation would work correctly was when all calls to fprintf succeeded or all these calls failed.
--------------------------------------------------------- EPICS Base - the central core of a control system toolkit --------------------------------------------------------- Copyright UChicago Argonne LLC, as Operator of Argonne National Laboratory. Copyright (c) 1991-2003 The Regents of the University of California, as Operator of Los Alamos National Laboratory. EPICS Base is distributed subject to a Software License Agreement found in the file LICENSE that is included with this distribution. --------------------------------------------------------- Installation and release information can be found in the various files in the documentation subdirectory. Additional information about EPICS including mailing list archives and subscription instructions, documentation and training materials, additional components, links to other websites etc. is available on the EPICS home page at https://epics.anl.gov/ $Format:%cD$ $Format:%H$ https://code.launchpad.net/epics-base
Description
See the PSI-* branches for releases including our PSI setup and modifications.
The branches without PSI prefix are original upstream.
https://github.com/epics-base/epics-base.git
Languages
C
65.7%
C++
21.3%
Perl
5.8%
HTML
3.4%
Makefile
1.6%
Other
2%