mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 23:30:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| {
 | |
|    $Id$
 | |
|    This file is part of the Free Pascal run time library.
 | |
|    Copyright (c) 2004 by Michael Van Canneyt,
 | |
|    member of the Free Pascal development team.
 | |
| 
 | |
|    See the file COPYING.FPC, included in this distribution,
 | |
|    for details about the copyright.
 | |
| 
 | |
|    This program is distributed in the hope that it will be useful,
 | |
|    but WITHOUT ANY WARRANTY;without even the implied warranty of
 | |
|    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 | |
| 
 | |
| **********************************************************************}
 | |
| 
 | |
| {$ifdef usestime}
 | |
| 
 | |
| function stime (t:ptime_t):cint; 
 | |
| begin
 | |
|  stime:=do_SysCall(Syscall_nr_stime,TSysParam(t));
 | |
| end;
 | |
| 
 | |
| function fpsettimeofday(tp:ptimeval;tzp:ptimezone):cint;
 | |
| begin
 | |
|   fpsettimeofday:=stime(@tp^.tv_sec);
 | |
| end;
 | |
| 
 | |
| {$else}
 | |
| 
 | |
| function fpsettimeofday(tp:ptimeval;tzp:ptimezone):cint;
 | |
| begin
 | |
|   fpsettimeofday:=do_SysCall(Syscall_nr_settimeofday,TSysParam(@tp),TSysParam(tzp));
 | |
| end;
 | |
| 
 | |
| {$endif}
 | |
| 
 | |
| {
 | |
|   $Log$
 | |
|   Revision 1.7  2005-02-13 20:01:38  peter
 | |
|     * include file cleanup
 | |
| 
 | |
|   Revision 1.6  2004/12/02 18:24:35  marco
 | |
|    * fpsettimeofday.
 | |
| 
 | |
|   Revision 1.5  2004/10/31 18:49:02  marco
 | |
|    * cdecl for FPC_USE_LIBC
 | |
| 
 | |
|   Revision 1.4  2004/10/30 21:18:23  marco
 | |
|    * more commits from unix interface cleanup
 | |
| 
 | |
|   Revision 1.3  2004/10/27 04:22:29  marco
 | |
|   *** empty log message ***
 | |
| 
 | |
|   Revision 1.2  2004/10/27 04:22:04  marco
 | |
|    * cvs log and extra endif
 | |
| 
 | |
| }
 | |
| 
 | 
