~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to rtl/darwin/termios.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    $Id: termios.inc,v 1.2 2004/02/05 14:00:45 jonas Exp $
3
 
}
4
 
 
5
 
 
6
 
{$PACKRECORDS C}
7
 
 
8
 
  {
9
 
     Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
10
 
    
11
 
     @APPLE_LICENSE_HEADER_START@
12
 
     
13
 
     The contents of this file constitute Original Code as defined in and
14
 
     are subject to the Apple Public Source License Version 1.1 (the
15
 
     "License").  You may not use this file except in compliance with the
16
 
     License.  Please obtain a copy of the License at
17
 
     http://www.apple.com/publicsource and read it before using this file.
18
 
     
19
 
     This Original Code and all software distributed under the License are
20
 
     distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
21
 
     EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
22
 
     INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
23
 
     FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
24
 
     License for the specific language governing rights and limitations
25
 
     under the License.
26
 
     
27
 
     @APPLE_LICENSE_HEADER_END@
28
 
    }
29
 
  { Copyright (c) 1997 Apple Computer, Inc. All Rights Reserved  }
30
 
  {
31
 
     Copyright (c) 1988, 1989, 1993, 1994
32
 
        The Regents of the University of California.  All rights reserved.
33
 
    
34
 
     Redistribution and use in source and binary forms, with or without
35
 
     modification, are permitted provided that the following conditions
36
 
     are met:
37
 
     1. Redistributions of source code must retain the above copyright
38
 
        notice, this list of conditions and the following disclaimer.
39
 
     2. Redistributions in binary form must reproduce the above copyright
40
 
        notice, this list of conditions and the following disclaimer in the
41
 
        documentation and/or other materials provided with the distribution.
42
 
     3. All advertising materials mentioning features or use of this software
43
 
        must display the following acknowledgement:
44
 
          This product includes software developed by the University of
45
 
          California, Berkeley and its contributors.
46
 
     4. Neither the name of the University nor the names of its contributors
47
 
        may be used to endorse or promote products derived from this software
48
 
        without specific prior written permission.
49
 
    
50
 
     THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
51
 
     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52
 
     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53
 
     ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
54
 
     FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55
 
     DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56
 
     OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57
 
     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58
 
     LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59
 
     OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60
 
     SUCH DAMAGE.
61
 
    
62
 
        @(#)termios.h   8.3 (Berkeley) 3/28/94
63
 
    }
64
 
{$ifndef _SYS_TERMIOS_H_}
65
 
{$define _SYS_TERMIOS_H_}
66
 
  {
67
 
     Special Control Characters
68
 
    
69
 
     Index into c_cc[] character array.
70
 
    
71
 
        Name         Subscript  Enabled by
72
 
    }
73
 
  { ICANON  }
74
 
 
75
 
  const
76
 
     VEOF = 0;
77
 
  { ICANON  }
78
 
     VEOL = 1;
79
 
{$ifndef _POSIX_SOURCE}
80
 
  { ICANON together with IEXTEN  }
81
 
 
82
 
  const
83
 
     VEOL2 = 2;
84
 
{$endif}
85
 
  { ICANON  }
86
 
 
87
 
  const
88
 
     VERASE = 3;
89
 
{$ifndef _POSIX_SOURCE}
90
 
  { ICANON together with IEXTEN  }
91
 
 
92
 
  const
93
 
     VWERASE = 4;
94
 
{$endif}
95
 
  { ICANON  }
96
 
 
97
 
  const
98
 
     VKILL = 5;
99
 
{$ifndef _POSIX_SOURCE}
100
 
  { ICANON together with IEXTEN  }
101
 
 
102
 
  const
103
 
     VREPRINT = 6;
104
 
{$endif}
105
 
  {                     7          spare 1  }
106
 
  { ISIG  }
107
 
 
108
 
  const
109
 
     VINTR = 8;
110
 
  { ISIG  }
111
 
     VQUIT = 9;
112
 
  { ISIG  }
113
 
     VSUSP = 10;
114
 
{$ifndef _POSIX_SOURCE}
115
 
  { ISIG together with IEXTEN  }
116
 
 
117
 
  const
118
 
     VDSUSP = 11;
119
 
{$endif}
120
 
  { IXON, IXOFF  }
121
 
 
122
 
  const
123
 
     VSTART = 12;
124
 
  { IXON, IXOFF  }
125
 
     VSTOP = 13;
126
 
{$ifndef _POSIX_SOURCE}
127
 
  { IEXTEN  }
128
 
 
129
 
  const
130
 
     VLNEXT = 14;
131
 
  { IEXTEN  }
132
 
     VDISCARD = 15;
133
 
{$endif}
134
 
  { !ICANON  }
135
 
 
136
 
  const
137
 
     VMIN = 16;
138
 
  { !ICANON  }
139
 
     VTIME = 17;
140
 
{$ifndef _POSIX_SOURCE}
141
 
  { ICANON together with IEXTEN  }
142
 
 
143
 
  const
144
 
     VSTATUS = 18;
145
 
  {                     19         spare 2  }
146
 
{$endif}
147
 
 
148
 
  const
149
 
     NCCS = 20;
150
 
{$ifndef _POSIX_VDISABLE}
151
 
 
152
 
// as in linux freebsd netbsd and openbsd
153
 
// Start
154
 
Type
155
 
  winsize = packed record
156
 
    ws_row,
157
 
    ws_col,
158
 
    ws_xpixel,
159
 
    ws_ypixel : word;
160
 
  end;
161
 
  TWinSize=winsize;
162
 
//End
163
 
 
164
 
  const
165
 
     _POSIX_VDISABLE = $ff;
166
 
{$endif}
167
 
{$ifndef _POSIX_SOURCE}
168
 
  { was #define dname(params) para_def_expr }
169
 
  { argument types are unknown }
170
 
  { return type might be wrong }   
171
 
//  function CCEQ(val,c : longint) : longint;
172
 
// as in freebsd netbsd and openbsd and in /usr/include/sys/termios.h
173
 
{
174
 
 
175
 
  #define CCEQ(val, c)    ((c) == (val) ? (val) != _POSIX_VDISABLE : 0)
176
 
}
177
 
{$endif}
178
 
  {
179
 
     Input flags - software input processing
180
 
    }
181
 
  { ignore BREAK condition  }
182
 
 
183
 
  const
184
 
     IGNBRK = $00000001;
185
 
  { map BREAK to SIGINTR  }
186
 
     BRKINT = $00000002;
187
 
  { ignore (discard) parity errors  }
188
 
     IGNPAR = $00000004;
189
 
  { mark parity and framing errors  }
190
 
     PARMRK = $00000008;
191
 
  { enable checking of parity errors  }
192
 
     INPCK = $00000010;
193
 
  { strip 8th bit off chars  }
194
 
     ISTRIP = $00000020;
195
 
  { map NL into CR  }
196
 
     INLCR = $00000040;
197
 
  { ignore CR  }
198
 
     IGNCR = $00000080;
199
 
  { map CR to NL (ala CRMOD)  }
200
 
     ICRNL = $00000100;
201
 
  { enable output flow control  }
202
 
     IXON = $00000200;
203
 
  { enable input flow control  }
204
 
     IXOFF = $00000400;
205
 
{$ifndef _POSIX_SOURCE}
206
 
  { any char will restart after stop  }
207
 
 
208
 
  const
209
 
     IXANY = $00000800;
210
 
  { ring bell on input queue full  }
211
 
     IMAXBEL = $00002000;
212
 
{$endif}
213
 
  {_POSIX_SOURCE  }
214
 
  {
215
 
     Output flags - software output processing
216
 
    }
217
 
  { enable following output processing  }
218
 
 
219
 
  const
220
 
     OPOST = $00000001;
221
 
{$ifndef _POSIX_SOURCE}
222
 
  { map NL to CR-NL (ala CRMOD)  }
223
 
 
224
 
  const
225
 
     ONLCR = $00000002;
226
 
  { expand tabs to spaces  }
227
 
     OXTABS = $00000004;
228
 
  { discard EOT's (^D) on output)  }
229
 
     ONOEOT = $00000008;
230
 
{$endif}
231
 
  {_POSIX_SOURCE  }
232
 
  {
233
 
     Control flags - hardware control of terminal
234
 
    }
235
 
{$ifndef _POSIX_SOURCE}
236
 
  { ignore control flags  }
237
 
 
238
 
  const
239
 
     CIGNORE = $00000001;
240
 
{$endif}
241
 
  { character size mask  }
242
 
 
243
 
  const
244
 
     CSIZE = $00000300;
245
 
  { 5 bits (pseudo)  }
246
 
     CS5 = $00000000;
247
 
  { 6 bits  }
248
 
     CS6 = $00000100;
249
 
  { 7 bits  }
250
 
     CS7 = $00000200;
251
 
  { 8 bits  }
252
 
     CS8 = $00000300;
253
 
  { send 2 stop bits  }
254
 
     CSTOPB = $00000400;
255
 
  { enable receiver  }
256
 
     CREAD = $00000800;
257
 
  { parity enable  }
258
 
     PARENB = $00001000;
259
 
  { odd parity, else even  }
260
 
     PARODD = $00002000;
261
 
  { hang up on last close  }
262
 
     HUPCL = $00004000;
263
 
  { ignore modem status lines  }
264
 
     CLOCAL = $00008000;
265
 
{$ifndef _POSIX_SOURCE}
266
 
  { CTS flow control of output  }
267
 
 
268
 
  const
269
 
     CCTS_OFLOW = $00010000;
270
 
  { RTS flow control of input  }
271
 
     CRTS_IFLOW = $00020000;
272
 
     CRTSCTS = CCTS_OFLOW or CRTS_IFLOW;
273
 
  { DTR flow control of input  }
274
 
     CDTR_IFLOW = $00040000;
275
 
  { DSR flow control of output  }
276
 
     CDSR_OFLOW = $00080000;
277
 
  { DCD flow control of output  }
278
 
     CCAR_OFLOW = $00100000;
279
 
  { old name for CCAR_OFLOW  }
280
 
     MDMBUF = $00100000;
281
 
{$endif}
282
 
  {
283
 
     "Local" flags - dumping ground for other state
284
 
    
285
 
     Warning: some flags in this structure begin with
286
 
     the letter "I" and look like they belong in the
287
 
     input flag.
288
 
    }
289
 
{$ifndef _POSIX_SOURCE}
290
 
  { visual erase for line kill  }
291
 
 
292
 
  const
293
 
     ECHOKE = $00000001;
294
 
{$endif}
295
 
  {_POSIX_SOURCE  }
296
 
  { visually erase chars  }
297
 
 
298
 
  const
299
 
     ECHOE = $00000002;
300
 
  { echo NL after line kill  }
301
 
     ECHOK = $00000004;
302
 
  { enable echoing  }
303
 
     ECHO = $00000008;
304
 
  { echo NL even if ECHO is off  }
305
 
     ECHONL = $00000010;
306
 
{$ifndef _POSIX_SOURCE}
307
 
  { visual erase mode for hardcopy  }
308
 
 
309
 
  const
310
 
     ECHOPRT = $00000020;
311
 
  { echo control chars as ^(Char)  }
312
 
     ECHOCTL = $00000040;
313
 
{$endif}
314
 
  {_POSIX_SOURCE  }
315
 
  { enable signals INTR, QUIT, [D]SUSP  }
316
 
 
317
 
  const
318
 
     ISIG = $00000080;
319
 
  { canonicalize input lines  }
320
 
     ICANON = $00000100;
321
 
{$ifndef _POSIX_SOURCE}
322
 
  { use alternate WERASE algorithm  }
323
 
 
324
 
  const
325
 
     ALTWERASE = $00000200;
326
 
{$endif}
327
 
  {_POSIX_SOURCE  }
328
 
  { enable DISCARD and LNEXT  }
329
 
 
330
 
  const
331
 
     IEXTEN = $00000400;
332
 
  { external processing  }
333
 
     EXTPROC = $00000800;
334
 
  { stop background jobs from output  }
335
 
     TOSTOP = $00400000;
336
 
{$ifndef _POSIX_SOURCE}
337
 
  { output being flushed (state)  }
338
 
 
339
 
  const
340
 
     FLUSHO = $00800000;
341
 
  { no kernel output from VSTATUS  }
342
 
     NOKERNINFO = $02000000;
343
 
  { XXX retype pending input (state)  }
344
 
     PENDIN = $20000000;
345
 
{$endif}
346
 
  {_POSIX_SOURCE  }
347
 
  { don't flush after interrupt  }
348
 
 
349
 
  const
350
 
     NOFLSH = $80000000;
351
 
 
352
 
  type
353
 
 
354
 
     tcflag_t = dword;
355
 
 
356
 
     cc_t = byte;
357
 
 
358
 
     speed_t = longint;
359
 
  { XXX should be unsigned long  }
360
 
  { input flags  }
361
 
  { output flags  }
362
 
  { control flags  }
363
 
  { local flags  }
364
 
  { control chars  }
365
 
  { input speed  }
366
 
  { output speed  }
367
 
     termios = record
368
 
          c_iflag : tcflag_t;
369
 
          c_oflag : tcflag_t;
370
 
          c_cflag : tcflag_t;
371
 
          c_lflag : tcflag_t;
372
 
          c_cc : array[0..(NCCS)-1] of cc_t;
373
 
          c_ispeed : speed_t;
374
 
          c_ospeed : speed_t;
375
 
       end;
376
 
 
377
 
  {
378
 
     Commands passed to tcsetattr() for setting the termios structure.
379
 
    }
380
 
  { make change immediate  }
381
 
 
382
 
  const
383
 
     TCSANOW = 0;
384
 
  { drain output, then change  }
385
 
     TCSADRAIN = 1;
386
 
  { drain output, flush input  }
387
 
     TCSAFLUSH = 2;
388
 
{$ifndef _POSIX_SOURCE}
389
 
  { flag - don't alter h.w. state  }
390
 
 
391
 
  const
392
 
     TCSASOFT = $10;
393
 
{$endif}
394
 
  {
395
 
     Standard speeds
396
 
    }
397
 
 
398
 
  const
399
 
     B0 = 0;
400
 
     B50 = 50;
401
 
     B75 = 75;
402
 
     B110 = 110;
403
 
     B134 = 134;
404
 
     B150 = 150;
405
 
     B200 = 200;
406
 
     B300 = 300;
407
 
     B600 = 600;
408
 
     B1200 = 1200;
409
 
     B1800 = 1800;
410
 
     B2400 = 2400;
411
 
     B4800 = 4800;
412
 
     B9600 = 9600;
413
 
     B19200 = 19200;
414
 
     B38400 = 38400;
415
 
{$ifndef _POSIX_SOURCE}
416
 
 
417
 
  const
418
 
     B7200 = 7200;
419
 
     B14400 = 14400;
420
 
     B28800 = 28800;
421
 
     B57600 = 57600;
422
 
     B76800 = 76800;
423
 
     B115200 = 115200;
424
 
     B230400 = 230400;
425
 
     EXTA = 19200;
426
 
     EXTB = 38400;
427
 
{$endif}
428
 
  { !_POSIX_SOURCE  }
429
 
 
430
 
  const
431
 
     TCIFLUSH = 1;
432
 
     TCOFLUSH = 2;
433
 
     TCIOFLUSH = 3;
434
 
     TCOOFF = 1;
435
 
     TCOON = 2;
436
 
     TCIOFF = 3;
437
 
     TCION = 4;
438
 
 
439
 
// as in freebsd netbsd and openbsd and in 
440
 
// /usr/include/sys/ttycom.h und ioccom.h
441
 
     
442
 
       IOCTLREAD        = $40000000;
443
 
       IOCTLWRITE       = $80000000;
444
 
       IOCTLVOID        = $20000000;
445
 
 
446
 
        TIOCMODG        = IOCTLREAD+$47400+ 3;  { get modem control state }
447
 
        TIOCMODS        = IOCTLWRITE+$47400+ 4; { set modem control state }
448
 
                TIOCM_LE        =$0001;         { line enable }
449
 
                TIOCM_DTR       =$0002;         { data terminal ready }
450
 
                TIOCM_RTS       =$0004;         { request to send }
451
 
                TIOCM_ST        =$0010;         { secondary transmit }
452
 
                TIOCM_SR        =$0020;         { secondary receive }
453
 
                TIOCM_CTS       =$0040;         { clear to send }
454
 
                TIOCM_CAR       =$0100;         { carrier detect }
455
 
                TIOCM_CD        =TIOCM_CAR;
456
 
                TIOCM_RNG       =$0200;         { ring }
457
 
                TIOCM_RI        =TIOCM_RNG;
458
 
                TIOCM_DSR       =$0400;         { data set ready }
459
 
                                                { 8-10 compat }
460
 
        TIOCEXCL         =IOCTLVOID+$7400+ 13;          { set exclusive use of tty }
461
 
        TIOCNXCL         =IOCTLVOID+$7400+ 14;          { reset exclusive use of tty }
462
 
                                                { 15 unused }
463
 
        TIOCFLUSH        =IOCTLWRITE+$47400+ 16;        { flush buffers }
464
 
                                                { 17-18 compat }
465
 
        TIOCGETA         =IOCTLREAD+$2C7400+ 19; { get termios struct }
466
 
        TIOCSETA         =IOCTLWRITE+$2C7400+ 20; { set termios struct }
467
 
        TIOCSETAW        =IOCTLWRITE+$2C7400+ 21; { drain output, set }
468
 
        TIOCSETAF        =IOCTLWRITE+$2C7400+ 22; { drn out, fls in, set }
469
 
        TIOCGETD         =IOCTLREAD+$47400+ 26; { get line discipline }
470
 
        TIOCSETD         =IOCTLWRITE+$47400+ 27;        { set line discipline }
471
 
                                                { 127-124 compat }
472
 
        TIOCSBRK         =IOCTLVOID+$7400+ 123;         { set break bit }
473
 
        TIOCCBRK         =IOCTLVOID+$7400+ 122;         { clear break bit }
474
 
        TIOCSDTR         =IOCTLVOID+$7400+ 121;         { set data terminal ready }
475
 
        TIOCCDTR         =IOCTLVOID+$7400+ 120;         { clear data terminal ready }
476
 
        TIOCGPGRP        =IOCTLREAD+$47400+ 119;        { get pgrp of tty }
477
 
        TIOCSPGRP        =IOCTLWRITE+$47400+ 118;       { set pgrp of tty }
478
 
                                                { 117-116 compat }
479
 
        TIOCOUTQ         =IOCTLREAD+$47400+ 115;        { output queue size }
480
 
        TIOCSTI          =IOCTLWRITE+$17400+ 114;       { simulate terminal input }
481
 
        TIOCNOTTY        =IOCTLVOID+$7400+ 113;         { void tty association }
482
 
        TIOCPKT          =IOCTLWRITE+$47400+ 112;       { pty: set/clear packet mode }
483
 
                TIOCPKT_DATA            =$00;   { data packet }
484
 
                TIOCPKT_FLUSHREAD       =$01;   { flush packet }
485
 
                TIOCPKT_FLUSHWRITE      =$02;   { flush packet }
486
 
                TIOCPKT_STOP            =$04;   { stop output }
487
 
                TIOCPKT_START           =$08;   { start output }
488
 
                TIOCPKT_NOSTOP          =$10;   { no more ^S, ^Q }
489
 
                TIOCPKT_DOSTOP          =$20;   { now do ^S ^Q }
490
 
                TIOCPKT_IOCTL           =$40;   { state change of pty driver }
491
 
        TIOCSTOP         =IOCTLVOID+$7400+ 111;         { stop output, like ^S }
492
 
        TIOCSTART        =IOCTLVOID+$7400+ 110;         { start output, like ^Q }
493
 
        TIOCMSET         =IOCTLWRITE+$47400+ 109;       { set all modem bits }
494
 
        TIOCMBIS         =IOCTLWRITE+$47400+ 108;       { bis modem bits }
495
 
        TIOCMBIC         =IOCTLWRITE+$47400+ 107;       { bic modem bits }
496
 
        TIOCMGET         =IOCTLREAD+$47400+ 106;        { get all modem bits }
497
 
        TIOCREMOTE       =IOCTLWRITE+$47400+ 105;       { remote input editing }
498
 
        TIOCGWINSZ       =IOCTLREAD+$87400+ 104;        { get window size }
499
 
        TIOCSWINSZ       =IOCTLWRITE+$87400+ 103;       { set window size }
500
 
        TIOCUCNTL        =IOCTLWRITE+$47400+ 102;       { pty: set/clr usr cntl mode }
501
 
        TIOCSTAT         =IOCTLVOID+$7400+ 101;         { simulate ^T status message }
502
 
  //                       UIOCCMD(n)   _IO('u', n)     { usr cntl op "n" }                     
503
 
        TIOCSCONS        =IOCTLWRITE+$47400+ 99;                { 4.2 compatibility } // added from ttycom.h
504
 
        TIOCCONS         =IOCTLWRITE+$47400+ 98;        { become virtual console }
505
 
        TIOCSCTTY        =IOCTLVOID+$7400+ 97;          { become controlling tty }
506
 
        TIOCEXT          =IOCTLWRITE+$47400+ 96;        { pty: external processing }
507
 
        TIOCSIG          =IOCTLVOID+$7400+ 95;          { pty: generate signal }
508
 
        TIOCDRAIN        =IOCTLVOID+$7400+ 94;          { wait till output drained }
509
 
        TIOCMSDTRWAIT    =IOCTLWRITE+$47400+ 91;        { modem: set wait on close }
510
 
        TIOCMGDTRWAIT    =IOCTLREAD+$47400+ 90;         { modem: get wait on close }
511
 
        TIOCTIMESTAMP    =IOCTLREAD+$87400+ 89;         { enable/get timestamp
512
 
                                                 * of last input event }
513
 
        TIOCDCDTIMESTAMP =IOCTLREAD+$87400+ 88; { enable/get timestamp
514
 
                                                 * of last DCd rise }
515
 
        TIOCSDRAINWAIT   =IOCTLWRITE+$47400+ 87;        { set ttywait timeout }
516
 
        TIOCGDRAINWAIT   =IOCTLREAD+$47400+ 86; { get ttywait timeout }
517
 
        TIOCDSIMICROCODE =IOCTLREAD+$47400+ 85; { download microcode to DSI Softmodem } // added from ttycom.h
518
 
 
519
 
        TTYDISC          =0;            { termios tty line discipline }
520
 
        TABLDISC             =3;                    { tablet discipline } // added from ttycom.h
521
 
        SLIPDISC         =4;            { serial IP discipline }
522
 
        PPPDISC          =5;            { PPP discipline }
523
 
        NETGRAPHDISC     =6;            { Netgraph tty node discipline }
524
 
 
525
 
 
526
 
{
527
 
 * Defaults on "first" open.
528
 
 }
529
 
       TTYDEF_IFLAG      =(BRKINT       or ICRNL        or IMAXBEL or IXON or IXANY);
530
 
       TTYDEF_OFLAG      =(OPOST or ONLCR);
531
 
       TTYDEF_LFLAG      =(ECHO or ICANON or ISIG or IEXTEN or ECHOE or ECHOKE or ECHOCTL);
532
 
       TTYDEF_CFLAG      =(CREAD or CS8 or HUPCL);
533
 
       TTYDEF_SPEED      =(B9600);
534
 
 
535
 
{
536
 
 * Control Character Defaults
537
 
 }
538
 
        CtrlMask        = $1f;  {\037}
539
 
        CEOF            =chr( ORD('d') and CtrlMask);
540
 
        CEOL            =chr( $ff and CtrlMask);{ XXX avoid _POSIX_VDISABLE }
541
 
        CERASE          =chr( $7F and CtrlMask);
542
 
        CINTR           =chr(ORD('c') and CtrlMask);
543
 
        CSTATUS         =chr(ORD('t') and CtrlMask);
544
 
        CKILL           =chr(ORD('u') and CtrlMask);
545
 
        CMIN            =chr(1);
546
 
        CQUIT           =chr(034  and CtrlMask);        { FS, ^\ }
547
 
        CSUSP           =chr(ORD('z') and CtrlMask);
548
 
        CTIME           =chr(0);
549
 
        CDSUSP          =chr(ORD('y') and CtrlMask);
550
 
        CSTART          =chr(ORD('q') and CtrlMask);
551
 
        CSTOP           =chr(ORD('s') and CtrlMask);
552
 
        CLNEXT          =chr(ORD('v') and CtrlMask);
553
 
        CDISCARD        =chr(ORD('o') and CtrlMask);
554
 
        CWERASE         =chr(ORD('w') and CtrlMask);
555
 
        CREPRINT        =chr(ORD('r') and CtrlMask);
556
 
        CEOT            =CEOF;
557
 
{ compat }
558
 
        CBRK            =CEOL;
559
 
        CRPRNT          =CREPRINT;
560
 
        CFLUSH          =CDISCARD;
561
 
 
562
 
 
563
 
{
564
 
 *        TTYDEFCHARS to include an array of default control characters.
565
 
}
566
 
    ttydefchars : array[0..NCCS-1] OF char =(
567
 
        CEOF,   CEOL,   CEOL,   CERASE, CWERASE, CKILL, CREPRINT,
568
 
        chr(_POSIX_VDISABLE), CINTR,  CQUIT,  CSUSP,  CDSUSP, CSTART, CSTOP,  CLNEXT,
569
 
        CDISCARD, CMIN, CTIME,  CSTATUS, chr(_POSIX_VDISABLE));
570
 
 
571
 
{$endif}
572
 
 
573
 
{
574
 
  $Log: termios.inc,v $
575
 
  Revision 1.2  2004/02/05 14:00:45  jonas
576
 
    + some declarations added from other bsds and /usr/include/sys/termios.h
577
 
      to termios.inc and termiosproc.inc (by Karl-Michael Schindler)
578
 
    + added crt, mouse (because required by keyboard), keyboard, termio,
579
 
      console to Darwin makefile (thanks to the above they now compile,
580
 
      functionality untested)
581
 
    * fixed wrong dependency for sysconst unit (it was always recompiled)
582
 
 
583
 
 
584
 
  Revision 1.1  2004/01/04 20:05:38  jonas
585
 
    * first working version of the Darwin/Mac OS X (for PowerPC) RTL
586
 
      Several non-essential units are still missing, but make cycle works
587
 
 
588
 
}