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

2000/0310/boot/settime.c (diff list | history)

1999/0305/sys/src/9/boot/settime.c:41,572000/0310/sys/src/9/boot/settime.c:41,57 (short | long | prev | next)
1992/0909    
		f = open(timeserver, ORDWR); 
1992/0318    
		if(f < 0) 
			return; 
1993/0330    
		if(mount(f, "/n/boot", MREPL, "") < 0){ 
2000/0310    
		if(mount(f, "/mnt", MREPL, "") < 0){ 
1993/0501    
			warning("settime mount"); 
1993/0330    
			close(f); 
			return; 
		} 
1992/0318    
		close(f); 
		if(stat("/n/boot", dirbuf) < 0) 
2000/0310    
		if(stat("/mnt", dirbuf) < 0) 
1992/0318    
			fatal("stat"); 
		convM2D(dirbuf, &dir); 
		sprint(dirbuf, "%ld", dir.atime); 
		unmount(0, "/n/boot"); 
2000/0310    
		unmount(0, "/mnt"); 
1992/0318    
	} 
 
	f = open("#c/time", OWRITE); 


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