home *** CD-ROM | disk | FTP | other *** search
Unknown | 1997-07-20 | 71.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| ac 1f 01 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |........|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 07 0f cd 00 00 00 00 00 | 00 18 00 00 a5 88 00 00 |........|........|
|00000040| 41 58 30 04 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |AX0.@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 0f cd 00 |........|........|
|00000060| 07 0f cd 00 07 0f cd 00 | 00 00 00 00 70 65 72 6c |........|....perl|
|00000070| 66 61 71 38 20 2d 20 53 | 79 73 74 65 6d 20 49 6e |faq8 - S|ystem In|
|00000080| 74 65 72 61 63 74 69 6f | 6e 05 05 05 05 05 05 05 |teractio|n.......|
|00000090| 05 05 05 05 05 05 05 05 | 05 05 05 05 05 05 05 05 |........|........|
|000000a0| 05 05 05 05 05 0d 08 05 | 07 10 cd 00 00 00 00 00 |........|........|
|000000b0| 07 05 05 05 08 11 cd 00 | 08 11 cd 00 00 00 00 00 |........|........|
|000000c0| 00 88 00 00 a5 30 00 00 | 40 a2 5f 01 a0 98 fe ff |.....0..|@._.....|
|000000d0| f0 de fe ff 68 37 00 00 | 44 65 73 63 72 69 70 74 |....h7..|Descript|
|000000e0| 69 6f 6e 0d 08 05 05 05 | 08 12 cd 00 00 00 00 00 |ion.....|........|
|000000f0| 00 30 00 00 05 80 00 00 | 00 50 5a 07 3f 40 fe ff |.0......|.PZ.?@..|
|00000100| 1f 6f fe ff 20 22 00 00 | 54 68 69 73 20 73 65 63 |.o.. "..|This sec|
|00000110| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 50 65 72 6c |tion of |the Perl|
|00000120| 20 46 41 51 20 63 6f 76 | 65 72 73 20 71 75 65 73 | FAQ cov|ers ques|
|00000130| 74 69 6f 6e 73 20 69 6e | 76 6f 6c 76 69 6e 67 20 |tions in|volving |
|00000140| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00000150| 20 69 6e 74 65 72 61 63 | 74 69 6f 6e 2e 20 20 54 | interac|tion. T|
|00000160| 68 69 73 20 69 6e 76 6f | 6c 76 65 73 20 00 00 00 |his invo|lves ...|
|00000170| 00 80 00 00 05 84 00 00 | 00 64 d6 07 18 08 fe ff |........|.d......|
|00000180| f8 36 fe ff 20 22 00 00 | 69 6e 74 65 72 70 72 6f |.6.. "..|interpro|
|00000190| 63 65 73 73 20 63 6f 6d | 6d 75 6e 69 63 61 74 69 |cess com|municati|
|000001a0| 6f 6e 20 28 49 50 43 29 | 2c 20 63 6f 6e 74 72 6f |on (IPC)|, contro|
|000001b0| 6c 20 6f 76 65 72 20 74 | 68 65 20 75 73 65 72 2d |l over t|he user-|
|000001c0| 69 6e 74 65 72 66 61 63 | 65 20 28 6b 65 79 62 6f |interfac|e (keybo|
|000001d0| 61 72 64 2c 20 73 63 72 | 65 65 6e 20 61 6e 64 20 |ard, scr|een and |
|000001e0| 70 6f 69 6e 74 69 6e 67 | 20 64 65 76 69 63 65 73 |pointing| devices|
|000001f0| 29 2c 20 00 00 84 00 00 | 25 54 00 00 40 b4 1a 04 |), .....|%T..@...|
|00000200| f1 cf fd ff d1 fe fd ff | 20 22 00 00 61 6e 64 20 |........| "..and |
|00000210| 6d 6f 73 74 20 61 6e 79 | 74 68 69 6e 67 20 65 6c |most any|thing el|
|00000220| 73 65 20 6e 6f 74 20 72 | 65 6c 61 74 65 64 20 74 |se not r|elated t|
|00000230| 6f 20 64 61 74 61 20 6d | 61 6e 69 70 75 6c 61 74 |o data m|anipulat|
|00000240| 69 6f 6e 2e 0d 00 00 00 | 00 54 00 00 85 8c 00 00 |ion.....|.T......|
|00000250| 00 1c 8b 07 1a 61 fd ff | fa 8f fd ff 20 22 00 00 |.....a..|.... "..|
|00000260| 52 65 61 64 20 74 68 65 | 20 46 41 51 73 20 61 6e |Read the| FAQs an|
|00000270| 64 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |d docume|ntation |
|00000280| 73 70 65 63 69 66 69 63 | 20 74 6f 20 74 68 65 20 |specific| to the |
|00000290| 70 6f 72 74 20 6f 66 20 | 70 65 72 6c 20 74 6f 20 |port of |perl to |
|000002a0| 79 6f 75 72 20 6f 70 65 | 72 61 74 69 6e 67 20 73 |your ope|rating s|
|000002b0| 79 73 74 65 6d 20 28 65 | 67 2c 20 74 68 65 20 63 |ystem (e|g, the c|
|000002c0| 68 61 70 74 65 72 20 07 | 10 13 cd 00 10 13 cd 00 |hapter .|........|
|000002d0| 00 00 00 00 00 8c 00 00 | 85 a4 00 00 00 b4 9e 07 |........|........|
|000002e0| f3 28 fd ff d3 57 fd ff | 28 23 00 00 70 65 72 6c |.(...W..|(#..perl|
|000002f0| 76 6d 73 08 10 00 00 00 | 00 00 00 00 2c 20 74 68 |vms.....|...., th|
|00000300| 65 20 63 68 61 70 74 65 | 72 20 07 6e 10 14 cd 00 |e chapte|r .n....|
|00000310| 10 14 cd 00 00 00 00 00 | 70 65 72 6c 70 6c 61 6e |........|perlplan|
|00000320| 39 08 00 00 10 00 00 00 | 00 00 00 00 2c 20 2e 2e |9.......|...., ..|
|00000330| 2e 29 2e 20 20 54 68 65 | 73 65 20 73 68 6f 75 6c |.). The|se shoul|
|00000340| 64 20 63 6f 6e 74 61 69 | 6e 20 6d 6f 72 65 20 64 |d contai|n more d|
|00000350| 65 74 61 69 6c 65 64 20 | 69 6e 66 6f 72 6d 61 74 |etailed |informat|
|00000360| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 76 61 67 61 72 |ion on t|he vagar|
|00000370| 69 65 73 20 6f 66 20 00 | 00 a4 00 00 a5 30 00 00 |ies of .|.....0..|
|00000380| 40 40 b6 00 cc f0 fc ff | ac 1f fd ff 20 22 00 00 |@@......|.... "..|
|00000390| 79 6f 75 72 20 70 65 72 | 6c 2e 0d 07 0a 15 cd 00 |your per|l.......|
|000003a0| 0a 15 cd 00 00 00 00 00 | 00 30 00 00 a5 60 00 00 |........|.0...`..|
|000003b0| 40 64 ba 05 25 7a fc ff | d5 b0 fc ff 18 2b 00 00 |@d..%z..|.....+..|
|000003c0| 48 6f 77 20 64 6f 20 49 | 20 66 69 6e 64 20 6f 75 |How do I| find ou|
|000003d0| 74 20 77 68 69 63 68 20 | 6f 70 65 72 61 74 69 6e |t which |operatin|
|000003e0| 67 20 73 79 73 74 65 6d | 20 49 27 6d 20 72 75 6e |g system| I'm run|
|000003f0| 6e 69 6e 67 20 75 6e 64 | 65 72 3f 0d 08 20 63 75 |ning und|er?.. cu|
|00000400| 0a 16 cd 00 00 00 00 00 | 00 60 00 00 05 80 00 00 |........|.`......|
|00000410| 00 a4 b1 07 f0 24 fc ff | d0 53 fc ff 20 22 00 00 |.....$..|.S.. "..|
|00000420| 54 68 65 20 24 5e 4f 20 | 76 61 72 69 61 62 6c 65 |The $^O |variable|
|00000430| 20 28 24 4f 53 54 59 50 | 45 20 69 66 20 79 6f 75 | ($OSTYP|E if you|
|00000440| 20 75 73 65 20 45 6e 67 | 6c 69 73 68 29 20 63 6f | use Eng|lish) co|
|00000450| 6e 74 61 69 6e 73 20 74 | 68 65 20 6f 70 65 72 61 |ntains t|he opera|
|00000460| 74 69 6e 67 20 73 79 73 | 74 65 6d 20 74 68 61 74 |ting sys|tem that|
|00000470| 20 79 6f 75 72 20 70 65 | 72 6c 20 62 69 6e 61 72 | your pe|rl binar|
|00000480| 79 20 77 61 73 20 00 00 | 00 80 00 00 a5 30 00 00 |y was ..|.....0..|
|00000490| 40 7c a1 00 c9 ec fb ff | a9 1b fc ff 20 22 00 00 |@|......|.... "..|
|000004a0| 62 75 69 6c 74 20 66 6f | 72 2e 0d 07 0a 17 cd 00 |built fo|r.......|
|000004b0| 0a 17 cd 00 00 00 00 00 | 00 30 00 00 a5 44 00 00 |........|.0...D..|
|000004c0| 40 b0 23 03 22 76 fb ff | d2 ac fb ff 18 2b 00 00 |@.#."v..|.....+..|
|000004d0| 48 6f 77 20 63 6f 6d 65 | 20 65 78 65 63 28 29 20 |How come| exec() |
|000004e0| 64 6f 65 73 6e 27 74 20 | 72 65 74 75 72 6e 3f 0d |doesn't |return?.|
|000004f0| 08 1b cd 00 0a 18 cd 00 | 00 00 00 00 00 44 00 00 |........|.....D..|
|00000500| 05 88 00 00 00 9c d4 07 | ed 20 fb ff cd 4f fb ff |........|. ...O..|
|00000510| 20 22 00 00 42 65 63 61 | 75 73 65 20 74 68 61 74 | "..Beca|use that|
|00000520| 27 73 20 77 68 61 74 20 | 69 74 20 64 6f 65 73 3a |'s what |it does:|
|00000530| 20 69 74 20 72 65 70 6c | 61 63 65 73 20 79 6f 75 | it repl|aces you|
|00000540| 72 20 63 75 72 72 65 6e | 74 6c 79 20 72 75 6e 6e |r curren|tly runn|
|00000550| 69 6e 67 20 70 72 6f 67 | 72 61 6d 20 77 69 74 68 |ing prog|ram with|
|00000560| 20 61 20 64 69 66 66 65 | 72 65 6e 74 20 6f 6e 65 | a diffe|rent one|
|00000570| 2e 20 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |. If yo|u want t|
|00000580| 6f 20 00 00 00 88 00 00 | a5 80 00 00 40 b4 5a 06 |o ......|....@.Z.|
|00000590| c6 e8 fa ff a6 17 fb ff | 20 22 00 00 6b 65 65 70 |........| "..keep|
|000005a0| 20 67 6f 69 6e 67 20 28 | 61 73 20 69 73 20 70 72 | going (|as is pr|
|000005b0| 6f 62 61 62 6c 79 20 74 | 68 65 20 63 61 73 65 20 |obably t|he case |
|000005c0| 69 66 20 79 6f 75 27 72 | 65 20 61 73 6b 69 6e 67 |if you'r|e asking|
|000005d0| 20 74 68 69 73 20 71 75 | 65 73 74 69 6f 6e 29 20 | this qu|estion) |
|000005e0| 75 73 65 20 73 79 73 74 | 65 6d 28 29 20 69 6e 73 |use syst|em() ins|
|000005f0| 74 65 61 64 2e 0d 07 3a | 0a 19 cd 00 0a 19 cd 00 |tead...:|........|
|00000600| 00 00 00 00 00 80 00 00 | a5 6c 00 00 40 22 6c 05 |........|.l..@"l.|
|00000610| 1f 72 fa ff cf a8 fa ff | 18 2b 00 00 48 6f 77 20 |.r......|.+..How |
|00000620| 64 6f 20 49 20 64 6f 20 | 66 61 6e 63 79 20 73 74 |do I do |fancy st|
|00000630| 75 66 66 20 77 69 74 68 | 20 74 68 65 20 6b 65 79 |uff with| the key|
|00000640| 62 6f 61 72 64 2f 73 63 | 72 65 65 6e 2f 6d 6f 75 |board/sc|reen/mou|
|00000650| 73 65 3f 0d 08 0d 54 65 | 0a 1a cd 00 00 00 00 00 |se?...Te|........|
|00000660| 07 6e 20 20 14 1b cd 00 | 14 1b cd 00 00 00 00 00 |.n ....|........|
|00000670| 00 6c 00 00 05 80 00 00 | 00 78 aa 07 ea 1c fa ff |.l......|.x......|
|00000680| ca 4b fa ff 20 22 00 00 | 48 6f 77 20 79 6f 75 20 |.K.. "..|How you |
|00000690| 61 63 63 65 73 73 2f 63 | 6f 6e 74 72 6f 6c 20 6b |access/c|ontrol k|
|000006a0| 65 79 62 6f 61 72 64 73 | 2c 20 73 63 72 65 65 6e |eyboards|, screen|
|000006b0| 73 2c 20 61 6e 64 20 70 | 6f 69 6e 74 69 6e 67 20 |s, and p|ointing |
|000006c0| 64 65 76 69 63 65 73 20 | 28 22 6d 69 63 65 22 29 |devices |("mice")|
|000006d0| 20 69 73 20 73 79 73 74 | 65 6d 2d 64 65 70 65 6e | is syst|em-depen|
|000006e0| 64 65 6e 74 2e 20 20 54 | 72 79 20 74 68 65 20 00 |dent. T|ry the .|
|000006f0| 00 80 00 00 a5 70 00 00 | 40 e8 6d 01 c3 e4 f9 ff |.....p..|@.m.....|
|00000700| a3 13 fa ff 20 22 00 00 | 66 6f 6c 6c 6f 77 69 6e |.... "..|followin|
|00000710| 67 20 6d 6f 64 75 6c 65 | 73 3a 0d 08 14 00 00 00 |g module|s:......|
|00000720| 00 00 00 00 07 20 20 20 | 13 1c cd 00 13 1c cd 00 |..... |........|
|00000730| 00 00 00 00 07 61 72 64 | 12 1d cd 00 13 1c cd 00 |.....ard|........|
|00000740| 12 1d cd 00 00 00 00 00 | 07 6e 0d 43 0c 1e cd 00 |........|.n.C....|
|00000750| 13 1c cd 00 12 1d cd 00 | 0c 1e cd 00 00 00 00 00 |........|........|
|00000760| 00 70 00 00 25 50 00 00 | 40 a0 f1 04 bc 7d f9 ff |.p..%P..|@....}..|
|00000770| cc a4 f9 ff 70 1a 00 00 | 54 65 72 6d 3a 3a 43 61 |....p...|Term::Ca|
|00000780| 70 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |p | |
|00000790| 20 20 20 20 53 74 61 6e | 64 61 72 64 20 70 65 72 | Stan|dard per|
|000007a0| 6c 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 0d 00 |l distri|bution..|
|000007b0| 00 50 00 00 25 3c 00 00 | 40 00 ee 02 dc 4e f9 ff |.P..%<..|@....N..|
|000007c0| ec 75 f9 ff 70 1a 00 00 | 54 65 72 6d 3a 3a 52 65 |.u..p...|Term::Re|
|000007d0| 61 64 4b 65 79 20 20 20 | 20 20 20 20 20 20 20 20 |adKey | |
|000007e0| 20 20 20 20 43 50 41 4e | 0d 00 00 00 00 3c 00 00 | CPAN|.....<..|
|000007f0| 25 3c 00 00 40 00 ee 02 | fc 1f f9 ff 0c 47 f9 ff |%<..@...|.....G..|
|00000800| 70 1a 00 00 54 65 72 6d | 3a 3a 52 65 61 64 4c 69 |p...Term|::ReadLi|
|00000810| 6e 65 3a 3a 47 6e 75 20 | 20 20 20 20 20 20 20 20 |ne::Gnu | |
|00000820| 43 50 41 4e 0d 00 00 00 | 00 3c 00 00 25 3c 00 00 |CPAN....|.<..%<..|
|00000830| 40 00 ee 02 1c f1 f8 ff | 2c 18 f9 ff 70 1a 00 00 |@.......|,...p...|
|00000840| 54 65 72 6d 3a 3a 52 65 | 61 64 4c 69 6e 65 3a 3a |Term::Re|adLine::|
|00000850| 50 65 72 6c 20 20 20 20 | 20 20 20 20 43 50 41 4e |Perl | CPAN|
|00000860| 0d 00 00 00 00 3c 00 00 | a5 70 00 00 40 00 ee 02 |.....<..|.p..@...|
|00000870| 3c c2 f8 ff 4c e9 f8 ff | 70 1a 00 00 54 65 72 6d |<...L...|p...Term|
|00000880| 3a 3a 53 63 72 65 65 6e | 20 20 20 20 20 20 20 20 |::Screen| |
|00000890| 20 20 20 20 20 20 20 20 | 43 50 41 4e 0d 08 cd 00 | |CPAN....|
|000008a0| 0c 1f cd 00 13 1c cd 00 | 12 1d cd 00 00 00 00 00 |........|........|
|000008b0| 08 1c cd 00 12 00 00 00 | 13 1c cd 00 00 00 00 00 |........|........|
|000008c0| 07 00 00 00 18 20 cd 00 | 13 1c cd 00 18 20 cd 00 |..... ..|..... ..|
|000008d0| 00 00 00 00 00 70 00 00 | a5 3c 00 00 40 00 00 00 |.....p..|.<..@...|
|000008e0| ac ad f8 ff 6c ba f8 ff | 00 00 00 00 0d 08 61 20 |....l...|......a |
|000008f0| 18 21 cd 00 13 1c cd 00 | 00 00 00 00 07 34 cd 00 |.!......|.....4..|
|00000900| 09 22 cd 00 13 1c cd 00 | 09 22 cd 00 00 00 00 00 |."......|."......|
|00000910| 00 3c 00 00 a5 5c 00 00 | 40 88 c8 00 dc 54 f8 ff |.<...\..|@....T..|
|00000920| bc 83 f8 ff 28 23 00 00 | 4b 65 79 62 6f 61 72 64 |....(#..|Keyboard|
|00000930| 0d 08 20 20 09 23 cd 00 | 13 1c cd 00 00 00 00 00 |.. .#..|........|
|00000940| 07 6e 74 20 12 24 cd 00 | 13 1c cd 00 12 24 cd 00 |.nt .$..|.....$..|
|00000950| 00 00 00 00 07 65 72 65 | 0c 25 cd 00 13 1c cd 00 |.....ere|.%......|
|00000960| 12 24 cd 00 0c 25 cd 00 | 00 00 00 00 00 5c 00 00 |.$...%..|.....\..|
|00000970| 25 50 00 00 40 a0 f1 04 | 85 24 f8 ff 95 4b f8 ff |%P..@...|.$...K..|
|00000980| 70 1a 00 00 54 65 72 6d | 3a 3a 43 61 70 20 20 20 |p...Term|::Cap |
|00000990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009a0| 53 74 61 6e 64 61 72 64 | 20 70 65 72 6c 20 64 69 |Standard| perl di|
|000009b0| 73 74 72 69 62 75 74 69 | 6f 6e 0d 00 00 50 00 00 |stributi|on...P..|
|000009c0| 25 3c 00 00 40 00 ee 02 | a5 f5 f7 ff b5 1c f8 ff |%<..@...|........|
|000009d0| 70 1a 00 00 43 75 72 73 | 65 73 20 20 20 20 20 20 |p...Curs|es |
|000009e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009f0| 43 50 41 4e 0d 00 00 00 | 00 3c 00 00 a5 70 00 00 |CPAN....|.<...p..|
|00000a00| 40 00 ee 02 c5 c6 f7 ff | d5 ed f7 ff 70 1a 00 00 |@.......|....p...|
|00000a10| 54 65 72 6d 3a 3a 41 4e | 53 49 43 6f 6c 6f 72 20 |Term::AN|SIColor |
|00000a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 43 50 41 4e | | CPAN|
|00000a30| 0d 08 69 6f 0c 26 cd 00 | 13 1c cd 00 12 24 cd 00 |..io.&..|.....$..|
|00000a40| 00 00 00 00 08 4f 53 49 | 12 00 00 00 13 1c cd 00 |.....OSI|........|
|00000a50| 00 00 00 00 07 6e 74 72 | 18 27 cd 00 13 1c cd 00 |.....ntr|.'......|
|00000a60| 18 27 cd 00 00 00 00 00 | 00 70 00 00 a5 3c 00 00 |.'......|.p...<..|
|00000a70| 40 00 00 00 35 b2 f7 ff | f5 be f7 ff 00 00 00 00 |@...5...|........|
|00000a80| 0d 08 05 05 18 28 cd 00 | 13 1c cd 00 00 00 00 00 |.....(..|........|
|00000a90| 07 20 43 68 09 29 cd 00 | 13 1c cd 00 09 29 cd 00 |. Ch.)..|.....)..|
|00000aa0| 00 00 00 00 00 3c 00 00 | a5 58 00 00 40 88 86 00 |.....<..|.X..@...|
|00000ab0| 65 59 f7 ff 45 88 f7 ff | 28 23 00 00 53 63 72 65 |eY..E...|(#..Scre|
|00000ac0| 65 6e 0d 08 09 2a cd 00 | 13 1c cd 00 00 00 00 00 |en...*..|........|
|00000ad0| 07 05 05 05 12 2b cd 00 | 13 1c cd 00 12 2b cd 00 |.....+..|.....+..|
|00000ae0| 00 00 00 00 07 20 77 69 | 0c 2c cd 00 13 1c cd 00 |..... wi|.,......|
|00000af0| 12 2b cd 00 0c 2c cd 00 | 00 00 00 00 00 58 00 00 |.+...,..|.....X..|
|00000b00| a5 70 00 00 40 00 ee 02 | 0e 29 f7 ff 1e 50 f7 ff |.p..@...|.)...P..|
|00000b10| 70 1a 00 00 54 6b 20 20 | 20 20 20 20 20 20 20 20 |p...Tk | |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b30| 43 50 41 4e 0d 08 20 74 | 0c 2d cd 00 13 1c cd 00 |CPAN.. t|.-......|
|00000b40| 12 2b cd 00 00 00 00 00 | 08 6d 6f 64 12 00 00 00 |.+......|.mod....|
|00000b50| 13 1c cd 00 00 00 00 00 | 07 2c 20 77 18 2e cd 00 |........|., w....|
|00000b60| 13 1c cd 00 18 2e cd 00 | 00 00 00 00 00 70 00 00 |........|.....p..|
|00000b70| a5 3c 00 00 40 00 00 00 | 7e 14 f7 ff 3e 21 f7 ff |.<..@...|~...>!..|
|00000b80| 00 00 00 00 0d 08 6f 72 | 18 2f cd 00 13 1c cd 00 |......or|./......|
|00000b90| 00 00 00 00 07 38 cd 00 | 09 30 cd 00 13 1c cd 00 |.....8..|.0......|
|00000ba0| 09 30 cd 00 00 00 00 00 | 00 3c 00 00 a5 48 00 00 |.0......|.<...H..|
|00000bb0| 40 cc 84 00 ae bb f6 ff | 8e ea f6 ff 28 23 00 00 |@.......|....(#..|
|00000bc0| 4d 6f 75 73 65 0d 08 05 | 09 31 cd 00 13 1c cd 00 |Mouse...|.1......|
|00000bd0| 00 00 00 00 08 64 65 70 | 13 32 cd 00 00 00 00 00 |.....dep|.2......|
|00000be0| 07 68 69 63 0a 33 cd 00 | 0a 33 cd 00 00 00 00 00 |.hic.3..|.3......|
|00000bf0| 00 48 00 00 a5 48 00 00 | 40 22 a5 03 b7 7b f6 ff |.H...H..|@"...{..|
|00000c00| 67 b2 f6 ff 18 2b 00 00 | 48 6f 77 20 64 6f 20 49 |g....+..|How do I|
|00000c10| 20 61 73 6b 20 74 68 65 | 20 75 73 65 72 20 66 6f | ask the| user fo|
|00000c20| 72 20 61 20 70 61 73 73 | 77 6f 72 64 3f 0d 08 72 |r a pass|word?..r|
|00000c30| 0a 34 cd 00 00 00 00 00 | 00 48 00 00 25 68 00 00 |.4......|.H..%h..|
|00000c40| 40 bc a4 05 82 26 f6 ff | 62 55 f6 ff 20 22 00 00 |@....&..|bU.. "..|
|00000c50| 28 54 68 69 73 20 71 75 | 65 73 74 69 6f 6e 20 68 |(This qu|estion h|
|00000c60| 61 73 20 6e 6f 74 68 69 | 6e 67 20 74 6f 20 64 6f |as nothi|ng to do|
|00000c70| 20 77 69 74 68 20 74 68 | 65 20 77 65 62 2e 20 20 | with th|e web. |
|00000c80| 53 65 65 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |See a di|fferent |
|00000c90| 46 41 51 20 66 6f 72 20 | 74 68 61 74 2e 29 0d 00 |FAQ for |that.)..|
|00000ca0| 00 68 00 00 85 a4 00 00 | 00 84 dd 07 ab b7 f5 ff |.h......|........|
|00000cb0| 8b e6 f5 ff 20 22 00 00 | 54 68 65 72 65 27 73 20 |.... "..|There's |
|00000cc0| 61 6e 20 65 78 61 6d 70 | 6c 65 20 6f 66 20 74 68 |an examp|le of th|
|00000cd0| 69 73 20 69 6e 20 74 68 | 65 20 22 63 72 79 70 74 |is in th|e "crypt|
|00000ce0| 22 20 65 6e 74 72 79 20 | 69 6e 20 74 68 65 20 63 |" entry |in the c|
|00000cf0| 68 61 70 74 65 72 20 07 | 10 35 cd 00 10 35 cd 00 |hapter .|.5...5..|
|00000d00| 00 00 00 00 70 65 72 6c | 66 75 6e 63 08 6f 63 6b |....perl|func.ock|
|00000d10| 10 00 00 00 00 00 00 00 | 29 2e 20 20 46 69 72 73 |........|). Firs|
|00000d20| 74 2c 20 79 6f 75 20 70 | 75 74 20 74 68 65 20 74 |t, you p|ut the t|
|00000d30| 65 72 6d 69 6e 61 6c 20 | 69 6e 74 6f 20 22 6e 6f |erminal |into "no|
|00000d40| 20 00 00 00 00 a4 00 00 | 05 80 00 00 00 e8 73 07 | .......|......s.|
|00000d50| 84 7f f5 ff 64 ae f5 ff | 20 22 00 00 65 63 68 6f |....d...| "..echo|
|00000d60| 22 20 6d 6f 64 65 2c 20 | 74 68 65 6e 20 6a 75 73 |" mode, |then jus|
|00000d70| 74 20 72 65 61 64 20 74 | 68 65 20 70 61 73 73 77 |t read t|he passw|
|00000d80| 6f 72 64 20 6e 6f 72 6d | 61 6c 6c 79 2e 20 20 59 |ord norm|ally. Y|
|00000d90| 6f 75 20 6d 61 79 20 64 | 6f 20 74 68 69 73 20 77 |ou may d|o this w|
|00000da0| 69 74 68 20 61 6e 20 6f | 6c 64 2d 73 74 79 6c 65 |ith an o|ld-style|
|00000db0| 20 69 6f 63 74 6c 28 29 | 20 66 75 6e 63 74 69 6f | ioctl()| functio|
|00000dc0| 6e 2c 20 00 00 80 00 00 | 85 bc 00 00 00 14 e7 07 |n, .....|........|
|00000dd0| 5d 47 f5 ff 3d 76 f5 ff | 20 22 00 00 50 4f 53 49 |]G..=v..| "..POSI|
|00000de0| 58 20 74 65 72 6d 69 6e | 61 6c 20 63 6f 6e 74 72 |X termin|al contr|
|00000df0| 6f 6c 20 28 73 65 65 20 | 74 68 65 20 63 68 61 70 |ol (see |the chap|
|00000e00| 74 65 72 20 07 3a cd 00 | 10 36 cd 00 10 36 cd 00 |ter .:..|.6...6..|
|00000e10| 00 00 00 00 50 4f 53 49 | 58 08 74 20 10 00 00 00 |....POSI|X.t ....|
|00000e20| 00 00 00 00 2c 20 61 6e | 64 20 43 68 61 70 74 65 |...., an|d Chapte|
|00000e30| 72 20 37 20 6f 66 20 74 | 68 65 20 43 61 6d 65 6c |r 7 of t|he Camel|
|00000e40| 29 2c 20 6f 72 20 61 20 | 63 61 6c 6c 20 74 6f 20 |), or a |call to |
|00000e50| 74 68 65 20 07 6c 6c 20 | 10 37 cd 00 10 37 cd 00 |the .ll |.7...7..|
|00000e60| 00 00 00 00 73 74 74 79 | 08 6f 72 20 10 00 00 00 |....stty|.or ....|
|00000e70| 00 00 00 00 20 70 72 6f | 67 72 61 6d 2c 20 00 00 |.... pro|gram, ..|
|00000e80| 00 bc 00 00 25 40 00 00 | 40 a0 93 02 36 0f f5 ff |....%@..|@...6...|
|00000e90| 16 3e f5 ff 20 22 00 00 | 77 69 74 68 20 76 61 72 |.>.. "..|with var|
|00000ea0| 79 69 6e 67 20 64 65 67 | 72 65 65 73 20 6f 66 20 |ying deg|rees of |
|00000eb0| 70 6f 72 74 61 62 69 6c | 69 74 79 2e 0d 00 00 00 |portabil|ity.....|
|00000ec0| 00 40 00 00 05 80 00 00 | 00 74 db 07 5f a0 f4 ff |.@......|.t.._...|
|00000ed0| 3f cf f4 ff 20 22 00 00 | 59 6f 75 20 63 61 6e 20 |?... "..|You can |
|00000ee0| 61 6c 73 6f 20 64 6f 20 | 74 68 69 73 20 66 6f 72 |also do |this for|
|00000ef0| 20 6d 6f 73 74 20 73 79 | 73 74 65 6d 73 20 75 73 | most sy|stems us|
|00000f00| 69 6e 67 20 74 68 65 20 | 54 65 72 6d 3a 3a 52 65 |ing the |Term::Re|
|00000f10| 61 64 4b 65 79 20 6d 6f | 64 75 6c 65 20 66 72 6f |adKey mo|dule fro|
|00000f20| 6d 20 43 50 41 4e 2c 20 | 77 68 69 63 68 20 69 73 |m CPAN, |which is|
|00000f30| 20 65 61 73 69 65 72 20 | 74 6f 20 75 73 65 20 00 | easier |to use .|
|00000f40| 00 80 00 00 a5 44 00 00 | 40 74 14 02 38 68 f4 ff |.....D..|@t..8h..|
|00000f50| 18 97 f4 ff 20 22 00 00 | 61 6e 64 20 69 6e 20 74 |.... "..|and in t|
|00000f60| 68 65 6f 72 79 20 6d 6f | 72 65 20 70 6f 72 74 61 |heory mo|re porta|
|00000f70| 62 6c 65 2e 0d 07 74 65 | 0a 38 cd 00 0a 38 cd 00 |ble...te|.8...8..|
|00000f80| 00 00 00 00 00 44 00 00 | 01 10 00 00 41 68 ba 03 |.....D..|....Ah..|
|00000f90| 00 00 00 00 00 10 00 00 | 02 18 00 00 64 02 00 00 |........|....d...|
|00000fa0| 00 00 00 00 0a 38 cd 00 | 00 00 00 00 00 18 00 00 |.....8..|........|
|00000fb0| a5 58 00 00 40 68 ba 03 | ff 3c f2 ff af 73 f2 ff |.X..@h..|.<...s..|
|00000fc0| 18 2b 00 f0 16 00 00 00 | b0 fc 07 00 00 00 00 00 |.+......|........|
|00000fd0| 48 6f 77 20 64 6f 20 49 | 20 72 65 61 64 20 61 6e |How do I| read an|
|00000fe0| 64 20 77 72 69 74 65 20 | 74 68 65 20 73 65 72 69 |d write |the seri|
|00000ff0| 61 6c 20 70 6f 72 74 3f | 0d 08 72 74 0a 39 cd 00 |al port?|..rt.9..|
|00001000| 00 00 00 00 00 58 00 00 | 05 84 00 00 00 d0 be 07 |.....X..|........|
|00001010| ca e7 f1 ff aa 16 f2 ff | 20 22 00 f0 54 68 69 73 |........| "..This|
|00001020| 20 64 65 70 65 6e 64 73 | 20 6f 6e 20 77 68 69 63 | depends| on whic|
|00001030| 68 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |h operat|ing syst|
|00001040| 65 6d 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 20 |em your |program |
|00001050| 69 73 20 72 75 6e 6e 69 | 6e 67 20 6f 6e 2e 20 20 |is runni|ng on. |
|00001060| 49 6e 20 74 68 65 20 63 | 61 73 65 20 6f 66 20 55 |In the c|ase of U|
|00001070| 6e 69 78 2c 20 74 68 65 | 20 73 65 72 69 61 6c 20 |nix, the| serial |
|00001080| 70 6f 72 74 73 20 00 00 | 00 84 00 00 05 88 00 00 |ports ..|........|
|00001090| 00 80 b7 07 a3 af f1 ff | 83 de f1 ff 20 22 00 f0 |........|.... "..|
|000010a0| 77 69 6c 6c 20 62 65 20 | 61 63 63 65 73 73 69 62 |will be |accessib|
|000010b0| 6c 65 20 74 68 72 6f 75 | 67 68 20 66 69 6c 65 73 |le throu|gh files|
|000010c0| 20 69 6e 20 2f 64 65 76 | 3b 20 6f 6e 20 6f 74 68 | in /dev|; on oth|
|000010d0| 65 72 20 73 79 73 74 65 | 6d 73 2c 20 74 68 65 20 |er syste|ms, the |
|000010e0| 64 65 76 69 63 65 73 20 | 6e 61 6d 65 73 20 77 69 |devices |names wi|
|000010f0| 6c 6c 20 64 6f 75 62 74 | 6c 65 73 73 20 64 69 66 |ll doubt|less dif|
|00001100| 66 65 72 2e 20 53 65 76 | 65 72 61 6c 20 00 00 00 |fer. Sev|eral ...|
|00001110| 00 88 00 00 a5 7c 00 00 | 40 08 c9 04 7c 77 f1 ff |.....|..|@...|w..|
|00001120| 5c a6 f1 ff 20 22 00 f0 | 70 72 6f 62 6c 65 6d 20 |\... "..|problem |
|00001130| 61 72 65 61 73 20 63 6f | 6d 6d 6f 6e 20 74 6f 20 |areas co|mmon to |
|00001140| 61 6c 6c 20 64 65 76 69 | 63 65 20 69 6e 74 65 72 |all devi|ce inter|
|00001150| 61 63 74 69 6f 6e 20 61 | 72 65 20 74 68 65 20 66 |action a|re the f|
|00001160| 6f 6c 6c 6f 77 69 6e 67 | 0d 07 22 30 13 3a cd 00 |ollowing|.."0.:..|
|00001170| 13 3a cd 00 00 00 00 00 | 07 61 20 63 09 3b cd 00 |.:......|.a c.;..|
|00001180| 13 3a cd 00 09 3b cd 00 | 00 00 00 00 00 7c 00 00 |.:...;..|.....|..|
|00001190| a5 30 00 00 40 10 a4 00 | a5 08 f1 ff 85 37 f1 ff |.0..@...|.....7..|
|000011a0| 28 23 00 f0 6c 6f 63 6b | 66 69 6c 65 73 0d 08 00 |(#..lock|files...|
|000011b0| 09 3c cd 00 13 3a cd 00 | 00 00 00 00 00 30 00 00 |.<...:..|.....0..|
|000011c0| 05 98 00 00 04 a0 cd 07 | 7e d0 f0 ff 5e ff f0 ff |........|~...^...|
|000011d0| 20 22 00 f0 12 20 44 45 | 50 46 00 00 00 00 00 00 | "... DE|PF......|
|000011e0| 12 31 32 22 70 17 00 00 | 00 00 00 00 59 6f 75 72 |.12"p...|....Your|
|000011f0| 20 73 79 73 74 65 6d 20 | 6d 61 79 20 75 73 65 20 | system |may use |
|00001200| 6c 6f 63 6b 66 69 6c 65 | 73 20 74 6f 20 63 6f 6e |lockfile|s to con|
|00001210| 74 72 6f 6c 20 6d 75 6c | 74 69 70 6c 65 20 61 63 |trol mul|tiple ac|
|00001220| 63 65 73 73 2e 20 20 4d | 61 6b 65 20 73 75 72 65 |cess. M|ake sure|
|00001230| 20 79 6f 75 20 66 6f 6c | 6c 6f 77 20 74 68 65 20 | you fol|low the |
|00001240| 63 6f 72 72 65 63 74 20 | 70 72 6f 74 6f 63 6f 6c |correct |protocol|
|00001250| 2e 20 20 00 00 98 00 00 | a5 80 00 00 40 e4 3f 06 |. .....|....@.?.|
|00001260| 57 98 f0 ff 37 c7 f0 ff | 20 22 00 f0 55 6e 70 72 |W...7...| "..Unpr|
|00001270| 65 64 69 63 74 61 62 6c | 65 20 62 65 68 61 76 69 |edictabl|e behavi|
|00001280| 6f 75 72 20 63 61 6e 20 | 72 65 73 75 6c 74 20 66 |our can |result f|
|00001290| 72 6f 6d 20 6d 75 6c 74 | 69 70 6c 65 20 70 72 6f |rom mult|iple pro|
|000012a0| 63 65 73 73 65 73 20 72 | 65 61 64 69 6e 67 20 66 |cesses r|eading f|
|000012b0| 72 6f 6d 20 6f 6e 65 20 | 64 65 76 69 63 65 2e 0d |rom one |device..|
|000012c0| 07 6b 2c 20 09 3d cd 00 | 13 3a cd 00 09 3d cd 00 |.k, .=..|.:...=..|
|000012d0| 00 00 00 00 00 80 00 00 | a5 30 00 00 40 74 d9 00 |........|.0..@t..|
|000012e0| 80 29 f0 ff 60 58 f0 ff | 28 23 00 f0 6f 70 65 6e |.)..`X..|(#..open|
|000012f0| 20 6d 6f 64 65 0d 08 6c | 09 3e cd 00 13 3a cd 00 | mode..l|.>...:..|
|00001300| 00 00 00 00 00 30 00 00 | 05 9c 00 00 04 8c de 07 |.....0..|........|
|00001310| 59 f1 ef ff 39 20 f0 ff | 20 22 00 f0 12 53 2f 57 |Y...9 ..| "...S/W|
|00001320| 50 46 00 00 00 00 00 00 | 12 61 63 69 70 17 00 00 |PF......|.acip...|
|00001330| 00 00 00 00 49 66 20 79 | 6f 75 20 65 78 70 65 63 |....If y|ou expec|
|00001340| 74 20 74 6f 20 75 73 65 | 20 62 6f 74 68 20 72 65 |t to use| both re|
|00001350| 61 64 20 61 6e 64 20 77 | 72 69 74 65 20 6f 70 65 |ad and w|rite ope|
|00001360| 72 61 74 69 6f 6e 73 20 | 6f 6e 20 74 68 65 20 64 |rations |on the d|
|00001370| 65 76 69 63 65 2c 20 79 | 6f 75 27 6c 6c 20 68 61 |evice, y|ou'll ha|
|00001380| 76 65 20 74 6f 20 6f 70 | 65 6e 20 69 74 20 66 6f |ve to op|en it fo|
|00001390| 72 20 75 70 64 61 74 65 | 20 28 73 65 65 20 00 00 |r update| (see ..|
|000013a0| 00 9c 00 00 85 a4 00 00 | 00 e8 91 07 32 b9 ef ff |........|....2...|
|000013b0| 12 e8 ef ff 20 22 00 f0 | 74 68 65 20 73 65 63 74 |.... "..|the sect|
|000013c0| 69 6f 6e 20 6f 6e 20 22 | 6f 70 65 6e 22 20 69 6e |ion on "|open" in|
|000013d0| 20 74 68 65 20 63 68 61 | 70 74 65 72 20 07 75 74 | the cha|pter .ut|
|000013e0| 10 3f cd 00 13 3a cd 00 | 10 3f cd 00 00 00 00 00 |.?...:..|.?......|
|000013f0| 70 65 72 6c 66 75 6e 63 | 08 2e 0d 07 10 00 00 00 |perlfunc|........|
|00001400| 13 3a cd 00 00 00 00 00 | 20 66 6f 72 20 64 65 74 |.:......| for det|
|00001410| 61 69 6c 73 29 2e 20 20 | 59 6f 75 20 6d 61 79 20 |ails). |You may |
|00001420| 77 69 73 68 20 74 6f 20 | 6f 70 65 6e 20 69 74 20 |wish to |open it |
|00001430| 77 69 74 68 6f 75 74 20 | 72 75 6e 6e 69 6e 67 20 |without |running |
|00001440| 74 68 65 20 00 a4 00 00 | 85 94 00 00 00 20 45 07 |the ....|..... E.|
|00001450| 0b 81 ef ff eb af ef ff | 20 22 00 f0 72 69 73 6b |........| "..risk|
|00001460| 20 6f 66 20 62 6c 6f 63 | 6b 69 6e 67 20 62 79 20 | of bloc|king by |
|00001470| 75 73 69 6e 67 20 73 79 | 73 6f 70 65 6e 28 29 20 |using sy|sopen() |
|00001480| 61 6e 64 20 07 74 6f 66 | 0e 40 cd 00 13 3a cd 00 |and .tof|.@...:..|
|00001490| 0e 40 cd 00 00 00 00 00 | 4f 5f 52 44 57 52 7c 4f |.@......|O_RDWR|O|
|000014a0| 5f 4e 44 45 4c 41 59 7c | 4f 5f 4e 4f 43 54 54 59 |_NDELAY||O_NOCTTY|
|000014b0| 08 4d cd 00 0e 41 cd 00 | 13 3a cd 00 00 00 00 00 |.M...A..|.:......|
|000014c0| 20 66 72 6f 6d 20 74 68 | 65 20 46 63 6e 74 6c 20 | from th|e Fcntl |
|000014d0| 6d 6f 64 75 6c 65 20 00 | 00 94 00 00 85 a4 00 00 |module .|........|
|000014e0| 00 24 71 07 e4 48 ef ff | c4 77 ef ff 20 22 00 f0 |.$q..H..|.w.. "..|
|000014f0| 28 70 61 72 74 20 6f 66 | 20 74 68 65 20 73 74 61 |(part of| the sta|
|00001500| 6e 64 61 72 64 20 70 65 | 72 6c 20 64 69 73 74 72 |ndard pe|rl distr|
|00001510| 69 62 75 74 69 6f 6e 29 | 2e 20 20 53 65 65 20 74 |ibution)|. See t|
|00001520| 68 65 20 73 65 63 74 69 | 6f 6e 20 6f 6e 20 22 73 |he secti|on on "s|
|00001530| 79 73 6f 70 65 6e 22 20 | 69 6e 20 74 68 65 20 63 |ysopen" |in the c|
|00001540| 68 61 70 74 65 72 20 07 | 10 42 cd 00 13 3a cd 00 |hapter .|.B...:..|
|00001550| 10 42 cd 00 00 00 00 00 | 70 65 72 6c 66 75 6e 63 |.B......|perlfunc|
|00001560| 08 00 00 00 10 00 00 00 | 13 3a cd 00 00 00 00 00 |........|.:......|
|00001570| 20 66 6f 72 20 6d 6f 72 | 65 20 00 00 00 a4 00 00 | for mor|e ......|
|00001580| a5 3c 00 00 40 90 41 01 | bd 10 ef ff 9d 3f ef ff |.<..@.A.|.....?..|
|00001590| 20 22 00 f0 6f 6e 20 74 | 68 69 73 20 61 70 70 72 | "..on t|his appr|
|000015a0| 6f 61 63 68 2e 0d 07 00 | 09 43 cd 00 13 3a cd 00 |oach....|.C...:..|
|000015b0| 09 43 cd 00 00 00 00 00 | 00 3c 00 00 a5 34 00 00 |.C......|.<...4..|
|000015c0| 40 5c d0 00 e6 a1 ee ff | c6 d0 ee ff 28 23 00 f0 |@\......|....(#..|
|000015d0| 65 6e 64 20 6f 66 20 6c | 69 6e 65 0d 08 3a cd 00 |end of l|ine..:..|
|000015e0| 09 44 cd 00 13 3a cd 00 | 00 00 00 00 00 34 00 00 |.D...:..|.....4..|
|000015f0| 05 9c 00 00 04 cc c8 07 | bf 69 ee ff 9f 98 ee ff |........|.i......|
|00001600| 20 22 00 f0 12 65 6c 65 | 50 46 00 00 00 00 00 00 | "...ele|PF......|
|00001610| 12 74 68 65 70 17 00 00 | 00 00 00 00 53 6f 6d 65 |.thep...|....Some|
|00001620| 20 64 65 76 69 63 65 73 | 20 77 69 6c 6c 20 62 65 | devices| will be|
|00001630| 20 65 78 70 65 63 74 69 | 6e 67 20 61 20 22 5c 72 | expecti|ng a "\r|
|00001640| 22 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |" at the| end of |
|00001650| 65 61 63 68 20 6c 69 6e | 65 20 72 61 74 68 65 72 |each lin|e rather|
|00001660| 20 74 68 61 6e 20 61 20 | 22 5c 6e 22 2e 20 20 49 | than a |"\n". I|
|00001670| 6e 20 73 6f 6d 65 20 70 | 6f 72 74 73 20 6f 66 20 |n some p|orts of |
|00001680| 70 65 72 6c 2c 20 00 00 | 00 9c 00 00 05 80 00 00 |perl, ..|........|
|00001690| 00 e8 8b 07 98 31 ee ff | 78 60 ee ff 20 22 00 f0 |.....1..|x`.. "..|
|000016a0| 22 5c 72 22 20 61 6e 64 | 20 22 5c 6e 22 20 61 72 |"\r" and| "\n" ar|
|000016b0| 65 20 64 69 66 66 65 72 | 65 6e 74 20 66 72 6f 6d |e differ|ent from|
|000016c0| 20 74 68 65 69 72 20 75 | 73 75 61 6c 20 28 55 6e | their u|sual (Un|
|000016d0| 69 78 29 20 41 53 43 49 | 49 20 76 61 6c 75 65 73 |ix) ASCI|I values|
|000016e0| 20 6f 66 20 22 5c 30 31 | 32 22 20 61 6e 64 20 22 | of "\01|2" and "|
|000016f0| 5c 30 31 35 22 2e 20 20 | 59 6f 75 20 6d 61 79 20 |\015". |You may |
|00001700| 68 61 76 65 20 74 6f 20 | 00 80 00 00 05 84 00 00 |have to |........|
|00001710| 00 cc 89 07 71 f9 ed ff | 51 28 ee ff 20 22 00 f0 |....q...|Q(.. "..|
|00001720| 67 69 76 65 20 74 68 65 | 20 6e 75 6d 65 72 69 63 |give the| numeric|
|00001730| 20 76 61 6c 75 65 73 20 | 79 6f 75 20 77 61 6e 74 | values |you want|
|00001740| 20 64 69 72 65 63 74 6c | 79 2c 20 75 73 69 6e 67 | directl|y, using|
|00001750| 20 6f 63 74 61 6c 20 28 | 22 5c 30 31 35 22 29 2c | octal (|"\015"),|
|00001760| 20 68 65 78 20 28 22 30 | 78 30 44 22 29 2c 20 6f | hex ("0|x0D"), o|
|00001770| 72 20 61 73 20 61 20 63 | 6f 6e 74 72 6f 6c 2d 63 |r as a c|ontrol-c|
|00001780| 68 61 72 61 63 74 65 72 | 20 00 00 00 00 84 00 00 |haracter| .......|
|00001790| a5 58 00 00 40 f4 97 01 | 4a c1 ed ff 2a f0 ed ff |.X..@...|J...*...|
|000017a0| 20 22 00 f0 73 70 65 63 | 69 66 69 63 61 74 69 6f | "..spec|ificatio|
|000017b0| 6e 20 28 22 5c 63 4d 22 | 29 2e 0d 07 12 45 cd 00 |n ("\cM"|)....E..|
|000017c0| 13 3a cd 00 12 45 cd 00 | 00 00 00 00 07 20 63 6f |.:...E..|..... co|
|000017d0| 0c 46 cd 00 13 3a cd 00 | 12 45 cd 00 0c 46 cd 00 |.F...:..|.E...F..|
|000017e0| 00 00 00 00 00 58 00 00 | 25 50 00 00 40 30 da 04 |.....X..|%P..@0..|
|000017f0| 43 5a ed ff 53 81 ed ff | 70 1a 00 f0 70 72 69 6e |CZ..S...|p...prin|
|00001800| 74 20 44 45 56 20 22 61 | 74 76 31 5c 30 31 32 22 |t DEV "a|tv1\012"|
|00001810| 3b 20 20 20 20 20 20 20 | 23 20 77 72 6f 6e 67 2c |; |# wrong,|
|00001820| 20 66 6f 72 20 73 6f 6d | 65 20 64 65 76 69 63 65 | for som|e device|
|00001830| 73 0d 00 00 00 50 00 00 | a5 84 00 00 40 30 da 04 |s....P..|....@0..|
|00001840| 63 2b ed ff 73 52 ed ff | 70 1a 00 f0 70 72 69 6e |c+..sR..|p...prin|
|00001850| 74 20 44 45 56 20 22 61 | 74 76 31 5c 30 31 35 22 |t DEV "a|tv1\015"|
|00001860| 3b 20 20 20 20 20 20 20 | 23 20 72 69 67 68 74 2c |; |# right,|
|00001870| 20 66 6f 72 20 73 6f 6d | 65 20 64 65 76 69 63 65 | for som|e device|
|00001880| 73 0d 08 00 0c 47 cd 00 | 13 3a cd 00 12 45 cd 00 |s....G..|.:...E..|
|00001890| 00 00 00 00 08 00 00 00 | 12 00 00 00 13 3a cd 00 |........|.....:..|
|000018a0| 00 00 00 00 07 64 20 69 | 18 48 cd 00 13 3a cd 00 |.....d i|.H...:..|
|000018b0| 18 48 cd 00 00 00 00 00 | 00 84 00 00 a5 28 00 00 |.H......|.....(..|
|000018c0| 40 00 00 00 d3 16 ed ff | 93 23 ed ff 00 00 00 f0 |@.......|.#......|
|000018d0| 0d 08 72 6b 18 49 cd 00 | 13 3a cd 00 00 00 00 00 |..rk.I..|.:......|
|000018e0| 00 28 00 00 05 94 00 00 | 04 a0 3a 07 03 be ec ff |.(......|..:.....|
|000018f0| e3 ec ec ff 20 22 00 f0 | 12 6e 64 20 50 46 00 00 |.... "..|.nd PF..|
|00001900| 00 00 00 00 12 2e 20 20 | 70 17 00 00 00 00 00 00 |...... |p.......|
|00001910| 45 76 65 6e 20 74 68 6f | 75 67 68 20 77 69 74 68 |Even tho|ugh with|
|00001920| 20 6e 6f 72 6d 61 6c 20 | 74 65 78 74 20 66 69 6c | normal |text fil|
|00001930| 65 73 2c 20 61 20 22 5c | 6e 22 20 77 69 6c 6c 20 |es, a "\|n" will |
|00001940| 64 6f 20 74 68 65 20 74 | 72 69 63 6b 2c 20 74 68 |do the t|rick, th|
|00001950| 65 72 65 20 69 73 20 73 | 74 69 6c 6c 20 6e 6f 20 |ere is s|till no |
|00001960| 75 6e 69 66 69 65 64 20 | 73 63 68 65 6d 65 20 66 |unified |scheme f|
|00001970| 6f 72 20 00 00 94 00 00 | 85 9c 00 00 00 74 57 07 |or .....|.....tW.|
|00001980| dc 85 ec ff bc b4 ec ff | 20 22 00 f0 74 65 72 6d |........| "..term|
|00001990| 69 6e 61 74 69 6e 67 20 | 61 20 6c 69 6e 65 20 74 |inating |a line t|
|000019a0| 68 61 74 20 69 73 20 70 | 6f 72 74 61 62 6c 65 20 |hat is p|ortable |
|000019b0| 62 65 74 77 65 65 6e 20 | 55 6e 69 78 2c 20 44 4f |between |Unix, DO|
|000019c0| 53 2f 57 69 6e 2c 20 61 | 6e 64 20 4d 61 63 69 6e |S/Win, a|nd Macin|
|000019d0| 74 6f 73 68 2c 20 65 78 | 63 65 70 74 20 74 6f 20 |tosh, ex|cept to |
|000019e0| 74 65 72 6d 69 6e 61 74 | 65 20 07 20 11 4a cd 00 |terminat|e . .J..|
|000019f0| 13 3a cd 00 11 4a cd 00 | 00 00 00 00 41 4c 4c 08 |.:...J..|....ALL.|
|00001a00| 11 00 00 00 13 3a cd 00 | 00 00 00 00 20 00 00 00 |.....:..|.... ...|
|00001a10| 00 9c 00 00 05 80 00 00 | 00 a4 3f 07 b5 4d ec ff |........|..?..M..|
|00001a20| 95 7c ec ff 20 22 00 f0 | 6c 69 6e 65 20 65 6e 64 |.|.. "..|line end|
|00001a30| 73 20 77 69 74 68 20 22 | 5c 30 31 35 5c 30 31 32 |s with "|\015\012|
|00001a40| 22 2c 20 61 6e 64 20 73 | 74 72 69 70 20 77 68 61 |", and s|trip wha|
|00001a50| 74 20 79 6f 75 20 64 6f | 6e 27 74 20 6e 65 65 64 |t you do|n't need|
|00001a60| 20 66 72 6f 6d 20 74 68 | 65 20 6f 75 74 70 75 74 | from th|e output|
|00001a70| 2e 20 54 68 69 73 20 61 | 70 70 6c 69 65 73 20 65 |. This a|pplies e|
|00001a80| 73 70 65 63 69 61 6c 6c | 79 20 74 6f 20 00 00 00 |speciall|y to ...|
|00001a90| 00 80 00 00 a5 58 00 00 | 40 bc 3a 03 8e 15 ec ff |.....X..|@.:.....|
|00001aa0| 6e 44 ec ff 20 22 00 f0 | 73 6f 63 6b 65 74 20 49 |nD.. "..|socket I|
|00001ab0| 2f 4f 20 61 6e 64 20 61 | 75 74 6f 66 6c 75 73 68 |/O and a|utoflush|
|00001ac0| 69 6e 67 2c 20 64 69 73 | 63 75 73 73 65 64 20 6e |ing, dis|cussed n|
|00001ad0| 65 78 74 2e 0d 07 72 65 | 09 4b cd 00 13 3a cd 00 |ext...re|.K...:..|
|00001ae0| 09 4b cd 00 00 00 00 00 | 00 58 00 00 a5 38 00 00 |.K......|.X...8..|
|00001af0| 40 18 32 01 b7 a6 eb ff | 97 d5 eb ff 28 23 00 f0 |@.2.....|....(#..|
|00001b00| 66 6c 75 73 68 69 6e 67 | 20 6f 75 74 70 75 74 0d |flushing| output.|
|00001b10| 08 61 70 74 09 4c cd 00 | 13 3a cd 00 00 00 00 00 |.apt.L..|.:......|
|00001b20| 00 38 00 00 05 94 00 00 | 04 94 7f 07 90 6e eb ff |.8......|.....n..|
|00001b30| 70 9d eb ff 20 22 00 f0 | 12 3a cd 00 50 46 00 00 |p... "..|.:..PF..|
|00001b40| 00 00 00 00 12 6a cd 00 | 70 17 00 00 00 00 00 00 |.....j..|p.......|
|00001b50| 49 66 20 79 6f 75 20 65 | 78 70 65 63 74 20 63 68 |If you e|xpect ch|
|00001b60| 61 72 61 63 74 65 72 73 | 20 74 6f 20 67 65 74 20 |aracters| to get |
|00001b70| 74 6f 20 79 6f 75 72 20 | 64 65 76 69 63 65 20 77 |to your |device w|
|00001b80| 68 65 6e 20 79 6f 75 20 | 70 72 69 6e 74 28 29 20 |hen you |print() |
|00001b90| 74 68 65 6d 2c 20 79 6f | 75 27 6c 6c 20 77 61 6e |them, yo|u'll wan|
|00001ba0| 74 20 74 6f 20 61 75 74 | 6f 66 6c 75 73 68 20 74 |t to aut|oflush t|
|00001bb0| 68 61 74 20 00 94 00 00 | a5 60 00 00 40 2c db 01 |hat ....|.`..@,..|
|00001bc0| 69 36 eb ff 49 65 eb ff | 20 22 00 f0 66 69 6c 65 |i6..Ie..| "..file|
|00001bd0| 68 61 6e 64 6c 65 2c 20 | 61 73 20 69 6e 20 74 68 |handle, |as in th|
|00001be0| 65 20 6f 6c 64 65 72 0d | 07 65 64 20 12 4d cd 00 |e older.|.ed .M..|
|00001bf0| 13 3a cd 00 12 4d cd 00 | 00 00 00 00 07 20 79 6f |.:...M..|..... yo|
|00001c00| 0c 4e cd 00 13 3a cd 00 | 12 4d cd 00 0c 4e cd 00 |.N...:..|.M...N..|
|00001c10| 00 00 00 00 00 60 00 00 | 25 28 00 00 40 90 5f 01 |.....`..|%(..@._.|
|00001c20| 62 cf ea ff 72 f6 ea ff | 70 1a 00 f0 75 73 65 20 |b...r...|p...use |
|00001c30| 46 69 6c 65 48 61 6e 64 | 6c 65 3b 0d 00 28 00 00 |FileHand|le;..(..|
|00001c40| a5 60 00 00 40 e0 a5 01 | 82 a0 ea ff 92 c7 ea ff |.`..@...|........|
|00001c50| 70 1a 00 f0 44 45 56 2d | 3e 61 75 74 6f 66 6c 75 |p...DEV-|>autoflu|
|00001c60| 73 68 28 31 29 3b 0d 08 | 0c 4f cd 00 13 3a cd 00 |sh(1);..|.O...:..|
|00001c70| 12 4d cd 00 00 00 00 00 | 08 6f 72 63 12 00 00 00 |.M......|.orc....|
|00001c80| 13 3a cd 00 00 00 00 00 | 07 65 6c 6c 18 50 cd 00 |.:......|.ell.P..|
|00001c90| 13 3a cd 00 18 50 cd 00 | 00 00 00 00 00 60 00 00 |.:...P..|.....`..|
|00001ca0| a5 28 00 00 40 00 00 00 | f2 8b ea ff b2 98 ea ff |.(..@...|........|
|00001cb0| 00 00 00 f0 0d 08 20 28 | 18 51 cd 00 13 3a cd 00 |...... (|.Q...:..|
|00001cc0| 00 00 00 00 00 28 00 00 | a5 68 00 00 44 ac 64 01 |.....(..|.h..D.d.|
|00001cd0| 22 33 ea ff 02 62 ea ff | 20 22 00 f0 12 75 27 72 |"3...b..| "...u'r|
|00001ce0| 50 46 00 00 00 00 00 00 | 12 20 61 62 70 17 00 00 |PF......|. abp...|
|00001cf0| 00 00 00 00 61 6e 64 20 | 74 68 65 20 6e 65 77 65 |....and |the newe|
|00001d00| 72 0d 07 20 12 52 cd 00 | 13 3a cd 00 12 52 cd 00 |r.. .R..|.:...R..|
|00001d10| 00 00 00 00 07 6f 75 6c | 0c 53 cd 00 13 3a cd 00 |.....oul|.S...:..|
|00001d20| 12 52 cd 00 0c 53 cd 00 | 00 00 00 00 00 68 00 00 |.R...S..|.....h..|
|00001d30| 25 28 00 00 40 90 5f 01 | 1b cc e9 ff 2b f3 e9 ff |%(..@._.|....+...|
|00001d40| 70 1a 00 f0 75 73 65 20 | 49 4f 3a 3a 48 61 6e 64 |p...use |IO::Hand|
|00001d50| 6c 65 3b 0d 00 28 00 00 | a5 60 00 00 40 e0 a5 01 |le;..(..|.`..@...|
|00001d60| 3b 9d e9 ff 4b c4 e9 ff | 70 1a 00 f0 44 45 56 2d |;...K...|p...DEV-|
|00001d70| 3e 61 75 74 6f 66 6c 75 | 73 68 28 31 29 3b 0d 08 |>autoflu|sh(1);..|
|00001d80| 0c 54 cd 00 13 3a cd 00 | 12 52 cd 00 00 00 00 00 |.T...:..|.R......|
|00001d90| 08 73 74 61 12 00 00 00 | 13 3a cd 00 00 00 00 00 |.sta....|.:......|
|00001da0| 07 69 6e 20 18 55 cd 00 | 13 3a cd 00 18 55 cd 00 |.in .U..|.:...U..|
|00001db0| 00 00 00 00 00 60 00 00 | a5 28 00 00 40 00 00 00 |.....`..|.(..@...|
|00001dc0| ab 88 e9 ff 6b 95 e9 ff | 00 00 00 f0 0d 08 07 05 |....k...|........|
|00001dd0| 18 56 cd 00 13 3a cd 00 | 00 00 00 00 00 28 00 00 |.V...:..|.....(..|
|00001de0| 85 e8 00 00 04 30 6e 07 | db 2f e9 ff bb 5e e9 ff |.....0n.|./...^..|
|00001df0| 20 22 00 f0 12 6d 28 22 | 50 46 00 00 00 00 00 00 | "...m("|PF......|
|00001e00| 12 05 05 05 70 17 00 00 | 00 00 00 00 07 00 00 00 |....p...|........|
|00001e10| 14 57 cd 00 13 3a cd 00 | 14 57 cd 00 00 00 00 00 |.W...:..|.W......|
|00001e20| 59 6f 75 20 63 61 6e 20 | 75 73 65 20 73 65 6c 65 |You can |use sele|
|00001e30| 63 74 28 29 20 61 6e 64 | 20 74 68 65 20 07 cd 00 |ct() and| the ...|
|00001e40| 0e 58 cd 00 13 3a cd 00 | 14 57 cd 00 0e 58 cd 00 |.X...:..|.W...X..|
|00001e50| 00 00 00 00 24 7c 08 65 | 0e 59 cd 00 13 3a cd 00 |....$|.e|.Y...:..|
|00001e60| 14 57 cd 00 00 00 00 00 | 20 76 61 72 69 61 62 6c |.W......| variabl|
|00001e70| 65 20 74 6f 20 63 6f 6e | 74 72 6f 6c 20 61 75 74 |e to con|trol aut|
|00001e80| 6f 66 6c 75 73 68 69 6e | 67 20 28 73 65 65 20 74 |oflushin|g (see t|
|00001e90| 68 65 20 22 24 7c 22 20 | 65 6e 74 72 79 20 69 6e |he "$|" |entry in|
|00001ea0| 20 74 68 65 20 63 68 61 | 70 74 65 72 20 07 6e 63 | the cha|pter .nc|
|00001eb0| 10 5a cd 00 13 3a cd 00 | 14 57 cd 00 10 5a cd 00 |.Z...:..|.W...Z..|
|00001ec0| 00 00 00 00 00 e8 00 00 | a5 c4 00 00 40 0c 0e 04 |........|....@...|
|00001ed0| b4 f7 e8 ff 94 26 e9 ff | 28 23 00 f0 70 65 72 6c |.....&..|(#..perl|
|00001ee0| 76 61 72 08 10 00 00 00 | 13 3a cd 00 14 57 cd 00 |var.....|.:...W..|
|00001ef0| 00 00 00 00 20 61 6e 64 | 20 74 68 65 20 22 73 65 |.... and| the "se|
|00001f00| 6c 65 63 74 22 20 65 6e | 74 72 79 20 69 6e 20 74 |lect" en|try in t|
|00001f10| 68 65 20 63 68 61 70 74 | 65 72 20 07 10 5b cd 00 |he chapt|er ..[..|
|00001f20| 13 3a cd 00 14 57 cd 00 | 10 5b cd 00 00 00 00 00 |.:...W..|.[......|
|00001f30| 70 65 72 6c 66 75 6e 63 | 08 20 55 6e 10 00 00 00 |perlfunc|. Un....|
|00001f40| 13 3a cd 00 14 57 cd 00 | 00 00 00 00 29 3a 0d 08 |.:...W..|....):..|
|00001f50| 14 00 00 00 13 3a cd 00 | 00 00 00 00 07 77 cd 00 |.....:..|.....w..|
|00001f60| 12 5c cd 00 13 3a cd 00 | 12 5c cd 00 00 00 00 00 |.\...:..|.\......|
|00001f70| 07 77 cd 00 0c 5d cd 00 | 13 3a cd 00 12 5c cd 00 |.w...]..|.:...\..|
|00001f80| 0c 5d cd 00 00 00 00 00 | 00 c4 00 00 25 30 00 00 |.]......|....%0..|
|00001f90| 40 c0 d4 01 ad 90 e8 ff | bd b7 e8 ff 70 1a 00 f0 |@.......|....p...|
|00001fa0| 24 6f 6c 64 68 20 3d 20 | 73 65 6c 65 63 74 28 44 |$oldh = |select(D|
|00001fb0| 45 56 29 3b 0d 00 00 00 | 00 30 00 00 25 20 00 00 |EV);....|.0..% ..|
|00001fc0| 40 10 a4 00 cd 61 e8 ff | dd 88 e8 ff 70 1a 00 f0 |@....a..|....p...|
|00001fd0| 24 7c 20 3d 20 31 3b 0d | 00 20 00 00 a5 5c 00 00 |$| = 1;.|. ...\..|
|00001fe0| 40 20 48 01 ed 32 e8 ff | fd 59 e8 ff 70 1a 00 f0 |@ H..2..|.Y..p...|
|00001ff0| 73 65 6c 65 63 74 28 24 | 6f 6c 64 68 29 3b 0d 08 |select($|oldh);..|
|00002000| 0c 5e cd 00 13 3a cd 00 | 12 5c cd 00 00 00 00 00 |.^...:..|.\......|
|00002010| 08 55 54 20 12 00 00 00 | 13 3a cd 00 00 00 00 00 |.UT ....|.:......|
|00002020| 07 6c 65 68 18 5f cd 00 | 13 3a cd 00 18 5f cd 00 |.leh._..|.:..._..|
|00002030| 00 00 00 00 00 5c 00 00 | a5 28 00 00 40 00 00 00 |.....\..|.(..@...|
|00002040| 5d 1e e8 ff 1d 2b e8 ff | 00 00 00 f0 0d 08 65 2c |]....+..|......e,|
|00002050| 18 60 cd 00 13 3a cd 00 | 00 00 00 00 00 28 00 00 |.`...:..|.....(..|
|00002060| a5 a4 00 00 44 b0 6b 05 | 8d c5 e7 ff 6d f4 e7 ff |....D.k.|....m...|
|00002070| 20 22 00 f0 12 65 72 6c | 50 46 00 00 00 00 00 00 | "...erl|PF......|
|00002080| 12 00 00 00 70 17 00 00 | 00 00 00 00 59 6f 75 27 |....p...|....You'|
|00002090| 6c 6c 20 61 6c 73 6f 20 | 73 65 65 20 63 6f 64 65 |ll also |see code|
|000020a0| 20 74 68 61 74 20 64 6f | 65 73 20 74 68 69 73 20 | that do|es this |
|000020b0| 77 69 74 68 6f 75 74 20 | 61 20 74 65 6d 70 6f 72 |without |a tempor|
|000020c0| 61 72 79 20 76 61 72 69 | 61 62 6c 65 2c 20 61 73 |ary vari|able, as|
|000020d0| 20 69 6e 0d 07 c0 d4 01 | 12 61 cd 00 13 3a cd 00 | in.....|.a...:..|
|000020e0| 12 61 cd 00 00 00 00 00 | 07 20 3d 20 0c 62 cd 00 |.a......|. = .b..|
|000020f0| 13 3a cd 00 12 61 cd 00 | 0c 62 cd 00 00 00 00 00 |.:...a..|.b......|
|00002100| 00 a4 00 00 a5 70 00 00 | 40 70 05 03 86 5e e7 ff |.....p..|@p...^..|
|00002110| 96 85 e7 ff 70 1a 00 f0 | 73 65 6c 65 63 74 28 28 |....p...|select((|
|00002120| 73 65 6c 65 63 74 28 44 | 45 56 29 2c 20 24 7c 20 |select(D|EV), $| |
|00002130| 3d 20 31 29 5b 30 5d 29 | 3b 0d 08 24 0c 63 cd 00 |= 1)[0])|;..$.c..|
|00002140| 13 3a cd 00 12 61 cd 00 | 00 00 00 00 08 5c cd 00 |.:...a..|.....\..|
|00002150| 12 00 00 00 13 3a cd 00 | 00 00 00 00 07 3a cd 00 |.....:..|.....:..|
|00002160| 18 64 cd 00 13 3a cd 00 | 18 64 cd 00 00 00 00 00 |.d...:..|.d......|
|00002170| 00 70 00 00 a5 28 00 00 | 40 00 00 00 f6 49 e7 ff |.p...(..|@....I..|
|00002180| b6 56 e7 ff 00 00 00 f0 | 0d 08 6f 72 18 65 cd 00 |.V......|..or.e..|
|00002190| 13 3a cd 00 00 00 00 00 | 00 28 00 00 01 10 00 00 |.:......|.(......|
|000021a0| 04 b8 9d 07 00 00 00 00 | 00 10 00 00 02 18 00 00 |........|........|
|000021b0| 00 04 00 00 00 00 00 00 | 13 3a cd 00 00 00 00 00 |........|.:......|
|000021c0| 00 18 00 00 05 a0 00 00 | 04 b8 9d 07 1e 45 e5 ff |........|.....E..|
|000021d0| fe 73 e5 ff 20 22 00 f0 | 16 00 00 00 b0 fc 07 00 |.s.. "..|........|
|000021e0| 00 00 00 00 12 69 74 65 | 50 46 00 00 00 00 00 00 |.....ite|PF......|
|000021f0| 12 74 69 6c 70 17 00 00 | 00 00 00 00 41 73 20 6d |.tilp...|....As m|
|00002200| 65 6e 74 69 6f 6e 65 64 | 20 69 6e 20 74 68 65 20 |entioned| in the |
|00002210| 70 72 65 76 69 6f 75 73 | 20 69 74 65 6d 2c 20 74 |previous| item, t|
|00002220| 68 69 73 20 73 74 69 6c | 6c 20 64 6f 65 73 6e 27 |his stil|l doesn'|
|00002230| 74 20 77 6f 72 6b 20 77 | 68 65 6e 20 75 73 69 6e |t work w|hen usin|
|00002240| 67 20 73 6f 63 6b 65 74 | 20 49 2f 4f 20 62 65 74 |g socket| I/O bet|
|00002250| 77 65 65 6e 20 55 6e 69 | 78 20 61 6e 64 20 00 00 |ween Uni|x and ..|
|00002260| 00 a0 00 00 a5 74 00 00 | 40 bc 2c 05 f7 0c e5 ff |.....t..|@.,.....|
|00002270| d7 3b e5 ff 20 22 00 f0 | 4d 61 63 69 6e 74 6f 73 |.;.. "..|Macintos|
|00002280| 68 2e 20 20 59 6f 75 27 | 6c 6c 20 6e 65 65 64 20 |h. You'|ll need |
|00002290| 74 6f 20 68 61 72 64 63 | 6f 64 65 20 79 6f 75 72 |to hardc|ode your|
|000022a0| 20 6c 69 6e 65 20 74 65 | 72 6d 69 6e 61 74 6f 72 | line te|rminator|
|000022b0| 73 2c 20 69 6e 20 74 68 | 61 74 20 63 61 73 65 2e |s, in th|at case.|
|000022c0| 0d 07 74 68 09 66 cd 00 | 13 3a cd 00 09 66 cd 00 |..th.f..|.:...f..|
|000022d0| 00 00 00 00 00 74 00 00 | a5 38 00 00 40 a8 7d 01 |.....t..|.8..@.}.|
|000022e0| 20 9e e4 ff 00 cd e4 ff | 28 23 00 f0 6e 6f 6e 2d | .......|(#..non-|
|000022f0| 62 6c 6f 63 6b 69 6e 67 | 20 69 6e 70 75 74 0d 08 |blocking| input..|
|00002300| 09 67 cd 00 13 3a cd 00 | 00 00 00 00 00 38 00 00 |.g...:..|.....8..|
|00002310| 05 9c 00 00 04 4c e2 07 | f9 65 e4 ff d9 94 e4 ff |.....L..|.e......|
|00002320| 20 22 00 f0 12 6f 72 20 | 50 46 00 00 00 00 00 00 | "...or |PF......|
|00002330| 12 08 05 05 70 17 00 00 | 00 00 00 00 49 66 20 79 |....p...|....If y|
|00002340| 6f 75 20 61 72 65 20 64 | 6f 69 6e 67 20 61 20 62 |ou are d|oing a b|
|00002350| 6c 6f 63 6b 69 6e 67 20 | 72 65 61 64 28 29 20 6f |locking |read() o|
|00002360| 72 20 73 79 73 72 65 61 | 64 28 29 2c 20 79 6f 75 |r sysrea|d(), you|
|00002370| 27 6c 6c 20 68 61 76 65 | 20 74 6f 20 61 72 72 61 |'ll have| to arra|
|00002380| 6e 67 65 20 66 6f 72 20 | 61 6e 20 61 6c 61 72 6d |nge for |an alarm|
|00002390| 20 68 61 6e 64 6c 65 72 | 20 74 6f 20 70 72 6f 76 | handler| to prov|
|000023a0| 69 64 65 20 61 20 00 00 | 00 9c 00 00 85 a4 00 00 |ide a ..|........|
|000023b0| 00 18 80 07 d2 2d e4 ff | b2 5c e4 ff 20 22 00 f0 |.....-..|.\.. "..|
|000023c0| 74 69 6d 65 6f 75 74 20 | 28 73 65 65 20 74 68 65 |timeout |(see the|
|000023d0| 20 22 61 6c 61 72 6d 22 | 20 65 6e 74 72 79 20 69 | "alarm"| entry i|
|000023e0| 6e 20 74 68 65 20 63 68 | 61 70 74 65 72 20 07 00 |n the ch|apter ..|
|000023f0| 10 68 cd 00 13 3a cd 00 | 10 68 cd 00 00 00 00 00 |.h...:..|.h......|
|00002400| 70 65 72 6c 66 75 6e 63 | 08 94 cd 00 10 00 00 00 |perlfunc|........|
|00002410| 13 3a cd 00 00 00 00 00 | 29 2e 20 20 49 66 20 79 |.:......|). If y|
|00002420| 6f 75 20 68 61 76 65 20 | 61 20 6e 6f 6e 2d 62 6c |ou have |a non-bl|
|00002430| 6f 63 6b 69 6e 67 20 6f | 70 65 6e 2c 20 79 6f 75 |ocking o|pen, you|
|00002440| 27 6c 6c 20 6c 69 6b 65 | 6c 79 20 00 00 a4 00 00 |'ll like|ly .....|
|00002450| 05 7c 00 00 00 f0 7d 07 | ab f5 e3 ff 8b 24 e4 ff |.|....}.|.....$..|
|00002460| 20 22 00 f0 68 61 76 65 | 20 61 20 6e 6f 6e 2d 62 | "..have| a non-b|
|00002470| 6c 6f 63 6b 69 6e 67 20 | 72 65 61 64 2c 20 77 68 |locking |read, wh|
|00002480| 69 63 68 20 6d 65 61 6e | 73 20 79 6f 75 20 6d 61 |ich mean|s you ma|
|00002490| 79 20 68 61 76 65 20 74 | 6f 20 75 73 65 20 61 20 |y have t|o use a |
|000024a0| 34 2d 61 72 67 20 73 65 | 6c 65 63 74 28 29 20 74 |4-arg se|lect() t|
|000024b0| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 65 74 |o determ|ine whet|
|000024c0| 68 65 72 20 49 2f 4f 20 | 00 7c 00 00 a5 a4 00 00 |her I/O |.|......|
|000024d0| 40 58 75 05 84 bd e3 ff | 64 ec e3 ff 20 22 00 f0 |@Xu.....|d... "..|
|000024e0| 69 73 20 72 65 61 64 79 | 20 6f 6e 20 74 68 61 74 |is ready| on that|
|000024f0| 20 64 65 76 69 63 65 20 | 28 73 65 65 20 74 68 65 | device |(see the|
|00002500| 20 73 65 63 74 69 6f 6e | 20 6f 6e 20 22 73 65 6c | section| on "sel|
|00002510| 65 63 74 22 20 69 6e 20 | 74 68 65 20 63 68 61 70 |ect" in |the chap|
|00002520| 74 65 72 20 07 29 20 69 | 10 69 cd 00 13 3a cd 00 |ter .) i|.i...:..|
|00002530| 10 69 cd 00 00 00 00 00 | 70 65 72 6c 66 75 6e 63 |.i......|perlfunc|
|00002540| 08 22 20 69 10 00 00 00 | 13 3a cd 00 00 00 00 00 |." i....|.:......|
|00002550| 2e 0d 08 05 13 6a cd 00 | 00 00 00 00 07 00 00 00 |.....j..|........|
|00002560| 0a 6b cd 00 0a 6b cd 00 | 00 00 00 00 00 a4 00 00 |.k...k..|........|
|00002570| a5 4c 00 00 40 c4 21 04 | dd 46 e3 ff 8d 7d e3 ff |.L..@.!.|.F...}..|
|00002580| 18 2b 00 f0 48 6f 77 20 | 64 6f 20 49 20 64 65 63 |.+..How |do I dec|
|00002590| 6f 64 65 20 65 6e 63 72 | 79 70 74 65 64 20 70 61 |ode encr|ypted pa|
|000025a0| 73 73 77 6f 72 64 20 66 | 69 6c 65 73 3f 0d 08 20 |ssword f|iles?.. |
|000025b0| 0a 6c cd 00 00 00 00 00 | 00 4c 00 00 25 7c 00 00 |.l......|.L..%|..|
|000025c0| 40 50 39 07 a8 f1 e2 ff | 88 20 e3 ff 20 22 00 f0 |@P9.....|. .. "..|
|000025d0| 59 6f 75 20 73 70 65 6e | 64 20 6c 6f 74 73 20 61 |You spen|d lots a|
|000025e0| 6e 64 20 6c 6f 74 73 20 | 6f 66 20 6d 6f 6e 65 79 |nd lots |of money|
|000025f0| 20 6f 6e 20 64 65 64 69 | 63 61 74 65 64 20 68 61 | on dedi|cated ha|
|00002600| 72 64 77 61 72 65 2c 20 | 62 75 74 20 74 68 69 73 |rdware, |but this|
|00002610| 20 69 73 20 62 6f 75 6e | 64 20 74 6f 20 67 65 74 | is boun|d to get|
|00002620| 20 79 6f 75 20 74 61 6c | 6b 65 64 20 61 62 6f 75 | you tal|ked abou|
|00002630| 74 2e 0d 00 00 7c 00 00 | 05 78 00 00 00 a8 26 07 |t....|..|.x....&.|
|00002640| d1 82 e2 ff b1 b1 e2 ff | 20 22 00 f0 53 65 72 69 |........| "..Seri|
|00002650| 6f 75 73 6c 79 2c 20 79 | 6f 75 20 63 61 6e 27 74 |ously, y|ou can't|
|00002660| 20 69 66 20 74 68 65 79 | 20 61 72 65 20 55 6e 69 | if they| are Uni|
|00002670| 78 20 70 61 73 73 77 6f | 72 64 20 66 69 6c 65 73 |x passwo|rd files|
|00002680| 20 2d 20 74 68 65 20 55 | 6e 69 78 20 70 61 73 73 | - the U|nix pass|
|00002690| 77 6f 72 64 20 73 79 73 | 74 65 6d 20 65 6d 70 6c |word sys|tem empl|
|000026a0| 6f 79 73 20 6f 6e 65 2d | 77 61 79 20 00 78 00 00 |oys one-|way .x..|
|000026b0| 05 84 00 00 00 04 a6 07 | aa 4a e2 ff 8a 79 e2 ff |........|.J...y..|
|000026c0| 20 22 00 f0 65 6e 63 72 | 79 70 74 69 6f 6e 2e 20 | "..encr|yption. |
|000026d0| 20 50 72 6f 67 72 61 6d | 73 20 6c 69 6b 65 20 43 | Program|s like C|
|000026e0| 72 61 63 6b 20 63 61 6e | 20 66 6f 72 63 69 62 6c |rack can| forcibl|
|000026f0| 79 20 28 61 6e 64 20 69 | 6e 74 65 6c 6c 69 67 65 |y (and i|ntellige|
|00002700| 6e 74 6c 79 29 20 74 72 | 79 20 74 6f 20 67 75 65 |ntly) tr|y to gue|
|00002710| 73 73 20 70 61 73 73 77 | 6f 72 64 73 2c 20 62 75 |ss passw|ords, bu|
|00002720| 74 20 64 6f 6e 27 74 20 | 28 63 61 6e 27 74 29 20 |t don't |(can't) |
|00002730| 00 84 00 00 25 34 00 00 | 40 18 ce 01 83 12 e2 ff |....%4..|@.......|
|00002740| 63 41 e2 ff 20 22 00 f0 | 67 75 61 72 61 6e 74 65 |cA.. "..|guarante|
|00002750| 65 20 71 75 69 63 6b 20 | 73 75 63 63 65 73 73 2e |e quick |success.|
|00002760| 0d 00 00 00 00 34 00 00 | 05 80 00 00 00 18 68 07 |.....4..|......h.|
|00002770| ac a3 e1 ff 8c d2 e1 ff | 20 22 00 f0 49 66 20 79 |........| "..If y|
|00002780| 6f 75 27 72 65 20 77 6f | 72 72 69 65 64 20 61 62 |ou're wo|rried ab|
|00002790| 6f 75 74 20 75 73 65 72 | 73 20 73 65 6c 65 63 74 |out user|s select|
|000027a0| 69 6e 67 20 62 61 64 20 | 70 61 73 73 77 6f 72 64 |ing bad |password|
|000027b0| 73 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 70 72 |s, you s|hould pr|
|000027c0| 6f 61 63 74 69 76 65 6c | 79 20 63 68 65 63 6b 20 |oactivel|y check |
|000027d0| 77 68 65 6e 20 74 68 65 | 79 20 74 72 79 20 74 6f |when the|y try to|
|000027e0| 20 00 00 00 00 80 00 00 | a5 64 00 00 40 bc 9c 04 | .......|.d..@...|
|000027f0| 85 6b e1 ff 65 9a e1 ff | 20 22 00 f0 63 68 61 6e |.k..e...| "..chan|
|00002800| 67 65 20 74 68 65 69 72 | 20 70 61 73 73 77 6f 72 |ge their| passwor|
|00002810| 64 20 28 62 79 20 6d 6f | 64 69 66 79 69 6e 67 20 |d (by mo|difying |
|00002820| 70 61 73 73 77 64 28 31 | 29 2c 20 66 6f 72 20 65 |passwd(1|), for e|
|00002830| 78 61 6d 70 6c 65 29 2e | 0d 07 6e 64 0a 6d cd 00 |xample).|..nd.m..|
|00002840| 0a 6d cd 00 00 00 00 00 | 00 64 00 00 a5 50 00 00 |.m......|.d...P..|
|00002850| 40 f6 2d 04 de f4 e0 ff | 8e 2b e1 ff 18 2b 00 f0 |@.-.....|.+...+..|
|00002860| 48 6f 77 20 64 6f 20 49 | 20 73 74 61 72 74 20 61 |How do I| start a|
|00002870| 20 70 72 6f 63 65 73 73 | 20 69 6e 20 74 68 65 20 | process| in the |
|00002880| 62 61 63 6b 67 72 6f 75 | 6e 64 3f 0d 08 6f 6e 20 |backgrou|nd?..on |
|00002890| 0a 6e cd 00 00 00 00 00 | 00 50 00 00 a5 48 00 00 |.n......|.P...H..|
|000028a0| 40 1c 0a 01 a9 9f e0 ff | 89 ce e0 ff 20 22 00 f0 |@.......|.... "..|
|000028b0| 59 6f 75 20 63 6f 75 6c | 64 20 75 73 65 0d 07 20 |You coul|d use.. |
|000028c0| 12 6f cd 00 12 6f cd 00 | 00 00 00 00 07 44 4f 53 |.o...o..|.....DOS|
|000028d0| 0c 70 cd 00 12 6f cd 00 | 0c 70 cd 00 00 00 00 00 |.p...o..|.p......|
|000028e0| 00 48 00 00 a5 54 00 00 | 40 90 5f 01 a2 38 e0 ff |.H...T..|@._..8..|
|000028f0| b2 5f e0 ff 70 1a 00 f0 | 73 79 73 74 65 6d 28 22 |._..p...|system("|
|00002900| 63 6d 64 20 26 22 29 0d | 08 65 74 20 0c 71 cd 00 |cmd &").|.et .q..|
|00002910| 12 6f cd 00 00 00 00 00 | 08 00 00 00 12 00 00 00 |.o......|........|
|00002920| 00 00 00 00 07 9f cd 00 | 18 72 cd 00 18 72 cd 00 |........|.r...r..|
|00002930| 00 00 00 00 00 54 00 00 | a5 34 00 00 40 00 00 00 |.....T..|.4..@...|
|00002940| 12 24 e0 ff d2 30 e0 ff | 00 00 00 f0 0d 08 63 68 |.$...0..|......ch|
|00002950| 18 73 cd 00 00 00 00 00 | 07 20 74 69 14 74 cd 00 |.s......|. ti.t..|
|00002960| 14 74 cd 00 00 00 00 00 | 00 34 00 00 85 a8 00 00 |.t......|.4......|
|00002970| 00 98 e7 07 42 cb df ff | 22 fa df ff 20 22 00 f0 |....B...|"... "..|
|00002980| 6f 72 20 79 6f 75 20 63 | 6f 75 6c 64 20 75 73 65 |or you c|ould use|
|00002990| 20 66 6f 72 6b 20 61 73 | 20 64 6f 63 75 6d 65 6e | fork as| documen|
|000029a0| 74 65 64 20 69 6e 20 74 | 68 65 20 73 65 63 74 69 |ted in t|he secti|
|000029b0| 6f 6e 20 6f 6e 20 22 66 | 6f 72 6b 22 20 69 6e 20 |on on "f|ork" in |
|000029c0| 74 68 65 20 63 68 61 70 | 74 65 72 20 07 a1 cd 00 |the chap|ter ....|
|000029d0| 10 75 cd 00 14 74 cd 00 | 10 75 cd 00 00 00 00 00 |.u...t..|.u......|
|000029e0| 70 65 72 6c 66 75 6e 63 | 08 20 20 20 10 00 00 00 |perlfunc|. ....|
|000029f0| 14 74 cd 00 00 00 00 00 | 2c 20 77 69 74 68 20 66 |.t......|, with f|
|00002a00| 75 72 74 68 65 72 20 65 | 78 61 6d 70 6c 65 73 20 |urther e|xamples |
|00002a10| 00 a8 00 00 a5 bc 00 00 | 40 bc 22 06 1b 93 df ff |........|@.".....|
|00002a20| fb c1 df ff 20 22 00 f0 | 69 6e 20 74 68 65 20 63 |.... "..|in the c|
|00002a30| 68 61 70 74 65 72 20 07 | 10 76 cd 00 14 74 cd 00 |hapter .|.v...t..|
|00002a40| 10 76 cd 00 00 00 00 00 | 70 65 72 6c 69 70 63 08 |.v......|perlipc.|
|00002a50| 10 00 00 00 14 74 cd 00 | 00 00 00 00 2e 20 20 53 |.....t..|..... S|
|00002a60| 6f 6d 65 20 74 68 69 6e | 67 73 20 74 6f 20 62 65 |ome thin|gs to be|
|00002a70| 20 61 77 61 72 65 20 6f | 66 2c 20 69 66 20 79 6f | aware o|f, if yo|
|00002a80| 75 27 72 65 20 6f 6e 20 | 61 20 55 6e 69 78 2d 6c |u're on |a Unix-l|
|00002a90| 69 6b 65 20 73 79 73 74 | 65 6d 3a 0d 08 20 73 6c |ike syst|em:.. sl|
|00002aa0| 14 00 00 00 00 00 00 00 | 07 61 6c 61 13 77 cd 00 |........|.ala.w..|
|00002ab0| 13 77 cd 00 00 00 00 00 | 07 72 20 61 09 78 cd 00 |.w......|.r a.x..|
|00002ac0| 13 77 cd 00 09 78 cd 00 | 00 00 00 00 00 bc 00 00 |.w...x..|........|
|00002ad0| a5 4c 00 00 40 f4 65 03 | 44 24 df ff 24 53 df ff |.L..@.e.|D$..$S..|
|00002ae0| 28 23 00 f0 53 54 44 49 | 4e 2c 20 53 54 44 4f 55 |(#..STDI|N, STDOU|
|00002af0| 54 20 61 6e 64 20 53 54 | 44 45 52 52 20 61 72 65 |T and ST|DERR are|
|00002b00| 20 73 68 61 72 65 64 0d | 08 73 6c 65 09 79 cd 00 | shared.|.sle.y..|
|00002b10| 13 77 cd 00 00 00 00 00 | 00 4c 00 00 05 8c 00 00 |.w......|.L......|
|00002b20| 04 1c 46 07 1d ec de ff | fd 1a df ff 20 22 00 f0 |..F.....|.... "..|
|00002b30| 12 61 79 20 50 46 00 00 | 00 00 00 00 12 20 74 68 |.ay PF..|..... th|
|00002b40| 70 17 00 00 00 00 00 00 | 42 6f 74 68 20 74 68 65 |p.......|Both the|
|00002b50| 20 6d 61 69 6e 20 70 72 | 6f 63 65 73 73 20 61 6e | main pr|ocess an|
|00002b60| 64 20 74 68 65 20 62 61 | 63 6b 67 72 6f 75 6e 64 |d the ba|ckground|
|00002b70| 65 64 20 6f 6e 65 20 28 | 74 68 65 20 22 63 68 69 |ed one (|the "chi|
|00002b80| 6c 64 22 20 70 72 6f 63 | 65 73 73 29 20 73 68 61 |ld" proc|ess) sha|
|00002b90| 72 65 20 74 68 65 20 73 | 61 6d 65 20 53 54 44 49 |re the s|ame STDI|
|00002ba0| 4e 2c 20 00 00 8c 00 00 | 05 7c 00 00 00 dc 9a 07 |N, .....|.|......|
|00002bb0| f6 b3 de ff d6 e2 de ff | 20 22 00 f0 53 54 44 4f |........| "..STDO|
|00002bc0| 55 54 20 61 6e 64 20 53 | 54 44 45 52 52 20 66 69 |UT and S|TDERR fi|
|00002bd0| 6c 65 68 61 6e 64 6c 65 | 73 2e 20 20 49 66 20 62 |lehandle|s. If b|
|00002be0| 6f 74 68 20 74 72 79 20 | 74 6f 20 61 63 63 65 73 |oth try |to acces|
|00002bf0| 73 20 74 68 65 6d 20 61 | 74 20 6f 6e 63 65 2c 20 |s them a|t once, |
|00002c00| 73 74 72 61 6e 67 65 20 | 74 68 69 6e 67 73 20 63 |strange |things c|
|00002c10| 61 6e 20 68 61 70 70 65 | 6e 2e 20 20 59 6f 75 20 |an happe|n. You |
|00002c20| 00 7c 00 00 85 a0 00 00 | 00 a4 7b 07 cf 7b de ff |.|......|..{..{..|
|00002c30| af aa de ff 20 22 00 f0 | 6d 61 79 20 77 61 6e 74 |.... "..|may want|
|00002c40| 20 74 6f 20 63 6c 6f 73 | 65 20 6f 72 20 72 65 6f | to clos|e or reo|
|00002c50| 70 65 6e 20 74 68 65 73 | 65 20 66 6f 72 20 74 68 |pen thes|e for th|
|00002c60| 65 20 63 68 69 6c 64 2e | 20 20 59 6f 75 20 63 61 |e child.| You ca|
|00002c70| 6e 20 67 65 74 20 61 72 | 6f 75 6e 64 20 74 68 69 |n get ar|ound thi|
|00002c80| 73 20 77 69 74 68 20 07 | 0e 7a cd 00 13 77 cd 00 |s with .|.z...w..|
|00002c90| 0e 7a cd 00 00 00 00 00 | 6f 70 65 6e 08 61 79 20 |.z......|open.ay |
|00002ca0| 0e 7b cd 00 13 77 cd 00 | 00 00 00 00 69 6e 67 20 |.{...w..|....ing |
|00002cb0| 61 20 70 69 70 65 20 28 | 73 65 65 20 74 68 65 20 |a pipe (|see the |
|00002cc0| 00 a0 00 00 85 9c 00 00 | 00 bc 18 07 a8 43 de ff |........|.....C..|
|00002cd0| 88 72 de ff 20 22 00 f0 | 73 65 63 74 69 6f 6e 20 |.r.. "..|section |
|00002ce0| 6f 6e 20 22 6f 70 65 6e | 22 20 69 6e 20 74 68 65 |on "open|" in the|
|00002cf0| 20 63 68 61 70 74 65 72 | 20 07 66 6f 10 7c cd 00 | chapter| .fo.|..|
|00002d00| 13 77 cd 00 10 7c cd 00 | 00 00 00 00 70 65 72 6c |.w...|..|....perl|
|00002d10| 66 75 6e 63 08 aa cd 00 | 10 00 00 00 13 77 cd 00 |func....|.....w..|
|00002d20| 00 00 00 00 29 20 62 75 | 74 20 6f 6e 20 73 6f 6d |....) bu|t on som|
|00002d30| 65 20 73 79 73 74 65 6d | 73 20 74 68 69 73 20 6d |e system|s this m|
|00002d40| 65 61 6e 73 20 74 68 61 | 74 20 74 68 65 20 63 68 |eans tha|t the ch|
|00002d50| 69 6c 64 20 70 72 6f 63 | 65 73 73 20 00 9c 00 00 |ild proc|ess ....|
|00002d60| a5 44 00 00 40 7c dc 01 | 81 0b de ff 61 3a de ff |.D..@|..|....a:..|
|00002d70| 20 22 00 f0 63 61 6e 6e | 6f 74 20 6f 75 74 6c 69 | "..cann|ot outli|
|00002d80| 76 65 20 74 68 65 20 70 | 61 72 65 6e 74 2e 0d 07 |ve the p|arent...|
|00002d90| 09 7d cd 00 13 77 cd 00 | 09 7d cd 00 00 00 00 00 |.}...w..|.}......|
|00002da0| 00 44 00 00 a5 30 00 00 | 40 4c 8f 00 aa 9c dd ff |.D...0..|@L......|
|00002db0| 8a cb dd ff 28 23 00 f0 | 53 69 67 6e 61 6c 73 0d |....(#..|Signals.|
|00002dc0| 08 6c 65 20 09 7e cd 00 | 13 77 cd 00 00 00 00 00 |.le .~..|.w......|
|00002dd0| 00 30 00 00 05 8c 00 00 | 04 38 84 07 83 64 dd ff |.0......|.8...d..|
|00002de0| 63 93 dd ff 20 22 00 f0 | 12 05 05 05 50 46 00 00 |c... "..|....PF..|
|00002df0| 00 00 00 00 12 00 00 00 | 70 17 00 00 00 00 00 00 |........|p.......|
|00002e00| 59 6f 75 27 6c 6c 20 68 | 61 76 65 20 74 6f 20 63 |You'll h|ave to c|
|00002e10| 61 74 63 68 20 74 68 65 | 20 53 49 47 43 48 4c 44 |atch the| SIGCHLD|
|00002e20| 20 73 69 67 6e 61 6c 2c | 20 61 6e 64 20 70 6f 73 | signal,| and pos|
|00002e30| 73 69 62 6c 79 20 53 49 | 47 50 49 50 45 20 74 6f |sibly SI|GPIPE to|
|00002e40| 6f 2e 20 53 49 47 43 48 | 4c 44 20 69 73 20 73 65 |o. SIGCH|LD is se|
|00002e50| 6e 74 20 77 68 65 6e 20 | 74 68 65 20 00 8c 00 00 |nt when |the ....|
|00002e60| 05 7c 00 00 00 20 5d 07 | 5c 2c dd ff 3c 5b dd ff |.|... ].|\,..<[..|
|00002e70| 20 22 00 f0 62 61 63 6b | 67 72 6f 75 6e 64 65 64 | "..back|grounded|
|00002e80| 20 70 72 6f 63 65 73 73 | 20 66 69 6e 69 73 68 65 | process| finishe|
|00002e90| 73 2e 20 20 53 49 47 50 | 49 50 45 20 69 73 20 73 |s. SIGP|IPE is s|
|00002ea0| 65 6e 74 20 77 68 65 6e | 20 79 6f 75 20 77 72 69 |ent when| you wri|
|00002eb0| 74 65 20 74 6f 20 61 20 | 66 69 6c 65 68 61 6e 64 |te to a |filehand|
|00002ec0| 6c 65 20 77 68 6f 73 65 | 20 63 68 69 6c 64 20 70 |le whose| child p|
|00002ed0| 72 6f 63 65 73 73 20 00 | 00 7c 00 00 85 90 00 00 |rocess .|.|......|
|00002ee0| 00 70 58 07 35 f4 dc ff | 15 23 dd ff 20 22 00 f0 |.pX.5...|.#.. "..|
|00002ef0| 68 61 73 20 63 6c 6f 73 | 65 64 20 28 61 6e 20 75 |has clos|ed (an u|
|00002f00| 6e 74 72 61 70 70 65 64 | 20 53 49 47 50 49 50 45 |ntrapped| SIGPIPE|
|00002f10| 20 63 61 6e 20 63 61 75 | 73 65 20 79 6f 75 72 20 | can cau|se your |
|00002f20| 70 72 6f 67 72 61 6d 20 | 74 6f 20 73 69 6c 65 6e |program |to silen|
|00002f30| 74 6c 79 20 64 69 65 29 | 2e 20 20 54 68 69 73 20 |tly die)|. This |
|00002f40| 69 73 20 6e 6f 74 20 61 | 6e 20 69 73 73 75 65 20 |is not a|n issue |
|00002f50| 77 69 74 68 20 07 00 00 | 0e 7f cd 00 13 77 cd 00 |with ...|.....w..|
|00002f60| 0e 7f cd 00 00 00 00 00 | 00 90 00 00 a5 48 00 00 |........|.....H..|
|00002f70| 40 78 95 01 0e bc dc ff | ee ea dc ff ba 1f 00 f0 |@x......|........|
|00002f80| 73 79 73 74 65 6d 28 22 | 63 6d 64 26 22 29 08 20 |system("|cmd&"). |
|00002f90| 0e 80 cd 00 13 77 cd 00 | 00 00 00 00 2e 0d 07 20 |.....w..|....... |
|00002fa0| 09 81 cd 00 13 77 cd 00 | 09 81 cd 00 00 00 00 00 |.....w..|........|
|00002fb0| 00 48 00 00 a5 30 00 00 | 40 e4 ab 00 37 4d dc ff |.H...0..|@...7M..|
|00002fc0| 17 7c dc ff 28 23 00 f0 | 5a 6f 6d 62 69 65 73 0d |.|..(#..|Zombies.|
|00002fd0| 08 05 05 05 09 82 cd 00 | 13 77 cd 00 00 00 00 00 |........|.w......|
|00002fe0| 00 30 00 00 a5 a0 00 00 | 44 04 54 05 10 15 dc ff |.0......|D.T.....|
|00002ff0| f0 43 dc ff 20 22 00 f0 | 12 05 05 05 50 46 00 00 |.C.. "..|....PF..|
|00003000| 00 00 00 00 12 00 00 00 | 70 17 00 00 00 00 00 00 |........|p.......|
|00003010| 59 6f 75 20 68 61 76 65 | 20 74 6f 20 62 65 20 70 |You have| to be p|
|00003020| 72 65 70 61 72 65 64 20 | 74 6f 20 22 72 65 61 70 |repared |to "reap|
|00003030| 22 20 74 68 65 20 63 68 | 69 6c 64 20 70 72 6f 63 |" the ch|ild proc|
|00003040| 65 73 73 20 77 68 65 6e | 20 69 74 20 66 69 6e 69 |ess when| it fini|
|00003050| 73 68 65 73 0d 07 23 23 | 12 83 cd 00 13 77 cd 00 |shes..##|.....w..|
|00003060| 12 83 cd 00 00 00 00 00 | 07 23 23 23 0c 84 cd 00 |........|.###....|
|00003070| 13 77 cd 00 12 83 cd 00 | 0c 84 cd 00 00 00 00 00 |.w......|........|
|00003080| 00 a0 00 00 a5 68 00 00 | 40 60 61 02 09 ae db ff |.....h..|@`a.....|
|00003090| 19 d5 db ff 70 1a 00 f0 | 24 53 49 47 7b 43 48 4c |....p...|$SIG{CHL|
|000030a0| 44 7d 20 3d 20 73 75 62 | 20 7b 20 77 61 69 74 20 |D} = sub| { wait |
|000030b0| 7d 3b 0d 08 0c 85 cd 00 | 13 77 cd 00 12 83 cd 00 |};......|.w......|
|000030c0| 00 00 00 00 08 00 00 00 | 12 00 00 00 13 77 cd 00 |........|.....w..|
|000030d0| 00 00 00 00 07 5f 67 65 | 18 86 cd 00 13 77 cd 00 |....._ge|.....w..|
|000030e0| 18 86 cd 00 00 00 00 00 | 00 68 00 00 a5 28 00 00 |........|.h...(..|
|000030f0| 40 00 00 00 79 99 db ff | 39 a6 db ff 00 00 00 f0 |@...y...|9.......|
|00003100| 0d 08 22 67 18 87 cd 00 | 13 77 cd 00 00 00 00 00 |.."g....|.w......|
|00003110| 00 28 00 00 85 b8 00 00 | 04 a0 cd 07 a9 40 db ff |.(......|.....@..|
|00003120| 89 6f db ff 20 22 00 f0 | 12 00 00 00 50 46 00 00 |.o.. "..|....PF..|
|00003130| 00 00 00 00 12 c7 cd 00 | 70 17 00 00 00 00 00 00 |........|p.......|
|00003140| 53 65 65 20 74 68 65 20 | 73 65 63 74 69 6f 6e 20 |See the |section |
|00003150| 6f 6e 20 22 53 69 67 6e | 61 6c 73 22 20 69 6e 20 |on "Sign|als" in |
|00003160| 74 68 65 20 63 68 61 70 | 74 65 72 20 07 00 00 00 |the chap|ter ....|
|00003170| 10 88 cd 00 13 77 cd 00 | 10 88 cd 00 00 00 00 00 |.....w..|........|
|00003180| 70 65 72 6c 69 70 63 08 | 10 00 00 00 13 77 cd 00 |perlipc.|.....w..|
|00003190| 00 00 00 00 20 66 6f 72 | 20 6f 74 68 65 72 20 65 |.... for| other e|
|000031a0| 78 61 6d 70 6c 65 73 20 | 6f 66 20 63 6f 64 65 20 |xamples |of code |
|000031b0| 74 6f 20 64 6f 20 74 68 | 69 73 2e 20 5a 6f 6d 62 |to do th|is. Zomb|
|000031c0| 69 65 73 20 61 72 65 20 | 00 b8 00 00 a5 78 00 00 |ies are |.....x..|
|000031d0| 40 d8 15 03 82 08 db ff | 62 37 db ff 20 22 00 f0 |@.......|b7.. "..|
|000031e0| 6e 6f 74 20 61 6e 20 69 | 73 73 75 65 20 77 69 74 |not an i|ssue wit|
|000031f0| 68 20 07 74 0e 89 cd 00 | 13 77 cd 00 0e 89 cd 00 |h .t....|.w......|
|00003200| 00 00 00 00 73 79 73 74 | 65 6d 28 22 70 72 6f 67 |....syst|em("prog|
|00003210| 20 26 22 29 08 22 00 00 | 0e 8a cd 00 13 77 cd 00 | &")."..|.....w..|
|00003220| 00 00 00 00 2e 0d 08 65 | 13 8b cd 00 00 00 00 00 |.......e|........|
|00003230| 07 00 00 00 0a 8c cd 00 | 0a 8c cd 00 00 00 00 00 |........|........|
|00003240| 00 78 00 00 a5 4c 00 00 | 40 d4 de 03 db 91 da ff |.x...L..|@.......|
|00003250| 8b c8 da ff 18 2b 00 f0 | 48 6f 77 20 64 6f 20 49 |.....+..|How do I|
|00003260| 20 74 72 61 70 20 63 6f | 6e 74 72 6f 6c 20 63 68 | trap co|ntrol ch|
|00003270| 61 72 61 63 74 65 72 73 | 2f 73 69 67 6e 61 6c 73 |aracters|/signals|
|00003280| 3f 0d 08 fc 0a 8d cd 00 | 00 00 00 00 00 4c 00 00 |?.......|.....L..|
|00003290| 05 8c 00 00 00 f4 e5 07 | a6 3c da ff 86 6b da ff |........|.<...k..|
|000032a0| 20 22 00 f0 59 6f 75 20 | 64 6f 6e 27 74 20 61 63 | "..You |don't ac|
|000032b0| 74 75 61 6c 6c 79 20 22 | 74 72 61 70 22 20 61 20 |tually "|trap" a |
|000032c0| 63 6f 6e 74 72 6f 6c 20 | 63 68 61 72 61 63 74 65 |control |characte|
|000032d0| 72 2e 20 20 49 6e 73 74 | 65 61 64 2c 20 74 68 61 |r. Inst|ead, tha|
|000032e0| 74 20 63 68 61 72 61 63 | 74 65 72 20 67 65 6e 65 |t charac|ter gene|
|000032f0| 72 61 74 65 73 20 61 20 | 73 69 67 6e 61 6c 2c 20 |rates a |signal, |
|00003300| 77 68 69 63 68 20 79 6f | 75 20 74 68 65 6e 20 74 |which yo|u then t|
|00003310| 72 61 70 2e 20 20 00 00 | 00 8c 00 00 01 10 00 00 |rap. ..|........|
|00003320| 40 30 71 07 00 00 00 00 | 00 10 00 00 02 14 00 00 |@0q.....|........|
|00003330| 9c 05 00 00 00 00 00 00 | 00 00 00 00 00 14 00 00 |........|........|
|00003340| a5 a4 00 00 40 30 71 07 | 6d 45 d8 ff 4d 74 d8 ff |....@0q.|mE..Mt..|
|00003350| 20 22 00 f0 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00003360| 53 69 67 6e 61 6c 73 20 | 61 72 65 20 64 6f 63 75 |Signals |are docu|
|00003370| 6d 65 6e 74 65 64 20 69 | 6e 20 74 68 65 20 73 65 |mented i|n the se|
|00003380| 63 74 69 6f 6e 20 6f 6e | 20 22 53 69 67 6e 61 6c |ction on| "Signal|
|00003390| 73 22 20 69 6e 20 74 68 | 65 20 63 68 61 70 74 65 |s" in th|e chapte|
|000033a0| 72 20 07 68 10 8e cd 00 | 10 8e cd 00 00 00 00 00 |r .h....|........|
|000033b0| 70 65 72 6c 69 70 63 08 | 10 00 00 00 00 00 00 00 |perlipc.|........|
|000033c0| 20 61 6e 64 20 63 68 61 | 70 74 65 72 20 36 20 6f | and cha|pter 6 o|
|000033d0| 66 20 74 68 65 20 43 61 | 6d 65 6c 2e 0d 00 00 00 |f the Ca|mel.....|
|000033e0| 00 a4 00 00 05 88 00 00 | 00 dc d3 07 96 d6 d7 ff |........|........|
|000033f0| 76 05 d8 ff 20 22 00 f0 | 42 65 20 77 61 72 6e 65 |v... "..|Be warne|
|00003400| 64 20 74 68 61 74 20 76 | 65 72 79 20 66 65 77 20 |d that v|ery few |
|00003410| 43 20 6c 69 62 72 61 72 | 69 65 73 20 61 72 65 20 |C librar|ies are |
|00003420| 72 65 2d 65 6e 74 72 61 | 6e 74 2e 20 20 54 68 65 |re-entra|nt. The|
|00003430| 72 65 66 6f 72 65 2c 20 | 69 66 20 79 6f 75 20 61 |refore, |if you a|
|00003440| 74 74 65 6d 70 74 20 74 | 6f 20 70 72 69 6e 74 28 |ttempt t|o print(|
|00003450| 29 20 69 6e 20 61 20 68 | 61 6e 64 6c 65 72 20 74 |) in a h|andler t|
|00003460| 68 61 74 20 67 6f 74 20 | 00 88 00 00 05 88 00 00 |hat got |........|
|00003470| 00 5c ab 07 6f 9e d7 ff | 4f cd d7 ff 20 22 00 f0 |.\..o...|O... "..|
|00003480| 69 6e 76 6f 6b 65 64 20 | 64 75 72 69 6e 67 20 61 |invoked |during a|
|00003490| 6e 6f 74 68 65 72 20 73 | 74 64 69 6f 20 6f 70 65 |nother s|tdio ope|
|000034a0| 72 61 74 69 6f 6e 20 79 | 6f 75 72 20 69 6e 74 65 |ration y|our inte|
|000034b0| 72 6e 61 6c 20 73 74 72 | 75 63 74 75 72 65 73 20 |rnal str|uctures |
|000034c0| 77 69 6c 6c 20 6c 69 6b | 65 6c 79 20 62 65 20 69 |will lik|ely be i|
|000034d0| 6e 20 61 6e 20 69 6e 63 | 6f 6e 73 69 73 74 65 6e |n an inc|onsisten|
|000034e0| 74 20 73 74 61 74 65 2c | 20 61 6e 64 20 00 00 00 |t state,| and ...|
|000034f0| 00 88 00 00 25 7c 00 00 | 40 5c 3f 07 48 66 d7 ff |....%|..|@\?.Hf..|
|00003500| 28 95 d7 ff 20 22 00 f0 | 79 6f 75 72 20 70 72 6f |(... "..|your pro|
|00003510| 67 72 61 6d 20 77 69 6c | 6c 20 64 75 6d 70 20 63 |gram wil|l dump c|
|00003520| 6f 72 65 2e 20 20 59 6f | 75 20 63 61 6e 20 73 6f |ore. Yo|u can so|
|00003530| 6d 65 74 69 6d 65 73 20 | 61 76 6f 69 64 20 74 68 |metimes |avoid th|
|00003540| 69 73 20 62 79 20 75 73 | 69 6e 67 20 73 79 73 77 |is by us|ing sysw|
|00003550| 72 69 74 65 28 29 20 69 | 6e 73 74 65 61 64 20 6f |rite() i|nstead o|
|00003560| 66 20 70 72 69 6e 74 28 | 29 2e 0d 00 00 7c 00 00 |f print(|)....|..|
|00003570| 05 88 00 00 00 48 bf 07 | 71 f7 d6 ff 51 26 d7 ff |.....H..|q...Q&..|
|00003580| 20 22 00 f0 55 6e 6c 65 | 73 73 20 79 6f 75 27 72 | "..Unle|ss you'r|
|00003590| 65 20 65 78 63 65 65 64 | 69 6e 67 6c 79 20 63 61 |e exceed|ingly ca|
|000035a0| 72 65 66 75 6c 2c 20 74 | 68 65 20 6f 6e 6c 79 20 |reful, t|he only |
|000035b0| 73 61 66 65 20 74 68 69 | 6e 67 73 20 74 6f 20 64 |safe thi|ngs to d|
|000035c0| 6f 20 69 6e 73 69 64 65 | 20 61 20 73 69 67 6e 61 |o inside| a signa|
|000035d0| 6c 20 68 61 6e 64 6c 65 | 72 20 61 72 65 3a 20 73 |l handle|r are: s|
|000035e0| 65 74 20 61 20 76 61 72 | 69 61 62 6c 65 20 61 6e |et a var|iable an|
|000035f0| 64 20 00 00 00 88 00 00 | 05 88 00 00 00 e4 ad 07 |d ......|........|
|00003600| 4a bf d6 ff 2a ee d6 ff | 20 22 00 f0 65 78 69 74 |J...*...| "..exit|
|00003610| 2e 20 20 41 6e 64 20 69 | 6e 20 74 68 65 20 66 69 |. And i|n the fi|
|00003620| 72 73 74 20 63 61 73 65 | 2c 20 79 6f 75 20 73 68 |rst case|, you sh|
|00003630| 6f 75 6c 64 20 6f 6e 6c | 79 20 73 65 74 20 61 20 |ould onl|y set a |
|00003640| 76 61 72 69 61 62 6c 65 | 20 69 6e 20 73 75 63 68 |variable| in such|
|00003650| 20 61 20 77 61 79 20 74 | 68 61 74 20 6d 61 6c 6c | a way t|hat mall|
|00003660| 6f 63 28 29 20 69 73 20 | 6e 6f 74 20 63 61 6c 6c |oc() is |not call|
|00003670| 65 64 20 28 65 67 2c 20 | 62 79 20 00 00 88 00 00 |ed (eg, |by .....|
|00003680| a5 54 00 00 40 44 1f 03 | 23 87 d6 ff 03 b6 d6 ff |.T..@D..|#.......|
|00003690| 20 22 00 f0 73 65 74 74 | 69 6e 67 20 61 20 76 61 | "..sett|ing a va|
|000036a0| 72 69 61 62 6c 65 20 74 | 68 61 74 20 61 6c 72 65 |riable t|hat alre|
|000036b0| 61 64 79 20 68 61 73 20 | 61 20 76 61 6c 75 65 29 |ady has |a value)|
|000036c0| 2e 0d 07 65 14 8f cd 00 | 14 8f cd 00 00 00 00 00 |...e....|........|
|000036d0| 00 54 00 00 a5 54 00 00 | 40 ac f8 00 4c 18 d6 ff |.T...T..|@...L...|
|000036e0| 2c 47 d6 ff 20 22 00 f0 | 46 6f 72 20 65 78 61 6d |,G.. "..|For exam|
|000036f0| 70 6c 65 3a 0d 08 61 73 | 14 00 00 00 00 00 00 00 |ple:..as|........|
|00003700| 07 72 65 20 12 90 cd 00 | 12 90 cd 00 00 00 00 00 |.re ....|........|
|00003710| 07 75 65 73 0c 91 cd 00 | 12 90 cd 00 0c 91 cd 00 |.ues....|........|
|00003720| 00 00 00 00 00 54 00 00 | 25 48 00 00 40 20 36 04 |.....T..|%H..@ 6.|
|00003730| 45 b1 d5 ff 55 d8 d5 ff | 70 1a 00 f0 24 49 6e 74 |E...U...|p...$Int|
|00003740| 65 72 72 75 70 74 65 64 | 20 3d 20 30 3b 20 20 20 |errupted| = 0; |
|00003750| 23 20 74 6f 20 65 6e 73 | 75 72 65 20 69 74 20 68 |# to ens|ure it h|
|00003760| 61 73 20 61 20 76 61 6c | 75 65 0d 00 00 48 00 00 |as a val|ue...H..|
|00003770| 25 2c 00 00 40 70 8e 01 | 65 82 d5 ff 75 a9 d5 ff |%,..@p..|e...u...|
|00003780| 70 1a 00 f0 24 53 49 47 | 7b 49 4e 54 7d 20 3d 20 |p...$SIG|{INT} = |
|00003790| 73 75 62 20 7b 0d 00 00 | 00 2c 00 00 25 2c 00 00 |sub {...|.,..%,..|
|000037a0| 40 50 bd 01 85 53 d5 ff | 95 7a d5 ff 70 1a 00 f0 |@P...S..|.z..p...|
|000037b0| 20 20 20 20 24 49 6e 74 | 65 72 72 75 70 74 65 64 | $Int|errupted|
|000037c0| 2b 2b 3b 0d 00 2c 00 00 | 25 3c 00 00 40 e0 1c 03 |++;..,..|%<..@...|
|000037d0| a5 24 d5 ff b5 4b d5 ff | 70 1a 00 f0 20 20 20 20 |.$...K..|p... |
|000037e0| 73 79 73 77 72 69 74 65 | 28 53 54 44 45 52 52 2c |syswrite|(STDERR,|
|000037f0| 20 22 6f 75 63 68 5c 6e | 22 2c 20 35 29 3b 0d 00 | "ouch\n|", 5);..|
|00003800| 00 3c 00 00 a5 44 00 00 | 40 70 17 00 c5 f5 d4 ff |.<...D..|@p......|
|00003810| d5 1c d5 ff 70 1a 00 f0 | 7d 0d 08 05 0c 92 cd 00 |....p...|}.......|
|00003820| 12 90 cd 00 00 00 00 00 | 08 05 05 05 12 00 00 00 |........|........|
|00003830| 00 00 00 00 07 1d cd 00 | 18 93 cd 00 18 93 cd 00 |........|........|
|00003840| 00 00 00 00 00 44 00 00 | a5 24 00 00 40 00 00 00 |.....D..|.$..@...|
|00003850| 35 e1 d4 ff f5 ed d4 ff | 00 00 00 f0 0d 08 20 20 |5.......|...... |
|00003860| 18 94 cd 00 00 00 00 00 | 00 24 00 00 05 8c 00 00 |........|.$......|
|00003870| 00 b0 e7 07 65 88 d4 ff | 45 b7 d4 ff 20 22 00 f0 |....e...|E... "..|
|00003880| 48 6f 77 65 76 65 72 2c | 20 62 65 63 61 75 73 65 |However,| because|
|00003890| 20 73 79 73 63 61 6c 6c | 73 20 72 65 73 74 61 72 | syscall|s restar|
|000038a0| 74 20 62 79 20 64 65 66 | 61 75 6c 74 2c 20 79 6f |t by def|ault, yo|
|000038b0| 75 27 6c 6c 20 66 69 6e | 64 20 74 68 61 74 20 69 |u'll fin|d that i|
|000038c0| 66 20 79 6f 75 27 72 65 | 20 69 6e 20 61 20 22 73 |f you're| in a "s|
|000038d0| 6c 6f 77 22 20 63 61 6c | 6c 2c 20 73 75 63 68 20 |low" cal|l, such |
|000038e0| 61 73 20 3c 46 48 3e 2c | 20 72 65 61 64 28 29 2c |as <FH>,| read(),|
|000038f0| 20 00 00 00 00 8c 00 00 | 05 84 00 00 00 a0 7f 07 | .......|........|
|00003900| 3e 50 d4 ff 1e 7f d4 ff | 20 22 00 f0 63 6f 6e 6e |>P......| "..conn|
|00003910| 65 63 74 28 29 2c 20 6f | 72 20 77 61 69 74 28 29 |ect(), o|r wait()|
|00003920| 2c 20 74 68 61 74 20 74 | 68 65 20 6f 6e 6c 79 20 |, that t|he only |
|00003930| 77 61 79 20 74 6f 20 74 | 65 72 6d 69 6e 61 74 65 |way to t|erminate|
|00003940| 20 74 68 65 6d 20 69 73 | 20 62 79 20 22 6c 6f 6e | them is| by "lon|
|00003950| 67 6a 75 6d 70 69 6e 67 | 22 20 6f 75 74 3b 20 74 |gjumping|" out; t|
|00003960| 68 61 74 20 69 73 2c 20 | 62 79 20 72 61 69 73 69 |hat is, |by raisi|
|00003970| 6e 67 20 61 6e 20 00 00 | 00 84 00 00 85 a0 00 00 |ng an ..|........|
|00003980| 00 70 e2 07 17 18 d4 ff | f7 46 d4 ff 20 22 00 f0 |.p......|.F.. "..|
|00003990| 65 78 63 65 70 74 69 6f | 6e 2e 20 20 53 65 65 20 |exceptio|n. See |
|000039a0| 74 68 65 20 74 69 6d 65 | 2d 6f 75 74 20 68 61 6e |the time|-out han|
|000039b0| 64 6c 65 72 20 66 6f 72 | 20 61 20 62 6c 6f 63 6b |dler for| a block|
|000039c0| 69 6e 67 20 66 6c 6f 63 | 6b 28 29 20 69 6e 20 74 |ing floc|k() in t|
|000039d0| 68 65 20 73 65 63 74 69 | 6f 6e 20 6f 6e 20 22 53 |he secti|on on "S|
|000039e0| 69 67 6e 61 6c 73 22 20 | 69 6e 20 74 68 65 20 63 |ignals" |in the c|
|000039f0| 68 61 70 74 65 72 20 07 | 10 95 cd 00 10 95 cd 00 |hapter .|........|
|00003a00| 00 00 00 00 70 65 72 6c | 69 70 63 08 10 00 00 00 |....perl|ipc.....|
|00003a10| 00 00 00 00 20 00 00 00 | 00 a0 00 00 a5 40 00 00 |.... ...|.....@..|
|00003a20| 40 78 e9 01 f0 df d3 ff | d0 0e d4 ff 20 22 00 f0 |@x......|.... "..|
|00003a30| 6f 72 20 63 68 61 70 74 | 65 72 20 36 20 6f 66 20 |or chapt|er 6 of |
|00003a40| 74 68 65 20 43 61 6d 65 | 6c 2e 0d 07 0a 96 cd 00 |the Came|l.......|
|00003a50| 0a 96 cd 00 00 00 00 00 | 00 40 00 00 a5 5c 00 00 |........|.@...\..|
|00003a60| 40 3e ce 05 49 69 d3 ff | f9 9f d3 ff 18 2b 00 f0 |@>..Ii..|.....+..|
|00003a70| 48 6f 77 20 64 6f 20 49 | 20 6d 6f 64 69 66 79 20 |How do I| modify |
|00003a80| 74 68 65 20 73 68 61 64 | 6f 77 20 70 61 73 73 77 |the shad|ow passw|
|00003a90| 6f 72 64 20 66 69 6c 65 | 20 6f 6e 20 61 20 55 6e |ord file| on a Un|
|00003aa0| 69 78 20 73 79 73 74 65 | 6d 3f 0d 08 0a 97 cd 00 |ix syste|m?......|
|00003ab0| 00 00 00 00 00 5c 00 00 | 85 a4 00 00 00 cc da 07 |.....\..|........|
|00003ac0| 14 14 d3 ff f4 42 d3 ff | 20 22 00 f0 49 66 20 70 |.....B..| "..If p|
|00003ad0| 65 72 6c 20 77 61 73 20 | 69 6e 73 74 61 6c 6c 65 |erl was |installe|
|00003ae0| 64 20 63 6f 72 72 65 63 | 74 6c 79 2c 20 74 68 65 |d correc|tly, the|
|00003af0| 20 67 65 74 70 77 2a 28 | 29 20 66 75 6e 63 74 69 | getpw*(|) functi|
|00003b00| 6f 6e 73 20 64 65 73 63 | 72 69 62 65 64 20 69 6e |ons desc|ribed in|
|00003b10| 20 74 68 65 20 63 68 61 | 70 74 65 72 20 07 cd 00 | the cha|pter ...|
|00003b20| 10 98 cd 00 10 98 cd 00 | 00 00 00 00 70 65 72 6c |........|....perl|
|00003b30| 66 75 6e 63 08 30 cd 00 | 10 00 00 00 00 00 00 00 |func.0..|........|
|00003b40| 20 70 72 6f 76 69 64 65 | 20 28 72 65 61 64 2d 6f | provide| (read-o|
|00003b50| 6e 6c 79 29 20 00 00 00 | 00 a4 00 00 05 84 00 00 |nly) ...|........|
|00003b60| 00 04 e8 07 ed db d2 ff | cd 0a d3 ff 20 22 00 f0 |........|.... "..|
|00003b70| 61 63 63 65 73 73 20 74 | 6f 20 74 68 65 20 73 68 |access t|o the sh|
|00003b80| 61 64 6f 77 20 70 61 73 | 73 77 6f 72 64 20 66 69 |adow pas|sword fi|
|00003b90| 6c 65 2e 20 54 6f 20 63 | 68 61 6e 67 65 20 74 68 |le. To c|hange th|
|00003ba0| 65 20 66 69 6c 65 2c 20 | 6d 61 6b 65 20 61 20 6e |e file, |make a n|
|00003bb0| 65 77 20 73 68 61 64 6f | 77 20 70 61 73 73 77 6f |ew shado|w passwo|
|00003bc0| 72 64 20 66 69 6c 65 20 | 28 74 68 65 20 66 6f 72 |rd file |(the for|
|00003bd0| 6d 61 74 20 76 61 72 69 | 65 73 20 00 00 84 00 00 |mat vari|es .....|
|00003be0| 85 a0 00 00 00 24 da 07 | c6 a3 d2 ff a6 d2 d2 ff |.....$..|........|
|00003bf0| 20 22 00 f0 66 72 6f 6d | 20 73 79 73 74 65 6d 20 | "..from| system |
|00003c00| 74 6f 20 73 79 73 74 65 | 6d 20 2d 20 73 65 65 20 |to syste|m - see |
|00003c10| 74 68 65 20 63 68 61 70 | 74 65 72 20 07 20 74 68 |the chap|ter . th|
|00003c20| 10 99 cd 00 10 99 cd 00 | 00 00 00 00 70 61 73 73 |........|....pass|
|00003c30| 77 64 28 35 29 08 00 00 | 10 00 00 00 00 00 00 00 |wd(5)...|........|
|00003c40| 20 66 6f 72 20 73 70 65 | 63 69 66 69 63 73 29 20 | for spe|cifics) |
|00003c50| 61 6e 64 20 75 73 65 20 | 70 77 64 5f 6d 6b 64 62 |and use |pwd_mkdb|
|00003c60| 28 38 29 20 74 6f 20 69 | 6e 73 74 61 6c 6c 20 69 |(8) to i|nstall i|
|00003c70| 74 20 28 73 65 65 20 74 | 68 65 20 00 00 a0 00 00 |t (see t|he .....|
|00003c80| a5 68 00 00 40 d4 fe 02 | 9f 6b d2 ff 7f 9a d2 ff |.h..@...|.k......|
|00003c90| 20 22 00 f0 63 68 61 70 | 74 65 72 20 07 6e 6f 72 | "..chap|ter .nor|
|00003ca0| 10 9a cd 00 10 9a cd 00 | 00 00 00 00 70 77 64 5f |........|....pwd_|
|00003cb0| 6d 6b 64 62 28 35 29 08 | 10 00 00 00 00 00 00 00 |mkdb(5).|........|
|00003cc0| 20 66 6f 72 20 6d 6f 72 | 65 20 64 65 74 61 69 6c | for mor|e detail|
|00003cd0| 73 29 2e 0d 07 63 74 69 | 0a 9b cd 00 0a 9b cd 00 |s)...cti|........|
|00003ce0| 00 00 00 00 00 68 00 00 | a5 44 00 00 40 22 04 03 |.....h..|.D..@"..|
|00003cf0| f8 f4 d1 ff a8 2b d2 ff | 18 2b 00 f0 48 6f 77 20 |.....+..|.+..How |
|00003d00| 64 6f 20 49 20 73 65 74 | 20 74 68 65 20 74 69 6d |do I set| the tim|
|00003d10| 65 20 61 6e 64 20 64 61 | 74 65 3f 0d 08 00 00 00 |e and da|te?.....|
|00003d20| 0a 9c cd 00 00 00 00 00 | 00 44 00 00 05 84 00 00 |........|.D......|
|00003d30| 00 c4 c7 07 c3 9f d1 ff | a3 ce d1 ff 20 22 00 f0 |........|.... "..|
|00003d40| 41 73 73 75 6d 69 6e 67 | 20 79 6f 75 27 72 65 20 |Assuming| you're |
|00003d50| 72 75 6e 6e 69 6e 67 20 | 75 6e 64 65 72 20 73 75 |running |under su|
|00003d60| 66 66 69 63 69 65 6e 74 | 20 70 65 72 6d 69 73 73 |fficient| permiss|
|00003d70| 69 6f 6e 73 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |ions, yo|u should|
|00003d80| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 73 65 74 20 | be able| to set |
|00003d90| 74 68 65 20 73 79 73 74 | 65 6d 2d 77 69 64 65 20 |the syst|em-wide |
|00003da0| 64 61 74 65 20 61 6e 64 | 20 00 00 00 00 84 00 00 |date and| .......|
|00003db0| 05 88 00 00 00 e8 f4 07 | 9c 67 d1 ff 7c 96 d1 ff |........|.g..|...|
|00003dc0| 20 22 00 f0 74 69 6d 65 | 20 62 79 20 72 75 6e 6e | "..time| by runn|
|00003dd0| 69 6e 67 20 74 68 65 20 | 64 61 74 65 28 31 29 20 |ing the |date(1) |
|00003de0| 70 72 6f 67 72 61 6d 2e | 20 20 28 54 68 65 72 65 |program.| (There|
|00003df0| 20 69 73 20 6e 6f 20 77 | 61 79 20 74 6f 20 73 65 | is no w|ay to se|
|00003e00| 74 20 74 68 65 20 74 69 | 6d 65 20 61 6e 64 20 64 |t the ti|me and d|
|00003e10| 61 74 65 20 6f 6e 20 61 | 20 70 65 72 2d 70 72 6f |ate on a| per-pro|
|00003e20| 63 65 73 73 20 62 61 73 | 69 73 2e 29 20 20 54 68 |cess bas|is.) Th|
|00003e30| 69 73 20 00 00 88 00 00 | a5 98 00 00 40 a4 2a 07 |is .....|....@.*.|
|00003e40| 75 2f d1 ff 55 5e d1 ff | 20 22 00 f0 6d 65 63 68 |u/..U^..| "..mech|
|00003e50| 61 6e 69 73 6d 20 77 69 | 6c 6c 20 77 6f 72 6b 20 |anism wi|ll work |
|00003e60| 66 6f 72 20 55 6e 69 78 | 2c 20 4d 53 2d 44 4f 53 |for Unix|, MS-DOS|
|00003e70| 2c 20 57 69 6e 64 6f 77 | 73 2c 20 61 6e 64 20 4e |, Window|s, and N|
|00003e80| 54 3b 20 74 68 65 20 56 | 4d 53 20 65 71 75 69 76 |T; the V|MS equiv|
|00003e90| 61 6c 65 6e 74 20 69 73 | 20 07 6d 20 0e 9d cd 00 |alent is| .m ....|
|00003ea0| 0e 9d cd 00 00 00 00 00 | 73 65 74 20 74 69 6d 65 |........|set time|
|00003eb0| 08 65 20 63 0e 9e cd 00 | 00 00 00 00 2e 0d 07 2c |.e c....|.......,|
|00003ec0| 14 9f cd 00 14 9f cd 00 | 00 00 00 00 00 98 00 00 |........|........|
|00003ed0| 05 7c 00 00 00 30 41 07 | 9e c0 d0 ff 7e ef d0 ff |.|...0A.|....~...|
|00003ee0| 20 22 00 f0 48 6f 77 65 | 76 65 72 2c 20 69 66 20 | "..Howe|ver, if |
|00003ef0| 61 6c 6c 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |all you |want to |
|00003f00| 64 6f 20 69 73 20 63 68 | 61 6e 67 65 20 79 6f 75 |do is ch|ange you|
|00003f10| 72 20 74 69 6d 65 7a 6f | 6e 65 2c 20 79 6f 75 20 |r timezo|ne, you |
|00003f20| 63 61 6e 20 70 72 6f 62 | 61 62 6c 79 20 67 65 74 |can prob|ably get|
|00003f30| 20 61 77 61 79 20 77 69 | 74 68 20 73 65 74 74 69 | away wi|th setti|
|00003f40| 6e 67 20 61 6e 20 00 00 | 00 7c 00 00 a5 5c 00 00 |ng an ..|.|...\..|
|00003f50| 40 b0 9c 01 77 88 d0 ff | 57 b7 d0 ff 20 22 00 f0 |@...w...|W... "..|
|00003f60| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 76 61 72 69 |environm|ent vari|
|00003f70| 61 62 6c 65 3a 0d 08 6f | 14 00 00 00 00 00 00 00 |able:..o|........|
|00003f80| 07 05 05 05 12 a0 cd 00 | 12 a0 cd 00 00 00 00 00 |........|........|
|00003f90| 07 05 05 05 0c a1 cd 00 | 12 a0 cd 00 0c a1 cd 00 |........|........|
|00003fa0| 00 00 00 00 00 5c 00 00 | 25 4c 00 00 40 00 65 04 |.....\..|%L..@.e.|
|00003fb0| 70 21 d0 ff 80 48 d0 ff | 70 1a 00 f0 24 45 4e 56 |p!...H..|p...$ENV|
|00003fc0| 7b 54 5a 7d 20 3d 20 22 | 4d 53 54 37 4d 44 54 22 |{TZ} = "|MST7MDT"|
|00003fd0| 3b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |; | |
|00003fe0| 20 20 20 23 20 75 6e 69 | 78 69 73 68 0d 00 00 00 | # uni|xish....|
|00003ff0| 00 4c 00 00 25 48 00 00 | 40 40 07 04 90 f2 cf ff |.L..%H..|@@......|
|00004000| a0 19 d0 ff 70 1a 00 f0 | 24 45 4e 56 7b 27 53 59 |....p...|$ENV{'SY|
|00004010| 53 24 54 49 4d 45 5a 4f | 4e 45 5f 44 49 46 46 45 |S$TIMEZO|NE_DIFFE|
|00004020| 52 45 4e 54 49 41 4c 27 | 7d 3d 22 2d 35 22 20 23 |RENTIAL'|}="-5" #|
|00004030| 20 76 6d 73 0d 00 00 00 | 00 48 00 00 a5 60 00 00 | vms....|.H...`..|
|00004040| 40 40 90 02 b0 c3 cf ff | c0 ea cf ff 70 1a 00 f0 |@@......|....p...|
|00004050| 73 79 73 74 65 6d 20 22 | 74 72 6e 20 63 6f 6d 70 |system "|trn comp|
|00004060| 2e 6c 61 6e 67 2e 70 65 | 72 6c 22 3b 0d 08 6e 65 |.lang.pe|rl";..ne|
|00004070| 0c a2 cd 00 12 a0 cd 00 | 00 00 00 00 08 3d cd 00 |........|.....=..|
|00004080| 12 00 00 00 00 00 00 00 | 07 00 00 00 18 a3 cd 00 |........|........|
|00004090| 18 a3 cd 00 00 00 00 00 | 00 60 00 00 a5 34 00 00 |........|.`...4..|
|000040a0| 40 00 00 00 20 af cf ff | e0 bb cf ff 00 00 00 f0 |@... ...|........|
|000040b0| 0d 08 74 20 18 a4 cd 00 | 00 00 00 00 07 74 68 20 |..t ....|.....th |
|000040c0| 0a a5 cd 00 0a a5 cd 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|000040d0| a5 54 00 00 40 3a 9b 04 | 80 4e cf ff 30 85 cf ff |.T..@:..|.N..0...|
|000040e0| 18 2b 00 f0 48 6f 77 20 | 63 61 6e 20 49 20 73 6c |.+..How |can I sl|
|000040f0| 65 65 70 28 29 20 6f 72 | 20 61 6c 61 72 6d 28 29 |eep() or| alarm()|
|00004100| 20 66 6f 72 20 75 6e 64 | 65 72 20 61 20 73 65 63 | for und|er a sec|
|00004110| 6f 6e 64 3f 0d 08 63 74 | 0a a6 cd 00 00 00 00 00 |ond?..ct|........|
|00004120| 00 54 00 00 05 88 00 00 | 00 34 b8 07 4b f9 ce ff |.T......|.4..K...|
|00004130| 2b 28 cf ff 20 22 00 f0 | 49 66 20 79 6f 75 20 77 |+(.. "..|If you w|
|00004140| 61 6e 74 20 66 69 6e 65 | 72 20 67 72 61 6e 75 6c |ant fine|r granul|
|00004150| 61 72 69 74 79 20 74 68 | 61 6e 20 74 68 65 20 31 |arity th|an the 1|
|00004160| 20 73 65 63 6f 6e 64 20 | 74 68 61 74 20 74 68 65 | second |that the|
|00004170| 20 73 6c 65 65 70 28 29 | 20 66 75 6e 63 74 69 6f | sleep()| functio|
|00004180| 6e 20 70 72 6f 76 69 64 | 65 73 2c 20 74 68 65 20 |n provid|es, the |
|00004190| 65 61 73 69 65 73 74 20 | 77 61 79 20 69 73 20 74 |easiest |way is t|
|000041a0| 6f 20 75 73 65 20 00 00 | 00 88 00 00 85 a0 00 00 |o use ..|........|
|000041b0| 00 84 b3 07 24 c1 ce ff | 04 f0 ce ff 20 22 00 f0 |....$...|.... "..|
|000041c0| 74 68 65 20 73 65 6c 65 | 63 74 28 29 20 66 75 6e |the sele|ct() fun|
|000041d0| 63 74 69 6f 6e 20 61 73 | 20 64 6f 63 75 6d 65 6e |ction as| documen|
|000041e0| 74 65 64 20 69 6e 20 74 | 68 65 20 73 65 63 74 69 |ted in t|he secti|
|000041f0| 6f 6e 20 6f 6e 20 22 73 | 65 6c 65 63 74 22 20 69 |on on "s|elect" i|
|00004200| 6e 20 74 68 65 20 63 68 | 61 70 74 65 72 20 07 20 |n the ch|apter . |
|00004210| 10 a7 cd 00 10 a7 cd 00 | 00 00 00 00 70 65 72 6c |........|....perl|
|00004220| 66 75 6e 63 08 74 61 6e | 10 00 00 00 00 00 00 00 |func.tan|........|
|00004230| 2e 20 20 49 66 20 79 6f | 75 72 20 73 79 73 74 65 |. If yo|ur syste|
|00004240| 6d 20 68 61 73 20 00 00 | 00 a0 00 00 05 80 00 00 |m has ..|........|
|00004250| 00 60 bf 07 fd 88 ce ff | dd b7 ce ff 20 22 00 f0 |.`......|.... "..|
|00004260| 69 74 69 6d 65 72 73 20 | 61 6e 64 20 73 79 73 63 |itimers |and sysc|
|00004270| 61 6c 6c 28 29 20 73 75 | 70 70 6f 72 74 2c 20 79 |all() su|pport, y|
|00004280| 6f 75 20 63 61 6e 20 63 | 68 65 63 6b 20 6f 75 74 |ou can c|heck out|
|00004290| 20 74 68 65 20 6f 6c 64 | 20 65 78 61 6d 70 6c 65 | the old| example|
|000042a0| 20 69 6e 20 68 74 74 70 | 3a 2f 2f 77 77 77 2e 70 | in http|://www.p|
|000042b0| 65 72 6c 2e 63 6f 6d 2f | 43 50 41 4e 2f 64 6f 63 |erl.com/|CPAN/doc|
|000042c0| 2f 6d 69 73 63 2f 00 00 | 00 80 00 00 a5 48 00 00 |/misc/..|.....H..|
|000042d0| 40 fc 2b 02 d6 50 ce ff | b6 7f ce ff 20 22 00 f0 |@.+..P..|.... "..|
|000042e0| 61 6e 63 69 65 6e 74 2f | 74 75 74 6f 72 69 61 6c |ancient/|tutorial|
|000042f0| 2f 65 67 2f 69 74 69 6d | 65 72 73 2e 70 6c 20 2e |/eg/itim|ers.pl .|
|00004300| 0d 07 04 fc 0a a8 cd 00 | 0a a8 cd 00 00 00 00 00 |........|........|
|00004310| 00 48 00 00 a5 48 00 00 | 40 28 f4 03 2f da cd ff |.H...H..|@(../...|
|00004320| df 10 ce ff 18 2b 00 f0 | 48 6f 77 20 63 61 6e 20 |.....+..|How can |
|00004330| 49 20 6d 65 61 73 75 72 | 65 20 74 69 6d 65 20 75 |I measur|e time u|
|00004340| 6e 64 65 72 20 61 20 73 | 65 63 6f 6e 64 3f 0d 08 |nder a s|econd?..|
|00004350| 0a a9 cd 00 00 00 00 00 | 00 48 00 00 05 78 00 00 |........|.H...x..|
|00004360| 00 84 3b 07 fa 84 cd ff | da b3 cd ff 20 22 00 f0 |..;.....|.... "..|
|00004370| 49 6e 20 67 65 6e 65 72 | 61 6c 2c 20 79 6f 75 20 |In gener|al, you |
|00004380| 6d 61 79 20 6e 6f 74 20 | 62 65 20 61 62 6c 65 20 |may not |be able |
|00004390| 74 6f 2e 20 20 54 68 65 | 20 54 69 6d 65 3a 3a 48 |to. The| Time::H|
|000043a0| 69 52 65 73 20 6d 6f 64 | 75 6c 65 20 28 61 76 61 |iRes mod|ule (ava|
|000043b0| 69 6c 61 62 6c 65 20 66 | 72 6f 6d 20 43 50 41 4e |ilable f|rom CPAN|
|000043c0| 29 20 70 72 6f 76 69 64 | 65 73 20 74 68 69 73 20 |) provid|es this |
|000043d0| 00 78 00 00 a5 48 00 00 | 40 84 4c 02 d3 4c cd ff |.x...H..|@.L..L..|
|000043e0| b3 7b cd ff 20 22 00 f0 | 66 75 6e 63 74 69 6f 6e |.{.. "..|function|
|000043f0| 61 6c 69 74 79 20 66 6f | 72 20 73 6f 6d 65 20 73 |ality fo|r some s|
|00004400| 79 73 74 65 6d 73 2e 0d | 07 45 cd 00 14 aa cd 00 |ystems..|.E......|
|00004410| 14 aa cd 00 00 00 00 00 | 00 48 00 00 01 10 00 00 |........|.H......|
|00004420| 01 3c da 07 00 00 00 00 | 00 10 00 00 02 18 00 00 |.<......|........|
|00004430| 38 07 00 00 00 00 00 00 | 14 aa cd 00 00 00 00 00 |8.......|........|
|00004440| 00 18 00 00 05 94 00 00 | 00 3c da 07 bc 45 cb ff |........|.<...E..|
|00004450| 9c 74 cb ff 20 22 00 f0 | 16 00 00 00 b0 fc 07 00 |.t.. "..|........|
|00004460| 00 00 00 00 49 6e 20 67 | 65 6e 65 72 61 6c 2c 20 |....In g|eneral, |
|00004470| 79 6f 75 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 61 |you may |not be a|
|00004480| 62 6c 65 20 74 6f 2e 20 | 20 42 75 74 20 69 66 20 |ble to. | But if |
|00004490| 79 6f 75 20 73 79 73 74 | 65 6d 20 73 75 70 70 6f |you syst|em suppo|
|000044a0| 72 74 73 20 62 6f 74 68 | 20 74 68 65 20 73 79 73 |rts both| the sys|
|000044b0| 63 61 6c 6c 28 29 20 66 | 75 6e 63 74 69 6f 6e 20 |call() f|unction |
|000044c0| 69 6e 20 50 65 72 6c 20 | 61 73 20 77 65 6c 6c 20 |in Perl |as well |
|000044d0| 61 73 20 00 00 94 00 00 | a5 9c 00 00 40 ac 0e 06 |as .....|....@...|
|000044e0| 95 0d cb ff 75 3c cb ff | 20 22 00 f0 61 20 73 79 |....u<..| "..a sy|
|000044f0| 73 74 65 6d 20 63 61 6c | 6c 20 6c 69 6b 65 20 67 |stem cal|l like g|
|00004500| 65 74 74 69 6d 65 6f 66 | 64 61 79 28 32 29 2c 20 |ettimeof|day(2), |
|00004510| 74 68 65 6e 20 79 6f 75 | 20 6d 61 79 20 62 65 20 |then you| may be |
|00004520| 61 62 6c 65 20 74 6f 20 | 64 6f 20 73 6f 6d 65 74 |able to |do somet|
|00004530| 68 69 6e 67 20 6c 69 6b | 65 20 74 68 69 73 3a 0d |hing lik|e this:.|
|00004540| 08 5c 6e 22 14 00 00 00 | 00 00 00 00 07 74 68 65 |.\n"....|.....the|
|00004550| 12 ab cd 00 12 ab cd 00 | 00 00 00 00 07 20 69 73 |........|..... is|
|00004560| 0c ac cd 00 12 ab cd 00 | 0c ac cd 00 00 00 00 00 |........|........|
|00004570| 00 9c 00 00 a5 5c 00 00 | 40 f0 49 02 8e a6 ca ff |.....\..|@.I.....|
|00004580| 9e cd ca ff 70 1a 00 f0 | 72 65 71 75 69 72 65 20 |....p...|require |
|00004590| 27 73 79 73 2f 73 79 73 | 63 61 6c 6c 2e 70 68 27 |'sys/sys|call.ph'|
|000045a0| 3b 0d 08 74 0c ad cd 00 | 12 ab cd 00 00 00 00 00 |;..t....|........|
|000045b0| 08 53 2f 57 12 00 00 00 | 00 00 00 00 07 61 63 69 |.S/W....|.....aci|
|000045c0| 18 ae cd 00 18 ae cd 00 | 00 00 00 00 00 5c 00 00 |........|.....\..|
|000045d0| a5 48 00 00 40 00 00 00 | fe 91 ca ff be 9e ca ff |.H..@...|........|
|000045e0| 00 00 00 f0 0d 08 cd 00 | 18 af cd 00 00 00 00 00 |........|........|
|000045f0| 07 00 00 00 12 b0 cd 00 | 12 b0 cd 00 00 00 00 00 |........|........|
|00004600| 07 20 65 6e 0c b1 cd 00 | 12 b0 cd 00 0c b1 cd 00 |. en....|........|
|00004610| 00 00 00 00 00 48 00 00 | a5 54 00 00 40 e0 a5 01 |.....H..|.T..@...|
|00004620| fe 40 ca ff 0e 68 ca ff | 70 1a 00 f0 24 54 49 4d |.@...h..|p...$TIM|
|00004630| 45 56 41 4c 5f 54 20 3d | 20 22 4c 4c 22 3b 0d 08 |EVAL_T =| "LL";..|
|00004640| 0c b2 cd 00 12 b0 cd 00 | 00 00 00 00 08 70 70 6c |........|.....ppl|
|00004650| 12 00 00 00 00 00 00 00 | 07 69 61 6c 18 b3 cd 00 |........|.ial....|
|00004660| 18 b3 cd 00 00 00 00 00 | 00 54 00 00 a5 48 00 00 |........|.T...H..|
|00004670| 40 00 00 00 6e 2c ca ff | 2e 39 ca ff 00 00 00 f0 |@...n,..|.9......|
|00004680| 0d 08 63 75 18 b4 cd 00 | 00 00 00 00 07 2e 0d 07 |..cu....|........|
|00004690| 12 b5 cd 00 12 b5 cd 00 | 00 00 00 00 07 00 00 00 |........|........|
|000046a0| 0c b6 cd 00 12 b5 cd 00 | 0c b6 cd 00 00 00 00 00 |........|........|
|000046b0| 00 48 00 00 a5 68 00 00 | 40 a0 7a 03 6e db c9 ff |.H...h..|@.z.n...|
|000046c0| 7e 02 ca ff 70 1a 00 f0 | 24 64 6f 6e 65 20 3d 20 |~...p...|$done = |
|000046d0| 24 73 74 61 72 74 20 3d | 20 70 61 63 6b 28 24 54 |$start =| pack($T|
|000046e0| 49 4d 45 56 41 4c 5f 54 | 2c 20 28 29 29 3b 0d 08 |IMEVAL_T|, ());..|
|000046f0| 0c b7 cd 00 12 b5 cd 00 | 00 00 00 00 08 6e 74 28 |........|.....nt(|
|00004700| 12 00 00 00 00 00 00 00 | 07 6f 75 27 18 b8 cd 00 |........|.ou'....|
|00004710| 18 b8 cd 00 00 00 00 00 | 00 68 00 00 a5 48 00 00 |........|.h...H..|
|00004720| 40 00 00 00 de c6 c9 ff | 9e d3 c9 ff 00 00 00 f0 |@.......|........|
|00004730| 0d 08 61 73 18 b9 cd 00 | 00 00 00 00 07 6c 64 65 |..as....|.....lde|
|00004740| 12 ba cd 00 12 ba cd 00 | 00 00 00 00 07 4d cd 00 |........|.....M..|
|00004750| 0c bb cd 00 12 ba cd 00 | 0c bb cd 00 00 00 00 00 |........|........|
|00004760| 00 48 00 00 25 48 00 00 | 40 b0 1e 04 de 75 c9 ff |.H..%H..|@....u..|
|00004770| ee 9c c9 ff 70 1a 00 f0 | 73 79 73 63 61 6c 6c 28 |....p...|syscall(|
|00004780| 20 26 53 59 53 5f 67 65 | 74 74 69 6d 65 6f 66 64 | &SYS_ge|ttimeofd|
|00004790| 61 79 2c 20 24 73 74 61 | 72 74 2c 20 30 29 29 20 |ay, $sta|rt, 0)) |
|000047a0| 21 3d 20 2d 31 0d 00 00 | 00 48 00 00 a5 68 00 00 |!= -1...|.H...h..|
|000047b0| 40 30 63 03 fe 46 c9 ff | 0e 6e c9 ff 70 1a 00 f0 |@0c..F..|.n..p...|
|000047c0| 20 20 20 20 20 20 20 20 | 20 20 20 6f 72 20 64 69 | | or di|
|000047d0| 65 20 22 67 65 74 74 69 | 6d 65 6f 66 64 61 79 3a |e "getti|meofday:|
|000047e0| 20 24 21 22 3b 0d 08 05 | 0c bc cd 00 12 ba cd 00 | $!";...|........|
|000047f0| 00 00 00 00 08 00 00 00 | 12 00 00 00 00 00 00 00 |........|........|
|00004800| 07 3a cd 00 18 bd cd 00 | 18 bd cd 00 00 00 00 00 |.:......|........|
|00004810| 00 68 00 00 a5 48 00 00 | 40 00 00 00 6e 32 c9 ff |.h...H..|@...n2..|
|00004820| 2e 3f c9 ff 00 00 00 f0 | 0d 08 6c 75 18 be cd 00 |.?......|..lu....|
|00004830| 00 00 00 00 07 54 cd 00 | 12 bf cd 00 12 bf cd 00 |.....T..|........|
|00004840| 00 00 00 00 07 05 05 05 | 0c c0 cd 00 12 bf cd 00 |........|........|
|00004850| 0c c0 cd 00 00 00 00 00 | 00 48 00 00 25 34 00 00 |........|.H..%4..|
|00004860| 40 60 61 02 6e e1 c8 ff | 7e 08 c9 ff 70 1a 00 f0 |@`a.n...|~...p...|
|00004870| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00004880| 23 23 23 23 23 23 23 23 | 23 23 0d 00 00 34 00 00 |########|##...4..|
|00004890| 25 34 00 00 40 60 61 02 | 8e b2 c8 ff 9e d9 c8 ff |%4..@`a.|........|
|000048a0| 70 1a 00 f0 23 20 44 4f | 20 59 4f 55 52 20 4f 50 |p...# DO| YOUR OP|
|000048b0| 45 52 41 54 49 4f 4e 20 | 48 45 52 45 20 23 0d 00 |ERATION |HERE #..|
|000048c0| 00 34 00 00 a5 5c 00 00 | 40 60 61 02 ae 83 c8 ff |.4...\..|@`a.....|
|000048d0| be aa c8 ff 70 1a 00 f0 | 23 23 23 23 23 23 23 23 |....p...|########|
|000048e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000048f0| 23 23 0d 08 0c c1 cd 00 | 12 bf cd 00 00 00 00 00 |##......|........|
|00004900| 08 7c 22 20 12 00 00 00 | 00 00 00 00 07 74 68 65 |.|" ....|.....the|
|00004910| 18 c2 cd 00 18 c2 cd 00 | 00 00 00 00 00 5c 00 00 |........|.....\..|
|00004920| a5 48 00 00 40 00 00 00 | 1e 6f c8 ff de 7b c8 ff |.H..@...|.o...{..|
|00004930| 00 00 00 f0 0d 08 72 08 | 18 c3 cd 00 00 00 00 00 |......r.|........|
|00004940| 07 57 cd 00 12 c4 cd 00 | 12 c4 cd 00 00 00 00 00 |.W......|........|
|00004950| 07 22 73 65 0c c5 cd 00 | 12 c4 cd 00 0c c5 cd 00 |."se....|........|
|00004960| 00 00 00 00 00 48 00 00 | 25 44 00 00 40 d0 ef 03 |.....H..|%D..@...|
|00004970| 1e 1e c8 ff 2e 45 c8 ff | 70 1a 00 f0 73 79 73 63 |.....E..|p...sysc|
|00004980| 61 6c 6c 28 20 26 53 59 | 53 5f 67 65 74 74 69 6d |all( &SY|S_gettim|
|00004990| 65 6f 66 64 61 79 2c 20 | 24 64 6f 6e 65 2c 20 30 |eofday, |$done, 0|
|000049a0| 29 20 21 3d 20 2d 31 0d | 00 44 00 00 a5 64 00 00 |) != -1.|.D...d..|
|000049b0| 40 70 05 03 3e ef c7 ff | 4e 16 c8 ff 70 1a 00 f0 |@p..>...|N...p...|
|000049c0| 20 20 20 20 20 20 20 6f | 72 20 64 69 65 20 22 67 | o|r die "g|
|000049d0| 65 74 74 69 6d 65 6f 66 | 64 61 79 3a 20 24 21 22 |ettimeof|day: $!"|
|000049e0| 3b 0d 08 20 0c c6 cd 00 | 12 c4 cd 00 00 00 00 00 |;.. ....|........|
|000049f0| 08 24 7c 20 12 00 00 00 | 00 00 00 00 07 63 74 28 |.$| ....|.....ct(|
|00004a00| 18 c7 cd 00 18 c7 cd 00 | 00 00 00 00 00 64 00 00 |........|.....d..|
|00004a10| a5 48 00 00 40 00 00 00 | ae da c7 ff 6e e7 c7 ff |.H..@...|....n...|
|00004a20| 00 00 00 f0 0d 08 cd 00 | 18 c8 cd 00 00 00 00 00 |........|........|
|00004a30| 07 5f cd 00 12 c9 cd 00 | 12 c9 cd 00 00 00 00 00 |._......|........|
|00004a40| 07 08 05 05 0c ca cd 00 | 12 c9 cd 00 0c ca cd 00 |........|........|
|00004a50| 00 00 00 00 00 48 00 00 | 25 40 00 00 40 c0 4b 03 |.....H..|%@..@.K.|
|00004a60| ae 89 c7 ff be b0 c7 ff | 70 1a 00 f0 40 73 74 61 |........|p...@sta|
|00004a70| 72 74 20 3d 20 75 6e 70 | 61 63 6b 28 24 54 49 4d |rt = unp|ack($TIM|
|00004a80| 45 56 41 4c 5f 54 2c 20 | 24 73 74 61 72 74 29 3b |EVAL_T, |$start);|
|00004a90| 0d 00 00 00 00 40 00 00 | a5 68 00 00 40 50 34 03 |.....@..|.h..@P4.|
|00004aa0| ce 5a c7 ff de 81 c7 ff | 70 1a 00 f0 40 64 6f 6e |.Z......|p...@don|
|00004ab0| 65 20 20 3d 20 75 6e 70 | 61 63 6b 28 24 54 49 4d |e = unp|ack($TIM|
|00004ac0| 45 56 41 4c 5f 54 2c 20 | 24 64 6f 6e 65 29 3b 0d |EVAL_T, |$done);.|
|00004ad0| 08 74 28 44 0c cb cd 00 | 12 c9 cd 00 00 00 00 00 |.t(D....|........|
|00004ae0| 08 30 5d 29 12 00 00 00 | 00 00 00 00 07 3a cd 00 |.0])....|.....:..|
|00004af0| 18 cc cd 00 18 cc cd 00 | 00 00 00 00 00 68 00 00 |........|.....h..|
|00004b00| a5 48 00 00 40 00 00 00 | 3e 46 c7 ff fe 52 c7 ff |.H..@...|>F...R..|
|00004b10| 00 00 00 f0 0d 08 cd 00 | 18 cd cd 00 00 00 00 00 |........|........|
|00004b20| 07 65 cd 00 12 ce cd 00 | 12 ce cd 00 00 00 00 00 |.e......|........|
|00004b30| 07 6d 65 6e 0c cf cd 00 | 12 ce cd 00 0c cf cd 00 |.men....|........|
|00004b40| 00 00 00 00 00 48 00 00 | 25 2c 00 00 40 e0 a5 01 |.....H..|%,..@...|
|00004b50| 3e f5 c6 ff 4e 1c c7 ff | 70 1a 00 f0 23 20 66 69 |>...N...|p...# fi|
|00004b60| 78 20 6d 69 63 72 6f 73 | 65 63 6f 6e 64 73 0d 00 |x micros|econds..|
|00004b70| 00 2c 00 00 a5 70 00 00 | 40 b0 1e 04 5e c6 c6 ff |.,...p..|@...^...|
|00004b80| 6e ed c6 ff 70 1a 00 f0 | 66 6f 72 20 28 24 64 6f |n...p...|for ($do|
|00004b90| 6e 65 5b 31 5d 2c 20 24 | 73 74 61 72 74 5b 31 5d |ne[1], $|start[1]|
|00004ba0| 29 20 7b 20 24 5f 20 2f | 3d 20 31 5f 30 30 30 5f |) { $_ /|= 1_000_|
|00004bb0| 30 30 30 20 7d 0d 08 72 | 0c d0 cd 00 12 ce cd 00 |000 }..r|........|
|00004bc0| 00 00 00 00 08 74 6f 72 | 12 00 00 00 00 00 00 00 |.....tor|........|
|00004bd0| 07 74 20 63 18 d1 cd 00 | 18 d1 cd 00 00 00 00 00 |.t c....|........|
|00004be0| 00 70 00 00 a5 48 00 00 | 40 00 00 00 ce b1 c6 ff |.p...H..|@.......|
|00004bf0| 8e be c6 ff 00 00 00 f0 | 0d 08 6e 70 18 d2 cd 00 |........|..np....|
|00004c00| 00 00 00 00 07 3a cd 00 | 12 d3 cd 00 12 d3 cd 00 |.....:..|........|
|00004c10| 00 00 00 00 07 61 72 65 | 0c d4 cd 00 12 d3 cd 00 |.....are|........|
|00004c20| 0c d4 cd 00 00 00 00 00 | 00 48 00 00 25 50 00 00 |........|.H..%P..|
|00004c30| 40 a0 f1 04 ce 60 c6 ff | de 87 c6 ff 70 1a 00 f0 |@....`..|....p...|
|00004c40| 24 64 65 6c 74 61 5f 74 | 69 6d 65 20 3d 20 73 70 |$delta_t|ime = sp|
|00004c50| 72 69 6e 74 66 20 22 25 | 2e 34 66 22 2c 20 28 24 |rintf "%|.4f", ($|
|00004c60| 64 6f 6e 65 5b 30 5d 20 | 20 2b 20 24 64 6f 6e 65 |done[0] | + $done|
|00004c70| 5b 31 5d 20 20 29 0d 00 | 00 50 00 00 25 44 00 00 |[1] )..|.P..%D..|
|00004c80| 40 f0 c0 03 ee 31 c6 ff | fe 58 c6 ff 70 1a 00 f0 |@....1..|.X..p...|
|00004c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cb0| 20 20 20 20 20 20 20 20 | 2d 0d 00 00 00 44 00 00 | |-....D..|
|00004cc0| a5 78 00 00 40 a0 f1 04 | 0e 03 c6 ff 1e 2a c6 ff |.x..@...|.....*..|
|00004cd0| 70 1a 00 f0 20 20 20 20 | 20 20 20 20 20 20 20 20 |p... | |
|00004ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cf0| 20 28 24 73 74 61 72 74 | 5b 30 5d 20 2b 20 24 73 | ($start|[0] + $s|
|00004d00| 74 61 72 74 5b 31 5d 20 | 29 3b 0d 08 0c d5 cd 00 |tart[1] |);......|
|00004d10| 12 d3 cd 00 00 00 00 00 | 08 61 64 2c 12 00 00 00 |........|.ad,....|
|00004d20| 00 00 00 00 07 61 6e 73 | 18 d6 cd 00 18 d6 cd 00 |.....ans|........|
|00004d30| 00 00 00 00 00 78 00 00 | a5 34 00 00 40 00 00 00 |.....x..|.4..@...|
|00004d40| 7e ee c5 ff 3e fb c5 ff | 00 00 00 f0 0d 08 74 6f |~...>...|......to|
|00004d50| 18 d7 cd 00 00 00 00 00 | 07 65 20 77 0a d8 cd 00 |........|.e w....|
|00004d60| 0a d8 cd 00 00 00 00 00 | 00 34 00 00 a5 68 00 00 |........|.4...h..|
|00004d70| 40 2c 69 06 de 8d c5 ff | 8e c4 c5 ff 18 2b 00 f0 |@,i.....|.....+..|
|00004d80| 48 6f 77 20 63 61 6e 20 | 49 20 64 6f 20 61 6e 20 |How can |I do an |
|00004d90| 61 74 65 78 69 74 28 29 | 20 6f 72 20 73 65 74 6a |atexit()| or setj|
|00004da0| 6d 70 28 29 2f 6c 6f 6e | 67 6a 6d 70 28 29 3f 20 |mp()/lon|gjmp()? |
|00004db0| 28 45 78 63 65 70 74 69 | 6f 6e 20 68 61 6e 64 6c |(Excepti|on handl|
|00004dc0| 69 6e 67 29 0d 08 05 05 | 0a d9 cd 00 00 00 00 00 |ing)....|........|
|00004dd0| 00 68 00 00 05 84 00 00 | 00 80 de 07 a9 38 c5 ff |.h......|.....8..|
|00004de0| 89 67 c5 ff 20 22 00 f0 | 52 65 6c 65 61 73 65 20 |.g.. "..|Release |
|00004df0| 35 20 6f 66 20 50 65 72 | 6c 20 61 64 64 65 64 20 |5 of Per|l added |
|00004e00| 74 68 65 20 45 4e 44 20 | 62 6c 6f 63 6b 2c 20 77 |the END |block, w|
|00004e10| 68 69 63 68 20 63 61 6e | 20 62 65 20 75 73 65 64 |hich can| be used|
|00004e20| 20 74 6f 20 73 69 6d 75 | 6c 61 74 65 20 61 74 65 | to simu|late ate|
|00004e30| 78 69 74 28 29 2e 20 20 | 45 61 63 68 20 70 61 63 |xit(). |Each pac|
|00004e40| 6b 61 67 65 27 73 20 45 | 4e 44 20 62 6c 6f 63 6b |kage's E|ND block|
|00004e50| 20 00 00 00 00 84 00 00 | 85 98 00 00 00 94 88 07 | .......|........|
|00004e60| 82 00 c5 ff 62 2f c5 ff | 20 22 00 f0 69 73 20 63 |....b/..| "..is c|
|00004e70| 61 6c 6c 65 64 20 77 68 | 65 6e 20 74 68 65 20 70 |alled wh|en the p|
|00004e80| 72 6f 67 72 61 6d 20 6f | 72 20 74 68 72 65 61 64 |rogram o|r thread|
|00004e90| 20 65 6e 64 73 20 28 73 | 65 65 20 74 68 65 20 63 | ends (s|ee the c|
|00004ea0| 68 61 70 74 65 72 20 07 | 10 da cd 00 10 da cd 00 |hapter .|........|
|00004eb0| 00 00 00 00 70 65 72 6c | 6d 6f 64 08 10 00 00 00 |....perl|mod.....|
|00004ec0| 00 00 00 00 20 6d 61 6e | 70 61 67 65 20 66 6f 72 |.... man|page for|
|00004ed0| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 29 2e 20 | more de|tails). |
|00004ee0| 20 49 74 20 69 73 6e 27 | 74 20 00 00 00 98 00 00 | It isn'|t ......|
|00004ef0| a5 a0 00 00 40 cc 7d 07 | 5b c8 c4 ff 3b f7 c4 ff |....@.}.|[...;...|
|00004f00| 20 22 00 f0 63 61 6c 6c | 65 64 20 77 68 65 6e 20 | "..call|ed when |
|00004f10| 75 6e 74 72 61 70 70 65 | 64 20 73 69 67 6e 61 6c |untrappe|d signal|
|00004f20| 73 20 6b 69 6c 6c 20 74 | 68 65 20 70 72 6f 67 72 |s kill t|he progr|
|00004f30| 61 6d 2c 20 74 68 6f 75 | 67 68 2c 20 73 6f 20 69 |am, thou|gh, so i|
|00004f40| 66 20 79 6f 75 20 75 73 | 65 20 45 4e 44 20 62 6c |f you us|e END bl|
|00004f50| 6f 63 6b 73 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ocks you| should |
|00004f60| 61 6c 73 6f 20 75 73 65 | 0d 07 2e 0d 12 db cd 00 |also use|........|
|00004f70| 12 db cd 00 00 00 00 00 | 07 72 69 65 0c dc cd 00 |........|.rie....|
|00004f80| 12 db cd 00 0c dc cd 00 | 00 00 00 00 00 a0 00 00 |........|........|
|00004f90| a5 68 00 00 40 50 34 03 | 54 61 c4 ff 64 88 c4 ff |.h..@P4.|Ta..d...|
|00004fa0| 70 1a 00 f0 75 73 65 20 | 73 69 67 74 72 61 70 20 |p...use |sigtrap |
|00004fb0| 71 77 28 64 69 65 20 6e | 6f 72 6d 61 6c 2d 73 69 |qw(die n|ormal-si|
|00004fc0| 67 6e 61 6c 73 29 3b 0d | 08 20 74 72 0c dd cd 00 |gnals);.|. tr....|
|00004fd0| 12 db cd 00 00 00 00 00 | 08 68 65 69 12 00 00 00 |........|.hei....|
|00004fe0| 00 00 00 00 07 64 20 28 | 18 de cd 00 18 de cd 00 |.....d (|........|
|00004ff0| 00 00 00 00 00 68 00 00 | a5 24 00 00 40 00 00 00 |.....h..|.$..@...|
|00005000| c4 4c c4 ff 84 59 c4 ff | 00 00 00 f0 0d 08 07 05 |.L...Y..|........|
|00005010| 18 df cd 00 00 00 00 00 | 00 24 00 00 05 80 00 00 |........|.$......|
|00005020| 00 c8 5d 07 f4 f3 c3 ff | d4 22 c4 ff 20 22 00 f0 |..].....|.".. "..|
|00005030| 50 65 72 6c 27 73 20 65 | 78 63 65 70 74 69 6f 6e |Perl's e|xception|
|00005040| 2d 68 61 6e 64 6c 69 6e | 67 20 6d 65 63 68 61 6e |-handlin|g mechan|
|00005050| 69 73 6d 20 69 73 20 69 | 74 73 20 65 76 61 6c 28 |ism is i|ts eval(|
|00005060| 29 20 6f 70 65 72 61 74 | 6f 72 2e 20 20 59 6f 75 |) operat|or. You|
|00005070| 20 63 61 6e 20 75 73 65 | 20 65 76 61 6c 28 29 20 | can use| eval() |
|00005080| 61 73 20 73 65 74 6a 6d | 70 20 61 6e 64 20 64 69 |as setjm|p and di|
|00005090| 65 28 29 20 61 73 20 00 | 00 80 00 00 05 8c 00 00 |e() as .|........|
|000050a0| 00 f0 f2 07 cd bb c3 ff | ad ea c3 ff 20 22 00 f0 |........|.... "..|
|000050b0| 6c 6f 6e 67 6a 6d 70 2e | 20 20 46 6f 72 20 64 65 |longjmp.| For de|
|000050c0| 74 61 69 6c 73 20 6f 66 | 20 74 68 69 73 2c 20 73 |tails of| this, s|
|000050d0| 65 65 20 74 68 65 20 73 | 65 63 74 69 6f 6e 20 6f |ee the s|ection o|
|000050e0| 6e 20 73 69 67 6e 61 6c | 73 2c 20 65 73 70 65 63 |n signal|s, espec|
|000050f0| 69 61 6c 6c 79 20 74 68 | 65 20 74 69 6d 65 2d 6f |ially th|e time-o|
|00005100| 75 74 20 68 61 6e 64 6c | 65 72 20 66 6f 72 20 61 |ut handl|er for a|
|00005110| 20 62 6c 6f 63 6b 69 6e | 67 20 66 6c 6f 63 6b 28 | blockin|g flock(|
|00005120| 29 20 00 00 00 8c 00 00 | a5 80 00 00 40 a0 a5 05 |) ......|....@...|
|00005130| a6 83 c3 ff 86 b2 c3 ff | 20 22 00 f0 69 6e 20 74 |........| "..in t|
|00005140| 68 65 20 73 65 63 74 69 | 6f 6e 20 6f 6e 20 22 53 |he secti|on on "S|
|00005150| 69 67 6e 61 6c 73 22 20 | 69 6e 20 74 68 65 20 63 |ignals" |in the c|
|00005160| 68 61 70 74 65 72 20 07 | 10 e0 cd 00 10 e0 cd 00 |hapter .|........|
|00005170| 00 00 00 00 70 65 72 6c | 69 70 63 08 10 00 00 00 |....perl|ipc.....|
|00005180| 00 00 00 00 20 61 6e 64 | 20 63 68 61 70 74 65 72 |.... and| chapter|
|00005190| 20 36 20 6f 66 20 74 68 | 65 20 43 61 6d 65 6c 2e | 6 of th|e Camel.|
|000051a0| 0d 00 00 00 00 80 00 00 | 05 84 00 00 00 50 60 07 |........|.....P`.|
|000051b0| cf 14 c3 ff af 43 c3 ff | 20 22 00 f0 49 66 20 65 |.....C..| "..If e|
|000051c0| 78 63 65 70 74 69 6f 6e | 20 68 61 6e 64 6c 69 6e |xception| handlin|
|000051d0| 67 20 69 73 20 61 6c 6c | 20 79 6f 75 27 72 65 20 |g is all| you're |
|000051e0| 69 6e 74 65 72 65 73 74 | 65 64 20 69 6e 2c 20 74 |interest|ed in, t|
|000051f0| 72 79 20 74 68 65 20 65 | 78 63 65 70 74 69 6f 6e |ry the e|xception|
|00005200| 73 2e 70 6c 20 6c 69 62 | 72 61 72 79 20 28 70 61 |s.pl lib|rary (pa|
|00005210| 72 74 20 6f 66 20 74 68 | 65 20 73 74 61 6e 64 61 |rt of th|e standa|
|00005220| 72 64 20 70 65 72 6c 20 | 00 84 00 00 25 28 00 00 |rd perl |....%(..|
|00005230| 40 84 f3 00 a8 dc c2 ff | 88 0b c3 ff 20 22 00 f0 |@.......|.... "..|
|00005240| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 29 2e 0d 00 |distribu|tion)...|
|00005250| 00 28 00 00 a5 8c 00 00 | 40 5c 6c 07 d1 6d c2 ff |.(......|@\l..m..|
|00005260| b1 9c c2 ff 20 22 00 f0 | 49 66 20 79 6f 75 20 77 |.... "..|If you w|
|00005270| 61 6e 74 20 74 68 65 20 | 61 74 65 78 69 74 28 29 |ant the |atexit()|
|00005280| 20 73 79 6e 74 61 78 20 | 28 61 6e 64 20 61 6e 20 | syntax |(and an |
|00005290| 72 6d 65 78 69 74 28 29 | 20 61 73 20 77 65 6c 6c |rmexit()| as well|
|000052a0| 29 2c 20 74 72 79 20 74 | 68 65 20 41 74 45 78 69 |), try t|he AtExi|
|000052b0| 74 20 6d 6f 64 75 6c 65 | 20 61 76 61 69 6c 61 62 |t module| availab|
|000052c0| 6c 65 20 66 72 6f 6d 20 | 43 50 41 4e 2e 0d 07 20 |le from |CPAN... |
|000052d0| 0a e1 cd 00 0a e1 cd 00 | 00 00 00 00 00 8c 00 00 |........|........|
|000052e0| 05 64 00 00 00 94 a6 07 | 2a f7 c1 ff da 2d c2 ff |.d......|*....-..|
|000052f0| 18 2b 00 f0 57 68 79 20 | 64 6f 65 73 6e 27 74 20 |.+..Why |doesn't |
|00005300| 6d 79 20 73 6f 63 6b 65 | 74 73 20 70 72 6f 67 72 |my socke|ts progr|
|00005310| 61 6d 20 77 6f 72 6b 20 | 75 6e 64 65 72 20 53 79 |am work |under Sy|
|00005320| 73 74 65 6d 20 56 20 28 | 53 6f 6c 61 72 69 73 29 |stem V (|Solaris)|
|00005330| 3f 20 57 68 61 74 20 64 | 6f 65 73 20 74 68 65 20 |? What d|oes the |
|00005340| 00 64 00 00 a5 50 00 00 | 40 24 73 04 7d b5 c1 ff |.d...P..|@$s.}...|
|00005350| 2d ec c1 ff 18 2b 00 f0 | 65 72 72 6f 72 20 6d 65 |-....+..|error me|
|00005360| 73 73 61 67 65 20 22 50 | 72 6f 74 6f 63 6f 6c 20 |ssage "P|rotocol |
|00005370| 6e 6f 74 20 73 75 70 70 | 6f 72 74 65 64 22 20 6d |not supp|orted" m|
|00005380| 65 61 6e 3f 0d 08 20 28 | 0a e2 cd 00 00 00 00 00 |ean?.. (|........|
|00005390| 00 50 00 00 05 80 00 00 | 00 94 a6 07 48 60 c1 ff |.P......|....H`..|
|000053a0| 28 8f c1 ff 20 22 00 f0 | 53 6f 6d 65 20 53 79 73 |(... "..|Some Sys|
|000053b0| 2d 56 20 62 61 73 65 64 | 20 73 79 73 74 65 6d 73 |-V based| systems|
|000053c0| 2c 20 6e 6f 74 61 62 6c | 79 20 53 6f 6c 61 72 69 |, notabl|y Solari|
|000053d0| 73 20 32 2e 58 2c 20 72 | 65 64 65 66 69 6e 65 64 |s 2.X, r|edefined|
|000053e0| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 73 74 61 | some of| the sta|
|000053f0| 6e 64 61 72 64 20 73 6f | 63 6b 65 74 20 63 6f 6e |ndard so|cket con|
|00005400| 73 74 61 6e 74 73 2e 20 | 20 53 69 6e 63 65 20 00 |stants. | Since .|
|00005410| 00 80 00 00 05 84 00 00 | 00 3c b3 07 21 28 c1 ff |........|.<..!(..|
|00005420| 01 57 c1 ff 20 22 00 f0 | 74 68 65 73 65 20 77 65 |.W.. "..|these we|
|00005430| 72 65 20 63 6f 6e 73 74 | 61 6e 74 20 61 63 72 6f |re const|ant acro|
|00005440| 73 73 20 61 6c 6c 20 61 | 72 63 68 69 74 65 63 74 |ss all a|rchitect|
|00005450| 75 72 65 73 2c 20 74 68 | 65 79 20 77 65 72 65 20 |ures, th|ey were |
|00005460| 6f 66 74 65 6e 20 68 61 | 72 64 77 69 72 65 64 20 |often ha|rdwired |
|00005470| 69 6e 74 6f 20 70 65 72 | 6c 20 63 6f 64 65 2e 20 |into per|l code. |
|00005480| 20 54 68 65 20 70 72 6f | 70 65 72 20 77 61 79 20 | The pro|per way |
|00005490| 74 6f 20 00 00 84 00 00 | 25 58 00 00 40 c8 2a 04 |to .....|%X..@.*.|
|000054a0| fa ef c0 ff da 1e c1 ff | 20 22 00 f0 64 65 61 6c |........| "..deal|
|000054b0| 20 77 69 74 68 20 74 68 | 69 73 20 69 73 20 74 6f | with th|is is to|
|000054c0| 20 22 75 73 65 20 53 6f | 63 6b 65 74 22 20 74 6f | "use So|cket" to|
|000054d0| 20 67 65 74 20 74 68 65 | 20 63 6f 72 72 65 63 74 | get the| correct|
|000054e0| 20 76 61 6c 75 65 73 2e | 0d 00 00 00 00 58 00 00 | values.|.....X..|
|000054f0| a5 8c 00 00 40 f8 81 07 | 23 81 c0 ff 03 b0 c0 ff |....@...|#.......|
|00005500| 20 22 00 f0 4e 6f 74 65 | 20 74 68 61 74 20 65 76 | "..Note| that ev|
|00005510| 65 6e 20 74 68 6f 75 67 | 68 20 53 75 6e 4f 53 20 |en thoug|h SunOS |
|00005520| 61 6e 64 20 53 6f 6c 61 | 72 69 73 20 61 72 65 20 |and Sola|ris are |
|00005530| 62 69 6e 61 72 79 20 63 | 6f 6d 70 61 74 69 62 6c |binary c|ompatibl|
|00005540| 65 2c 20 74 68 65 73 65 | 20 76 61 6c 75 65 73 20 |e, these| values |
|00005550| 61 72 65 20 64 69 66 66 | 65 72 65 6e 74 2e 20 20 |are diff|erent. |
|00005560| 47 6f 20 66 69 67 75 72 | 65 2e 0d 07 0a e3 cd 00 |Go figur|e.......|
|00005570| 0a e3 cd 00 00 00 00 00 | 00 8c 00 00 01 10 00 00 |........|........|
|00005580| 41 36 6e 05 00 00 00 00 | 00 10 00 00 02 18 00 00 |A6n.....|........|
|00005590| d4 08 00 00 00 00 00 00 | 0a e3 cd 00 00 00 00 00 |........|........|
|000055a0| 00 18 00 00 a5 68 00 00 | 40 36 6e 05 3b 3e be ff |.....h..|@6n.;>..|
|000055b0| eb 74 be ff 18 2b 00 f0 | 16 00 00 00 b0 fc 07 00 |.t...+..|........|
|000055c0| 00 00 00 00 48 6f 77 20 | 63 61 6e 20 49 20 63 61 |....How |can I ca|
|000055d0| 6c 6c 20 6d 79 20 73 79 | 73 74 65 6d 27 73 20 75 |ll my sy|stem's u|
|000055e0| 6e 69 71 75 65 20 43 20 | 66 75 6e 63 74 69 6f 6e |nique C |function|
|000055f0| 73 20 66 72 6f 6d 20 50 | 65 72 6c 3f 0d 08 20 53 |s from P|erl?.. S|
|00005600| 0a e4 cd 00 00 00 00 00 | 00 68 00 00 05 84 00 00 |........|.h......|
|00005610| 00 38 cf 07 06 e9 bd ff | e6 17 be ff 20 22 00 f0 |.8......|.... "..|
|00005620| 49 6e 20 6d 6f 73 74 20 | 63 61 73 65 73 2c 20 79 |In most |cases, y|
|00005630| 6f 75 20 77 72 69 74 65 | 20 61 6e 20 65 78 74 65 |ou write| an exte|
|00005640| 72 6e 61 6c 20 6d 6f 64 | 75 6c 65 20 74 6f 20 64 |rnal mod|ule to d|
|00005650| 6f 20 69 74 20 2d 20 73 | 65 65 20 74 68 65 20 61 |o it - s|ee the a|
|00005660| 6e 73 77 65 72 20 74 6f | 20 22 57 68 65 72 65 20 |nswer to| "Where |
|00005670| 63 61 6e 20 49 20 6c 65 | 61 72 6e 20 61 62 6f 75 |can I le|arn abou|
|00005680| 74 20 6c 69 6e 6b 69 6e | 67 20 43 20 00 84 00 00 |t linkin|g C ....|
|00005690| 05 84 00 00 00 a4 ab 07 | df b0 bd ff bf df bd ff |........|........|
|000056a0| 20 22 00 f0 77 69 74 68 | 20 50 65 72 6c 3f 20 5b | "..with| Perl? [|
|000056b0| 68 32 78 73 2c 20 78 73 | 75 62 70 70 5d 22 2e 20 |h2xs, xs|ubpp]". |
|000056c0| 48 6f 77 65 76 65 72 2c | 20 69 66 20 74 68 65 20 |However,| if the |
|000056d0| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 61 20 73 79 |function| is a sy|
|000056e0| 73 74 65 6d 20 63 61 6c | 6c 2c 20 61 6e 64 20 79 |stem cal|l, and y|
|000056f0| 6f 75 72 20 73 79 73 74 | 65 6d 20 73 75 70 70 6f |our syst|em suppo|
|00005700| 72 74 73 20 73 79 73 63 | 61 6c 6c 28 29 2c 20 00 |rts sysc|all(), .|
|00005710| 00 84 00 00 a5 7c 00 00 | 40 30 31 05 b8 78 bd ff |.....|..|@01..x..|
|00005720| 98 a7 bd ff 20 22 00 f0 | 79 6f 75 20 63 61 6e 20 |.... "..|you can |
|00005730| 75 73 65 20 74 68 65 20 | 73 79 73 63 61 6c 6c 20 |use the |syscall |
|00005740| 66 75 6e 63 74 69 6f 6e | 20 28 64 6f 63 75 6d 65 |function| (docume|
|00005750| 6e 74 65 64 20 69 6e 20 | 74 68 65 20 63 68 61 70 |nted in |the chap|
|00005760| 74 65 72 20 07 20 74 68 | 10 e5 cd 00 10 e5 cd 00 |ter . th|........|
|00005770| 00 00 00 00 70 65 72 6c | 66 75 6e 63 08 6f 77 22 |....perl|func.ow"|
|00005780| 10 00 00 00 00 00 00 00 | 29 2e 0d 00 00 7c 00 00 |........|)....|..|
|00005790| 05 78 00 00 00 a0 64 07 | e1 09 bd ff c1 38 bd ff |.x....d.|.....8..|
|000057a0| 20 22 00 f0 52 65 6d 65 | 6d 62 65 72 20 74 6f 20 | "..Reme|mber to |
|000057b0| 63 68 65 63 6b 20 74 68 | 65 20 6d 6f 64 75 6c 65 |check th|e module|
|000057c0| 73 20 74 68 61 74 20 63 | 61 6d 65 20 77 69 74 68 |s that c|ame with|
|000057d0| 20 79 6f 75 72 20 64 69 | 73 74 72 69 62 75 74 69 | your di|stributi|
|000057e0| 6f 6e 2c 20 61 6e 64 20 | 43 50 41 4e 20 61 73 20 |on, and |CPAN as |
|000057f0| 77 65 6c 6c 20 2d 20 73 | 6f 6d 65 6f 6e 65 20 6d |well - s|omeone m|
|00005800| 61 79 20 00 00 78 00 00 | a5 50 00 00 40 d8 d3 02 |ay ..x..|.P..@...|
|00005810| ba d1 bc ff 9a 00 bd ff | 20 22 00 f0 61 6c 72 65 |........| "..alre|
|00005820| 61 64 79 20 68 61 76 65 | 20 77 72 69 74 74 65 6e |ady have| written|
|00005830| 20 61 20 6d 6f 64 75 6c | 65 20 74 6f 20 64 6f 20 | a modul|e to do |
|00005840| 69 74 2e 0d 07 20 74 68 | 0a e6 cd 00 0a e6 cd 00 |it... th|........|
|00005850| 00 00 00 00 00 50 00 00 | a5 70 00 00 40 68 42 05 |.....P..|.p..@hB.|
|00005860| 13 5b bc ff c3 91 bc ff | 18 2b 00 f0 57 68 65 72 |.[......|.+..Wher|
|00005870| 65 20 64 6f 20 49 20 67 | 65 74 20 74 68 65 20 69 |e do I g|et the i|
|00005880| 6e 63 6c 75 64 65 20 66 | 69 6c 65 73 20 74 6f 20 |nclude f|iles to |
|00005890| 64 6f 20 69 6f 63 74 6c | 28 29 20 6f 72 20 73 79 |do ioctl|() or sy|
|000058a0| 73 63 61 6c 6c 28 29 3f | 0d 08 05 05 0a e7 cd 00 |scall()?|........|
|000058b0| 00 00 00 00 07 00 00 00 | 14 e8 cd 00 14 e8 cd 00 |........|........|
|000058c0| 00 00 00 00 00 70 00 00 | 05 88 00 00 00 e8 e5 07 |.....p..|........|
|000058d0| de 05 bc ff be 34 bc ff | 20 22 00 f0 48 69 73 74 |.....4..| "..Hist|
|000058e0| 6f 72 69 63 61 6c 6c 79 | 2c 20 74 68 65 73 65 20 |orically|, these |
|000058f0| 77 6f 75 6c 64 20 62 65 | 20 67 65 6e 65 72 61 74 |would be| generat|
|00005900| 65 64 20 62 79 20 74 68 | 65 20 68 32 70 68 20 74 |ed by th|e h2ph t|
|00005910| 6f 6f 6c 2c 20 70 61 72 | 74 20 6f 66 20 74 68 65 |ool, par|t of the|
|00005920| 20 73 74 61 6e 64 61 72 | 64 20 70 65 72 6c 20 64 | standar|d perl d|
|00005930| 69 73 74 72 69 62 75 74 | 69 6f 6e 2e 20 20 54 68 |istribut|ion. Th|
|00005940| 69 73 20 70 72 6f 67 72 | 61 6d 20 00 00 88 00 00 |is progr|am .....|
|00005950| 05 88 00 00 00 ac d9 07 | b7 cd bb ff 97 fc bb ff |........|........|
|00005960| 20 22 00 f0 63 6f 6e 76 | 65 72 74 73 20 63 70 70 | "..conv|erts cpp|
|00005970| 28 31 29 20 64 69 72 65 | 63 74 69 76 65 73 20 69 |(1) dire|ctives i|
|00005980| 6e 20 43 20 68 65 61 64 | 65 72 20 66 69 6c 65 73 |n C head|er files|
|00005990| 20 74 6f 20 66 69 6c 65 | 73 20 63 6f 6e 74 61 69 | to file|s contai|
|000059a0| 6e 69 6e 67 20 73 75 62 | 72 6f 75 74 69 6e 65 20 |ning sub|routine |
|000059b0| 64 65 66 69 6e 69 74 69 | 6f 6e 73 2c 20 6c 69 6b |definiti|ons, lik|
|000059c0| 65 20 26 53 59 53 5f 67 | 65 74 69 74 69 6d 65 72 |e &SYS_g|etitimer|
|000059d0| 2c 20 00 00 00 88 00 00 | 05 88 00 00 00 9c c8 07 |, ......|........|
|000059e0| 90 95 bb ff 70 c4 bb ff | 20 22 00 f0 77 68 69 63 |....p...| "..whic|
|000059f0| 68 20 79 6f 75 20 63 61 | 6e 20 75 73 65 20 61 73 |h you ca|n use as|
|00005a00| 20 61 72 67 75 6d 65 6e | 74 73 20 74 6f 20 79 6f | argumen|ts to yo|
|00005a10| 75 72 20 66 75 6e 63 74 | 69 6f 6e 73 2e 20 49 74 |ur funct|ions. It|
|00005a20| 20 64 6f 65 73 6e 27 74 | 20 77 6f 72 6b 20 70 65 | doesn't| work pe|
|00005a30| 72 66 65 63 74 6c 79 2c | 20 62 75 74 20 69 74 20 |rfectly,| but it |
|00005a40| 75 73 75 61 6c 6c 79 20 | 67 65 74 73 20 6d 6f 73 |usually |gets mos|
|00005a50| 74 20 6f 66 20 74 68 65 | 20 00 00 00 00 88 00 00 |t of the| .......|
|00005a60| 85 ec 00 00 00 f0 80 07 | 69 5d bb ff 49 8c bb ff |........|i]..I...|
|00005a70| 20 22 00 f0 6a 6f 62 20 | 64 6f 6e 65 2e 20 53 69 | "..job |done. Si|
|00005a80| 6d 70 6c 65 20 66 69 6c | 65 73 20 6c 69 6b 65 20 |mple fil|es like |
|00005a90| 07 6b 64 62 06 e9 cd 00 | 14 e8 cd 00 06 e9 cd 00 |.kdb....|........|
|00005aa0| 00 00 00 00 65 72 72 6e | 6f 2e 68 08 06 ea cd 00 |....errn|o.h.....|
|00005ab0| 14 e8 cd 00 00 00 00 00 | 2c 20 07 00 06 eb cd 00 |........|, ......|
|00005ac0| 14 e8 cd 00 06 eb cd 00 | 00 00 00 00 73 79 73 63 |........|....sysc|
|00005ad0| 61 6c 6c 2e 68 08 69 6d | 06 ec cd 00 14 e8 cd 00 |all.h.im|........|
|00005ae0| 00 00 00 00 2c 20 61 6e | 64 20 07 00 06 ed cd 00 |...., an|d ......|
|00005af0| 14 e8 cd 00 06 ed cd 00 | 00 00 00 00 73 6f 63 6b |........|....sock|
|00005b00| 65 74 2e 68 08 6e 67 20 | 06 ee cd 00 14 e8 cd 00 |et.h.ng |........|
|00005b10| 00 00 00 00 20 77 65 72 | 65 20 66 69 6e 65 2c 20 |.... wer|e fine, |
|00005b20| 62 75 74 20 74 68 65 20 | 68 61 72 64 20 6f 6e 65 |but the |hard one|
|00005b30| 73 20 6c 69 6b 65 20 07 | 06 ef cd 00 14 e8 cd 00 |s like .|........|
|00005b40| 06 ef cd 00 00 00 00 00 | 00 ec 00 00 a5 a4 00 00 |........|........|
|00005b50| 40 68 f5 05 42 25 bb ff | 22 54 bb ff ba 1f 00 f0 |@h..B%..|"T......|
|00005b60| 69 6f 63 74 6c 2e 68 08 | 06 f0 cd 00 14 e8 cd 00 |ioctl.h.|........|
|00005b70| 00 00 00 00 20 6e 65 61 | 72 6c 79 20 61 6c 77 61 |.... nea|rly alwa|
|00005b80| 79 73 20 6e 65 65 64 20 | 74 6f 20 68 61 6e 64 2d |ys need |to hand-|
|00005b90| 65 64 69 74 65 64 2e 20 | 48 65 72 65 27 73 20 68 |edited. |Here's h|
|00005ba0| 6f 77 20 74 6f 20 69 6e | 73 74 61 6c 6c 20 74 68 |ow to in|stall th|
|00005bb0| 65 20 2a 2e 70 68 20 66 | 69 6c 65 73 3a 0d 08 2e |e *.ph f|iles:...|
|00005bc0| 14 00 00 00 00 00 00 00 | 07 65 63 68 12 f1 cd 00 |........|.ech....|
|00005bd0| 12 f1 cd 00 00 00 00 00 | 07 72 6b 20 0c f2 cd 00 |........|.rk ....|
|00005be0| 12 f1 cd 00 0c f2 cd 00 | 00 00 00 00 00 a4 00 00 |........|........|
|00005bf0| 25 30 00 00 40 30 ec 01 | 3b be ba ff 4b e5 ba ff |%0..@0..|;...K...|
|00005c00| 70 1a 00 f0 31 2e 20 20 | 62 65 63 6f 6d 65 20 73 |p...1. |become s|
|00005c10| 75 70 65 72 2d 75 73 65 | 72 0d 00 00 00 30 00 00 |uper-use|r....0..|
|00005c20| 25 2c 00 00 40 50 bd 01 | 5b 8f ba ff 6b b6 ba ff |%,..@P..|[...k...|
|00005c30| 70 1a 00 f0 32 2e 20 20 | 63 64 20 2f 75 73 72 2f |p...2. |cd /usr/|
|00005c40| 69 6e 63 6c 75 64 65 0d | 00 2c 00 00 a5 54 00 00 |include.|.,...T..|
|00005c50| 40 e0 a5 01 7b 60 ba ff | 8b 87 ba ff 70 1a 00 f0 |@...{`..|....p...|
|00005c60| 33 2e 20 20 68 32 70 68 | 20 2a 2e 68 20 2a 2f 2a |3. h2ph| *.h */*|
|00005c70| 2e 68 0d 08 0c f3 cd 00 | 12 f1 cd 00 00 00 00 00 |.h......|........|
|00005c80| 08 6f 75 20 12 00 00 00 | 00 00 00 00 07 62 6c 79 |.ou ....|.....bly|
|00005c90| 18 f4 cd 00 18 f4 cd 00 | 00 00 00 00 00 54 00 00 |........|.....T..|
|00005ca0| a5 24 00 00 40 00 00 00 | eb 4b ba ff ab 58 ba ff |.$..@...|.K...X..|
|00005cb0| 00 00 00 f0 0d 08 76 61 | 18 f5 cd 00 00 00 00 00 |......va|........|
|00005cc0| 00 24 00 00 05 84 00 00 | 00 78 a7 07 1b f3 b9 ff |.$......|.x......|
|00005cd0| fb 21 ba ff 20 22 00 f0 | 49 66 20 79 6f 75 72 20 |.!.. "..|If your |
|00005ce0| 73 79 73 74 65 6d 20 73 | 75 70 70 6f 72 74 73 20 |system s|upports |
|00005cf0| 64 79 6e 61 6d 69 63 20 | 6c 6f 61 64 69 6e 67 2c |dynamic |loading,|
|00005d00| 20 66 6f 72 20 72 65 61 | 73 6f 6e 73 20 6f 66 20 | for rea|sons of |
|00005d10| 70 6f 72 74 61 62 69 6c | 69 74 79 20 61 6e 64 20 |portabil|ity and |
|00005d20| 73 61 6e 69 74 79 20 79 | 6f 75 20 70 72 6f 62 61 |sanity y|ou proba|
|00005d30| 62 6c 79 20 6f 75 67 68 | 74 20 74 6f 20 75 73 65 |bly ough|t to use|
|00005d40| 20 00 00 00 00 84 00 00 | 05 88 00 00 00 80 b7 07 | .......|........|
|00005d50| f4 ba b9 ff d4 e9 b9 ff | 20 22 00 f0 68 32 78 73 |........| "..h2xs|
|00005d60| 20 28 61 6c 73 6f 20 70 | 61 72 74 20 6f 66 20 74 | (also p|art of t|
|00005d70| 68 65 20 73 74 61 6e 64 | 61 72 64 20 70 65 72 6c |he stand|ard perl|
|00005d80| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 29 2e 20 | distrib|ution). |
|00005d90| 20 54 68 69 73 20 74 6f | 6f 6c 20 63 6f 6e 76 65 | This to|ol conve|
|00005da0| 72 74 73 20 43 20 68 65 | 61 64 65 72 20 66 69 6c |rts C he|ader fil|
|00005db0| 65 73 20 74 6f 20 50 65 | 72 6c 20 65 78 74 65 6e |es to Pe|rl exten|
|00005dc0| 73 69 6f 6e 73 2e 20 53 | 65 65 20 00 00 88 00 00 |sions. S|ee .....|
|00005dd0| a5 6c 00 00 40 14 fa 03 | cd 82 b9 ff ad b1 b9 ff |.l..@...|........|
|00005de0| 20 22 00 f0 74 68 65 20 | 63 68 61 70 74 65 72 20 | "..the |chapter |
|00005df0| 07 75 20 77 10 f6 cd 00 | 10 f6 cd 00 00 00 00 00 |.u w....|........|
|00005e00| 70 65 72 6c 78 73 74 75 | 74 08 74 68 10 00 00 00 |perlxstu|t.th....|
|00005e10| 00 00 00 00 20 66 6f 72 | 20 68 6f 77 20 74 6f 20 |.... for| how to |
|00005e20| 67 65 74 20 73 74 61 72 | 74 65 64 20 77 69 74 68 |get star|ted with|
|00005e30| 20 68 32 78 73 2e 0d 00 | 00 6c 00 00 85 8c 00 00 | h2xs...|.l......|
|00005e40| 00 0c 74 07 f6 13 b9 ff | d6 42 b9 ff 20 22 00 f0 |..t.....|.B.. "..|
|00005e50| 49 66 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 64 |If your |system d|
|00005e60| 6f 65 73 6e 27 74 20 73 | 75 70 70 6f 72 74 20 64 |oesn't s|upport d|
|00005e70| 79 6e 61 6d 69 63 20 6c | 6f 61 64 69 6e 67 2c 20 |ynamic l|oading, |
|00005e80| 79 6f 75 20 73 74 69 6c | 6c 20 70 72 6f 62 61 62 |you stil|l probab|
|00005e90| 6c 79 20 6f 75 67 68 74 | 20 74 6f 20 75 73 65 20 |ly ought| to use |
|00005ea0| 68 32 78 73 2e 20 20 53 | 65 65 20 74 68 65 20 63 |h2xs. S|ee the c|
|00005eb0| 68 61 70 74 65 72 20 07 | 10 f7 cd 00 10 f7 cd 00 |hapter .|........|
|00005ec0| 00 00 00 00 00 8c 00 00 | 85 c0 00 00 00 98 ed 07 |........|........|
|00005ed0| cf db b8 ff af 0a b9 ff | 28 23 00 f0 70 65 72 6c |........|(#..perl|
|00005ee0| 78 73 74 75 74 08 65 72 | 10 00 00 00 00 00 00 00 |xstut.er|........|
|00005ef0| 20 61 6e 64 20 74 68 65 | 20 63 68 61 70 74 65 72 | and the| chapter|
|00005f00| 20 07 6f 75 10 f8 cd 00 | 10 f8 cd 00 00 00 00 00 | .ou....|........|
|00005f10| 45 78 74 55 74 69 6c 73 | 3a 3a 4d 61 6b 65 4d 61 |ExtUtils|::MakeMa|
|00005f20| 6b 65 72 08 10 00 00 00 | 00 00 00 00 20 66 6f 72 |ker.....|.... for|
|00005f30| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00005f40| 6e 20 28 69 6e 20 62 72 | 69 65 66 2c 20 6a 75 73 |n (in br|ief, jus|
|00005f50| 74 20 75 73 65 20 07 6c | 10 f9 cd 00 10 f9 cd 00 |t use .l|........|
|00005f60| 00 00 00 00 6d 61 6b 65 | 20 70 65 72 6c 08 cd 00 |....make| perl...|
|00005f70| 10 00 00 00 00 00 00 00 | 20 69 6e 73 74 65 61 64 |........| instead|
|00005f80| 20 00 00 00 00 c0 00 00 | a5 7c 00 00 40 3c 62 04 | .......|.|..@<b.|
|00005f90| a8 a3 b8 ff 88 d2 b8 ff | 20 22 00 f0 6f 66 20 61 |........| "..of a|
|00005fa0| 20 70 6c 61 69 6e 20 07 | 10 fa cd 00 10 fa cd 00 | plain .|........|
|00005fb0| 00 00 00 00 6d 61 6b 65 | 08 61 79 20 10 00 00 00 |....make|.ay ....|
|00005fc0| 00 00 00 00 20 74 6f 20 | 72 65 62 75 69 6c 64 20 |.... to |rebuild |
|00005fd0| 70 65 72 6c 20 77 69 74 | 68 20 61 20 6e 65 77 20 |perl wit|h a new |
|00005fe0| 73 74 61 74 69 63 20 65 | 78 74 65 6e 73 69 6f 6e |static e|xtension|
|00005ff0| 29 2e 0d 07 0a fb cd 00 | 0a fb cd 00 00 00 00 00 |).......|........|
|00006000| 00 7c 00 00 a5 5c 00 00 | 40 b4 a6 05 01 2d b8 ff |.|...\..|@....-..|
|00006010| b1 63 b8 ff 18 2b 00 f0 | 57 68 79 20 64 6f 20 73 |.c...+..|Why do s|
|00006020| 65 74 75 69 64 20 70 65 | 72 6c 20 73 63 72 69 70 |etuid pe|rl scrip|
|00006030| 74 73 20 63 6f 6d 70 6c | 61 69 6e 20 61 62 6f 75 |ts compl|ain abou|
|00006040| 74 20 6b 65 72 6e 65 6c | 20 70 72 6f 62 6c 65 6d |t kernel| problem|
|00006050| 73 3f 0d 08 0a fc cd 00 | 00 00 00 00 00 5c 00 00 |s?......|.....\..|
|00006060| 05 88 00 00 00 6c ec 07 | cc d7 b7 ff ac 06 b8 ff |.....l..|........|
|00006070| 20 22 00 f0 53 6f 6d 65 | 20 6f 70 65 72 61 74 69 | "..Some| operati|
|00006080| 6e 67 20 73 79 73 74 65 | 6d 73 20 68 61 76 65 20 |ng syste|ms have |
|00006090| 62 75 67 73 20 69 6e 20 | 74 68 65 20 6b 65 72 6e |bugs in |the kern|
|000060a0| 65 6c 20 74 68 61 74 20 | 6d 61 6b 65 20 73 65 74 |el that |make set|
|000060b0| 75 69 64 20 73 63 72 69 | 70 74 73 20 69 6e 68 65 |uid scri|pts inhe|
|000060c0| 72 65 6e 74 6c 79 20 69 | 6e 73 65 63 75 72 65 2e |rently i|nsecure.|
|000060d0| 20 20 50 65 72 6c 20 67 | 69 76 65 73 20 79 6f 75 | Perl g|ives you|
|000060e0| 20 00 00 00 00 88 00 00 | a5 90 00 00 40 a4 31 06 | .......|....@.1.|
|000060f0| a5 9f b7 ff 85 ce b7 ff | 20 22 00 f0 61 20 6e 75 |........| "..a nu|
|00006100| 6d 62 65 72 20 6f 66 20 | 6f 70 74 69 6f 6e 73 20 |mber of |options |
|00006110| 28 64 65 73 63 72 69 62 | 65 64 20 69 6e 20 74 68 |(describ|ed in th|
|00006120| 65 20 63 68 61 70 74 65 | 72 20 07 75 10 fd cd 00 |e chapte|r .u....|
|00006130| 10 fd cd 00 00 00 00 00 | 70 65 72 6c 73 65 63 08 |........|perlsec.|
|00006140| 10 00 00 00 00 00 00 00 | 29 20 74 6f 20 77 6f 72 |........|) to wor|
|00006150| 6b 20 61 72 6f 75 6e 64 | 20 73 75 63 68 20 73 79 |k around| such sy|
|00006160| 73 74 65 6d 73 2e 0d 07 | 0a fe cd 00 0a fe cd 00 |stems...|........|
|00006170| 00 00 00 00 00 90 00 00 | a5 54 00 00 40 e0 08 05 |........|.T..@...|
|00006180| fe 28 b7 ff ae 5f b7 ff | 18 2b 00 f0 48 6f 77 20 |.(..._..|.+..How |
|00006190| 63 61 6e 20 49 20 6f 70 | 65 6e 20 61 20 70 69 70 |can I op|en a pip|
|000061a0| 65 20 62 6f 74 68 20 74 | 6f 20 61 6e 64 20 66 72 |e both t|o and fr|
|000061b0| 6f 6d 20 61 20 63 6f 6d | 6d 61 6e 64 3f 0d 08 05 |om a com|mand?...|
|000061c0| 0a ff cd 00 00 00 00 00 | 00 54 00 00 05 84 00 00 |........|.T......|
|000061d0| 00 a4 a8 07 c9 d3 b6 ff | a9 02 b7 ff 20 22 00 f0 |........|.... "..|
|000061e0| 54 68 65 20 49 50 43 3a | 3a 4f 70 65 6e 32 20 6d |The IPC:|:Open2 m|
|000061f0| 6f 64 75 6c 65 20 28 70 | 61 72 74 20 6f 66 20 74 |odule (p|art of t|
|00006200| 68 65 20 73 74 61 6e 64 | 61 72 64 20 70 65 72 6c |he stand|ard perl|
|00006210| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 29 20 69 | distrib|ution) i|
|00006220| 73 20 61 6e 20 65 61 73 | 79 2d 74 6f 2d 75 73 65 |s an eas|y-to-use|
|00006230| 20 61 70 70 72 6f 61 63 | 68 20 74 68 61 74 20 69 | approac|h that i|
|00006240| 6e 74 65 72 6e 61 6c 6c | 79 20 00 00 00 84 00 00 |nternall|y ......|
|00006250| 05 78 00 00 00 4c d4 06 | a2 9b b6 ff 82 ca b6 ff |.x...L..|........|
|00006260| 20 22 00 f0 75 73 65 73 | 20 70 69 70 65 28 29 2c | "..uses| pipe(),|
|00006270| 20 66 6f 72 6b 28 29 2c | 20 61 6e 64 20 65 78 65 | fork(),| and exe|
|00006280| 63 28 29 20 74 6f 20 64 | 6f 20 74 68 65 20 6a 6f |c() to d|o the jo|
|00006290| 62 2e 20 20 4d 61 6b 65 | 20 73 75 72 65 20 79 6f |b. Make| sure yo|
|000062a0| 75 20 72 65 61 64 20 74 | 68 65 20 64 65 61 64 6c |u read t|he deadl|
|000062b0| 6f 63 6b 20 77 61 72 6e | 69 6e 67 73 20 69 6e 20 |ock warn|ings in |
|000062c0| 69 74 73 20 00 78 00 00 | a5 70 00 00 40 f8 fd 03 |its .x..|.p..@...|
|000062d0| 7b 63 b6 ff 5b 92 b6 ff | 20 22 00 f0 64 6f 63 75 |{c..[...| "..docu|
|000062e0| 6d 65 6e 74 61 74 69 6f | 6e 2c 20 74 68 6f 75 67 |mentatio|n, thoug|
|000062f0| 68 20 28 73 65 65 20 74 | 68 65 20 63 68 61 70 74 |h (see t|he chapt|
|00006300| 65 72 20 07 10 00 ce 00 | 10 00 ce 00 00 00 00 00 |er .....|........|
|00006310| 49 50 43 3a 3a 4f 70 65 | 6e 32 08 00 10 00 00 00 |IPC::Ope|n2......|
|00006320| 00 00 00 00 29 2e 0d 07 | 0a 01 ce 00 0a 01 ce 00 |....)...|........|
|00006330| 00 00 00 00 00 70 00 00 | a5 58 00 00 40 d4 43 05 |.....p..|.X..@.C.|
|00006340| d4 ec b5 ff 84 23 b6 ff | 18 2b 00 f0 57 68 79 20 |.....#..|.+..Why |
|00006350| 63 61 6e 27 74 20 49 20 | 67 65 74 20 74 68 65 20 |can't I |get the |
|00006360| 6f 75 74 70 75 74 20 6f | 66 20 61 20 63 6f 6d 6d |output o|f a comm|
|00006370| 61 6e 64 20 77 69 74 68 | 20 73 79 73 74 65 6d 28 |and with| system(|
|00006380| 29 3f 0d 08 0a 02 ce 00 | 00 00 00 00 00 58 00 00 |)?......|.....X..|
|00006390| 05 80 00 00 00 58 8e 07 | 9f 97 b5 ff 7f c6 b5 ff |.....X..|........|
|000063a0| 20 22 00 f0 59 6f 75 27 | 72 65 20 63 6f 6e 66 75 | "..You'|re confu|
|000063b0| 73 69 6e 67 20 74 68 65 | 20 70 75 72 70 6f 73 65 |sing the| purpose|
|000063c0| 20 6f 66 20 73 79 73 74 | 65 6d 28 29 20 61 6e 64 | of syst|em() and|
|000063d0| 20 62 61 63 6b 74 69 63 | 6b 73 20 28 60 60 29 2e | backtic|ks (``).|
|000063e0| 20 20 73 79 73 74 65 6d | 28 29 20 72 75 6e 73 20 | system|() runs |
|000063f0| 61 20 63 6f 6d 6d 61 6e | 64 20 61 6e 64 20 72 65 |a comman|d and re|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.