fpc/fcl/unix/pipes.inc

47 lines
1.1 KiB
PHP

{
$Id$
This file is part of the Free Pascal run time library.
Copyright (c) 1999-2000 by Michael Van Canneyt
Linux specific part of pipe stream.
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.
**********************************************************************}
Uses
{$ifdef ver1_0}
Linux
{$else}
Unix
{$endif}
;
Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;
begin
{$ifdef ver1_0}
Result := AssignPipe (Inhandle,OutHandle);
{$else}
Result := (AssignPipe (Inhandle,OutHandle)<>-1);
{$endif}
end;
{
$Log$
Revision 1.7 2003-11-22 12:47:07 sg
* Fixed Marco's fix to make the pipes unit compiling in both branches again
Revision 1.6 2003/11/14 11:08:50 marco
* assignpipe fix
Revision 1.5 2002/09/07 15:15:29 peter
* old logs removed and tabs fixed
}