pipes.inc 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt
  5. Linux specific part of pipe stream.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. Uses
  13. {$ifdef ver1_0}
  14. Linux
  15. {$else}
  16. Unix
  17. {$endif}
  18. ;
  19. Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;
  20. begin
  21. {$ifdef ver1_0}
  22. Result := AssignPipe (Inhandle,OutHandle);
  23. {$else}
  24. Result := (AssignPipe (Inhandle,OutHandle)<>-1);
  25. {$endif}
  26. end;
  27. {
  28. $Log$
  29. Revision 1.8 2005-02-14 17:13:18 peter
  30. * truncate log
  31. }