Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: simon.j.wright@gecm.com (Simon Wright)
Subject: POSIX on DU3.2?
Date: 1996/11/04	[thread overview]
Message-ID: <x7v4tj5sy6o.fsf@luthien.frlngtn.gmcs.gecm.com> (raw)


We are trying to port some code from Solaris, and to start with we tried
the following little snippet:

#include <stdio.h>
#include <time.h>

void main()
{ struct timespec currtime;
  int retv;

  retv = clock_gettime(CLOCK_REALTIME, &currtime);
  printf("sec %d nsec %ld\n", (int) currtime.tv_sec, currtime.tv_nsec);
}

which fails to find clock_gettime during the link. (We also tried
<timers.h>).

Help! What should we be doing?

-- 
Simon Wright                                          (G-net) +842-1778
Ferranti Naval Systems                        (voice) +44(0)1705-701778
GEC-Marconi S3I Combat Systems Division         (fax) +44(0)1705-701800



                 reply	other threads:[~1996-11-04  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox