File:  [PGP] / pgp / src / gettime.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:45:27 2018 UTC (8 years, 1 month ago) by root
Branches: phill, MAIN
CVS tags: pgp263i, HEAD
PGP 2.6.3i

/*
 *	Gettimeofday.  Simulate as much as possible.  Only accurate
 *	to nearest second.  tzp is ignored.  Derived from an old
 *	emacs implementation.
 */

#include <sys/types.h>
#include <sys/time.h>

gettimeofday (tp, tzp)
     struct timeval *tp;
     struct timezone *tzp;
{
  extern long time ();

  tp->tv_sec = time ((long *)0);
  tp->tv_usec = 0;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.