File:  [Research Unix] / researchv8dc / sys / chunix / chtime.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

#include "../h/param.h"
#include "../h/systm.h"
/*
 * Return the time according to the chaos TIME protocol, in a long.
 * No byte shuffling need be done here, just time conversion.
 */
ch_time(tp)
register long *tp;
{
	*tp = time;
	*tp += 60L*60*24*((1970-1900)*365L + 1970/4 - 1900/4);
}

unix.superglobalmegacorp.com

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