DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: t

⟦65279d135⟧

    Length: 13744 (0x35b0)
    Names: »tty.4«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat4/tty.4« 

Default Hex Dump

0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 44 65 76 69 63 65 73 20 61 6e 64 20 46 61 63 69   ┆ u_ a_ l        Devices and Faci┆
0x0040…0060 6c 69 74 69 65 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 74 79 28 34 29 0a 0a 0a 0a   ┆lities                tty(4)    ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x0080…00a0 20 20 74 74 79 20 2d 20 42 53 44 20 63 6f 6d 70 61 74 69 62 6c 65 20 69 6e 74 65 72 66 61 63 65   ┆  tty - BSD compatible interface┆
0x00a0…00c0 20 74 6f 20 74 65 72 6d 69 6e 61 6c 73 20 61 6e 64 20 61 73 79 6e 63 68 72 6f 6e 6f 75 73 0a 20   ┆ to terminals and asynchronous  ┆
0x00c0…00e0 20 20 20 20 6c 69 6e 65 73 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e   ┆    lines  S S S SY Y Y YN N N N┆
0x00e0…0100 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23   ┆T T T TA A A AX X X X      # # #┆
0x0100…0120 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08   ┆ #i i i in n n nc c c cl l l lu ┆
0x0120…0140 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73   ┆u u ud d d de e e e < < < <s s s┆
0x0140…0160 08 73 67 08 67 08 67 08 67 74 08 74 08 74 08 74 74 08 74 08 74 08 74 79 08 79 08 79 08 79 2e 08   ┆ sg g g gt t t tt t t ty y y y. ┆
0x0160…0180 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23   ┆. . .h h h h> > > >      # # # #┆
0x0180…01a0 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08   ┆i i i in n n nc c c cl l l lu u ┆
0x01a0…01c0 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 69 08 69 08 69 08 69   ┆u ud d d de e e e < < < <i i i i┆
0x01c0…01e0 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 2e 08 2e 08   ┆o o o oc c c ct t t tl l l l. . ┆
0x01e0…0200 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6f   ┆. .h h h h> > > >       i i i io┆
0x0200…0220 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 28 08 28 08 28   ┆ o o oc c c ct t t tl l l l( ( (┆
0x0220…0240 08 28 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 65 08   ┆ (f f f fi i i il l l ld d d de ┆
0x0240…0260 65 08 65 08 65 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 6f 08 6f 08 6f   ┆e e es s s s, , , , c c c co o o┆
0x0260…0280 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08   ┆ om m m mm m m ma a a an n n nd ┆
0x0280…02a0 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 61 08 61 08 61 08 61 72 08 72 08 72 08 72 67 08 67 08 67   ┆d d d, , , , a a a ar r r rg g g┆
0x02a0…02c0 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72   ┆ g) ) ) )      s s s st t t tr r┆
0x02c0…02e0 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 73 08 73 08 73 08   ┆ r ru u u uc c c ct t t t s s s ┆
0x02e0…0300 73 67 08 67 08 67 08 67 74 08 74 08 74 08 74 74 08 74 08 74 08 74 79 08 79 08 79 08 79 62 08 62   ┆sg g g gt t t tt t t ty y y yb b┆
0x0300…0320 08 62 08 62 20 2a 08 2a 08 2a 08 2a 61 08 61 08 61 08 61 72 08 72 08 72 08 72 67 08 67 08 67 08   ┆ b b * * * *a a a ar r r rg g g ┆
0x0320…0340 67 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 63 08 63   ┆g; ; ; ;       i i i io o o oc c┆
0x0340…0360 08 63 08 63 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 28 08 28 08 28 08 28 66 08 66 08 66 08 66   ┆ c ct t t tl l l l( ( ( (f f f f┆
0x0360…0380 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 65 08 65 08 65 08 65 73 08 73 08   ┆i i i il l l ld d d de e e es s ┆
0x0380…03a0 73 08 73 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d   ┆s s, , , , c c c co o o om m m m┆
0x03a0…03c0 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 2c 08 2c 08   ┆m m m ma a a an n n nd d d d, , ┆
0x03c0…03e0 2c 08 2c 20 61 08 61 08 61 08 61 72 08 72 08 72 08 72 67 08 67 08 67 08 67 29 08 29 08 29 08 29   ┆, , a a a ar r r rg g g g) ) ) )┆
0x03e0…0400 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75   ┆      s s s st t t tr r r ru u u┆
0x0400…0420 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 74 08 74 08 74 08 74 63 08 63 08 63 08 63 68   ┆ uc c c ct t t t t t t tc c c ch┆
0x0420…0440 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 73 08 73 08 73 08 73 20 2a 08 2a 08   ┆ h h ha a a ar r r rs s s s * * ┆
0x0440…0460 2a 08 2a 61 08 61 08 61 08 61 72 08 72 08 72 08 72 67 08 67 08 67 08 67 3b 08 3b 08 3b 08 3b 0a   ┆* *a a a ar r r rg g g g; ; ; ; ┆
0x0460…0480 0a 20 20 20 20 20 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 74 08 74 08 74   ┆      i i i io o o oc c c ct t t┆
0x0480…04a0 08 74 6c 08 6c 08 6c 08 6c 28 08 28 08 28 08 28 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08   ┆ tl l l l( ( ( (f f f fi i i il ┆
0x04a0…04c0 6c 08 6c 08 6c 64 08 64 08 64 08 64 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2c 08 2c 08 2c 08   ┆l l ld d d de e e es s s s, , , ┆
0x04c0…04e0 2c 20 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d 08 6d 61 08   ┆, c c c co o o om m m mm m m ma ┆
0x04e0…0500 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 61 08 61 08 61   ┆a a an n n nd d d d, , , , a a a┆
0x0500…0520 08 61 72 08 72 08 72 08 72 67 08 67 08 67 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 73 08 73   ┆ ar r r rg g g g) ) ) )      s s┆
0x0520…0540 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63   ┆ s st t t tr r r ru u u uc c c c┆
0x0540…0560 74 08 74 08 74 08 74 20 6c 08 6c 08 6c 08 6c 74 08 74 08 74 08 74 63 08 63 08 63 08 63 68 08 68   ┆t t t t l l l lt t t tc c c ch h┆
0x0560…0580 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 73 08 73 08 73 08 73 20 2a 08 2a 08 2a 08   ┆ h ha a a ar r r rs s s s * * * ┆
0x0580…05a0 2a 61 08 61 08 61 08 61 72 08 72 08 72 08 72 67 08 67 08 67 08 67 3b 08 3b 08 3b 08 3b 0a 0a 20   ┆*a a a ar r r rg g g g; ; ; ;   ┆
0x05a0…05c0 20 20 20 20 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 74 08 74 08 74 08 74   ┆    i i i io o o oc c c ct t t t┆
0x05c0…05e0 6c 08 6c 08 6c 08 6c 28 08 28 08 28 08 28 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08   ┆l l l l( ( ( (f f f fi i i il l ┆
0x05e0…0600 6c 08 6c 64 08 64 08 64 08 64 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20   ┆l ld d d de e e es s s s, , , , ┆
0x0600…0620 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d 08 6d 61 08 61 08   ┆c c c co o o om m m mm m m ma a ┆
0x0620…0640 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 61 08 61 08 61 08 61   ┆a an n n nd d d d, , , , a a a a┆
0x0640…0660 72 08 72 08 72 08 72 67 08 67 08 67 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69   ┆r r r rg g g g) ) ) )      i i i┆
0x0660…0680 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 61 08 61 08 61 08 61 72   ┆ in n n nt t t t * * * *a a a ar┆
0x0680…06a0 08 72 08 72 08 72 67 08 67 08 67 08 67 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 08 69 08 69   ┆ r r rg g g g; ; ; ;       i i i┆
0x06a0…06c0 08 69 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 28 08   ┆ io o o oc c c ct t t tl l l l( ┆
0x06c0…06e0 28 08 28 08 28 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08   ┆( ( (f f f fi i i il l l ld d d ┆
0x06e0…0700 64 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 6f 08   ┆de e e es s s s, , , , c c c co ┆
0x0700…0720 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 6e 08 6e 08 6e 08   ┆o o om m m mm m m ma a a an n n ┆
0x0720…0740 6e 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 61 08 61 08 61 08 61 72 08 72 08 72 08 72 67 08   ┆nd d d d, , , , a a a ar r r rg ┆
0x0740…0760 67 08 67 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f   ┆g g g) ) ) )      l l l lo o o o┆
0x0760…0780 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 2a 08 2a 08 2a 08 2a 61 08 61 08 61 08 61 72 08 72   ┆n n n ng g g g * * * *a a a ar r┆
0x0780…07a0 08 72 08 72 67 08 67 08 67 08 67 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45   ┆ r rg g g g; ; ; ;  D D D DE E E┆
0x07a0…07c0 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08   ┆ ES S S SC C C CR R R RI I I IP ┆
0x07c0…07e0 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08   ┆P P PT T T TI I I IO O O ON N N ┆
0x07e0…0800 4e 0a 20 20 20 20 20 54 68 69 73 20 73 65 63 74 69 6f 6e 20 64 65 73 63 72 69 62 65 73 20 61 20   ┆N      This section describes a ┆
0x0800…0820 6e 75 6d 62 65 72 20 6f 66 20 69 6f 63 74 6c 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 0a 20 20 20   ┆number of ioctl system calls    ┆
0x0820…0840 20 20 69 6e 63 6c 75 64 65 64 20 69 6e 20 74 68 65 20 69 6e 74 65 72 66 61 63 65 20 74 6f 20 63   ┆  included in the interface to c┆
0x0840…0860 68 61 72 61 63 74 65 72 2d 6f 72 69 65 6e 74 65 64 20 74 65 72 6d 69 6e 61 6c 73 0a 20 20 20 20   ┆haracter-oriented terminals     ┆
0x0860…0880 20 61 6e 64 20 61 73 79 6e 63 68 72 6f 6e 6f 75 73 20 73 65 72 69 61 6c 20 6c 69 6e 65 73 20 69   ┆ and asynchronous serial lines i┆
0x0880…08a0 6e 20 6f 72 64 65 72 20 74 6f 20 70 72 6f 76 69 64 65 20 63 6f 6d 70 61 74 69 2d 0a 20 20 20 20   ┆n order to provide compati-     ┆
0x08a0…08c0 20 62 69 6c 69 74 79 20 77 69 74 68 20 74 68 65 20 42 53 44 20 5f 08 74 5f 08 74 5f 08 79 20 28   ┆ bility with the BSD _ t_ t_ y (┆
0x08c0…08e0 22 6e 65 77 22 20 6c 69 6e 65 20 64 69 73 63 69 70 6c 69 6e 65 2c 20 4e 54 54 59 44 49 53 43 29   ┆"new" line discipline, NTTYDISC)┆
0x08e0…0900 0a 20 20 20 20 20 69 6e 74 65 72 66 61 63 65 2e 20 46 6f 72 20 61 20 67 65 6e 65 72 61 6c 20 64   ┆      interface. For a general d┆
0x0900…0920 65 73 63 72 69 70 74 69 6f 6e 20 6f 66 20 74 68 65 20 69 6e 74 65 72 66 61 63 65 2c 20 72 65 66   ┆escription of the interface, ref┆
0x0920…0940 65 72 0a 20 20 20 20 20 74 6f 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 6f 28 34 29   ┆er      to _ t_ e_ r_ m_ i_ o(4)┆
0x0940…0960 2e 20 20 54 68 65 20 63 61 6c 6c 73 20 64 65 73 63 72 69 62 65 64 20 68 65 72 65 20 61 72 65 20   ┆.  The calls described here are ┆
0x0960…0980 69 6e 74 65 6e 64 65 64 20 74 6f 0a 20 20 20 20 20 61 6c 6c 6f 77 20 61 6c 72 65 61 64 79 20 65   ┆intended to      allow already e┆
0x0980…09a0 78 69 73 74 69 6e 67 20 70 72 6f 67 72 61 6d 73 20 74 6f 20 72 75 6e 2e 20 54 68 65 79 20 61 72   ┆xisting programs to run. They ar┆
0x09a0…09c0 65 20 6e 6f 74 20 72 65 63 6f 6d 2d 0a 20 20 20 20 20 6d 65 6e 64 65 64 20 66 6f 72 20 70 72 6f   ┆e not recom-      mended for pro┆
0x09c0…09e0 67 72 61 6d 20 64 65 76 65 6c 6f 70 6d 65 6e 74 2e 0a 0a 20 20 20 20 20 49 08 49 08 49 08 49 6f   ┆gram development.       I I I Io┆
0x09e0…0a00 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 20 52 08 52 08   ┆ o o oc c c ct t t tl l l l R R ┆
0x0a00…0a20 52 08 52 65 08 65 08 65 08 65 71 08 71 08 71 08 71 75 08 75 08 75 08 75 65 08 65 08 65 08 65 73   ┆R Re e e eq q q qu u u ue e e es┆
0x0a20…0a40 08 73 08 73 08 73 74 08 74 08 74 08 74 73 08 73 08 73 08 73 0a 20 20 20 20 20 54 68 65 20 76 61   ┆ s s st t t ts s s s      The va┆
0x0a40…0a60 6c 75 65 73 20 6f 66 20 73 70 65 63 69 61 6c 20 63 68 61 72 61 63 74 65 72 73 20 61 6e 64 20 74   ┆lues of special characters and t┆
0x0a60…0a80 65 72 6d 69 6e 61 6c 20 6d 6f 64 65 73 20 61 72 65 0a 20 20 20 20 20 64 65 66 69 6e 65 64 20 69   ┆erminal modes are      defined i┆
0x0a80…0aa0 6e 20 74 68 72 65 65 20 73 74 72 75 63 74 75 72 65 73 20 61 6e 64 20 74 68 65 20 6c 6f 63 61 6c   ┆n three structures and the local┆
0x0aa0…0ac0 20 6d 6f 64 65 20 77 6f 72 64 2e 20 54 68 65 73 65 0a 20 20 20 20 20 61 72 65 20 64 65 66 69 6e   ┆ mode word. These      are defin┆
0x0ac0…0ae0 65 64 20 69 6e 20 74 68 65 20 3c 5f 08 73 5f 08 67 5f 08 74 5f 08 74 5f 08 79 2e 5f 08 68 3e 20   ┆ed in the <_ s_ g_ t_ t_ y._ h> ┆
0x0ae0…0b00 68 65 61 64 65 72 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 73 5f 08 67 5f 08 74   ┆header file.       The _ s_ g_ t┆
0x0b00…0b20 5f 08 74 5f 08 79 5f 08 62 20 73 74 72 75 63 74 75 72 65 20 69 6e 63 6c 75 64 65 73 20 74 68 65   ┆_ t_ y_ b structure includes the┆
0x0b20…0b40 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 69 65 6c 64 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 63 68   ┆ following fields:            ch┆
0x0b40…0b60 61 72 20 73 67 5f 69 73 70 65 65 64 3b 20 20 20 20 20 2f 2a 20 6c 69 6e 65 20 73 70 65 65 64 20   ┆ar sg_ispeed;     /* line speed ┆
0x0b60…0b80 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 73 67 5f 65 72 61 73 65 3b 20 2f 2a 20 45   ┆*/           char sg_erase; /* E┆
0x0b80…0ba0 52 41 53 45 20 63 68 61 72 61 63 74 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72   ┆RASE character */           char┆
0x0ba0…0bc0 20 73 67 5f 6b 69 6c 6c 3b 20 20 20 20 20 20 20 2f 2a 20 4b 49 4c 4c 20 63 68 61 72 61 63 74 65   ┆ sg_kill;       /* KILL characte┆
0x0bc0…0be0 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20 20 73 67 5f 66 6c 61 67   ┆r */           short     sg_flag┆
0x0be0…0c00 73 3b 20 20 20 20 20 20 2f 2a 20 74 65 72 6d 69 6e 61 6c 20 6d 6f 64 65 20 69 6e 66 6f 72 6d 61   ┆s;      /* terminal mode informa┆
0x0c00…0c20 74 69 6f 6e 20 2a 2f 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 69 5f 08 6f 5f 08 63 5f 08 74 5f 08   ┆tion */       The _ i_ o_ c_ t_ ┆
0x0c20…0c40 6c 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 20 77 68 69 63 68 20 75 73 65 20 74 68 65 20 5f 08 73   ┆l system calls which use the _ s┆
0x0c40…0c60 5f 08 67 5f 08 74 5f 08 74 5f 08 79 5f 08 62 20 73 74 72 75 63 74 75 72 65 20 68 61 76 65 0a 20   ┆_ g_ t_ t_ y_ b structure have  ┆
0x0c60…0c80 20 20 20 20 74 68 65 20 66 6f 72 6d 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 69 6f 63 74 6c 28 66   ┆    the form:            ioctl(f┆
0x0c80…0ca0 69 6c 64 65 73 2c 20 63 6f 6d 6d 61 6e 64 2c 20 61 72 67 29 0a 20 20 20 20 20 20 20 20 20 20 73   ┆ildes, command, arg)           s┆
0x0ca0…0cc0 74 72 75 63 74 20 73 67 74 74 79 62 20 2a 61 72 67 3b 0a 0a 20 20 20 20 20 54 68 65 20 63 6f 6d   ┆truct sgttyb *arg;       The com┆
0x0cc0…0ce0 6d 61 6e 64 73 20 75 73 69 6e 67 20 74 68 69 73 20 66 6f 72 6d 20 61 72 65 3a 0a 0a 20 20 20 20   ┆mands using this form are:      ┆
0x0ce0…0d00 20 54 49 4f 43 47 45 54 50 20 20 4d 61 70 20 63 75 72 72 65 6e 74 20 6d 6f 64 65 73 20 61 6e 64   ┆ TIOCGETP  Map current modes and┆
0x0d00…0d20 20 73 70 65 63 69 61 6c 20 63 68 61 72 61 63 74 65 72 73 20 6f 66 20 74 68 65 0a 20 20 20 20 20   ┆ special characters of the      ┆
0x0d20…0d40 20 20 20 20 20 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 20 66 69 6c 65 2c 20 69 2e 65 2e 20 76 61   ┆          terminal file, i.e. va┆
0x0d40…0d60 6c 75 65 73 20 69 6e 20 74 68 65 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 6f 20 73   ┆lues in the _ t_ e_ r_ m_ i_ o s┆
0x0d60…0d80 74 72 75 63 74 75 72 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 5f 08 73 5f 08   ┆tructure                to _ s_ ┆
0x0d80…0da0 67 5f 08 74 5f 08 74 5f 08 79 5f 08 62 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 61 6e 64   ┆g_ t_ t_ y_ b representation and┆
0x0da0…0dc0 20 73 74 6f 72 65 20 69 6e 20 74 68 65 20 69 6e 64 69 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆ store in the indi-             ┆
0x0dc0…0de0 20 20 20 63 61 74 65 64 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 20 20 20 20 20 54 49 4f 43 53 45   ┆   cated structure.       TIOCSE┆
0x0de0…0e00 54 50 20 20 53 65 74 20 6d 6f 64 65 73 20 61 6e 64 20 73 70 65 63 69 61 6c 20 63 68 61 72 61 63   ┆TP  Set modes and special charac┆
0x0e00…0e20 74 65 72 73 20 6f 66 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20   ┆ters of the terminal            ┆
0x0e20…0e40 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 2c 20 69 2e 65 2e 20 74 68 65 20 5f 08 74 5f 08 65 5f   ┆          file, i.e. the _ t_ e_┆
0x0e40…0e60 08 72 5f 08 6d 5f 08 69 5f 08 6f 20 73 74 72 75 63 74 75 72 65 2c 20 62 61 73 65 64 20 6f 6e 20   ┆ r_ m_ i_ o structure, based on ┆
0x0e60…0e80 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20   ┆the                value of the ┆
0x0e80…0ea0 69 6e 64 69 63 61 74 65 64 20 5f 08 73 5f 08 67 5f 08 74 5f 08 74 5f 08 79 5f 08 62 20 73 74 72   ┆indicated _ s_ g_ t_ t_ y_ b str┆
0x0ea0…0ec0 75 63 74 75 72 65 2e 20 54 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72   ┆ucture. The                inter┆
0x0ec0…0ee0 66 61 63 65 20 64 65 6c 61 79 73 20 75 6e 74 69 6c 20 6f 75 74 70 75 74 20 69 73 20 71 75 69 65   ┆face delays until output is quie┆
0x0ee0…0f00 73 63 65 6e 74 2c 20 74 68 65 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77   ┆scent, then                throw┆
0x0f00…0f20 73 20 61 77 61 79 20 61 6e 79 20 75 6e 72 65 61 64 20 63 68 61 72 61 63 74 65 72 73 2c 20 62 65   ┆s away any unread characters, be┆
0x0f20…0f40 66 6f 72 65 20 63 68 61 6e 67 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65   ┆fore changing                the┆
0x0f40…0f60 20 6d 6f 64 65 73 2e 0a 0a 20 20 20 20 20 54 49 4f 43 53 45 54 4e 20 20 53 65 74 20 6d 6f 64 65   ┆ modes.       TIOCSETN  Set mode┆
0x0f60…0f80 73 20 61 6e 64 20 73 70 65 63 69 61 6c 20 63 68 61 72 61 63 74 65 72 73 20 6f 66 20 74 68 65 20   ┆s and special characters of the ┆
0x0f80…0fa0 74 65 72 6d 69 6e 61 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 20 6c 69 6b   ┆terminal                file lik┆
0x0fa0…0fc0 65 20 54 49 4f 43 53 45 54 50 20 62 75 74 20 64 6f 20 6e 6f 74 20 64 65 6c 61 79 20 6f 72 20 66   ┆e TIOCSETP but do not delay or f┆
0x0fc0…0fe0 6c 75 73 68 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 2e 20 49 6e 70 75 74   ┆lush                input. Input┆
0x0fe0…1000 20 69 73 20 6e 6f 74 20 70 72 65 73 65 72 76 65 64 2c 20 68 6f 77 65 76 65 72 2c 20 77 68 65 6e   ┆ is not preserved, however, when┆
0x1000…1020 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 6e 67 69 6e 67 20 74 6f 20 6f 72 20 66   ┆                changing to or f┆
0x1020…1040 72 6f 6d 20 52 41 57 20 6d 6f 64 65 2e 0a 0a 20 20 20 20 20 54 68 65 20 6d 61 70 70 69 6e 67 20   ┆rom RAW mode.       The mapping ┆
0x1040…1060 6f 66 20 5f 08 73 5f 08 67 5f 08 74 5f 08 74 5f 08 79 5f 08 62 20 6d 6f 64 65 73 20 74 6f 20 74   ┆of _ s_ g_ t_ t_ y_ b modes to t┆
0x1060…1080 65 72 6d 69 6f 20 6d 6f 64 65 73 20 61 6e 64 20 76 69 63 65 20 76 65 72 73 61 0a 20 20 20 20 20   ┆ermio modes and vice versa      ┆
0x1080…10a0 69 73 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 4d 08 4d 08 4d 08 4d 6f 08 6f 08 6f 08 6f 64 08   ┆is described in M M M Mo o o od ┆
0x10a0…10c0 64 08 64 08 64 65 08 65 08 65 08 65 73 08 73 08 73 08 73 20 62 65 6c 6f 77 2e 0a 0a 20 20 20 20   ┆d d de e e es s s s below.      ┆
0x10c0…10e0 20 54 68 65 20 5f 08 74 5f 08 63 5f 08 68 5f 08 61 5f 08 72 5f 08 73 20 73 74 72 75 63 74 75 72   ┆ The _ t_ c_ h_ a_ r_ s structur┆
0x10e0…1100 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 69 65 6c 64 73 3a   ┆e contains the following fields:┆
0x1100…1120 0a 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 74 5f 69 6e 74 72 63 3b 20 20 20 20 20 20 20   ┆            char t_intrc;       ┆
0x1120…1140 2f 2a 20 49 4e 54 52 20 63 68 61 72 61 63 74 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 63   ┆/* INTR character */           c┆
0x1140…1160 68 61 72 20 74 5f 71 75 69 74 63 3b 20 20 20 20 20 20 20 2f 2a 20 51 55 49 54 20 63 68 61 72 61   ┆har t_quitc;       /* QUIT chara┆
0x1160…1180 63 74 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 74 5f 65 6f 66 63 3b 20 20   ┆cter */           char t_eofc;  ┆
0x1180…11a0 20 20 20 20 20 20 2f 2a 20 45 4f 46 20 63 68 61 72 61 63 74 65 72 20 2a 2f 0a 20 20 20 20 20 20   ┆      /* EOF character */       ┆
0x11a0…11c0 20 20 20 20 63 68 61 72 20 74 5f 62 72 6b 63 3b 20 20 20 20 20 20 20 20 2f 2a 20 45 4f 4c 20 63   ┆    char t_brkc;        /* EOL c┆
0x11c0…11e0 68 61 72 61 63 74 65 72 20 2a 2f 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 69 5f 08 6f 5f 08 63 5f   ┆haracter */       The _ i_ o_ c_┆
0x11e0…1200 08 74 5f 08 6c 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 20 77 68 69 63 68 20 75 73 65 20 74 68 65   ┆ t_ l system calls which use the┆
0x1200…1220 20 5f 08 74 5f 08 63 5f 08 68 5f 08 61 5f 08 72 5f 08 73 20 73 74 72 75 63 74 75 72 65 20 68 61   ┆ _ t_ c_ h_ a_ r_ s structure ha┆
0x1220…1240 76 65 0a 20 20 20 20 20 74 68 65 20 66 6f 72 6d 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 69 6f 63   ┆ve      the form:            ioc┆
0x1240…1260 74 6c 28 66 69 6c 64 65 73 2c 20 63 6f 6d 6d 61 6e 64 2c 20 61 72 67 29 0a 20 20 20 20 20 20 20   ┆tl(fildes, command, arg)        ┆
0x1260…1280 20 20 20 73 74 72 75 63 74 20 74 63 68 61 72 73 20 2a 61 72 67 3b 0a 0a 20 20 20 20 20 54 68 65   ┆   struct tchars *arg;       The┆
0x1280…12a0 20 63 6f 6d 6d 61 6e 64 73 20 75 73 69 6e 67 20 74 68 69 73 20 66 6f 72 6d 20 61 72 65 3a 0a 0a   ┆ commands using this form are:  ┆
0x12a0…12c0 20 20 20 20 20 54 49 4f 43 47 45 54 43 20 20 47 65 74 20 63 75 72 72 65 6e 74 20 76 61 6c 75 65   ┆     TIOCGETC  Get current value┆
0x12c0…12e0 73 20 6f 66 20 49 4e 54 52 2c 20 51 55 49 54 2c 20 45 4f 46 20 61 6e 64 20 45 4f 4c 0a 20 20 20   ┆s of INTR, QUIT, EOF and EOL    ┆
0x12e0…1300 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 73 20 28 66 72 6f 6d 20 5f 08 74   ┆            characters (from _ t┆
0x1300…1320 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 6f 20 73 74 72 75 63 74 75 72 65 29 20 61 6e 64 20 70   ┆_ e_ r_ m_ i_ o structure) and p┆
0x1320…1340 75 74 20 74 68 65 6d 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 73 74   ┆ut them in                the st┆
0x1340…1360 72 75 63 74 75 72 65 2e 0a 0a 20 20 20 20 20 54 49 4f 43 53 45 54 43 20 20 53 65 74 20 74 68 65   ┆ructure.       TIOCSETC  Set the┆
0x1360…1380 20 76 61 6c 75 65 73 20 6f 66 20 74 68 65 20 49 4e 54 52 2c 20 51 55 49 54 2c 20 45 4f 46 20 61   ┆ values of the INTR, QUIT, EOF a┆
0x1380…13a0 6e 64 20 45 4f 4c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 73   ┆nd EOL                characters┆
0x13a0…13c0 20 28 69 6e 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 6f 20 73 74 72 75 63 74 75 72   ┆ (in _ t_ e_ r_ m_ i_ o structur┆
0x13c0…13e0 65 29 20 74 6f 20 74 68 6f 73 65 20 67 69 76 65 6e 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20 20   ┆e) to those given in            ┆
0x13e0…1400 20 20 20 20 74 68 65 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 6c   ┆    the structure.       The _ l┆
0x1400…1420 5f 08 74 5f 08 63 5f 08 68 5f 08 61 5f 08 72 5f 08 73 20 73 74 72 75 63 74 75 72 65 20 63 6f 6e   ┆_ t_ c_ h_ a_ r_ s structure con┆
0x1420…1440 74 61 69 6e 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 69 65 6c 64 3a 0a 0a 20 20 20 20   ┆tains the following field:      ┆
0x1440…1460 20 20 20 20 20 20 63 68 61 72 20 74 5f 73 75 73 70 63 3b 20 20 20 20 20 20 20 2f 2a 20 53 55 53   ┆      char t_suspc;       /* SUS┆
0x1460…1480 50 20 63 68 61 72 61 63 74 65 72 20 2a 2f 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 69 5f 08 6f 5f   ┆P character */       The _ i_ o_┆
0x1480…14a0 08 63 5f 08 74 5f 08 6c 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 20 77 68 69 63 68 20 75 73 65 20   ┆ c_ t_ l system calls which use ┆
0x14a0…14c0 74 68 65 20 5f 08 6c 5f 08 74 5f 08 63 5f 08 68 5f 08 61 5f 08 72 5f 08 73 20 73 74 72 75 63 74   ┆the _ l_ t_ c_ h_ a_ r_ s struct┆
0x14c0…14e0 75 72 65 20 68 61 76 65 0a 20 20 20 20 20 74 68 65 20 66 6f 72 6d 3a 0a 0a 20 20 20 20 20 20 20   ┆ure have      the form:         ┆
0x14e0…1500 20 20 20 69 6f 63 74 6c 28 66 69 6c 64 65 73 2c 20 63 6f 6d 6d 61 6e 64 2c 20 61 72 67 29 0a 20   ┆   ioctl(fildes, command, arg)  ┆
0x1500…1520 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 6c 74 63 68 61 72 73 20 2a 61 72 67 3b 0a 0a 20   ┆         struct ltchars *arg;   ┆
0x1520…1540 20 20 20 20 54 68 65 20 63 6f 6d 6d 61 6e 64 73 20 75 73 69 6e 67 20 74 68 69 73 20 66 6f 72 6d   ┆    The commands using this form┆
0x1540…1560 20 61 72 65 3a 0a 0a 20 20 20 20 20 54 49 4f 43 47 4c 54 43 20 20 47 65 74 20 63 75 72 72 65 6e   ┆ are:       TIOCGLTC  Get curren┆
0x1560…1580 74 20 76 61 6c 75 65 73 20 6f 66 20 74 68 65 20 53 55 53 50 20 63 68 61 72 61 63 74 65 72 20 28   ┆t values of the SUSP character (┆
0x1580…15a0 66 72 6f 6d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d   ┆from                _ t_ e_ r_ m┆
0x15a0…15c0 5f 08 69 5f 08 6f 20 73 74 72 75 63 74 75 72 65 29 20 61 6e 64 20 70 75 74 20 69 74 20 69 6e 20   ┆_ i_ o structure) and put it in ┆
0x15c0…15e0 74 68 65 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 20 20 20 20 20 54 49 4f 43 53 4c 54 43 20 20 53   ┆the structure.       TIOCSLTC  S┆
0x15e0…1600 65 74 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 53 55 53 50 20 63 68 61 72 61 63 74   ┆et the value of the SUSP charact┆
0x1600…1620 65 72 20 28 69 6e 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 6f 0a 20 20 20 20 20 20   ┆er (in _ t_ e_ r_ m_ i_ o       ┆
0x1620…1640 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 75 72 65 29 20 61 73 20 69 6e 20 74 68 65 20 73 74   ┆         structure) as in the st┆
0x1640…1660 72 75 63 74 75 72 65 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 69 5f 08 6f 5f 08 63 5f 08 74 5f   ┆ructure.       The _ i_ o_ c_ t_┆
0x1660…1680 08 6c 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 20 77 68 69 63 68 20 75 73 65 20 74 68 65 20 6c 6f   ┆ l system calls which use the lo┆
0x1680…16a0 63 61 6c 20 6d 6f 64 65 20 77 6f 72 64 20 68 61 76 65 0a 20 20 20 20 20 74 68 65 20 66 6f 72 6d   ┆cal mode word have      the form┆
0x16a0…16c0 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 69 6f 63 74 6c 28 66 69 6c 64 65 73 2c 20 63 6f 6d 6d 61   ┆:            ioctl(fildes, comma┆
0x16c0…16e0 6e 64 2c 20 61 72 67 29 0a 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 2a 61 72 67 3b 0a 0a 0a 0a   ┆nd, arg)           int *arg;    ┆
0x16e0…1700 0a 0a 0a 20 20 20 20 20 54 68 65 20 63 6f 6d 6d 61 6e 64 73 20 75 73 69 6e 67 20 74 68 69 73 20   ┆        The commands using this ┆
0x1700…1720 66 6f 72 6d 20 61 72 65 3a 0a 0a 20 20 20 20 20 54 49 4f 43 4c 47 45 54 20 20 52 65 74 72 69 65   ┆form are:       TIOCLGET  Retrie┆
0x1720…1740 76 65 20 66 72 6f 6d 20 74 68 65 20 63 75 72 72 65 6e 74 20 6d 6f 64 65 73 20 6f 66 20 74 68 65   ┆ve from the current modes of the┆
0x1740…1760 20 74 65 72 6d 69 6e 61 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 2c 20 69   ┆ terminal                file, i┆
0x1760…1780 2e 65 2e 20 74 68 65 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 6f 20 73 74 72 75 63   ┆.e. the _ t_ e_ r_ m_ i_ o struc┆
0x1780…17a0 74 75 72 65 2c 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 0a 20 20 20 20 20 20 20 20   ┆ture, the corresponding         ┆
0x17a0…17c0 20 20 20 20 20 20 20 76 61 6c 75 65 20 66 6f 72 20 74 68 65 20 6c 6f 63 61 6c 20 6d 6f 64 65 20   ┆       value for the local mode ┆
0x17c0…17e0 77 6f 72 64 20 61 6e 64 20 73 74 6f 72 65 20 74 68 69 73 20 76 61 6c 75 65 0a 20 20 20 20 20 20   ┆word and store this value       ┆
0x17e0…1800 20 20 20 20 20 20 20 20 20 69 6e 20 74 68 65 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08   ┆         in the i i i in n n nt ┆
0x1800…1820 74 08 74 08 74 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08 61 5f 08 72 5f 08 67 2e 0a 0a   ┆t t t pointed to by _ a_ r_ g.  ┆
0x1820…1840 20 20 20 20 20 54 49 4f 43 4c 53 45 54 20 20 53 65 74 20 61 70 70 72 6f 70 72 69 61 74 65 20 6d   ┆     TIOCLSET  Set appropriate m┆
0x1840…1860 6f 64 65 73 20 6f 66 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 66 69 6c 65 20 69 6e 20 74 68 65   ┆odes of the terminal file in the┆
0x1860…1880 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f   ┆                _ t_ e_ r_ m_ i_┆
0x1880…18a0 08 6f 20 73 74 72 75 63 74 75 72 65 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 76 61 6c 75 65 20   ┆ o structure based on the value ┆
0x18a0…18c0 6f 66 20 74 68 65 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 0a 20 20 20   ┆of the i i i in n n nt t t t    ┆
0x18c0…18e0 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08 61 5f 08 72   ┆            pointed to by _ a_ r┆
0x18e0…1900 5f 08 67 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 61 20 6c 6f 63 61 6c 20 6d 6f 64 65 0a   ┆_ g interpreted as a local mode ┆
0x1900…1920 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 6f 72 64 2e 0a 0a 20 20 20 20 20 54 49 4f 43 4c   ┆               word.       TIOCL┆
[…truncated at 200 lines…]