termio.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by Peter Vreman
  4. member of the Free Pascal development team.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This file contains the termios interface.
  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. {$IFNDEF FPC_DOTTEDUNITS}
  13. unit termio;
  14. {$ENDIF FPC_DOTTEDUNITS}
  15. interface
  16. {$inline on}
  17. {$IFDEF FPC_DOTTEDUNITS}
  18. Uses UnixApi.Types,UnixApi.Base,System.CTypes; // load base UnixApi.Unix typing
  19. {$ELSE FPC_DOTTEDUNITS}
  20. Uses UnixType,BaseUnix,ctypes; // load base unix typing
  21. {$ENDIF FPC_DOTTEDUNITS}
  22. // load types + consts
  23. {$i termios.inc}
  24. // load default prototypes from unix dir.
  25. {$i termiosh.inc}
  26. implementation
  27. // load implementation for prototypes from current dir.
  28. {$i termiosproc.inc}
  29. // load ttyname from unix dir.
  30. {$i ttyname.inc}
  31. end.