mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 22:29:45 +01:00 
			
		
		
		
	 57d5ce9713
			
		
	
	
		57d5ce9713
		
	
	
	
	
		
			
			+ added kld* syscalls for freeBSD (tested) + changed "directives" macro for freeBSD unit to "extdecl" for Lazarus + changed MAXPATHLEN from 255 (wrong on all unices known to fpc since 1993) to 1024 for non-linux and 4096 for linux as per source code (2.4+ for linux, 1993 BSD for BSDs, Solaris 10) git-svn-id: trunk@4779 -
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| {
 | |
|     This file is part of the Free Pascal Run time library.
 | |
|     Copyright (c) 2001 by the Free Pascal development team
 | |
| 
 | |
|     This file contains the OS independent declarations of the system unit
 | |
|     for unix styled systems
 | |
| 
 | |
|     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.
 | |
| 
 | |
|  **********************************************************************}
 | |
| 
 | |
| {$define newsignal}
 | |
| 
 | |
| {$I systemh.inc}
 | |
| 
 | |
| {$ifdef cpum68k}
 | |
| { used for single computations }
 | |
| const
 | |
|   BIAS4 = $7f-1;
 | |
| {$endif cpum68k}
 | |
| 
 | |
| const
 | |
|  LineEnding = #10;
 | |
|  LFNSupport = true;
 | |
|  DirectorySeparator = '/';
 | |
|  DriveSeparator = ':';
 | |
|  PathSeparator = ':';
 | |
| { FileNameCaseSensitive is defined below! }
 | |
|  maxExitCode = 255;
 | |
|  {$ifdef LINUX}
 | |
|  MaxPathLen = 4096; // linux has always got to be BIGGER
 | |
|  {$else}
 | |
|  MaxPathLen = 1024; // BSDs since 1993, Solaris 10, Darwin
 | |
|  {$endif}
 | |
|  
 | |
| const
 | |
|   UnusedHandle    = -1;
 | |
|   StdInputHandle  = 0;
 | |
|   StdOutputHandle = 1;
 | |
|   StdErrorHandle  = 2;
 | |
| 
 | |
|   FileNameCaseSensitive : boolean = true;
 | |
|   CtrlZMarksEOF: boolean = false; (* #26 not considered as end of file *)
 | |
| 
 | |
|   sLineBreak = LineEnding;
 | |
|   DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
 | |
| 
 | |
| {$ifndef Solaris}
 | |
| {$ifndef Darwin}
 | |
| var argc:longint;external name 'operatingsystem_parameter_argc';
 | |
|     argv:PPchar;external name 'operatingsystem_parameter_argv';
 | |
|     envp:PPchar;external name 'operatingsystem_parameter_envp';
 | |
| {$endif}
 | |
| {$endif}
 | |
| 
 |