Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!ngdc2.colorado.edu!mre From: mre@ngdc2.colorado.edu (Marcus O. Ertle) Newsgroups: comp.unix.ultrix Subject: Help! - gettimeofday(2) fails with errno = 14 Message-ID: <14346@boulder.Colorado.EDU> Date: 29 Nov 89 18:56:23 GMT Sender: news@boulder.Colorado.EDU Reply-To: mre@ngdc2.colorado.edu (Marcus O. Ertle) Distribution: usa Organization: National Geophysical Data Center, Boulder, Colorado Lines: 25 I am running ULTRIX 3.1 on a VAX/780 and have run into a problem with gettimeofday(2). The following program: /* tcheck */ #include #include main () { struct timeval *tp; struct timezone *tzp; if (gettimeofday(tp, tzp) != 0) { printf("Error: %d\n", errno); exit (1); }; printf("Time (in seconds) since epoch: %10.2f\n", tp->tv_sec); } returns: Error: 14 What am I doing wrong? Please E-mail if possible.