#include <sys/times.h>
#include <tickLib.h>
#include <sysLib.h>
Go to the source code of this file.
#define osdTickGet tickGet |
Definition at line 45 of file osdTime.cpp.
47 static unsigned bequiet;
62 ret = recvfrom(ntpSocket, junk,
sizeof(junk), MSG_DONTWAIT,
NULL,
NULL);
63 if (ret == -1 && errno == EAGAIN) {
68 printf(
"osdNTPGet cleaner error: %s\n", strerror(errno));
int rtems_bsdnet_get_ntp(int, int(*)(), struct timespec *)
Definition at line 81 of file osdTime.cpp.
83 struct sockaddr_in myAddr;
85 ntpSocket = socket (AF_INET, SOCK_DGRAM, 0);
87 printf(
"osdNTPInit() Can't create socket: %s\n", strerror (errno));
90 memset (&myAddr, 0,
sizeof myAddr);
91 myAddr.sin_family = AF_INET;
92 myAddr.sin_port = htons (0);
93 myAddr.sin_addr.s_addr = htonl (INADDR_ANY);
94 if (bind (ntpSocket, (
struct sockaddr *)&myAddr,
sizeof myAddr) < 0) {
95 printf(
"osdNTPInit() Can't bind socket: %s\n", strerror (errno));
void osdNTPReport |
( |
void |
| ) |
|