Lines Matching defs:time
45 * sets time, obtaining value from host
46 * on the tcp/time socket.
51 #include <sys/time.h>
61 * The timeserver returns with time of day in seconds since
62 * Jan 1, 1900. We must subtract 86400(365*70 + 17) to get time
69 * Before setting the system time, the value returned by the
71 * is before the time this program was written it cannot be
84 uint32_t time;
103 * getaddrinfo() may take a long time, because it can involve
116 rc = getaddrinfo(argv[1], "time", &hints, &res);
152 if (read(s, (char *)&time, sizeof (time)) != sizeof (time)) {
158 time = ntohl(time) - TOFFSET;
160 if (time < WRITTEN) {
161 (void) fprintf(stderr, "didn't get plausible time from %s\n",
166 timestruct.tv_sec = time;
169 perror("couldn't set time of day");
184 (void) fputs("couldn't contact time server\n", stderr);