fpc/rtl/unix/sysunixh.inc
peter f4f3ae84d0 * AllowDirectorySeparators and AllowDriveSeparators typed constants
added to allow customization of path and directory parsing in the rtl
  * Use the new sets instead of the hardcoded / and \

git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00

65 lines
1.7 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 = '/';
ExtensionSeparator = '.';
PathSeparator = ':';
AllowDirectorySeparators : set of char = ['\','/'];
AllowDriveSeparators : set of char = [];
{ 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}
AllFilesMask = '*';
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}