|
|
1.1 ! root 1: #include "../h/param.h" ! 2: #include "../h/systm.h" ! 3: ! 4: /* ! 5: * Return the time according to the chaos TIME protocol, in a long. ! 6: * No byte shuffling need be done here, just time conversion. ! 7: */ ! 8: ch_time(tp) ! 9: register long *tp; ! 10: { ! 11: *tp = time; ! 12: *tp += 60L*60*24*((1970-1900)*365L + 1970/4 - 1900/4); ! 13: } ! 14: ch_uptime(tp) ! 15: register long *tp; ! 16: { ! 17: *tp = (time - bootime) * 60L; ! 18: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.