plan 9 kernel history: overview | file list | diff list

1999/0305/boot/settime.c (diff list | history)

1999/0113/sys/src/9/boot/settime.c:52,651999/0305/sys/src/9/boot/settime.c:52,57 (short | long | prev | next)
1992/0318    
		convM2D(dirbuf, &dir); 
		sprint(dirbuf, "%ld", dir.atime); 
		unmount(0, "/n/boot"); 
		/* 
		 *  set real time clock if there is one 
		 */ 
		f = open("#r/rtc", ORDWR); 
		if(f > 0){ 
			write(f, dirbuf, strlen(dirbuf)); 
			close(f); 
		} 
	} 
 
	f = open("#c/time", OWRITE); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)