Michael Davidsaver and Martin Konrad
e6914f3b80
osdSockUnsentCount.c check for existance of SIO_TCP_INFO
2020-02-20 15:37:18 -05:00
zimoch and Martin Konrad
d2d8674cb9
use EPICS_PRIVATE_API macro and fix bug with darwin/ios
2019-11-13 14:02:25 -05:00
zimoch and Martin Konrad
6f193242e0
renamed epicsSocketCountUnsentBytes to epicsSocketUnsentCount and moved it to osi/os/
2019-11-13 14:02:23 -05:00
zimoch and Martin Konrad
39e8ccdef4
fix bug from commit f85454. Apparently epicsExportSharedSymbols is needed even though epicsExport.h is included
2019-11-13 13:49:28 -05:00
zimoch and Martin Konrad
eb8992a750
epicsSocketCountUnsentBytes returns -1 on failure
2019-11-13 13:49:27 -05:00
zimoch and Martin Konrad
62fb49f93b
bugfix: memmove'ed to much
2019-11-13 13:49:27 -05:00
zimoch and Martin Konrad
a5c9db8c8e
epicsSockCountUnsentBytes renamed to epicsSocketCountUnsentBytes
2019-11-13 13:49:26 -05:00
zimoch and Martin Konrad
04e752c83a
moved logClientSendMessage and made it static
2019-11-13 13:49:26 -05:00
zimoch and Martin Konrad
a16ce877e7
fix wrong function name in comment
2019-11-13 13:49:26 -05:00
zimoch and Martin Konrad
15f28f1183
sending 0 bytes helps to detect broken connections on some systems (but is undefined behavior on Linux, fails on vxWorks and is a documented no-op on Windows)
2019-11-13 13:49:25 -05:00
zimoch and Martin Konrad
9c18ce007a
cannot print sockets with %d in Windows, they are not small ints but maybe pointers.
2019-11-13 13:49:25 -05:00
zimoch and Martin Konrad
765af2efea
ask logClient socket how many bytes are still in the send queue and don't discard them in case the connection turns out broken.
2019-11-13 13:49:24 -05:00
zimoch and Martin Konrad
059c385286
use dynamic debug flag for logClient
2019-11-13 13:49:24 -05:00
zimoch and Martin Konrad
feb1f9b0df
increase error message buffer size for long (Windows) error messges
2019-11-13 13:49:23 -05:00
zimoch and Martin Konrad
9d9840ad1e
improve logClientShow to show unsent bytes on level 2 (and fix level 1)
2019-11-13 13:49:23 -05:00
zimoch and Martin Konrad
af73e4cf65
removed unneeded include
2019-11-13 13:49:23 -05:00
zimoch and Martin Konrad
ad861a0617
no need to delay startup only because log server is currently not available
2019-11-13 13:49:22 -05:00
zimoch and Martin Konrad
1b88e834d6
send pending log messages directly after connecting
2019-11-13 13:49:22 -05:00
zimoch and Martin Konrad
e000ea4913
avoid needless memmove calls
2019-11-13 13:49:21 -05:00
zimoch and Martin Konrad
06f1a8ec23
elimitate duplicate code in logClient
2019-11-13 13:49:21 -05:00
zimoch and Martin Konrad
cf2658be53
do not discard unsent messages when log server has closed connection, instead try to send them after reconnect
2019-11-13 13:49:20 -05:00
zimoch and Martin Konrad
74a403090b
speed up logRestart thread termination at exit
2019-11-13 13:49:20 -05:00
zimoch and Martin Konrad
dc123a0a37
don't send errlog on all logClients
2019-11-13 13:49:20 -05:00
Andrew Johnson
3881328f2f
Merge branch 'vxworks-tz-support' into 3.15
2019-10-22 15:32:46 -05:00
Michael Davidsaver
73fec88168
replace CALLBACK -> epicsCallback
...
git grep -l -w CALLBACK -- src|xargs sed -i -e 's/\bCALLBACK\b/epicsCallback/g'
with exceptions in callback.h
2019-09-09 16:22:20 -07:00
Michael Davidsaver
2db2f1a53f
Merge remote-tracking branch 'konrad/fix-compiler-warnings' into 3.15
...
* konrad/fix-compiler-warnings:
epicsTime: rely on implicit copy constructor
iocLogServer: check return values
Fix potential buffer overflow in iocLogServer
Fix weird use of strncpy
2019-06-24 18:21:32 -07:00
Andrew Johnson
e75a72ef76
VxWorks: Mark undetected underflow parse test as ToDo
2019-06-07 17:22:40 -05:00
Andrew Johnson
33e099a51b
Fix VxWorks osiSockOptMcastLoop_t => char
...
Repairs osiSockTest
2019-06-07 17:21:18 -05:00
Andrew Johnson
96998f55e0
Have VxWorks call tz2timezone() once clock is sync'd
2019-06-07 14:55:26 -05:00
Andrew Johnson
b57f02ece2
epicsTimeTo[GM]TM(): Allow pNSecDest==NULL
2019-06-07 13:26:24 -05:00
Andrew Johnson
b0db6568ea
Replace EPICS_TIMEZONE envParam with EPICS_TZ
...
Adjust rtems_init() to use it.
2019-06-07 13:24:39 -05:00
Andrew Johnson
30812c23f0
Internal cleanup in osiClockTime.c
2019-06-07 13:17:35 -05:00
Andrew Johnson
5cfff383b2
Synchronization hook support for osiClockTime
2019-06-07 13:16:42 -05:00
Martin Konrad
1f95d0db12
epicsTime: rely on implicit copy constructor
...
When a custom copy constructor is defined the assignment operator
also needs to be defined explicitly. For this simple class the
implicit copy ctor/assignment operator are sufficient, though. This
fixes a warning emitted by GCC9.
2019-04-25 11:00:39 -04:00
Martin Konrad
e02c5c3026
iocLogServer: check return values
...
No serious issues here just fixing some warnings.
2019-04-24 22:25:31 -04:00
Martin Konrad
8e9d75ad71
Fix potential buffer overflow in iocLogServer
2019-04-24 22:25:31 -04:00
Eric Norum and Andrew Johnson
d41355e0fc
Add error checking to the copy-back loop in truncateFile()
2018-12-14 16:06:38 -06:00
Eric Norum and Andrew Johnson
a5aa5459e3
Drop extraneous extern "C"
2018-12-14 16:06:37 -06:00
Eric Norum and Andrew Johnson
6201d37756
Remove epicsTempName() routine
...
It's unsafe and generates obnoxious warnings on modern compilers.
This also replaces internal useage with epicsTempFile().
There appears to be no external code that calls this routine.
2018-12-14 16:06:36 -06:00
Andrew Johnson
49f5527cd7
iocsh: Add protection if realloc() fails
2018-12-06 16:35:30 -06:00
Andrew Johnson
ee90dffd40
Add flush to the iocsh errlog command
2018-12-06 16:33:20 -06:00
Ralph Lange
4e865a03d8
libCom/osi: fix epicsEnvUnset for WIN32 and solaris
2018-10-11 15:12:10 +02:00
Ralph Lange
9a4febd3bc
Merge Dirk Zimoch's 'epicsEnvUnset' branch into 3.15
2018-10-11 11:42:19 +02:00
Ralph Lange
9943796f7f
libCom/osi: fix recent epicsStdio.h change for gcc 2.x
2018-10-08 15:46:50 +02:00
zimoch
3cb72ec209
Merge branch '3.15' into epicsEnvUnset
...
Conflicts:
documentation/RELEASE_NOTES.html
2018-10-08 11:02:03 +02:00
zimoch
c3995a9d63
added simple test case for epicsEnvUnset
2018-10-08 10:48:09 +02:00
zimoch
ce3eadde34
add missing epicsEnvUnset to header
2018-10-08 10:37:34 +02:00
Ralph Lange
d35835659c
libCom/osi: Add epicsStdio functions to std namespace; allow to skip macro magic
...
(fixes lp:1786927)
2018-10-05 10:54:10 +02:00
zimoch
65714033ea
remove compiler warning
2018-10-03 15:29:30 +02:00
zimoch
7151fbe498
implement epicsEnvUnset
2018-10-03 15:18:59 +02:00