epicsTime <=> aitTimeStamp conversions dont work on 64 bit hosts
Bug #541299 reported by
Jeff Hill
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Medium
|
Jeff Hill |
Bug Description
epicsTime.cpp doesnt want to be dependent on gdd.h so it made a private definition of aitTimeStamp. Unfortunately, it appears that gdd was changed to use size locked types and epicsTime.cpp wasnt updated to match.
epicsTime.cpp
class epicsShareClass aitTimeStamp {
...
//private:
unsigned long tv_sec;
unsigned long tv_nsec;
private:
static const unsigned epicsEpochSecPa
aitHelpers.h
typedef struct {
aitUint32 tv_sec;
aitUint32 tv_nsec;
} aitTimeStamp;
Original Mantis Bug: mantis-266
http://
To post a comment you must log in.
I am experimenting with this patch
cvs diff -u -wb -i -- epicsTime.cpp (in directory D:\users\ hill\R3. 14.dll_ hell_fix\ epics\base\ src\libCom\ osi\) ======= ======= ======= ======= ======= ======= ======= ======= ==== epicsmgr/ cvsroot/ epics/base/ src/libCom/ osi/epicsTime. cpp,v
Index: epicsTime.cpp
=======
RCS file: /net/phoebus/
retrieving revision 1.25.2.8
diff -c -u -w -b -i -r1.25.2.8 epicsTime.cpp
cvs diff: conflicting specifications of output style
--- epicsTime.cpp 21 Mar 2006 00:56:30 -0000 1.25.2.8
+++ epicsTime.cpp 22 Jun 2006 00:04:01 -0000
@@ -56,8 +56,8 @@
//
class aitTimeStamp {
public:
- unsigned long tv_sec;
- unsigned long tv_nsec;
+ epicsUInt32 tv_sec;
+ epicsUInt32 tv_nsec;
};
static const unsigned tmStructEpochYear = 1900;
***** CVS exited normally with code 1 *****