~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to docs/linuxex/ex54.pp

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Program Example54;
2
 
 
3
 
uses BaseUnix,Termio;
4
 
 
5
 
{ Program to demonstrate the IOCtl function. }
6
 
 
7
 
var
8
 
  tios : Termios;
9
 
 
10
 
begin
11
 
  {$ifdef FreeBSD}
12
 
    fpIOCtl(1,TIOCGETA,@tios);  // these constants are very OS dependant.
13
 
                                // see the tcgetattr example for a better way
14
 
  {$endif}
15
 
  WriteLn('Input Flags  : $',hexstr(tios.c_iflag,8));
16
 
  WriteLn('Output Flags : $',hexstr(tios.c_oflag,8));
17
 
  WriteLn('Line Flags   : $',hexstr(tios.c_lflag,8));
18
 
  WriteLn('Control Flags: $',hexstr(tios.c_cflag,8));
19
 
end.