Okay, I’ve seen enough interest on NTP for QNX recently for me to wade in
again.
The qnx-ntp archive is for NTP version 1 and is apparently incomplete. I
could never get it to run correctly, though I didn’t spend a lot of time
trying.
Rather, I downloaded the xntpd3-5f distribution, also available in the same
directory, but I had to add an adjtime() function to introduce the
qnx_adjtime() function to NTP. You may wish to do the same.
You may also wish to write your own settimeofday() function, as the
(undocumented) Watcom library call ignores the tv_usec parameter passed to
it.
I’ve also recently partially ported NTP version 4.1.1 (not the latest) to
QNX 4.25, and was considering submitting it for inclusion in the /usr/free
tree, but I don’t know if anyone is actively maintaining the tree.
Lyle
“summer” <gpjin@nairc.ac.cn> wrote in message
news:achh1r$ol5$1@inn.qnx.com…
hi,I want to use NTP to synchronize my PCs(linux and windows) from qnx,and
also I have downloaded the software ntp.tar from > www.qnx.com> . when i want
to
build my NTP like this(just as described in readme):
1 zcat qnx-ntp.tgz | tar -xvof -
(this has done,and I have got three files:
qnx-ntp/readme
qnx-ntp/ntp.patch
qnx-ntp/ntp.tar
2 mkdir ntp(done)
3 cd ntp
4 tar -xvof …/ntp.tar(done)
5 patch -p <…/qnx-ntp.patch
system tells me:“patch not found”
or
“can’t find the file or directory”
why?and how to do?
Is there any one has ever built own NTP ?
can you give me a hand?
thanks