Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - problem with clock_settime() function on QNX 6.4.0: Page 1 of 17 (17 Items)
   
problem with clock_settime() function on QNX 6.4.0  
hi,
I am migrating our application from QNX 630 to QNX 6.4.0 on PPC 8270 target.
I am facing issues with clocksettime() function to set the system clock.
The input parameter to that function is the address of a  time spec structure.
The values passed to tv_sec,tv_nsec are fine.
But unable to set the system clock as per the values.
In the QNX release notes its noted that if tv_nsec > 100 million the function will return an error EINVAL.
The function is not returning any error still its not setting the system time.
Do i need to set any proccessor plag for the function to work??
Is there any limitation on "tv_sec " value also??
I have taken care that the time should not cross "year 2038"
thwn why the function does not work???