14 lines
		
	
	
		
			224 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			224 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| #include <lib.h>
 | |
| #define time	_time
 | |
| #include <time.h>
 | |
| 
 | |
| PUBLIC time_t time(tp)
 | |
| time_t *tp;
 | |
| {
 | |
|   message m;
 | |
| 
 | |
|   if (_syscall(FS, TIME, &m) < 0) return( (time_t) -1);
 | |
|   if (tp != (time_t *) 0) *tp = m.m2_l1;
 | |
|   return(m.m2_l1);
 | |
| }
 | 
