home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: ArcFS Archive
(archive/arcFS).
You can browse this item here: clib
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| ArcFS Archive (archive/arcFS)
| magic
| Supported |
100%
| file
| RISC OS archive (ArcFS format)
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Acorn ArcFS Archive
| default
| |
100%
| gt2
| Kopftext: 'Archive'
| default (weak)
| |
100%
| detectItEasy
| Archive: ArcFS
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 72 63 68 69 76 65 00 | 10 05 00 00 24 06 00 00 |Archive.|....$...|
|00000010| 28 00 00 00 64 00 00 00 | 00 00 00 00 00 00 00 00 |(...d...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 82 21 63 6c 69 62 00 00 | 00 00 00 00 ff ff ff ff |.!clib..|........|
|00000070| 47 ff ff ff b6 b9 69 a1 | 03 00 00 00 ff ff ff ff |G.....i.|........|
|00000080| ec 04 00 80 82 21 42 6f | 6f 74 00 73 ff ff ff ff |.....!Bo|ot.s....|
|00000090| 68 00 00 00 47 eb ff ff | da 28 52 6f 03 00 14 09 |h...G...|.(Ro....|
|000000a0| 68 00 00 00 24 00 00 00 | 82 21 48 65 6c 70 00 73 |h...$...|.!Help.s|
|000000b0| ff ff ff ff e9 07 00 00 | 47 ff ff ff 0e 72 c5 9d |........|G....r..|
|000000c0| 03 00 0a 84 e9 07 00 00 | b0 00 00 00 82 21 52 75 |........|.....!Ru|
|000000d0| 6e 00 65 73 ff ff ff ff | 90 00 00 00 47 eb ff ff |n.es....|....G...|
|000000e0| ad 26 52 6f 03 00 1a c2 | 90 00 00 00 bd 08 00 00 |.&Ro....|........|
|000000f0| 82 21 53 70 72 69 74 65 | 73 00 ff ff 8c 01 00 00 |.!Sprite|s.......|
|00000100| 47 f9 ff ff 74 e1 90 64 | 03 00 4e 19 8c 01 00 00 |G...t..d|..N.....|
|00000110| 71 09 00 00 82 21 53 70 | 72 69 74 65 73 32 32 00 |q....!Sp|rites22.|
|00000120| e0 02 00 00 47 f9 ff ff | f0 e4 90 64 03 00 de ca |....G...|...d....|
|00000130| e0 02 00 00 21 0b 00 00 | 82 68 00 72 69 74 65 73 |....!...|.h.rites|
|00000140| ff ff ff ff ff ff ff ff | 47 ff ff ff a6 ba 69 a1 |........|G.....i.|
|00000150| 33 00 00 00 ff ff ff ff | 5c 04 00 80 82 61 73 73 |3.......|\....ass|
|00000160| 65 72 74 00 00 00 00 00 | ce 05 00 00 46 ff ff ff |ert.....|....F...|
|00000170| 5c 5e cf 43 33 00 c7 b8 | ce 05 00 00 25 0e 00 00 |\^.C3...|....%...|
|00000180| 82 63 74 79 70 65 00 00 | 00 00 00 00 a0 06 00 00 |.ctype..|........|
|00000190| 47 ff ff ff 8e a6 56 6f | 03 00 7f 56 a0 06 00 00 |G.....Vo|...V....|
|000001a0| 17 14 00 00 82 65 6e 64 | 69 61 6e 00 00 00 00 00 |.....end|ian.....|
|000001b0| 3d 03 00 00 47 ff ff ff | bf 7d d6 6e 13 00 c8 03 |=...G...|.}.n....|
|000001c0| 3d 03 00 00 db 1a 00 00 | 82 65 72 72 6e 6f 00 00 |=.......|.errno..|
|000001d0| 00 00 00 00 d8 14 00 00 | 47 ff ff ff ca ac a6 76 |........|G......v|
|000001e0| 03 00 8c e1 d8 14 00 00 | 3c 1e 00 00 82 66 63 6e |........|<....fcn|
|000001f0| 74 6c 00 00 00 00 00 00 | d9 15 00 00 47 ff ff ff |tl......|....G...|
|00000200| f4 23 a6 76 13 00 62 41 | d9 15 00 00 38 33 00 00 |.#.v..bA|....83..|
|00000210| 82 66 6c 6f 61 74 00 00 | 00 00 00 00 cb 0e 00 00 |.float..|........|
|00000220| 47 ff ff ff aa 52 4b 6f | 03 00 56 fa cb 0e 00 00 |G....RKo|..V.....|
|00000230| 35 49 00 00 82 6b 65 72 | 6e 65 6c 00 00 00 00 00 |5I...ker|nel.....|
|00000240| d4 1d 00 00 47 ff ff ff | f4 e3 a6 76 03 00 f5 f7 |....G...|...v....|
|00000250| d4 1d 00 00 24 58 00 00 | 82 6c 69 6d 69 74 73 00 |....$X..|.limits.|
|00000260| 00 00 00 00 56 07 00 00 | 47 ff ff ff f3 9a 56 6f |....V...|G.....Vo|
|00000270| 03 00 e6 9f 56 07 00 00 | 1c 76 00 00 82 6c 6f 63 |....V...|.v...loc|
|00000280| 61 6c 65 00 00 00 00 00 | e9 0c 00 00 47 ff ff ff |ale.....|....G...|
|00000290| 61 82 cd 6e 03 00 d5 cb | e9 0c 00 00 96 7d 00 00 |a..n....|.....}..|
|000002a0| 82 6d 61 74 68 00 00 00 | 00 00 00 00 06 0b 00 00 |.math...|........|
|000002b0| 47 ff ff ff 8a e8 a6 76 | 03 00 ad 9a 06 0b 00 00 |G......v|........|
|000002c0| a3 8a 00 00 82 6d 65 6d | 6f 72 79 00 00 00 00 00 |.....mem|ory.....|
|000002d0| b7 00 00 00 47 ff ff ff | 89 64 d6 6e 13 00 76 39 |....G...|.d.n..v9|
|000002e0| b7 00 00 00 cd 95 00 00 | 82 70 72 61 67 6d 61 73 |........|.pragmas|
|000002f0| 00 00 00 00 34 00 00 00 | 47 ff ff ff f3 84 90 64 |....4...|G......d|
|00000300| 03 00 53 c6 34 00 00 00 | a8 96 00 00 82 73 65 74 |..S.4...|.....set|
|00000310| 6a 6d 70 00 00 00 00 00 | f2 03 00 00 47 ff ff ff |jmp.....|....G...|
|00000320| 4c 3e 93 93 03 00 9b 31 | f2 03 00 00 00 97 00 00 |L>.....1|........|
|00000330| 82 73 69 67 6e 61 6c 00 | 00 00 00 00 c2 07 00 00 |.signal.|........|
|00000340| 47 ff ff ff 26 57 cf 6e | 03 00 0c eb c2 07 00 00 |G...&W.n|........|
|00000350| 16 9b 00 00 82 73 74 64 | 61 72 67 00 00 00 00 00 |.....std|arg.....|
|00000360| a1 01 00 00 47 ff ff ff | b1 64 38 8e 03 00 98 b7 |....G...|.d8.....|
|00000370| a1 01 00 00 fc a2 00 00 | 82 73 74 64 64 65 66 00 |........|.stddef.|
|00000380| 00 00 00 00 50 03 00 00 | 47 ff ff ff 3e a2 cf 6e |....P...|G...>..n|
|00000390| 03 00 0e e3 50 03 00 00 | c1 a4 00 00 82 73 74 64 |....P...|.....std|
|000003a0| 69 6f 00 00 00 00 00 00 | 5a 29 00 00 47 ff ff ff |io......|Z)..G...|
|000003b0| db f6 c4 9d 03 00 36 b4 | 5a 29 00 00 35 a8 00 00 |......6.|Z)..5...|
|000003c0| 82 73 74 64 6c 69 62 00 | 00 00 00 00 4c 1b 00 00 |.stdlib.|....L...|
|000003d0| 47 ff ff ff 6c cc 58 6f | 03 00 d4 e6 4c 1b 00 00 |G...l.Xo|....L...|
|000003e0| b3 d1 00 00 82 73 74 72 | 69 6e 67 00 00 00 00 00 |.....str|ing.....|
|000003f0| 19 0b 00 00 47 ff ff ff | 27 ec d4 6e 03 00 cf 3c |....G...|'..n...<|
|00000400| 19 0b 00 00 23 ed 00 00 | 82 73 74 72 69 6e 67 73 |....#...|.strings|
|00000410| 00 00 00 00 73 00 00 00 | 47 ff ff ff 68 83 b6 8b |....s...|G...h...|
|00000420| 13 00 46 15 73 00 00 00 | 60 f8 00 00 82 73 77 69 |..F.s...|`....swi|
|00000430| 73 00 00 00 00 00 00 00 | 98 6e 00 00 47 ff ff ff |s.......|.n..G...|
|00000440| 19 18 56 6f 03 00 56 6f | 98 6e 00 00 f7 f8 00 00 |..Vo..Vo|.n......|
|00000450| 82 74 69 6d 65 00 00 00 | 00 00 00 00 b8 0c 00 00 |.time...|........|
|00000460| 47 ff ff ff 24 54 d6 6e | 03 00 4a 4f b8 0c 00 00 |G...$T.n|..JO....|
|00000470| b3 67 01 00 82 76 61 72 | 61 72 67 73 00 00 00 00 |.g...var|args....|
|00000480| a6 01 00 00 47 ff ff ff | 5c 62 38 8e 03 00 c4 fb |....G...|\b8.....|
|00000490| a6 01 00 00 8f 74 01 00 | 00 00 00 00 00 00 00 00 |.....t..|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 82 6f 00 72 |........|.....o.r|
|000004c0| 69 74 65 73 ff ff ff ff | ff ff ff ff 47 ff ff ff |ites....|....G...|
|000004d0| 1c be 69 a1 33 00 00 00 | ff ff ff ff c8 04 00 80 |..i.3...|........|
|000004e0| 82 73 74 75 62 73 00 00 | 00 00 00 00 f4 1d 00 00 |.stubs..|........|
|000004f0| 47 fd ff ff cd df c4 9d | 33 00 91 e6 f4 1d 00 00 |G.......|3.......|
|00000500| 59 76 01 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Yv......|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 73 00 72 69 74 65 73 |........|.s.rites|
|00000530| ff ff ff ff 47 ff ff ff | ed d2 68 a1 03 00 00 00 |....G...|..h.....|
|00000540| ff ff ff ff 68 8e 05 84 | 2e 46 6e 74 00 00 00 00 |....h...|.Fnt....|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 62 6c 65 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |ble thro|ugh the |
|00000580| 70 61 74 68 20 43 3a 20 | 6f 72 20 43 6c 69 62 3a |path C: |or Clib:|
|00000590| 0a 0a 41 6c 6c 20 70 72 | 6f 67 72 61 6d 73 20 6d |..All pr|ograms m|
|000005a0| 75 73 74 20 61 64 64 69 | 74 69 6f 6e 61 6c 6c 79 |ust addi|tionally|
|000005b0| 20 6c 69 6e 6b 20 77 69 | 74 68 20 74 68 65 20 41 | link wi|th the A|
|000005c0| 63 6f 72 6e 20 4f 62 6a | 65 63 74 20 46 6f 72 6d |corn Obj|ect Form|
|000005d0| 61 74 20 28 41 4f 46 29 | 0a 66 69 6c 65 20 43 3a |at (AOF)|.file C:|
|000005e0| 6f 2e 73 74 75 62 73 20 | 28 6f 72 20 63 6c 69 62 |o.stubs |(or clib|
|000005f0| 3a 6f 2e 73 74 75 62 73 | 29 2e 0a 0a 0a 49 6e 73 |:o.stubs|)....Ins|
|00000600| 74 61 6c 6c 61 74 69 6f | 6e 0a 2d 2d 2d 2d 2d 2d |tallatio|n.------|
|00000610| 2d 2d 2d 2d 2d 2d 0a 0a | 43 6f 70 79 20 74 68 65 |------..|Copy the|
|00000620| 20 64 69 72 46 69 6c 65 | 44 61 74 61 82 21 42 6f | dirFile|Data.!Bo|
|00000630| 6f 74 00 73 ff ff ff ff | 68 00 00 00 47 eb ff ff |ot.s....|h...G...|
|00000640| da 28 52 6f 03 00 14 09 | 53 65 74 20 43 6c 69 62 |.(Ro....|Set Clib|
|00000650| 24 44 69 72 20 3c 4f 62 | 65 79 24 44 69 72 3e 0a |$Dir <Ob|ey$Dir>.|
|00000660| 53 65 74 20 43 6c 69 62 | 24 50 61 74 68 20 3c 43 |Set Clib|$Path <C|
|00000670| 6c 69 62 24 44 69 72 3e | 2e 0a 53 65 74 20 43 24 |lib$Dir>|..Set C$|
|00000680| 50 61 74 68 20 3c 43 6c | 69 62 24 44 69 72 3e 2e |Path <Cl|ib$Dir>.|
|00000690| 0a 49 63 6f 6e 53 70 72 | 69 74 65 73 20 3c 4f 62 |.IconSpr|ites <Ob|
|000006a0| 65 79 24 44 69 72 3e 2e | 21 53 70 72 69 74 65 73 |ey$Dir>.|!Sprites|
|000006b0| 46 69 6c 65 44 61 74 61 | 82 21 48 65 6c 70 00 73 |FileData|.!Help.s|
|000006c0| ff ff ff ff e9 07 00 00 | 47 ff ff ff 0e 72 c5 9d |........|G....r..|
|000006d0| 03 00 0a 84 54 68 65 20 | 53 68 61 72 65 64 20 43 |....The |Shared C|
|000006e0| 20 4c 69 62 72 61 72 79 | 0a 3d 3d 3d 3d 3d 3d 3d | Library|.=======|
|000006f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 0a 54 |========|=====..T|
|00000700| 68 69 73 20 69 73 20 72 | 65 6c 65 61 73 65 20 31 |his is r|elease 1|
|00000710| 2e 30 31 2e 0a 0a 49 6e | 74 72 6f 64 75 63 74 69 |.01...In|troducti|
|00000720| 6f 6e 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |on.-----|-------.|
|00000730| 0a 54 68 69 73 20 64 69 | 72 65 63 74 6f 72 79 20 |.This di|rectory |
|00000740| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6e 65 63 |contains| the nec|
|00000750| 65 73 73 61 72 79 20 68 | 65 61 64 65 72 20 66 69 |essary h|eader fi|
|00000760| 6c 65 73 20 61 6e 64 20 | 6f 62 6a 65 63 74 20 66 |les and |object f|
|00000770| 69 6c 65 20 74 6f 20 65 | 6e 61 62 6c 65 0a 70 72 |ile to e|nable.pr|
|00000780| 6f 67 72 61 6d 73 20 74 | 6f 20 75 73 65 20 74 68 |ograms t|o use th|
|00000790| 65 20 53 68 61 72 65 64 | 43 4c 69 62 72 61 72 79 |e Shared|CLibrary|
|000007a0| 20 6d 6f 64 75 6c 65 2e | 0a 0a 54 68 69 73 20 6c | module.|..This l|
|000007b0| 69 62 72 61 72 79 20 69 | 73 20 a9 20 31 39 39 37 |ibrary i|s . 1997|
|000007c0| 20 4e 69 63 6b 20 42 75 | 72 72 65 74 74 0a 0a 59 | Nick Bu|rrett..Y|
|000007d0| 6f 75 20 61 72 65 20 66 | 72 65 65 20 74 6f 20 75 |ou are f|ree to u|
|000007e0| 73 65 20 74 68 69 73 20 | 6c 69 62 72 61 72 79 20 |se this |library |
|000007f0| 62 75 74 20 54 48 45 52 | 45 20 49 53 20 4e 4f 20 |but THER|E IS NO |
|00000800| 57 41 52 52 41 4e 54 59 | 20 4f 46 20 41 4e 59 20 |WARRANTY| OF ANY |
|00000810| 53 4f 52 54 0a 0a 0a 46 | 69 6c 65 73 0a 2d 2d 2d |SORT...F|iles.---|
|00000820| 2d 2d 0a 0a 41 6c 6c 20 | 68 65 61 64 65 72 20 66 |--..All |header f|
|00000830| 69 6c 65 73 20 61 72 65 | 20 61 63 63 65 73 73 69 |iles are| accessi|
|00000840| 62 6c 65 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |ble thro|ugh the |
|00000850| 70 61 74 68 20 43 3a 20 | 6f 72 20 43 6c 69 62 3a |path C: |or Clib:|
|00000860| 0a 0a 41 6c 6c 20 70 72 | 6f 67 72 61 6d 73 20 6d |..All pr|ograms m|
|00000870| 75 73 74 20 61 64 64 69 | 74 69 6f 6e 61 6c 6c 79 |ust addi|tionally|
|00000880| 20 6c 69 6e 6b 20 77 69 | 74 68 20 74 68 65 20 41 | link wi|th the A|
|00000890| 63 6f 72 6e 20 4f 62 6a | 65 63 74 20 46 6f 72 6d |corn Obj|ect Form|
|000008a0| 61 74 20 28 41 4f 46 29 | 0a 66 69 6c 65 20 43 3a |at (AOF)|.file C:|
|000008b0| 6f 2e 73 74 75 62 73 20 | 28 6f 72 20 63 6c 69 62 |o.stubs |(or clib|
|000008c0| 3a 6f 2e 73 74 75 62 73 | 29 2e 0a 0a 0a 49 6e 73 |:o.stubs|)....Ins|
|000008d0| 74 61 6c 6c 61 74 69 6f | 6e 0a 2d 2d 2d 2d 2d 2d |tallatio|n.------|
|000008e0| 2d 2d 2d 2d 2d 2d 0a 0a | 43 6f 70 79 20 74 68 65 |------..|Copy the|
|000008f0| 20 64 69 72 65 63 74 6f | 72 79 20 21 63 6c 69 62 | directo|ry !clib|
|00000900| 20 73 6f 6d 65 77 68 65 | 72 65 20 6f 6e 20 79 6f | somewhe|re on yo|
|00000910| 75 72 20 68 61 72 64 20 | 64 69 73 63 2e 20 44 6f |ur hard |disc. Do|
|00000920| 75 62 6c 65 2d 63 6c 69 | 63 6b 69 6e 67 20 6f 6e |uble-cli|cking on|
|00000930| 20 69 74 0a 77 69 6c 6c | 20 73 65 74 75 70 20 74 | it.will| setup t|
|00000940| 68 65 20 6e 65 63 65 73 | 73 61 72 79 20 70 61 74 |he neces|sary pat|
|00000950| 68 73 2c 20 72 65 61 64 | 79 20 66 6f 72 20 75 73 |hs, read|y for us|
|00000960| 65 2e 0a 0a 57 69 74 68 | 20 61 20 73 6c 69 67 68 |e...With| a sligh|
|00000970| 74 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 2c 20 |t modifi|cation, |
|00000980| 74 68 69 73 20 6c 69 62 | 72 61 72 79 20 63 61 6e |this lib|rary can|
|00000990| 20 62 65 20 75 73 65 64 | 20 77 69 74 68 20 45 61 | be used| with Ea|
|000009a0| 73 79 20 43 20 61 6e 64 | 20 41 63 6f 72 6e 20 43 |sy C and| Acorn C|
|000009b0| 2e 0a 54 6f 20 64 6f 20 | 74 68 69 73 2c 20 79 6f |..To do |this, yo|
|000009c0| 75 20 6e 65 65 64 20 74 | 6f 20 6f 62 74 61 69 6e |u need t|o obtain|
|000009d0| 20 74 68 65 20 73 74 64 | 61 72 67 2e 68 20 61 6e | the std|arg.h an|
|000009e0| 64 20 76 61 72 61 72 67 | 73 2e 68 20 68 65 61 64 |d vararg|s.h head|
|000009f0| 65 72 20 66 69 6c 65 73 | 0a 61 70 70 72 6f 70 72 |er files|.appropr|
|00000a00| 69 61 74 65 20 74 6f 20 | 79 6f 75 72 20 63 6f 6d |iate to |your com|
|00000a10| 70 69 6c 65 72 20 61 6e | 64 20 63 6f 70 79 20 74 |piler an|d copy t|
|00000a20| 68 65 6d 20 69 6e 74 6f | 20 21 63 6c 69 62 2e 68 |hem into| !clib.h|
|00000a30| 2e 73 74 64 61 72 67 20 | 61 6e 64 0a 21 63 6c 69 |.stdarg |and.!cli|
|00000a40| 62 2e 68 2e 76 61 72 61 | 72 67 73 2e 20 59 6f 75 |b.h.vara|rgs. You|
|00000a50| 20 6d 75 73 74 20 61 6c | 73 6f 20 63 6f 70 79 20 | must al|so copy |
|00000a60| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |the defi|nition o|
|00000a70| 66 20 76 61 5f 6c 69 73 | 74 20 61 6e 64 20 70 75 |f va_lis|t and pu|
|00000a80| 74 20 69 74 0a 74 6f 77 | 61 72 64 73 20 74 68 65 |t it.tow|ards the|
|00000a90| 20 73 74 61 72 74 20 6f | 66 20 21 63 6c 69 62 2e | start o|f !clib.|
|00000aa0| 68 2e 73 74 64 69 6f 2c | 20 72 65 6e 61 6d 69 6e |h.stdio,| renamin|
|00000ab0| 67 20 76 61 5f 6c 69 73 | 74 20 74 6f 20 5f 5f 76 |g va_lis|t to __v|
|00000ac0| 61 5f 6c 69 73 74 2e 0a | 0a 55 73 69 6e 67 20 74 |a_list..|.Using t|
|00000ad0| 68 65 20 53 68 61 72 65 | 64 43 4c 69 62 72 61 72 |he Share|dCLibrar|
|00000ae0| 79 20 6c 69 62 72 61 72 | 79 0a 2d 2d 2d 2d 2d 2d |y librar|y.------|
|00000af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 0a 46 6f 72 20 |--------|--..For |
|00000b10| 67 65 6e 65 72 61 6c 20 | 75 73 65 2c 20 61 6c 6c |general |use, all|
|00000b20| 20 74 68 61 74 20 69 73 | 20 6e 65 65 64 65 64 20 | that is| needed |
|00000b30| 69 73 20 61 6e 20 65 78 | 74 72 61 20 63 6f 6d 6d |is an ex|tra comm|
|00000b40| 61 6e 64 20 6c 69 6e 65 | 20 6f 70 74 69 6f 6e 20 |and line| option |
|00000b50| 74 6f 20 47 43 43 3a 0a | 20 20 2d 6d 73 74 75 62 |to GCC:.| -mstub|
|00000b60| 73 0a 54 68 69 73 20 77 | 69 6c 6c 20 66 6f 72 63 |s.This w|ill forc|
|00000b70| 65 20 47 43 43 20 74 6f | 20 73 65 61 72 63 68 20 |e GCC to| search |
|00000b80| 74 68 65 20 47 43 43 3a | 20 61 6e 64 20 43 3a 20 |the GCC:| and C: |
|00000b90| 70 61 74 68 73 20 69 6e | 73 74 65 61 64 20 6f 66 |paths in|stead of|
|00000ba0| 20 74 68 65 20 75 73 75 | 61 6c 0a 47 43 43 3a 20 | the usu|al.GCC: |
|00000bb0| 61 6e 64 20 55 6e 69 78 | 3a 20 70 61 74 68 73 2e |and Unix|: paths.|
|00000bc0| 0a 0a 54 68 65 20 6c 69 | 62 72 61 72 79 20 74 6f |..The li|brary to|
|00000bd0| 20 6c 69 6e 6b 20 61 67 | 61 69 6e 73 74 20 69 73 | link ag|ainst is|
|00000be0| 20 63 3a 6f 2e 73 74 75 | 62 73 0a 0a 54 68 65 20 | c:o.stu|bs..The |
|00000bf0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 6d 61 6e |followin|g comman|
|00000c00| 64 73 20 77 69 6c 6c 20 | 63 6f 6d 70 69 6c 65 20 |ds will |compile |
|00000c10| 74 68 65 20 66 69 6c 65 | 20 63 2e 68 65 6c 6c 6f |the file| c.hello|
|00000c20| 77 3a 0a 20 20 2a 67 63 | 63 20 2d 63 20 63 2e 68 |w:. *gc|c -c c.h|
|00000c30| 65 6c 6c 6f 77 20 2d 4f | 32 20 2d 6d 73 74 75 62 |ellow -O|2 -mstub|
|00000c40| 73 0a 20 20 2a 64 72 6c | 69 6e 6b 20 2d 6f 20 68 |s. *drl|ink -o h|
|00000c50| 65 6c 6c 6f 77 20 6f 2e | 68 65 6c 6c 6f 77 20 67 |ellow o.|hellow g|
|00000c60| 63 63 3a 6f 2e 6c 69 62 | 67 63 63 20 63 3a 6f 2e |cc:o.lib|gcc c:o.|
|00000c70| 73 74 75 62 73 0a 0a 49 | 66 20 79 6f 75 20 75 73 |stubs..I|f you us|
|00000c80| 65 20 4c 44 2c 20 74 68 | 65 6e 20 61 64 64 20 27 |e LD, th|en add '|
|00000c90| 2d 4c 63 3a 20 2d 6c 73 | 74 75 62 73 27 20 74 6f |-Lc: -ls|tubs' to|
|00000ca0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|00000cb0| 65 2e 0a 0a 0a 53 68 61 | 72 65 64 43 4c 69 62 72 |e....Sha|redCLibr|
|00000cc0| 61 72 79 20 61 6e 64 20 | 74 68 65 20 43 61 6c 6c |ary and |the Call|
|00000cd0| 41 53 57 49 20 6d 6f 64 | 75 6c 65 0a 2d 2d 2d 2d |ASWI mod|ule.----|
|00000ce0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d00| 2d 2d 0a 0a 43 6f 64 65 | 20 6c 69 6e 6b 65 64 20 |--..Code| linked |
|00000d10| 66 6f 72 20 65 78 65 63 | 75 74 69 6f 6e 20 77 69 |for exec|ution wi|
|00000d20| 74 68 20 74 68 65 20 53 | 68 61 72 65 64 43 4c 69 |th the S|haredCLi|
|00000d30| 62 72 61 72 79 20 77 69 | 6c 6c 20 6e 6f 74 20 6e |brary wi|ll not n|
|00000d40| 65 65 64 20 74 6f 20 68 | 61 76 65 20 74 68 65 0a |eed to h|ave the.|
|00000d50| 43 61 6c 6c 41 53 57 49 | 20 6d 6f 64 75 6c 65 20 |CallASWI| module |
|00000d60| 64 69 73 74 72 69 62 75 | 74 65 64 20 77 69 74 68 |distribu|ted with|
|00000d70| 20 69 74 2e 0a 0a 0a 48 | 69 73 74 6f 72 79 0a 2d | it....H|istory.-|
|00000d80| 2d 2d 2d 2d 2d 2d 0a 0a | 52 65 6c 65 61 73 65 20 |------..|Release |
|00000d90| 31 2e 30 30 20 5b 31 20 | 4a 75 6e 65 20 31 39 39 |1.00 [1 |June 199|
|00000da0| 37 5d 0a 20 20 2a 20 54 | 68 65 20 66 69 72 73 74 |7]. * T|he first|
|00000db0| 20 72 65 6c 65 61 73 65 | 0a 0a 52 65 6c 65 61 73 | release|..Releas|
|00000dc0| 65 20 31 2e 30 31 20 5b | 32 31 20 4a 75 6e 65 20 |e 1.01 [|21 June |
|00000dd0| 31 39 39 37 5d 3a 0a 20 | 20 2a 20 41 20 70 61 74 |1997]:. | * A pat|
|00000de0| 63 68 20 61 70 70 6c 69 | 65 64 20 74 6f 20 3c 73 |ch appli|ed to <s|
|00000df0| 74 64 69 6f 2e 68 3e 20 | 61 6e 64 20 6f 2e 73 74 |tdio.h> |and o.st|
|00000e00| 75 62 73 20 74 6f 20 61 | 6c 6c 6f 77 20 47 43 43 |ubs to a|llow GCC|
|00000e10| 20 74 6f 20 70 61 73 73 | 0a 20 20 20 20 76 61 72 | to pass|. var|
|00000e20| 69 61 64 69 63 20 61 72 | 67 75 6d 65 6e 74 73 20 |iadic ar|guments |
|00000e30| 74 6f 20 76 70 72 69 6e | 74 66 28 29 2c 20 76 66 |to vprin|tf(), vf|
|00000e40| 70 72 69 6e 74 66 28 29 | 20 61 6e 64 20 76 73 70 |printf()| and vsp|
|00000e50| 72 69 6e 74 66 28 29 20 | 70 72 6f 70 65 72 6c 79 |rintf() |properly|
|00000e60| 2e 0a 0a 43 6f 6e 74 61 | 63 74 69 6e 67 20 6d 65 |...Conta|cting me|
|00000e70| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |.-------|------..|
|00000e80| 49 20 63 61 6e 20 62 65 | 20 63 6f 6e 74 61 63 74 |I can be| contact|
|00000e90| 65 64 20 62 79 20 65 2d | 6d 61 69 6c 20 61 74 3a |ed by e-|mail at:|
|00000ea0| 20 6e 69 63 6b 2e 62 75 | 72 72 65 74 74 40 62 74 | nick.bu|rrett@bt|
|00000eb0| 69 6e 74 65 72 6e 65 74 | 2e 63 6f 6d 0a 46 69 6c |internet|.com.Fil|
|00000ec0| 65 44 61 74 61 82 21 52 | 75 6e 00 65 73 ff ff ff |eData.!R|un.es...|
|00000ed0| ff 90 00 00 00 47 eb ff | ff ad 26 52 6f 03 00 1a |.....G..|..&Ro...|
|00000ee0| c2 53 65 74 20 43 6c 69 | 62 24 44 69 72 20 3c 4f |.Set Cli|b$Dir <O|
|00000ef0| 62 65 79 24 44 69 72 3e | 0a 53 65 74 20 43 6c 69 |bey$Dir>|.Set Cli|
|00000f00| 62 24 50 61 74 68 20 3c | 43 6c 69 62 24 44 69 72 |b$Path <|Clib$Dir|
|00000f10| 3e 2e 0a 53 65 74 20 43 | 24 50 61 74 68 20 3c 43 |>..Set C|$Path <C|
|00000f20| 6c 69 62 24 44 69 72 3e | 2e 0a 49 63 6f 6e 53 70 |lib$Dir>|..IconSp|
|00000f30| 72 69 74 65 73 20 3c 4f | 62 65 79 24 44 69 72 3e |rites <O|bey$Dir>|
|00000f40| 2e 21 53 70 72 69 74 65 | 73 0a 44 69 72 20 3c 4f |.!Sprite|s.Dir <O|
|00000f50| 62 65 79 24 44 69 72 3e | 0a 46 69 6c 65 72 5f 4f |bey$Dir>|.Filer_O|
|00000f60| 70 65 6e 44 69 72 20 3c | 4f 62 65 79 24 44 69 72 |penDir <|Obey$Dir|
|00000f70| 3e 46 69 6c 65 44 61 74 | 61 82 21 53 70 72 69 74 |>FileDat|a.!Sprit|
|00000f80| 65 73 00 ff ff 8c 01 00 | 00 47 f9 ff ff 74 e1 90 |es......|.G...t..|
|00000f90| 64 03 00 4e 19 01 00 00 | 00 10 00 00 00 90 01 00 |d..N....|........|
|00000fa0| 00 80 01 00 00 21 63 6c | 69 62 00 00 00 00 00 00 |.....!cl|ib......|
|00000fb0| 00 04 00 00 00 10 00 00 | 00 00 00 00 00 07 00 00 |........|........|
|00000fc0| 00 2c 00 00 00 2c 00 00 | 00 0c 00 00 00 00 00 00 |.,...,..|........|
|00000fd0| 00 00 03 00 30 00 00 00 | 00 00 00 00 ee ee 00 00 |....0...|........|
|00000fe0| 00 03 00 03 33 00 02 30 | 33 00 30 33 30 03 00 ee |....3..0|3.030...|
|00000ff0| ee eb 00 00 00 30 30 30 | 00 03 03 03 30 00 30 00 |.....000|....0.0.|
|00001000| 03 30 ee ee eb eb 00 00 | 00 00 02 00 33 00 03 30 |.0......|....3..0|
|00001010| 33 00 30 00 03 ee ee eb | eb eb 00 00 00 20 12 00 |3.0.....|..... ..|
|00001020| 00 00 00 00 00 00 00 00 | ee ee eb eb eb bb 00 00 |........|........|
|00001030| 00 30 00 00 00 00 00 00 | 00 00 00 ee ee eb eb eb |.0......|........|
|00001040| bb bb 00 00 00 03 00 00 | 00 00 00 00 00 00 ee ee |........|........|
|00001050| eb eb eb bb bb 1b 00 00 | 00 30 00 00 00 00 00 00 |........|.0......|
|00001060| 00 ee ee eb eb eb bb bb | 1b 11 00 00 00 20 12 00 |........|..... ..|
|00001070| 00 00 00 00 ee ee eb eb | eb bb bb 1b 11 20 00 00 |........|..... ..|
|00001080| 00 00 00 00 00 00 00 ee | ee eb eb eb bb bb 1b 11 |........|........|
|00001090| 00 03 00 00 00 00 00 00 | 03 03 e2 ee eb eb eb bb |........|........|
|000010a0| bb 3b 11 00 00 03 00 00 | 00 00 00 00 30 20 9e 9c |.;......|....0 ..|
|000010b0| eb eb bb bb 3b 22 00 00 | 00 03 00 00 00 00 00 00 |....;"..|........|
|000010c0| 00 e0 99 ee ee be bb 1b | 11 00 00 00 00 20 00 00 |........|..... ..|
|000010d0| 00 00 00 30 33 99 ee 2e | 2e be 1b 11 00 00 30 00 |...03...|......0.|
|000010e0| 00 00 00 00 00 00 00 30 | 70 47 3e 3e 2e 42 14 30 |.......0|pG>>.B.0|
|000010f0| 33 00 33 03 00 00 00 00 | 00 00 00 30 22 22 41 41 |3.3.....|...0""AA|
|00001100| 11 24 32 30 00 03 30 00 | 00 00 00 00 00 00 00 30 |.$20..0.|.......0|
|00001110| 33 03 10 13 00 30 03 30 | 00 03 20 03 22 22 00 00 |3....0.0|.. .""..|
|00001120| 00 46 69 6c 65 44 61 74 | 61 82 21 53 70 72 69 74 |.FileDat|a.!Sprit|
|00001130| 65 73 32 32 00 e0 02 00 | 00 47 f9 ff ff f0 e4 90 |es22....|.G......|
|00001140| 64 03 00 de ca 01 00 00 | 00 10 00 00 00 e4 02 00 |d.......|........|
|00001150| 00 d4 02 00 00 21 63 6c | 69 62 00 00 00 00 00 00 |.....!cl|ib......|
|00001160| 00 04 00 00 00 21 00 00 | 00 00 00 00 00 07 00 00 |.....!..|........|
|00001170| 00 2c 00 00 00 2c 00 00 | 00 1f 00 00 00 00 00 00 |.,...,..|........|
|00001180| 00 00 30 00 00 03 00 00 | 00 00 00 00 ee ee 00 00 |..0.....|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 03 00 00 00 00 00 e0 |........|........|
|000011a0| ee be 00 00 00 03 00 03 | 33 00 33 00 33 03 00 30 |........|3.3.3..0|
|000011b0| 33 30 03 ee ee eb 00 00 | 00 30 30 30 00 03 30 30 |30......|.000..00|
|000011c0| 00 03 00 30 00 03 e0 ee | be be 00 00 00 30 30 30 |...0....|.....000|
|000011d0| 00 03 30 30 00 03 00 30 | 00 03 ee ee eb eb 00 00 |..00...0|........|
|000011e0| 00 00 03 30 00 03 30 30 | 00 03 00 30 00 e3 ee be |...0..00|...0....|
|000011f0| be be 00 00 00 00 03 00 | 33 00 30 00 33 03 00 30 |........|3.0.3..0|
|00001200| 00 ee ee eb eb eb 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001210| 00 00 00 00 e0 ee be be | be be 00 00 00 00 03 00 |........|........|
|00001220| 00 00 00 00 00 00 00 00 | ee ee eb eb eb bb 00 00 |........|........|
|00001230| 00 30 00 00 00 00 00 00 | 00 00 00 e0 ee be be be |.0......|........|
|00001240| be bb 00 00 00 30 00 00 | 00 00 00 00 00 00 00 ee |.....0..|........|
|00001250| ee eb eb eb bb bb 00 00 | 00 30 00 00 00 00 00 00 |........|.0......|
|00001260| 00 00 e0 ee be be be be | bb bb 00 00 00 03 00 00 |........|........|
|00001270| 00 00 00 00 00 00 ee ee | eb eb eb bb bb 1b 00 00 |........|........|
|00001280| 00 30 00 00 00 00 00 00 | 00 e0 ee be be be be bb |.0......|........|
|00001290| bb 11 00 00 00 30 00 00 | 00 00 00 00 00 ee ee eb |.....0..|........|
|000012a0| eb eb bb bb 1b 01 00 00 | 00 30 00 00 00 00 00 00 |........|.0......|
|000012b0| e0 ee be be be be bb bb | 11 00 00 00 00 00 03 00 |........|........|
|000012c0| 00 00 00 00 ee ee eb eb | eb bb bb 1b 01 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 e0 | ee be be be be bb bb 11 |........|........|
|000012e0| 00 30 00 00 00 00 00 00 | 00 00 00 ee ee eb eb eb |.0......|........|
|000012f0| bb bb 1b 01 00 03 00 00 | 00 00 00 30 00 00 e0 ee |........|...0....|
|00001300| be be be be bb bb 15 00 | 00 03 00 00 00 00 00 00 |........|........|
|00001310| 03 03 e3 ee eb eb eb bb | bb 1b 51 00 00 03 00 00 |........|..Q.....|
|00001320| 00 00 00 00 03 03 9e 99 | be be be bb bb 55 33 00 |........|.....U3.|
|00001330| 00 03 00 00 00 00 00 00 | 30 30 9e 9c eb eb bb bb |........|00......|
|00001340| 1b 05 00 00 00 03 00 00 | 00 00 00 00 30 e0 c9 99 |........|....0...|
|00001350| be be bb bb 15 30 03 00 | 00 30 00 00 00 00 00 00 |.....0..|.0......|
|00001360| 00 e0 99 ee ee be bb 1b | 01 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 9e e9 ee | ee be bb 11 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 30 | 33 99 ee 2e 2e be 1b 01 |.......0|3.......|
|00001390| 00 00 30 00 00 00 00 00 | 00 00 00 30 40 e9 e2 e2 |..0.....|...0@...|
|000013a0| 23 e3 11 00 00 00 30 00 | 00 00 00 00 00 00 00 30 |#.....0.|.......0|
|000013b0| 40 44 3e 3e 2e 51 05 30 | 33 00 33 03 00 00 00 00 |@D>>.Q.0|3.3.....|
|000013c0| 00 00 00 30 42 77 e3 52 | 11 05 30 30 00 03 30 00 |...0Bw.R|..00..0.|
|000013d0| 00 00 00 00 00 00 00 30 | 70 27 51 51 00 33 33 30 |.......0|p'QQ.330|
|000013e0| 00 03 30 00 00 00 00 00 | 00 00 00 30 00 11 00 03 |..0.....|...0....|
|000013f0| 00 03 00 30 00 03 30 00 | 00 00 00 00 00 00 00 30 |...0..0.|.......0|
|00001400| 33 03 00 03 00 30 03 30 | 00 03 00 03 33 33 00 00 |3....0.0|....33..|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 46 69 6c | 65 44 61 74 61 82 61 73 |.....Fil|eData.as|
|00001430| 73 65 72 74 00 00 00 00 | 00 ce 05 00 00 46 ff ff |sert....|.....F..|
|00001440| ff 5c 5e cf 43 03 00 c7 | b8 2f 2a 20 41 6c 6c 6f |.\^.C...|./* Allo|
|00001450| 77 20 74 68 69 73 20 66 | 69 6c 65 20 74 6f 20 62 |w this f|ile to b|
|00001460| 65 20 69 6e 63 6c 75 64 | 65 64 20 6d 75 6c 74 69 |e includ|ed multi|
|00001470| 70 6c 65 20 74 69 6d 65 | 73 0a 20 20 20 77 69 74 |ple time|s. wit|
|00001480| 68 20 64 69 66 66 65 72 | 65 6e 74 20 73 65 74 74 |h differ|ent sett|
|00001490| 69 6e 67 73 20 6f 66 20 | 4e 44 45 42 55 47 2e 20 |ings of |NDEBUG. |
|000014a0| 20 2a 2f 0a 23 75 6e 64 | 65 66 20 61 73 73 65 72 | */.#und|ef asser|
|000014b0| 74 0a 23 75 6e 64 65 66 | 20 5f 5f 61 73 73 65 72 |t.#undef| __asser|
|000014c0| 74 0a 0a 23 69 66 64 65 | 66 20 4e 44 45 42 55 47 |t..#ifde|f NDEBUG|
|000014d0| 0a 23 64 65 66 69 6e 65 | 20 61 73 73 65 72 74 28 |.#define| assert(|
|000014e0| 69 67 6e 6f 72 65 29 20 | 28 28 76 6f 69 64 29 20 |ignore) |((void) |
|000014f0| 30 29 0a 23 65 6c 73 65 | 0a 0a 23 69 66 6e 64 65 |0).#else|..#ifnde|
|00001500| 66 20 5f 5f 47 4e 55 43 | 5f 5f 0a 0a 23 64 65 66 |f __GNUC|__..#def|
|00001510| 69 6e 65 20 61 73 73 65 | 72 74 28 65 78 70 72 65 |ine asse|rt(expre|
|00001520| 73 73 69 6f 6e 29 20 20 | 5c 0a 20 20 28 28 76 6f |ssion) |\. ((vo|
|00001530| 69 64 29 20 28 28 65 78 | 70 72 65 73 73 69 6f 6e |id) ((ex|pression|
|00001540| 29 20 3f 20 30 20 3a 20 | 5f 5f 61 73 73 65 72 74 |) ? 0 : |__assert|
|00001550| 20 28 65 78 70 72 65 73 | 73 69 6f 6e 2c 20 5f 5f | (expres|sion, __|
|00001560| 46 49 4c 45 5f 5f 2c 20 | 5f 5f 4c 49 4e 45 5f 5f |FILE__, |__LINE__|
|00001570| 29 29 29 0a 0a 23 64 65 | 66 69 6e 65 20 5f 5f 61 |)))..#de|fine __a|
|00001580| 73 73 65 72 74 28 65 78 | 70 72 65 73 73 69 6f 6e |ssert(ex|pression|
|00001590| 2c 20 66 69 6c 65 2c 20 | 6c 69 6e 65 6e 6f 29 20 |, file, |lineno) |
|000015a0| 20 5c 0a 20 20 28 70 72 | 69 6e 74 66 20 28 22 25 | \. (pr|intf ("%|
|000015b0| 73 3a 25 75 3a 20 66 61 | 69 6c 65 64 20 61 73 73 |s:%u: fa|iled ass|
|000015c0| 65 72 74 69 6f 6e 5c 6e | 22 2c 20 66 69 6c 65 2c |ertion\n|", file,|
|000015d0| 20 6c 69 6e 65 6e 6f 29 | 2c 09 5c 0a 20 20 20 61 | lineno)|,.\. a|
|000015e0| 62 6f 72 74 20 28 29 2c | 20 30 29 0a 0a 23 65 6c |bort (),| 0)..#el|
|000015f0| 73 65 0a 0a 23 69 66 20 | 64 65 66 69 6e 65 64 28 |se..#if |defined(|
|00001600| 5f 5f 53 54 44 43 5f 5f | 29 20 7c 7c 20 64 65 66 |__STDC__|) || def|
|00001610| 69 6e 65 64 20 28 5f 5f | 63 70 6c 75 73 70 6c 75 |ined (__|cplusplu|
|00001620| 73 29 0a 0a 2f 2a 20 44 | 65 66 69 6e 65 64 20 69 |s)../* D|efined i|
|00001630| 6e 20 6c 69 62 67 63 63 | 2e 61 20 2a 2f 0a 23 69 |n libgcc|.a */.#i|
|00001640| 66 64 65 66 20 5f 5f 63 | 70 6c 75 73 70 6c 75 73 |fdef __c|plusplus|
|00001650| 0a 65 78 74 65 72 6e 20 | 22 43 22 20 7b 0a 65 78 |.extern |"C" {.ex|
|00001660| 74 65 72 6e 20 76 6f 69 | 64 20 5f 5f 65 70 72 69 |tern voi|d __epri|
|00001670| 6e 74 66 20 28 63 6f 6e | 73 74 20 63 68 61 72 20 |ntf (con|st char |
|00001680| 2a 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 2c |*, const| char *,|
|00001690| 20 75 6e 73 69 67 6e 65 | 64 2c 20 63 6f 6e 73 74 | unsigne|d, const|
|000016a0| 20 63 68 61 72 20 2a 29 | 0a 20 20 20 20 5f 5f 61 | char *)|. __a|
|000016b0| 74 74 72 69 62 75 74 65 | 5f 5f 20 28 28 6e 6f 72 |ttribute|__ ((nor|
|000016c0| 65 74 75 72 6e 29 29 3b | 0a 7d 0a 23 65 6c 73 65 |eturn));|.}.#else|
|000016d0| 0a 65 78 74 65 72 6e 20 | 76 6f 69 64 20 5f 5f 65 |.extern |void __e|
|000016e0| 70 72 69 6e 74 66 20 28 | 63 6f 6e 73 74 20 63 68 |printf (|const ch|
|000016f0| 61 72 20 2a 2c 20 63 6f | 6e 73 74 20 63 68 61 72 |ar *, co|nst char|
|00001700| 20 2a 2c 20 75 6e 73 69 | 67 6e 65 64 2c 20 63 6f | *, unsi|gned, co|
|00001710| 6e 73 74 20 63 68 61 72 | 20 2a 29 0a 20 20 20 20 |nst char| *). |
|00001720| 5f 5f 61 74 74 72 69 62 | 75 74 65 5f 5f 20 28 28 |__attrib|ute__ ((|
|00001730| 6e 6f 72 65 74 75 72 6e | 29 29 3b 0a 23 65 6e 64 |noreturn|));.#end|
|00001740| 69 66 0a 0a 23 64 65 66 | 69 6e 65 20 61 73 73 65 |if..#def|ine asse|
|00001750| 72 74 28 65 78 70 72 65 | 73 73 69 6f 6e 29 20 20 |rt(expre|ssion) |
|00001760| 5c 0a 20 20 28 28 76 6f | 69 64 29 20 28 28 65 78 |\. ((vo|id) ((ex|
|00001770| 70 72 65 73 73 69 6f 6e | 29 20 3f 20 30 20 3a 20 |pression|) ? 0 : |
|00001780| 5f 5f 61 73 73 65 72 74 | 20 28 23 65 78 70 72 65 |__assert| (#expre|
|00001790| 73 73 69 6f 6e 2c 20 5f | 5f 46 49 4c 45 5f 5f 2c |ssion, _|_FILE__,|
|000017a0| 20 5f 5f 4c 49 4e 45 5f | 5f 29 29 29 0a 0a 23 64 | __LINE_|_)))..#d|
|000017b0| 65 66 69 6e 65 20 5f 5f | 61 73 73 65 72 74 28 65 |efine __|assert(e|
|000017c0| 78 70 72 65 73 73 69 6f | 6e 2c 20 66 69 6c 65 2c |xpressio|n, file,|
|000017d0| 20 6c 69 6e 65 29 20 20 | 5c 0a 20 20 28 5f 5f 65 | line) |\. (__e|
|000017e0| 70 72 69 6e 74 66 20 28 | 22 25 73 3a 25 75 3a 20 |printf (|"%s:%u: |
|000017f0| 66 61 69 6c 65 64 20 61 | 73 73 65 72 74 69 6f 6e |failed a|ssertion|
|00001800| 20 60 25 73 27 5c 6e 22 | 2c 09 09 5c 0a 09 20 20 | `%s'\n"|,..\.. |
|00001810| 20 20 20 20 66 69 6c 65 | 2c 20 6c 69 6e 65 2c 20 | file|, line, |
|00001820| 65 78 70 72 65 73 73 69 | 6f 6e 29 2c 20 30 29 0a |expressi|on), 0).|
|00001830| 0a 23 65 6c 73 65 20 2f | 2a 20 6e 6f 20 5f 5f 53 |.#else /|* no __S|
|00001840| 54 44 43 5f 5f 20 61 6e | 64 20 6e 6f 74 20 43 2b |TDC__ an|d not C+|
|00001850| 2b 3b 20 69 2e 65 2e 20 | 2d 74 72 61 64 69 74 69 |+; i.e. |-traditi|
|00001860| 6f 6e 61 6c 2e 20 20 2a | 2f 0a 0a 65 78 74 65 72 |onal. *|/..exter|
|00001870| 6e 20 76 6f 69 64 20 5f | 5f 65 70 72 69 6e 74 66 |n void _|_eprintf|
|00001880| 20 28 29 20 5f 5f 61 74 | 74 72 69 62 75 74 65 5f | () __at|tribute_|
|00001890| 5f 20 28 28 6e 6f 72 65 | 74 75 72 6e 29 29 3b 20 |_ ((nore|turn)); |
|000018a0| 2f 2a 20 44 65 66 69 6e | 65 64 20 69 6e 20 6c 69 |/* Defin|ed in li|
|000018b0| 62 67 63 63 2e 61 20 2a | 2f 0a 0a 23 64 65 66 69 |bgcc.a *|/..#defi|
|000018c0| 6e 65 20 61 73 73 65 72 | 74 28 65 78 70 72 65 73 |ne asser|t(expres|
|000018d0| 73 69 6f 6e 29 20 20 5c | 0a 20 20 28 28 76 6f 69 |sion) \|. ((voi|
|000018e0| 64 29 20 28 28 65 78 70 | 72 65 73 73 69 6f 6e 29 |d) ((exp|ression)|
|000018f0| 20 3f 20 30 20 3a 20 5f | 5f 61 73 73 65 72 74 20 | ? 0 : _|_assert |
|00001900| 28 65 78 70 72 65 73 73 | 69 6f 6e 2c 20 5f 5f 46 |(express|ion, __F|
|00001910| 49 4c 45 5f 5f 2c 20 5f | 5f 4c 49 4e 45 5f 5f 29 |ILE__, _|_LINE__)|
|00001920| 29 29 0a 0a 23 64 65 66 | 69 6e 65 20 5f 5f 61 73 |))..#def|ine __as|
|00001930| 73 65 72 74 28 65 78 70 | 72 65 73 73 69 6f 6e 2c |sert(exp|ression,|
|00001940| 20 66 69 6c 65 2c 20 6c | 69 6e 65 6e 6f 29 20 20 | file, l|ineno) |
|00001950| 5c 0a 20 20 28 5f 5f 65 | 70 72 69 6e 74 66 20 28 |\. (__e|printf (|
|00001960| 22 25 73 3a 25 75 3a 20 | 66 61 69 6c 65 64 20 61 |"%s:%u: |failed a|
|00001970| 73 73 65 72 74 69 6f 6e | 20 60 25 73 27 5c 6e 22 |ssertion| `%s'\n"|
|00001980| 2c 09 09 5c 0a 09 20 20 | 20 20 20 20 66 69 6c 65 |,..\.. | file|
|00001990| 2c 20 6c 69 6e 65 6e 6f | 2c 20 22 65 78 70 72 65 |, lineno|, "expre|
|000019a0| 73 73 69 6f 6e 22 29 2c | 20 30 29 0a 0a 23 65 6e |ssion"),| 0)..#en|
|000019b0| 64 69 66 20 2f 2a 20 6e | 6f 20 5f 5f 53 54 44 43 |dif /* n|o __STDC|
|000019c0| 5f 5f 20 61 6e 64 20 6e | 6f 74 20 43 2b 2b 3b 20 |__ and n|ot C++; |
|000019d0| 69 2e 65 2e 20 2d 74 72 | 61 64 69 74 69 6f 6e 61 |i.e. -tr|aditiona|
|000019e0| 6c 2e 20 20 2a 2f 0a 23 | 65 6e 64 69 66 20 2f 2a |l. */.#|endif /*|
|000019f0| 20 6e 6f 20 5f 5f 47 4e | 55 5f 5f 3b 20 69 2e 65 | no __GN|U__; i.e|
|00001a00| 2e 2c 20 2f 62 69 6e 2f | 63 63 2e 20 20 2a 2f 0a |., /bin/|cc. */.|
|00001a10| 23 65 6e 64 69 66 0a 46 | 69 6c 65 44 61 74 61 82 |#endif.F|ileData.|
|00001a20| 63 74 79 70 65 00 00 00 | 00 00 00 a0 06 00 00 47 |ctype...|.......G|
|00001a30| ff ff ff 8e a6 56 6f 03 | 00 7f 56 2f 2a 20 63 74 |.....Vo.|..V/* ct|
|00001a40| 79 70 65 2e 68 0a 0a 20 | 20 20 46 6f 72 20 75 73 |ype.h.. | For us|
|00001a50| 65 20 77 69 74 68 20 74 | 68 65 20 47 4e 55 20 63 |e with t|he GNU c|
|00001a60| 6f 6d 70 69 6c 65 72 73 | 20 61 6e 64 20 74 68 65 |ompilers| and the|
|00001a70| 20 53 68 61 72 65 64 43 | 4c 69 62 72 61 72 79 2e | SharedC|Library.|
|00001a80| 0a 20 20 20 28 63 29 20 | 43 6f 70 79 72 69 67 68 |. (c) |Copyrigh|
|00001a90| 74 20 31 39 39 37 2c 20 | 4e 69 63 6b 20 42 75 72 |t 1997, |Nick Bur|
|00001aa0| 72 65 74 74 2e 20 20 2a | 2f 0a 0a 23 69 66 6e 64 |rett. *|/..#ifnd|
|00001ab0| 65 66 20 5f 5f 43 54 59 | 50 45 5f 48 0a 23 64 65 |ef __CTY|PE_H.#de|
|00001ac0| 66 69 6e 65 20 5f 5f 43 | 54 59 50 45 5f 48 0a 0a |fine __C|TYPE_H..|
|00001ad0| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|00001ae0| 75 73 0a 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0a |us.exter|n "C" {.|
|00001af0| 23 65 6e 64 69 66 0a 0a | 65 78 74 65 72 6e 20 75 |#endif..|extern u|
|00001b00| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 5f 5f 63 |nsigned |char __c|
|00001b10| 74 79 70 65 5b 5d 3b 0a | 0a 2f 2a 20 54 72 75 65 |type[];.|./* True|
|00001b20| 20 69 66 20 63 20 69 73 | 20 61 6c 70 68 61 62 65 | if c is| alphabe|
|00001b30| 74 69 63 20 6f 72 20 6e | 75 6d 62 65 72 69 63 2e |tic or n|umberic.|
|00001b40| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 69 73 61 | */.#de|fine isa|
|00001b50| 6c 6e 75 6d 28 63 29 20 | 28 5f 5f 63 74 79 70 65 |lnum(c) |(__ctype|
|00001b60| 5b 63 5d 20 26 20 35 36 | 29 0a 65 78 74 65 72 6e |[c] & 56|).extern|
|00001b70| 20 69 6e 74 20 28 69 73 | 61 6c 6e 75 6d 29 28 69 | int (is|alnum)(i|
|00001b80| 6e 74 20 63 29 3b 0a 0a | 2f 2a 20 54 72 75 65 20 |nt c);..|/* True |
|00001b90| 69 66 20 63 20 69 73 20 | 61 6c 70 68 61 62 65 74 |if c is |alphabet|
|00001ba0| 69 63 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |ic. */.|#define |
|00001bb0| 69 73 61 6c 70 68 61 28 | 63 29 20 28 5f 5f 63 74 |isalpha(|c) (__ct|
|00001bc0| 79 70 65 5b 63 5d 20 26 | 20 32 34 29 0a 65 78 74 |ype[c] &| 24).ext|
|00001bd0| 65 72 6e 20 69 6e 74 20 | 28 69 73 61 6c 70 68 61 |ern int |(isalpha|
|00001be0| 29 28 69 6e 74 20 63 29 | 3b 0a 0a 2f 2a 20 54 72 |)(int c)|;../* Tr|
|00001bf0| 75 65 20 69 66 20 63 20 | 69 73 20 61 20 63 6f 6e |ue if c |is a con|
|00001c00| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 2e 20 |trol cha|racter. |
|00001c10| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 69 73 63 6e | */.#def|ine iscn|
|00001c20| 74 72 6c 28 63 29 20 28 | 5f 5f 63 74 79 70 65 5b |trl(c) (|__ctype[|
|00001c30| 63 5d 20 26 20 36 34 29 | 0a 65 78 74 65 72 6e 20 |c] & 64)|.extern |
|00001c40| 69 6e 74 20 28 69 73 63 | 6e 74 72 6c 29 28 69 6e |int (isc|ntrl)(in|
|00001c50| 74 20 63 29 3b 0a 0a 2f | 2a 20 54 72 75 65 20 69 |t c);../|* True i|
|00001c60| 66 20 63 20 69 73 20 61 | 20 64 65 63 69 6d 61 6c |f c is a| decimal|
|00001c70| 20 64 69 67 69 74 2e 20 | 20 2a 2f 0a 23 64 65 66 | digit. | */.#def|
|00001c80| 69 6e 65 20 69 73 64 69 | 67 69 74 28 63 29 20 28 |ine isdi|git(c) (|
|00001c90| 5f 5f 63 74 79 70 65 5b | 63 5d 20 26 20 33 32 29 |__ctype[|c] & 32)|
|00001ca0| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 28 69 73 64 |.extern |int (isd|
|00001cb0| 69 67 69 74 29 28 69 6e | 74 20 63 29 3b 0a 0a 2f |igit)(in|t c);../|
|00001cc0| 2a 20 54 72 75 65 20 69 | 66 20 63 20 69 73 20 61 |* True i|f c is a|
|00001cd0| 20 70 72 69 6e 74 61 62 | 6c 65 20 63 68 61 72 61 | printab|le chara|
|00001ce0| 63 74 65 72 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |cter oth|er than |
|00001cf0| 73 70 61 63 65 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |space. |*/.#defi|
|00001d00| 6e 65 20 69 73 67 72 61 | 70 68 28 63 29 20 28 5f |ne isgra|ph(c) (_|
|00001d10| 5f 63 74 79 70 65 5b 63 | 5d 20 26 20 35 38 29 0a |_ctype[c|] & 58).|
|00001d20| 65 78 74 65 72 6e 20 69 | 6e 74 20 28 69 73 67 72 |extern i|nt (isgr|
|00001d30| 61 70 68 29 28 69 6e 74 | 20 63 29 3b 0a 0a 2f 2a |aph)(int| c);../*|
|00001d40| 20 54 72 75 65 20 69 66 | 20 63 20 69 73 20 61 20 | True if| c is a |
|00001d50| 6c 6f 77 65 72 2d 63 61 | 73 65 20 6c 65 74 74 65 |lower-ca|se lette|
|00001d60| 72 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 69 |r. */.#|define i|
|00001d70| 73 6c 6f 77 65 72 28 63 | 29 20 28 5f 5f 63 74 79 |slower(c|) (__cty|
|00001d80| 70 65 5b 63 5d 20 26 20 | 38 29 0a 65 78 74 65 72 |pe[c] & |8).exter|
|00001d90| 6e 20 69 6e 74 20 28 69 | 73 6c 6f 77 65 72 29 28 |n int (i|slower)(|
|00001da0| 69 6e 74 20 63 29 3b 0a | 0a 2f 2a 20 54 72 75 65 |int c);.|./* True|
|00001db0| 20 69 73 20 63 20 69 73 | 20 61 20 70 72 69 6e 74 | is c is| a print|
|00001dc0| 61 62 6c 65 20 63 68 61 | 72 61 63 74 65 72 2e 20 |able cha|racter. |
|00001dd0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 69 73 70 72 | */.#def|ine ispr|
|00001de0| 69 6e 74 28 63 29 20 28 | 5f 5f 63 74 79 70 65 5b |int(c) (|__ctype[|
|00001df0| 63 5d 20 26 20 36 32 29 | 0a 65 78 74 65 72 6e 20 |c] & 62)|.extern |
|00001e00| 69 6e 74 20 28 69 73 70 | 72 69 6e 74 29 28 69 6e |int (isp|rint)(in|
|00001e10| 74 20 63 29 3b 0a 0a 2f | 2a 20 54 72 75 65 20 69 |t c);../|* True i|
|00001e20| 66 20 63 20 69 73 20 61 | 20 70 72 69 6e 74 61 62 |f c is a| printab|
|00001e30| 6c 65 20 63 68 61 72 61 | 63 74 65 72 20 6f 74 68 |le chara|cter oth|
|00001e40| 65 72 20 74 68 61 6e 20 | 73 70 61 63 65 0a 20 20 |er than |space. |
|00001e50| 20 6f 72 20 61 6e 20 61 | 6c 70 68 61 6e 75 6d 65 | or an a|lphanume|
|00001e60| 72 69 63 20 63 68 61 72 | 61 63 74 65 72 2e 20 20 |ric char|acter. |
|00001e70| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 69 73 70 75 6e |*/.#defi|ne ispun|
|00001e80| 63 74 28 63 29 20 28 5f | 5f 63 74 79 70 65 5b 63 |ct(c) (_|_ctype[c|
|00001e90| 5d 20 26 20 32 29 0a 65 | 78 74 65 72 6e 20 69 6e |] & 2).e|xtern in|
|00001ea0| 74 20 28 69 73 70 75 6e | 63 74 29 28 69 6e 74 20 |t (ispun|ct)(int |
|00001eb0| 63 29 3b 0a 0a 2f 2a 20 | 54 72 75 65 20 69 66 20 |c);../* |True if |
|00001ec0| 63 20 69 73 20 61 20 77 | 68 69 74 65 20 73 70 61 |c is a w|hite spa|
|00001ed0| 63 65 20 63 68 61 72 61 | 63 74 65 72 20 65 2e 67 |ce chara|cter e.g|
|00001ee0| 2e 20 73 70 61 63 65 2c | 20 4c 46 2c 20 43 52 2c |. space,| LF, CR,|
|00001ef0| 0a 20 20 20 74 61 62 20 | 6f 72 20 76 65 72 74 69 |. tab |or verti|
|00001f00| 63 61 6c 20 74 61 62 2e | 20 20 2a 2f 0a 23 64 65 |cal tab.| */.#de|
|00001f10| 66 69 6e 65 20 69 73 73 | 70 61 63 65 28 63 29 20 |fine iss|pace(c) |
|00001f20| 28 5f 5f 63 74 79 70 65 | 5b 63 5d 20 26 20 31 29 |(__ctype|[c] & 1)|
|00001f30| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 28 69 73 73 |.extern |int (iss|
|00001f40| 70 61 63 65 29 28 69 6e | 74 20 63 29 3b 0a 0a 2f |pace)(in|t c);../|
|00001f50| 2a 20 54 72 75 65 20 69 | 66 20 63 20 69 73 20 61 |* True i|f c is a|
|00001f60| 6e 20 75 70 70 65 72 2d | 63 61 73 65 20 6c 65 74 |n upper-|case let|
|00001f70| 74 65 72 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ter. */|.#define|
|00001f80| 20 69 73 75 70 70 65 72 | 28 63 29 20 28 5f 5f 63 | isupper|(c) (__c|
|00001f90| 74 79 70 65 5b 63 5d 20 | 26 20 31 36 29 0a 65 78 |type[c] |& 16).ex|
|00001fa0| 74 65 72 6e 20 69 6e 74 | 20 28 69 73 75 70 70 65 |tern int| (isuppe|
|00001fb0| 72 29 28 69 6e 74 20 63 | 29 3b 0a 0a 2f 2a 20 54 |r)(int c|);../* T|
|00001fc0| 72 75 65 20 69 66 20 63 | 20 69 73 20 61 20 68 65 |rue if c| is a he|
|00001fd0| 78 61 64 65 63 69 6d 61 | 6c 20 64 69 67 69 74 2e |xadecima|l digit.|
|00001fe0| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 69 73 78 | */.#de|fine isx|
|00001ff0| 64 69 67 69 74 28 63 29 | 20 28 5f 5f 63 74 79 70 |digit(c)| (__ctyp|
|00002000| 65 5b 63 5d 20 26 20 31 | 36 30 29 0a 65 78 74 65 |e[c] & 1|60).exte|
|00002010| 72 6e 20 69 6e 74 20 28 | 69 73 78 64 69 67 69 74 |rn int (|isxdigit|
|00002020| 29 28 69 6e 74 20 63 29 | 3b 0a 0a 2f 2a 20 52 65 |)(int c)|;../* Re|
|00002030| 74 75 72 6e 20 74 68 65 | 20 6c 6f 77 65 72 63 61 |turn the| lowerca|
|00002040| 73 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 63 2e |se versi|on of c.|
|00002050| 20 20 2a 2f 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 | */.ext|ern int |
|00002060| 74 6f 6c 6f 77 65 72 28 | 69 6e 74 20 63 29 3b 0a |tolower(|int c);.|
|00002070| 0a 2f 2a 20 52 65 74 75 | 72 6e 20 74 68 65 20 75 |./* Retu|rn the u|
|00002080| 70 70 65 72 63 61 73 65 | 20 76 65 72 73 69 6f 6e |ppercase| version|
|00002090| 20 6f 66 20 63 2e 20 20 | 2a 2f 0a 65 78 74 65 72 | of c. |*/.exter|
|000020a0| 6e 20 69 6e 74 20 74 6f | 75 70 70 65 72 28 69 6e |n int to|upper(in|
|000020b0| 74 20 63 29 3b 0a 0a 23 | 69 66 64 65 66 20 5f 5f |t c);..#|ifdef __|
|000020c0| 63 70 6c 75 73 70 6c 75 | 73 0a 7d 0a 23 65 6e 64 |cplusplu|s.}.#end|
|000020d0| 69 66 0a 0a 23 65 6e 64 | 69 66 0a 46 69 6c 65 44 |if..#end|if.FileD|
|000020e0| 61 74 61 82 65 6e 64 69 | 61 6e 00 00 00 00 00 3d |ata.endi|an.....=|
|000020f0| 03 00 00 47 ff ff ff bf | 7d d6 6e 03 00 c8 03 2f |...G....|}.n..../|
|00002100| 2a 20 65 6e 64 69 61 6e | 2e 68 2e 0a 20 20 20 41 |* endian|.h.. A|
|00002110| 6e 20 65 78 74 65 6e 73 | 69 6f 6e 2c 20 6e 6f 74 |n extens|ion, not|
|00002120| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 6f 72 69 | part of| the ori|
|00002130| 67 69 6e 61 6c 20 53 68 | 61 72 65 64 43 4c 69 62 |ginal Sh|aredCLib|
|00002140| 72 61 72 79 20 64 69 73 | 74 72 69 62 75 74 69 6f |rary dis|tributio|
|00002150| 6e 2e 0a 0a 20 20 20 28 | 63 29 20 43 6f 70 79 72 |n... (|c) Copyr|
|00002160| 69 67 68 74 20 31 39 39 | 37 2c 20 4e 69 63 6b 20 |ight 199|7, Nick |
|00002170| 42 75 72 72 65 74 74 2e | 20 20 2a 2f 0a 0a 23 69 |Burrett.| */..#i|
|00002180| 66 6e 64 65 66 09 5f 5f | 45 4e 44 49 41 4e 5f 48 |fndef.__|ENDIAN_H|
|00002190| 0a 23 64 65 66 69 6e 65 | 09 5f 5f 45 4e 44 49 41 |.#define|.__ENDIA|
|000021a0| 4e 5f 48 09 31 0a 0a 2f | 2a 20 44 65 66 69 6e 69 |N_H.1../|* Defini|
|000021b0| 74 69 6f 6e 73 20 66 6f | 72 20 62 79 74 65 20 6f |tions fo|r byte o|
|000021c0| 72 64 65 72 2c 20 61 63 | 63 6f 72 64 69 6e 67 20 |rder, ac|cording |
|000021d0| 74 6f 20 73 69 67 6e 69 | 66 69 63 61 6e 63 65 20 |to signi|ficance |
|000021e0| 6f 66 20 62 79 74 65 73 | 2c 20 66 72 6f 6d 20 6c |of bytes|, from l|
|000021f0| 6f 77 0a 20 20 20 61 64 | 64 72 65 73 73 65 73 20 |ow. ad|dresses |
|00002200| 74 6f 20 68 69 67 68 20 | 61 64 64 72 65 73 73 65 |to high |addresse|
|00002210| 73 2e 20 20 54 68 65 20 | 76 61 6c 75 65 20 69 73 |s. The |value is|
|00002220| 20 77 68 61 74 20 79 6f | 75 20 67 65 74 20 62 79 | what yo|u get by|
|00002230| 20 70 75 74 74 69 6e 67 | 20 27 34 27 0a 20 20 20 | putting| '4'. |
|00002240| 69 6e 20 74 68 65 20 6d | 6f 73 74 20 73 69 67 6e |in the m|ost sign|
|00002250| 69 66 69 63 61 6e 74 20 | 62 79 74 65 2c 20 27 33 |ificant |byte, '3|
|00002260| 27 20 69 6e 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |' in the| second |
|00002270| 6d 6f 73 74 20 73 69 67 | 6e 69 66 69 63 61 6e 74 |most sig|nificant|
|00002280| 20 62 79 74 65 2c 0a 20 | 20 20 27 32 27 20 69 6e | byte,. | '2' in|
|00002290| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 6c 65 61 73 | the sec|ond leas|
|000022a0| 74 20 73 69 67 6e 69 66 | 69 63 61 6e 74 20 62 79 |t signif|icant by|
|000022b0| 74 65 2c 20 61 6e 64 20 | 27 31 27 20 69 6e 20 74 |te, and |'1' in t|
|000022c0| 68 65 20 6c 65 61 73 74 | 0a 20 20 20 73 69 67 6e |he least|. sign|
|000022d0| 69 66 69 63 61 6e 74 20 | 62 79 74 65 2e 20 20 2a |ificant |byte. *|
|000022e0| 2f 0a 0a 23 64 65 66 69 | 6e 65 09 5f 5f 4c 49 54 |/..#defi|ne.__LIT|
|000022f0| 54 4c 45 5f 45 4e 44 49 | 41 4e 09 31 32 33 34 0a |TLE_ENDI|AN.1234.|
|00002300| 23 64 65 66 69 6e 65 09 | 5f 5f 42 49 47 5f 45 4e |#define.|__BIG_EN|
|00002310| 44 49 41 4e 09 34 33 32 | 31 0a 23 64 65 66 69 6e |DIAN.432|1.#defin|
|00002320| 65 09 5f 5f 50 44 50 5f | 45 4e 44 49 41 4e 09 33 |e.__PDP_|ENDIAN.3|
|00002330| 34 31 32 0a 0a 2f 2a 20 | 42 79 74 65 20 6f 72 64 |412../* |Byte ord|
|00002340| 65 72 20 66 6f 72 20 52 | 49 53 43 20 4f 53 20 69 |er for R|ISC OS i|
|00002350| 73 20 6c 69 74 74 6c 65 | 20 65 6e 64 69 61 6e 2e |s little| endian.|
|00002360| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 5f 5f 42 | */.#de|fine __B|
|00002370| 59 54 45 5f 4f 52 44 45 | 52 20 5f 5f 4c 49 54 54 |YTE_ORDE|R __LITT|
|00002380| 4c 45 5f 45 4e 44 49 41 | 4e 0a 0a 2f 2a 20 46 6f |LE_ENDIA|N../* Fo|
|00002390| 72 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |r compat|ibility |
|000023a0| 77 69 74 68 20 42 53 44 | 2e 20 20 2a 2f 0a 23 64 |with BSD|. */.#d|
|000023b0| 65 66 69 6e 65 09 4c 49 | 54 54 4c 45 5f 45 4e 44 |efine.LI|TTLE_END|
|000023c0| 49 41 4e 09 5f 5f 4c 49 | 54 54 4c 45 5f 45 4e 44 |IAN.__LI|TTLE_END|
|000023d0| 49 41 4e 0a 23 64 65 66 | 69 6e 65 09 42 49 47 5f |IAN.#def|ine.BIG_|
|000023e0| 45 4e 44 49 41 4e 09 5f | 5f 42 49 47 5f 45 4e 44 |ENDIAN._|_BIG_END|
|000023f0| 49 41 4e 0a 23 64 65 66 | 69 6e 65 09 50 44 50 5f |IAN.#def|ine.PDP_|
|00002400| 45 4e 44 49 41 4e 09 5f | 5f 50 44 50 5f 45 4e 44 |ENDIAN._|_PDP_END|
|00002410| 49 41 4e 0a 23 64 65 66 | 69 6e 65 09 42 59 54 45 |IAN.#def|ine.BYTE|
|00002420| 5f 4f 52 44 45 52 09 5f | 5f 42 59 54 45 5f 4f 52 |_ORDER._|_BYTE_OR|
|00002430| 44 45 52 0a 0a 23 65 6e | 64 69 66 0a 46 69 6c 65 |DER..#en|dif.File|
|00002440| 44 61 74 61 82 65 72 72 | 6e 6f 00 00 00 00 00 00 |Data.err|no......|
|00002450| d8 14 00 00 47 fd ff ff | 3e bb 69 a1 03 00 8c e1 |....G...|>.i.....|
|00002460| 2f 2a 20 65 72 72 6e 6f | 2e 68 0a 0a 20 20 20 46 |/* errno|.h.. F|
|00002470| 6f 72 20 75 73 65 20 77 | 69 74 68 20 74 68 65 20 |or use w|ith the |
|00002480| 47 4e 55 20 63 6f 6d 70 | 69 6c 65 72 73 20 61 6e |GNU comp|ilers an|
|00002490| 64 20 74 68 65 20 53 68 | 61 72 65 64 43 4c 69 62 |d the Sh|aredCLib|
|000024a0| 72 61 72 79 2e 0a 20 20 | 20 28 63 29 20 43 6f 70 |rary.. | (c) Cop|
|000024b0| 79 72 69 67 68 74 20 31 | 39 39 37 2c 20 4e 69 63 |yright 1|997, Nic|
|000024c0| 6b 20 42 75 72 72 65 74 | 74 2e 20 20 2a 2f 0a 23 |k Burret|t. */.#|
|000024d0| 69 66 6e 64 65 66 20 5f | 5f 45 52 52 4e 4f 5f 48 |ifndef _|_ERRNO_H|
|000024e0| 0a 23 64 65 66 69 6e 65 | 20 5f 5f 45 52 52 4e 4f |.#define| __ERRNO|
|000024f0| 5f 48 0a 0a 23 69 66 6e | 64 65 66 20 65 72 72 6e |_H..#ifn|def errn|
|00002500| 6f 0a 23 64 65 66 69 6e | 65 20 65 72 72 6e 6f 20 |o.#defin|e errno |
|00002510| 5f 5f 65 72 72 6e 6f 0a | 65 78 74 65 72 6e 20 76 |__errno.|extern v|
|00002520| 6f 6c 61 74 69 6c 65 20 | 69 6e 74 20 65 72 72 6e |olatile |int errn|
|00002530| 6f 3b 0a 23 65 6e 64 69 | 66 0a 0a 2f 2a 20 44 6f |o;.#endi|f../* Do|
|00002540| 6d 61 69 6e 20 65 72 72 | 6f 72 2e 20 41 6e 20 69 |main err|or. An i|
|00002550| 6e 70 75 74 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |nput arg|ument is|
|00002560| 20 6f 75 74 73 69 64 65 | 20 74 68 65 20 64 6f 6d | outside| the dom|
|00002570| 61 69 6e 20 6f 76 65 72 | 0a 20 20 20 77 68 69 63 |ain over|. whic|
|00002580| 68 20 74 68 65 20 6d 61 | 74 68 65 6d 61 74 69 63 |h the ma|thematic|
|00002590| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 64 |al funct|ion is d|
|000025a0| 65 66 69 6e 65 64 2e 20 | 20 2a 2f 0a 23 64 65 66 |efined. | */.#def|
|000025b0| 69 6e 65 20 45 44 4f 4d | 20 31 0a 0a 2f 2a 20 52 |ine EDOM| 1../* R|
|000025c0| 61 6e 67 65 20 65 72 72 | 6f 72 2e 20 54 68 65 20 |ange err|or. The |
|000025d0| 72 65 73 75 6c 74 20 6f | 66 20 61 20 66 75 6e 63 |result o|f a func|
|000025e0| 74 69 6f 6e 20 63 61 6e | 6e 6f 74 20 62 65 20 72 |tion can|not be r|
|000025f0| 65 70 72 65 73 65 6e 74 | 65 64 0a 20 20 20 61 73 |epresent|ed. as|
|00002600| 20 61 20 64 6f 75 62 6c | 65 20 66 6c 6f 61 74 69 | a doubl|e floati|
|00002610| 6e 67 20 70 6f 69 6e 74 | 20 76 61 6c 75 65 2e 20 |ng point| value. |
|00002620| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 45 52 41 4e | */.#def|ine ERAN|
|00002630| 47 45 20 32 0a 0a 2f 2a | 20 41 6e 20 75 6e 72 65 |GE 2../*| An unre|
|00002640| 63 6f 67 6e 69 73 65 64 | 20 73 69 67 6e 61 6c 20 |cognised| signal |
|00002650| 69 73 20 63 61 75 67 68 | 74 20 62 79 20 74 68 65 |is caugh|t by the|
|00002660| 20 64 65 66 61 75 6c 74 | 20 73 69 67 6e 61 6c 20 | default| signal |
|00002670| 68 61 6e 64 6c 65 72 2e | 20 20 2a 2f 0a 23 64 65 |handler.| */.#de|
|00002680| 66 69 6e 65 20 45 53 49 | 47 4e 55 4d 20 33 0a 0a |fine ESI|GNUM 3..|
|00002690| 2f 2a 20 4f 70 65 72 61 | 74 69 6f 6e 20 6e 6f 74 |/* Opera|tion not|
|000026a0| 20 70 65 72 6d 69 74 74 | 65 64 2e 20 20 2a 2f 0a | permitt|ed. */.|
|000026b0| 23 64 65 66 69 6e 65 20 | 45 50 45 52 4d 20 20 20 |#define |EPERM |
|000026c0| 20 20 20 20 20 20 20 20 | 34 0a 2f 2a 20 4e 6f 20 | |4./* No |
|000026d0| 73 75 63 68 20 66 69 6c | 65 20 6f 72 20 64 69 72 |such fil|e or dir|
|000026e0| 65 63 74 6f 72 79 2e 20 | 20 2a 2f 0a 23 64 65 66 |ectory. | */.#def|
|000026f0| 69 6e 65 20 45 4e 4f 45 | 4e 54 09 09 35 0a 2f 2a |ine ENOE|NT..5./*|
|00002700| 20 4e 6f 20 73 75 63 68 | 20 70 72 6f 63 65 73 73 | No such| process|
|00002710| 2e 20 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 45 53 |. */.#d|efine ES|
|00002720| 52 43 48 09 09 36 0a 2f | 2a 20 49 6e 74 65 72 72 |RCH..6./|* Interr|
|00002730| 75 70 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 63 |upted fu|nction c|
|00002740| 61 6c 6c 2e 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |all. */.|#define |
|00002750| 45 49 4e 54 52 09 09 37 | 0a 2f 2a 20 49 6e 70 75 |EINTR..7|./* Inpu|
|00002760| 74 2f 6f 75 74 70 75 74 | 20 65 72 72 6f 72 2e 20 |t/output| error. |
|00002770| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 45 49 4f 09 | */.#def|ine EIO.|
|00002780| 09 38 0a 2f 2a 20 4e 6f | 20 73 75 63 68 20 64 65 |.8./* No| such de|
|00002790| 76 69 63 65 20 6f 72 20 | 61 64 64 72 65 73 73 20 |vice or |address |
|000027a0| 28 64 65 76 69 63 65 20 | 6e 6f 74 20 63 6f 6e 66 |(device |not conf|
|000027b0| 69 67 75 72 65 64 29 2e | 20 20 2a 2f 0a 23 64 65 |igured).| */.#de|
|000027c0| 66 69 6e 65 20 45 4e 58 | 49 4f 09 09 39 0a 2f 2a |fine ENX|IO..9./*|
|000027d0| 20 41 72 67 75 6d 65 6e | 74 20 6c 69 73 74 20 74 | Argumen|t list t|
|000027e0| 6f 6f 20 6c 6f 6e 67 2e | 20 20 2a 2f 0a 23 64 65 |oo long.| */.#de|
|000027f0| 66 69 6e 65 20 45 32 42 | 49 47 09 09 31 30 0a 2f |fine E2B|IG..10./|
|00002800| 2a 20 49 6e 76 61 6c 69 | 64 20 65 78 65 63 75 74 |* Invali|d execut|
|00002810| 61 62 6c 65 20 66 69 6c | 65 20 66 6f 72 6d 61 74 |able fil|e format|
|00002820| 20 28 65 78 65 63 20 66 | 6f 72 6d 61 74 20 65 72 | (exec f|ormat er|
|00002830| 72 6f 72 29 2e 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ror). */|.#define|
|00002840| 20 45 4e 4f 45 58 45 43 | 20 09 31 31 0a 2f 2a 20 | ENOEXEC| .11./* |
|00002850| 42 61 64 20 66 69 6c 65 | 20 64 65 73 63 72 69 70 |Bad file| descrip|
|00002860| 74 6f 72 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |tor. */|.#define|
|00002870| 20 45 42 41 44 46 09 09 | 31 32 0a 2f 2a 20 54 68 | EBADF..|12./* Th|
|00002880| 65 72 65 20 61 72 65 20 | 6e 6f 20 63 68 69 6c 64 |ere are |no child|
|00002890| 20 70 72 6f 63 65 73 73 | 65 73 2e 20 20 2a 2f 0a | process|es. */.|
|000028a0| 23 64 65 66 69 6e 65 20 | 45 43 48 49 4c 44 09 09 |#define |ECHILD..|
|000028b0| 31 33 0a 2f 2a 20 52 65 | 73 6f 75 72 63 65 20 64 |13./* Re|source d|
|000028c0| 65 61 64 6c 6f 63 6b 20 | 61 76 6f 69 64 65 64 2e |eadlock |avoided.|
|000028d0| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 44 45 | */.#de|fine EDE|
|000028e0| 41 44 4c 4b 09 20 20 20 | 20 20 09 31 34 0a 2f 2a |ADLK. | .14./*|
|000028f0| 20 43 61 6e 6e 6f 74 20 | 61 6c 6c 6f 63 61 74 65 | Cannot |allocate|
|00002900| 20 6d 65 6d 6f 72 79 2e | 20 20 2a 2f 0a 23 64 65 | memory.| */.#de|
|00002910| 66 69 6e 65 20 45 4e 4f | 4d 45 4d 09 09 31 35 0a |fine ENO|MEM..15.|
|00002920| 2f 2a 20 50 65 72 6d 69 | 73 73 69 6f 6e 20 64 65 |/* Permi|ssion de|
|00002930| 6e 69 65 64 2e 0a 20 20 | 20 46 69 6c 65 20 70 65 |nied.. | File pe|
|00002940| 72 6d 69 73 73 69 6f 6e | 73 20 64 6f 20 6e 6f 74 |rmission|s do not|
|00002950| 20 61 6c 6c 6f 77 20 74 | 68 65 20 61 74 74 65 6d | allow t|he attem|
|00002960| 70 74 65 64 20 6f 70 65 | 72 61 74 69 6f 6e 2e 20 |pted ope|ration. |
|00002970| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 45 41 43 43 | */.#def|ine EACC|
|00002980| 45 53 09 09 31 36 0a 2f | 2a 20 42 61 64 20 61 64 |ES..16./|* Bad ad|
|00002990| 64 72 65 73 73 2e 20 41 | 6e 20 69 6e 76 61 6c 69 |dress. A|n invali|
|000029a0| 64 20 70 6f 69 6e 74 65 | 72 20 77 61 73 20 64 65 |d pointe|r was de|
|000029b0| 74 65 63 74 65 64 2e 20 | 20 2a 2f 0a 23 64 65 66 |tected. | */.#def|
|000029c0| 69 6e 65 20 45 46 41 55 | 4c 54 09 09 31 37 0a 2f |ine EFAU|LT..17./|
|000029d0| 2a 20 42 6c 6f 63 6b 20 | 64 65 76 69 63 65 20 72 |* Block |device r|
|000029e0| 65 71 75 69 72 65 64 2e | 20 20 2a 2f 0a 23 64 65 |equired.| */.#de|
|000029f0| 66 69 6e 65 20 45 4e 4f | 54 42 4c 4b 20 09 31 38 |fine ENO|TBLK .18|
|00002a00| 0a 2f 2a 20 44 65 76 69 | 63 65 20 62 75 73 79 2e |./* Devi|ce busy.|
|00002a10| 20 43 61 75 73 65 64 20 | 62 79 20 61 20 73 79 73 | Caused |by a sys|
|00002a20| 74 65 6d 20 72 65 73 6f | 75 72 63 65 20 74 68 61 |tem reso|urce tha|
|00002a30| 74 20 63 61 6e 27 74 20 | 62 65 20 73 68 61 72 65 |t can't |be share|
|00002a40| 64 0a 20 20 20 69 73 20 | 61 6c 72 65 61 64 79 20 |d. is |already |
|00002a50| 69 6e 20 75 73 65 2e 20 | 20 2a 2f 0a 23 64 65 66 |in use. | */.#def|
|00002a60| 69 6e 65 20 45 42 55 53 | 59 09 09 31 39 0a 2f 2a |ine EBUS|Y..19./*|
|00002a70| 20 46 69 6c 65 20 65 78 | 69 73 74 73 2e 20 20 2a | File ex|ists. *|
|00002a80| 2f 0a 23 64 65 66 69 6e | 65 20 45 45 58 49 53 54 |/.#defin|e EEXIST|
|00002a90| 09 09 32 30 0a 2f 2a 20 | 49 6e 76 61 6c 69 64 20 |..20./* |Invalid |
|00002aa0| 63 72 6f 73 73 2d 64 65 | 76 69 63 65 20 6c 69 6e |cross-de|vice lin|
|00002ab0| 6b 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |k. */.#|define E|
|00002ac0| 58 44 45 56 09 09 32 31 | 0a 2f 2a 20 4f 70 65 72 |XDEV..21|./* Oper|
|00002ad0| 61 74 69 6f 6e 20 6e 6f | 74 20 73 75 70 70 6f 72 |ation no|t suppor|
|00002ae0| 74 65 64 20 62 79 20 64 | 65 76 69 63 65 2e 20 20 |ted by d|evice. |
|00002af0| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 45 4e 4f 44 45 |*/.#defi|ne ENODE|
|00002b00| 56 09 09 32 32 0a 2f 2a | 20 4e 6f 74 20 61 20 64 |V..22./*| Not a d|
|00002b10| 69 72 65 63 74 6f 72 79 | 2e 20 20 2a 2f 0a 23 64 |irectory|. */.#d|
|00002b20| 65 66 69 6e 65 20 45 4e | 4f 54 44 49 52 20 09 32 |efine EN|OTDIR .2|
|00002b30| 33 0a 2f 2a 20 49 73 20 | 61 20 64 69 72 65 63 74 |3./* Is |a direct|
|00002b40| 6f 72 79 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ory. */|.#define|
|00002b50| 20 45 49 53 44 49 52 09 | 09 32 34 0a 2f 2a 20 49 | EISDIR.|.24./* I|
|00002b60| 6e 76 61 6c 69 64 20 61 | 72 67 75 6d 65 6e 74 2e |nvalid a|rgument.|
|00002b70| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 49 4e | */.#de|fine EIN|
|00002b80| 56 41 4c 09 09 32 35 0a | 2f 2a 20 54 6f 6f 20 6d |VAL..25.|/* Too m|
|00002b90| 61 6e 79 20 6f 70 65 6e | 20 66 69 6c 65 73 20 69 |any open| files i|
|00002ba0| 6e 20 73 79 73 74 65 6d | 2e 20 20 2a 2f 0a 23 64 |n system|. */.#d|
|00002bb0| 65 66 69 6e 65 20 45 4e | 46 49 4c 45 09 09 32 36 |efine EN|FILE..26|
|00002bc0| 0a 2f 2a 20 54 6f 6f 20 | 6d 61 6e 79 20 6f 70 65 |./* Too |many ope|
|00002bd0| 6e 20 66 69 6c 65 73 2e | 20 20 2a 2f 0a 23 64 65 |n files.| */.#de|
|00002be0| 66 69 6e 65 20 45 4d 46 | 49 4c 45 09 09 32 37 0a |fine EMF|ILE..27.|
|00002bf0| 2f 2a 20 49 6e 61 70 70 | 72 6f 70 72 69 61 74 65 |/* Inapp|ropriate|
|00002c00| 20 69 6f 63 74 6c 20 66 | 6f 72 20 64 65 76 69 63 | ioctl f|or devic|
|00002c10| 65 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |e. */.#|define E|
|00002c20| 4e 4f 54 54 59 09 09 32 | 38 0a 2f 2a 20 54 65 78 |NOTTY..2|8./* Tex|
|00002c30| 74 20 66 69 6c 65 20 62 | 75 73 79 2e 20 20 2a 2f |t file b|usy. */|
|00002c40| 0a 23 64 65 66 69 6e 65 | 20 45 54 58 54 42 53 59 |.#define| ETXTBSY|
|00002c50| 20 09 32 39 0a 2f 2a 20 | 46 69 6c 65 20 74 6f 6f | .29./* |File too|
|00002c60| 20 6c 61 72 67 65 2e 20 | 20 2a 2f 0a 23 64 65 66 | large. | */.#def|
|00002c70| 69 6e 65 20 45 46 42 49 | 47 09 09 33 30 0a 2f 2a |ine EFBI|G..30./*|
|00002c80| 20 4e 6f 20 73 70 61 63 | 65 20 6c 65 66 74 20 6f | No spac|e left o|
|00002c90| 6e 20 64 65 76 69 63 65 | 2e 20 20 2a 2f 0a 23 64 |n device|. */.#d|
|00002ca0| 65 66 69 6e 65 20 45 4e | 4f 53 50 43 09 09 33 31 |efine EN|OSPC..31|
|00002cb0| 0a 2f 2a 20 49 6c 6c 65 | 67 61 6c 20 73 65 65 6b |./* Ille|gal seek|
|00002cc0| 2e 20 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 45 53 |. */.#d|efine ES|
|00002cd0| 50 49 50 45 09 09 33 32 | 0a 2f 2a 20 52 65 61 64 |PIPE..32|./* Read|
|00002ce0| 2d 6f 6e 6c 79 20 66 69 | 6c 69 6e 67 20 73 79 73 |-only fi|ling sys|
|00002cf0| 74 65 6d 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |tem. */|.#define|
|00002d00| 20 45 52 4f 46 53 09 09 | 33 33 0a 2f 2a 20 54 6f | EROFS..|33./* To|
|00002d10| 6f 20 6d 61 6e 79 20 6c | 69 6e 6b 73 2e 20 20 2a |o many l|inks. *|
|00002d20| 2f 0a 23 64 65 66 69 6e | 65 20 45 4d 4c 49 4e 4b |/.#defin|e EMLINK|
|00002d30| 09 09 33 34 0a 2f 2a 20 | 42 72 6f 6b 65 6e 20 70 |..34./* |Broken p|
|00002d40| 69 70 65 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ipe. */|.#define|
|00002d50| 20 45 50 49 50 45 09 09 | 33 35 0a 2f 2a 20 4f 70 | EPIPE..|35./* Op|
|00002d60| 65 72 61 74 69 6f 6e 20 | 77 6f 75 6c 64 20 62 6c |eration |would bl|
|00002d70| 6f 63 6b 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ock. */|.#define|
|00002d80| 20 45 57 4f 55 4c 44 42 | 4c 4f 43 4b 09 33 36 0a | EWOULDB|LOCK.36.|
|00002d90| 2f 2a 20 4f 70 65 72 61 | 74 69 6f 6e 20 6e 6f 77 |/* Opera|tion now|
|00002da0| 20 69 6e 20 70 72 6f 67 | 72 65 73 73 2e 20 20 2a | in prog|ress. *|
|00002db0| 2f 0a 23 64 65 66 69 6e | 65 20 45 49 4e 50 52 4f |/.#defin|e EINPRO|
|00002dc0| 47 52 45 53 53 09 33 37 | 0a 2f 2a 20 4f 70 65 72 |GRESS.37|./* Oper|
|00002dd0| 61 74 69 6f 6e 20 61 6c | 72 65 61 64 79 20 69 6e |ation al|ready in|
|00002de0| 20 70 72 6f 67 72 65 73 | 73 2e 20 20 2a 2f 0a 23 | progres|s. */.#|
|00002df0| 64 65 66 69 6e 65 20 45 | 41 4c 52 45 41 44 59 09 |define E|ALREADY.|
|00002e00| 33 38 0a 2f 2a 20 53 6f | 63 6b 65 74 20 6f 70 65 |38./* So|cket ope|
|00002e10| 72 61 74 69 6f 6e 20 6f | 6e 20 6e 6f 6e 2d 73 6f |ration o|n non-so|
|00002e20| 63 6b 65 74 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |cket. *|/.#defin|
|00002e30| 65 20 45 4e 4f 54 53 4f | 43 4b 09 33 39 0a 2f 2a |e ENOTSO|CK.39./*|
|00002e40| 20 44 65 73 74 69 6e 61 | 74 69 6f 6e 20 61 64 64 | Destina|tion add|
|00002e50| 72 65 73 73 20 72 65 71 | 75 69 72 65 64 2e 20 20 |ress req|uired. |
|00002e60| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 45 44 45 53 54 |*/.#defi|ne EDEST|
|00002e70| 41 44 44 52 52 45 51 09 | 34 30 0a 2f 2a 20 4d 65 |ADDRREQ.|40./* Me|
|00002e80| 73 73 61 67 65 20 74 6f | 6f 20 6c 6f 6e 67 2e 20 |ssage to|o long. |
|00002e90| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 45 4d 53 47 | */.#def|ine EMSG|
|00002ea0| 53 49 5a 45 09 34 30 0a | 2f 2a 20 50 72 6f 74 6f |SIZE.40.|/* Proto|
|00002eb0| 63 6f 6c 20 77 72 6f 6e | 67 20 74 79 70 65 20 66 |col wron|g type f|
|00002ec0| 6f 72 20 73 6f 63 6b 65 | 74 2e 20 20 2a 2f 0a 23 |or socke|t. */.#|
|00002ed0| 64 65 66 69 6e 65 20 45 | 50 52 4f 54 4f 54 59 50 |define E|PROTOTYP|
|00002ee0| 45 09 34 31 0a 2f 2a 20 | 4f 70 74 69 6f 6e 20 6e |E.41./* |Option n|
|00002ef0| 6f 74 20 73 75 70 70 6f | 72 74 65 64 20 62 79 20 |ot suppo|rted by |
|00002f00| 70 72 6f 74 6f 63 6f 6c | 2e 20 20 2a 2f 0a 23 64 |protocol|. */.#d|
|00002f10| 65 66 69 6e 65 20 45 4e | 4f 50 52 4f 54 4f 4f 50 |efine EN|OPROTOOP|
|00002f20| 54 09 34 32 0a 2f 2a 20 | 50 72 6f 74 6f 63 6f 6c |T.42./* |Protocol|
|00002f30| 20 6e 6f 74 20 73 75 70 | 70 6f 72 74 65 64 20 2a | not sup|ported *|
|00002f40| 2f 0a 23 64 65 66 69 6e | 65 20 45 50 52 4f 54 4f |/.#defin|e EPROTO|
|00002f50| 4e 4f 53 55 50 50 4f 52 | 54 09 34 33 0a 2f 2a 20 |NOSUPPOR|T.43./* |
|00002f60| 53 6f 63 6b 65 74 20 74 | 79 70 65 20 6e 6f 74 20 |Socket t|ype not |
|00002f70| 73 75 70 70 6f 72 74 65 | 64 20 2a 2f 0a 23 64 65 |supporte|d */.#de|
|00002f80| 66 69 6e 65 20 45 53 4f | 43 4b 54 4e 4f 53 55 50 |fine ESO|CKTNOSUP|
|00002f90| 50 4f 52 54 09 34 34 0a | 2f 2a 20 4f 70 65 72 61 |PORT.44.|/* Opera|
|00002fa0| 74 69 6f 6e 20 6e 6f 74 | 20 73 75 70 70 6f 72 74 |tion not| support|
|00002fb0| 65 64 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 45 4f |ed */.#d|efine EO|
|00002fc0| 50 4e 4f 54 53 55 50 50 | 09 34 35 0a 2f 2a 20 50 |PNOTSUPP|.45./* P|
|00002fd0| 72 6f 74 6f 63 6f 6c 20 | 66 61 6d 69 6c 79 20 6e |rotocol |family n|
|00002fe0| 6f 74 20 73 75 70 70 6f | 72 74 65 64 2e 20 20 2a |ot suppo|rted. *|
|00002ff0| 2f 0a 23 64 65 66 69 6e | 65 20 45 50 46 4e 4f 53 |/.#defin|e EPFNOS|
|00003000| 55 50 50 4f 52 54 09 34 | 36 0a 2f 2a 20 41 64 64 |UPPORT.4|6./* Add|
|00003010| 72 65 73 73 20 66 61 6d | 69 6c 79 20 6e 6f 74 20 |ress fam|ily not |
|00003020| 73 75 70 70 6f 72 74 65 | 64 20 62 79 20 70 72 6f |supporte|d by pro|
|00003030| 74 6f 63 6f 6c 20 66 61 | 6d 69 6c 79 2e 20 2a 2f |tocol fa|mily. */|
|00003040| 0a 23 64 65 66 69 6e 65 | 20 45 41 46 4e 4f 53 55 |.#define| EAFNOSU|
|00003050| 50 50 4f 52 54 09 34 37 | 0a 2f 2a 20 41 64 64 72 |PPORT.47|./* Addr|
|00003060| 65 73 73 20 61 6c 72 65 | 61 64 79 20 69 6e 20 75 |ess alre|ady in u|
|00003070| 73 65 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 45 41 |se */.#d|efine EA|
|00003080| 44 44 52 49 4e 55 53 45 | 09 34 38 0a 2f 2a 20 43 |DDRINUSE|.48./* C|
|00003090| 61 6e 27 74 20 61 73 73 | 69 67 6e 20 72 65 71 75 |an't ass|ign requ|
|000030a0| 65 73 74 65 64 20 61 64 | 64 72 65 73 73 2e 20 20 |ested ad|dress. |
|000030b0| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 45 41 44 44 52 |*/.#defi|ne EADDR|
|000030c0| 4e 4f 54 41 56 41 49 4c | 09 34 39 0a 2f 2a 20 4e |NOTAVAIL|.49./* N|
|000030d0| 65 74 77 6f 72 6b 20 69 | 73 20 64 6f 77 6e 2e 20 |etwork i|s down. |
|000030e0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 45 4e 45 54 | */.#def|ine ENET|
|000030f0| 44 4f 57 4e 09 35 30 0a | 2f 2a 20 4e 65 74 77 6f |DOWN.50.|/* Netwo|
|00003100| 72 6b 20 75 6e 72 65 61 | 63 68 61 62 6c 65 20 2a |rk unrea|chable *|
|00003110| 2f 0a 23 64 65 66 69 6e | 65 20 45 4e 45 54 55 4e |/.#defin|e ENETUN|
|00003120| 52 45 41 43 48 09 35 31 | 0a 2f 2a 20 4e 65 74 77 |REACH.51|./* Netw|
|00003130| 6f 72 6b 20 64 72 6f 70 | 70 65 64 20 63 6f 6e 6e |ork drop|ped conn|
|00003140| 65 63 74 69 6f 6e 20 6f | 6e 20 72 65 73 65 74 2e |ection o|n reset.|
|00003150| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 4e 45 | */.#de|fine ENE|
|00003160| 54 52 45 53 45 54 20 20 | 09 35 32 0a 2f 2a 20 53 |TRESET |.52./* S|
|00003170| 6f 66 74 77 61 72 65 20 | 63 61 75 73 65 64 20 63 |oftware |caused c|
|00003180| 6f 6e 6e 65 63 74 69 6f | 6e 20 61 62 6f 72 74 2e |onnectio|n abort.|
|00003190| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 43 4f | */.#de|fine ECO|
|000031a0| 4e 4e 41 42 4f 52 54 45 | 44 09 35 33 0a 2f 2a 20 |NNABORTE|D.53./* |
|000031b0| 43 6f 6e 6e 65 63 74 69 | 6f 6e 20 72 65 73 65 74 |Connecti|on reset|
|000031c0| 20 62 79 20 70 65 65 72 | 20 2a 2f 0a 23 64 65 66 | by peer| */.#def|
|000031d0| 69 6e 65 20 45 43 4f 4e | 4e 52 45 53 45 54 09 35 |ine ECON|NRESET.5|
|000031e0| 34 0a 2f 2a 20 4e 6f 20 | 62 75 66 66 65 72 20 73 |4./* No |buffer s|
|000031f0| 70 61 63 65 20 61 76 61 | 69 6c 61 62 6c 65 20 2a |pace ava|ilable *|
|00003200| 2f 0a 23 64 65 66 69 6e | 65 20 45 4e 4f 42 55 46 |/.#defin|e ENOBUF|
|00003210| 53 09 09 35 35 0a 2f 2a | 20 53 6f 63 6b 65 74 20 |S..55./*| Socket |
|00003220| 69 73 20 61 6c 72 65 61 | 64 79 20 63 6f 6e 6e 65 |is alrea|dy conne|
|00003230| 63 74 65 64 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |cted */.|#define |
|00003240| 45 49 53 43 4f 4e 4e 09 | 09 35 36 0a 2f 2a 20 53 |EISCONN.|.56./* S|
|00003250| 6f 63 6b 65 64 20 69 73 | 20 6e 6f 74 20 63 6f 6e |ocked is| not con|
|00003260| 6e 65 63 74 65 64 20 2a | 2f 0a 23 64 65 66 69 6e |nected *|/.#defin|
|00003270| 65 20 45 4e 4f 54 43 4f | 4e 4e 09 35 37 0a 2f 2a |e ENOTCO|NN.57./*|
|00003280| 20 43 61 6e 27 74 20 73 | 65 6e 64 20 61 66 74 65 | Can't s|end afte|
|00003290| 72 20 73 6f 63 6b 65 74 | 20 73 68 75 74 64 6f 77 |r socket| shutdow|
|000032a0| 6e 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |n. */.#|define E|
|000032b0| 53 48 55 54 44 4f 57 4e | 09 35 38 0a 2f 2a 20 54 |SHUTDOWN|.58./* T|
|000032c0| 6f 6f 20 6d 61 6e 79 20 | 72 65 66 65 72 65 6e 63 |oo many |referenc|
|000032d0| 65 73 3a 20 63 61 6e 27 | 74 20 73 70 6c 69 63 65 |es: can'|t splice|
|000032e0| 2e 20 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 45 54 |. */.#d|efine ET|
|000032f0| 4f 4f 4d 41 4e 59 52 45 | 46 53 09 35 39 0a 2f 2a |OOMANYRE|FS.59./*|
|00003300| 20 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 69 6d 65 | Connect|ion time|
|00003310| 64 20 6f 75 74 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |d out. |*/.#defi|
|00003320| 6e 65 20 45 54 49 4d 45 | 44 4f 55 54 09 36 30 0a |ne ETIME|DOUT.60.|
|00003330| 2f 2a 20 43 6f 6e 6e 65 | 63 74 69 6f 6e 20 72 65 |/* Conne|ction re|
|00003340| 66 75 73 65 64 20 2a 2f | 0a 23 64 65 66 69 6e 65 |fused */|.#define|
|00003350| 20 45 43 4f 4e 4e 52 45 | 46 55 53 45 44 09 36 31 | ECONNRE|FUSED.61|
|00003360| 0a 2f 2a 20 54 6f 6f 20 | 6d 61 6e 79 20 6c 65 76 |./* Too |many lev|
|00003370| 65 6c 73 20 6f 66 20 73 | 79 6d 62 6f 6c 69 63 20 |els of s|ymbolic |
|00003380| 6c 69 6e 6b 73 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |links. |*/.#defi|
|00003390| 6e 65 20 45 4c 4f 4f 50 | 09 09 36 32 0a 2f 2a 20 |ne ELOOP|..62./* |
|000033a0| 46 69 6c 65 20 6e 61 6d | 65 20 74 6f 6f 20 6c 6f |File nam|e too lo|
|000033b0| 6e 67 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |ng. */.|#define |
|000033c0| 45 4e 41 4d 45 54 4f 4f | 4c 4f 4e 47 09 36 33 0a |ENAMETOO|LONG.63.|
|000033d0| 2f 2a 20 48 6f 73 74 20 | 69 73 20 64 6f 77 6e 2e |/* Host |is down.|
|000033e0| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 48 4f | */.#de|fine EHO|
|000033f0| 53 54 44 4f 57 4e 09 36 | 34 0a 2f 2a 20 48 6f 73 |STDOWN.6|4./* Hos|
|00003400| 74 20 75 6e 72 65 61 63 | 68 61 62 6c 65 2e 20 20 |t unreac|hable. |
|00003410| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 45 48 4f 53 54 |*/.#defi|ne EHOST|
|00003420| 55 4e 52 45 41 43 48 09 | 36 35 0a 2f 2a 20 44 69 |UNREACH.|65./* Di|
|00003430| 72 65 63 74 6f 72 79 20 | 6e 6f 74 20 65 6d 70 74 |rectory |not empt|
|00003440| 79 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |y. */.#|define E|
|00003450| 4e 4f 54 45 4d 50 54 59 | 09 36 36 0a 2f 2a 20 54 |NOTEMPTY|.66./* T|
|00003460| 6f 6f 20 6d 61 6e 79 20 | 70 72 6f 63 65 73 73 65 |oo many |processe|
|00003470| 73 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |s. */.#|define E|
|00003480| 50 52 4f 43 4c 49 4d 09 | 36 37 0a 2f 2a 20 54 6f |PROCLIM.|67./* To|
|00003490| 6f 20 6d 61 6e 79 20 75 | 73 65 72 73 2e 20 20 2a |o many u|sers. *|
|000034a0| 2f 0a 23 64 65 66 69 6e | 65 20 45 55 53 45 52 53 |/.#defin|e EUSERS|
|000034b0| 09 09 36 38 0a 2f 2a 20 | 44 69 73 63 20 71 75 6f |..68./* |Disc quo|
|000034c0| 74 61 20 65 78 63 65 65 | 64 65 64 2e 20 20 2a 2f |ta excee|ded. */|
|000034d0| 0a 23 64 65 66 69 6e 65 | 20 45 44 51 55 4f 54 09 |.#define| EDQUOT.|
|000034e0| 09 36 39 0a 2f 2a 20 53 | 74 61 6c 65 20 4e 46 53 |.69./* S|tale NFS|
|000034f0| 20 66 69 6c 65 20 68 61 | 6e 64 6c 65 2e 20 20 2a | file ha|ndle. *|
|00003500| 2f 0a 23 64 65 66 69 6e | 65 20 45 53 54 41 4c 45 |/.#defin|e ESTALE|
|00003510| 09 09 37 30 0a 2f 2a 20 | 54 6f 6f 20 6d 61 6e 79 |..70./* |Too many|
|00003520| 20 6c 65 76 65 6c 73 20 | 6f 66 20 72 65 6d 6f 74 | levels |of remot|
|00003530| 65 20 69 6e 20 70 61 74 | 68 2e 20 20 2a 2f 0a 23 |e in pat|h. */.#|
|00003540| 64 65 66 69 6e 65 20 45 | 52 45 4d 4f 54 45 09 09 |define E|REMOTE..|
|00003550| 37 31 0a 2f 2a 20 52 50 | 43 20 73 74 72 75 63 74 |71./* RP|C struct|
|00003560| 20 69 73 20 62 61 64 2e | 20 20 2a 2f 0a 23 64 65 | is bad.| */.#de|
|00003570| 66 69 6e 65 20 45 42 41 | 44 52 50 43 09 09 37 32 |fine EBA|DRPC..72|
|00003580| 0a 2f 2a 20 52 50 43 20 | 76 65 72 73 69 6f 6e 20 |./* RPC |version |
|00003590| 77 72 6f 6e 67 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |wrong. |*/.#defi|
|000035a0| 6e 65 20 45 52 50 43 4d | 49 53 4d 41 54 43 48 09 |ne ERPCM|ISMATCH.|
|000035b0| 37 33 0a 2f 2a 20 52 50 | 43 20 70 72 6f 67 72 61 |73./* RP|C progra|
|000035c0| 6d 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 2e |m not av|ailable.|
|000035d0| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 50 52 | */.#de|fine EPR|
|000035e0| 4f 47 55 4e 41 56 41 49 | 4c 09 37 34 0a 2f 2a 20 |OGUNAVAI|L.74./* |
|000035f0| 52 50 43 20 70 72 6f 67 | 72 61 6d 20 76 65 72 73 |RPC prog|ram vers|
|00003600| 69 6f 6e 20 77 72 6f 6e | 67 2e 20 20 2a 2f 0a 23 |ion wron|g. */.#|
|00003610| 64 65 66 69 6e 65 20 45 | 50 52 4f 47 4d 49 53 4d |define E|PROGMISM|
|00003620| 41 54 43 48 09 37 35 0a | 2f 2a 20 52 50 43 20 62 |ATCH.75.|/* RPC b|
|00003630| 61 64 20 70 72 6f 63 65 | 64 75 72 65 20 66 6f 72 |ad proce|dure for|
|00003640| 20 70 72 6f 67 72 61 6d | 2e 20 20 2a 2f 0a 23 64 | program|. */.#d|
|00003650| 65 66 69 6e 65 20 45 50 | 52 4f 43 55 4e 41 56 41 |efine EP|ROCUNAVA|
|00003660| 49 4c 09 37 36 0a 2f 2a | 20 4e 6f 20 6c 6f 63 6b |IL.76./*| No lock|
|00003670| 73 20 61 76 61 69 6c 61 | 62 6c 65 2e 20 20 2a 2f |s availa|ble. */|
|00003680| 0a 23 64 65 66 69 6e 65 | 20 45 4e 4f 4c 43 4b 09 |.#define| ENOLCK.|
|00003690| 09 37 37 0a 2f 2a 20 46 | 75 6e 63 74 69 6f 6e 20 |.77./* F|unction |
|000036a0| 6e 6f 74 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 2e |not impl|emented.|
|000036b0| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 4e 4f | */.#de|fine ENO|
|000036c0| 53 59 53 09 09 37 38 0a | 2f 2a 20 49 6e 61 70 70 |SYS..78.|/* Inapp|
|000036d0| 72 6f 70 72 69 61 74 65 | 20 66 69 6c 65 20 74 79 |ropriate| file ty|
|000036e0| 70 65 20 6f 72 20 66 6f | 72 6d 61 74 2e 20 20 2a |pe or fo|rmat. *|
|000036f0| 2f 0a 23 64 65 66 69 6e | 65 20 45 46 54 59 50 45 |/.#defin|e EFTYPE|
|00003700| 09 09 37 39 0a 2f 2a 20 | 41 75 74 68 65 6e 74 69 |..79./* |Authenti|
|00003710| 63 61 74 69 6f 6e 20 65 | 72 72 6f 72 2e 20 20 2a |cation e|rror. *|
|00003720| 2f 0a 23 64 65 66 69 6e | 65 20 45 41 55 54 48 09 |/.#defin|e EAUTH.|
|00003730| 09 38 30 0a 2f 2a 20 4e | 65 65 64 20 61 75 74 68 |.80./* N|eed auth|
|00003740| 65 6e 74 69 63 61 74 6f | 72 2e 20 20 2a 2f 0a 23 |enticato|r. */.#|
|00003750| 64 65 66 69 6e 65 20 45 | 4e 45 45 44 41 55 54 48 |define E|NEEDAUTH|
|00003760| 09 38 31 0a 2f 2a 20 52 | 65 73 6f 75 72 63 65 20 |.81./* R|esource |
|00003770| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 75 6e 61 76 |temporar|ily unav|
|00003780| 61 69 6c 61 62 6c 65 2e | 20 20 2a 2f 0a 23 64 65 |ailable.| */.#de|
|00003790| 66 69 6e 65 20 45 41 47 | 41 49 4e 09 09 38 32 0a |fine EAG|AIN..82.|
|000037a0| 2f 2a 20 49 6e 61 70 70 | 72 6f 70 72 69 61 74 65 |/* Inapp|ropriate|
|000037b0| 20 6f 70 65 72 61 74 69 | 6f 6e 20 66 6f 72 20 62 | operati|on for b|
|000037c0| 61 63 6b 67 72 6f 75 6e | 64 20 70 72 6f 63 65 73 |ackgroun|d proces|
|000037d0| 73 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |s. */.#|define E|
|000037e0| 42 41 43 4b 47 52 4f 55 | 4e 44 09 31 30 30 0a 2f |BACKGROU|ND.100./|
|000037f0| 2a 20 54 72 61 6e 73 6c | 61 74 6f 72 20 64 69 65 |* Transl|ator die|
|00003800| 64 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |d. */.#|define E|
|00003810| 44 49 45 44 09 09 31 30 | 31 0a 2f 2a 20 3f 20 2a |DIED..10|1./* ? *|
|00003820| 2f 0a 23 64 65 66 69 6e | 65 20 45 44 09 09 31 30 |/.#defin|e ED..10|
|00003830| 32 0a 2f 2a 20 41 20 70 | 72 65 74 74 79 20 62 61 |2./* A p|retty ba|
|00003840| 64 20 65 72 72 6f 72 2e | 20 20 2a 2f 0a 23 64 65 |d error.| */.#de|
|00003850| 66 69 6e 65 20 45 47 52 | 45 47 49 4f 55 53 09 31 |fine EGR|EGIOUS.1|
|00003860| 30 33 0a 2f 2a 20 3f 20 | 2a 2f 0a 23 64 65 66 69 |03./* ? |*/.#defi|
|00003870| 6e 65 20 45 49 45 49 4f | 09 09 31 30 34 0a 2f 2a |ne EIEIO|..104./*|
|00003880| 20 47 72 61 74 75 69 74 | 6f 75 73 20 65 72 72 6f | Gratuit|ous erro|
|00003890| 72 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 45 |r. */.#|define E|
|000038a0| 47 52 41 54 55 49 54 4f | 55 53 09 31 30 35 0a 0a |GRATUITO|US.105..|
|000038b0| 2f 2a 20 45 4f 50 53 59 | 53 20 77 61 73 20 6f 72 |/* EOPSY|S was or|
|000038c0| 69 67 69 6e 61 6c 6c 79 | 20 63 61 6c 6c 65 64 20 |iginally| called |
|000038d0| 45 4f 53 20 62 75 74 20 | 74 68 69 73 20 63 61 75 |EOS but |this cau|
|000038e0| 73 65 64 20 70 72 6f 62 | 6c 65 6d 73 2e 20 20 2a |sed prob|lems. *|
|000038f0| 2f 0a 23 64 65 66 69 6e | 65 20 45 4f 50 53 59 53 |/.#defin|e EOPSYS|
|00003900| 09 09 31 30 36 0a 23 64 | 65 66 69 6e 65 20 45 53 |..106.#d|efine ES|
|00003910| 49 47 09 09 31 30 37 0a | 0a 23 64 65 66 69 6e 65 |IG..107.|.#define|
|00003920| 20 5f 5f 53 59 53 5f 4e | 45 52 52 09 31 30 37 0a | __SYS_N|ERR.107.|
|00003930| 0a 23 65 6e 64 69 66 0a | 46 69 6c 65 44 61 74 61 |.#endif.|FileData|
|00003940| 82 66 63 6e 74 6c 00 00 | 00 00 00 00 d9 15 00 00 |.fcntl..|........|
|00003950| 47 fd ff ff 7c bb 69 a1 | 03 00 62 41 2f 2a 2a 2a |G...|.i.|..bA/***|
|00003960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003980| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000039a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 20 2a 0a 20 2a 20 |********|*. *. * |
|000039b0| 24 53 6f 75 72 63 65 3a | 20 2f 75 6e 69 78 62 2f |$Source:| /unixb/|
|000039c0| 68 6f 6d 65 2f 75 6e 69 | 78 6c 69 62 2f 73 6f 75 |home/uni|xlib/sou|
|000039d0| 72 63 65 2f 75 6e 69 78 | 6c 69 62 33 37 2f 63 6c |rce/unix|lib37/cl|
|000039e0| 69 62 2f 68 2f 52 43 53 | 2f 66 63 6e 74 6c 2c 76 |ib/h/RCS|/fcntl,v|
|000039f0| 20 24 0a 20 2a 20 24 44 | 61 74 65 3a 20 31 39 39 | $. * $D|ate: 199|
|00003a00| 36 2f 31 30 2f 33 30 20 | 32 31 3a 35 38 3a 35 38 |6/10/30 |21:58:58|
|00003a10| 20 24 0a 20 2a 20 24 52 | 65 76 69 73 69 6f 6e 3a | $. * $R|evision:|
|00003a20| 20 31 2e 33 20 24 0a 20 | 2a 20 24 53 74 61 74 65 | 1.3 $. |* $State|
|00003a30| 3a 20 45 78 70 20 24 0a | 20 2a 20 24 41 75 74 68 |: Exp $.| * $Auth|
|00003a40| 6f 72 3a 20 75 6e 69 78 | 6c 69 62 20 24 0a 20 2a |or: unix|lib $. *|
|00003a50| 0a 20 2a 20 24 4c 6f 67 | 3a 20 66 63 6e 74 6c 2c |. * $Log|: fcntl,|
|00003a60| 76 20 24 0a 20 2a 20 52 | 65 76 69 73 69 6f 6e 20 |v $. * R|evision |
|00003a70| 31 2e 33 20 20 31 39 39 | 36 2f 31 30 2f 33 30 20 |1.3 199|6/10/30 |
|00003a80| 32 31 3a 35 38 3a 35 38 | 20 20 75 6e 69 78 6c 69 |21:58:58| unixli|
|00003a90| 62 0a 20 2a 20 4d 61 73 | 73 69 76 65 20 63 68 61 |b. * Mas|sive cha|
|00003aa0| 6e 67 65 73 20 6d 61 64 | 65 20 62 79 20 4e 69 63 |nges mad|e by Nic|
|00003ab0| 6b 20 42 75 72 72 65 74 | 20 61 6e 64 20 50 65 74 |k Burret| and Pet|
|00003ac0| 65 72 20 42 75 72 77 6f | 6f 64 2e 0a 20 2a 0a 20 |er Burwo|od.. *. |
|00003ad0| 2a 20 52 65 76 69 73 69 | 6f 6e 20 31 2e 32 20 20 |* Revisi|on 1.2 |
|00003ae0| 31 39 39 36 2f 30 37 2f | 32 31 20 32 32 3a 31 35 |1996/07/|21 22:15|
|00003af0| 3a 31 32 20 20 75 6e 69 | 78 6c 69 62 0a 20 2a 20 |:12 uni|xlib. * |
|00003b00| 43 4c 5f 30 30 30 31 20 | 4e 69 63 6b 20 42 75 72 |CL_0001 |Nick Bur|
|00003b10| 72 65 74 0a 20 2a 20 49 | 6d 70 72 6f 76 65 20 6d |ret. * I|mprove m|
|00003b20| 65 6d 6f 72 79 20 68 61 | 6e 64 6c 69 6e 67 2e 20 |emory ha|ndling. |
|00003b30| 52 65 6d 6f 76 65 20 43 | 2b 2b 20 6c 69 62 72 61 |Remove C|++ libra|
|00003b40| 72 79 20 69 6e 63 6f 6d | 70 61 74 69 62 69 6c 69 |ry incom|patibili|
|00003b50| 74 69 65 73 2e 0a 20 2a | 20 49 6d 70 72 6f 76 65 |ties.. *| Improve|
|00003b60| 20 66 69 6c 65 20 73 74 | 61 74 20 72 6f 75 74 69 | file st|at routi|
|00003b70| 6e 65 73 2e 0a 20 2a 0a | 20 2a 20 52 65 76 69 73 |nes.. *.| * Revis|
|00003b80| 69 6f 6e 20 31 2e 31 20 | 20 31 39 39 36 2f 30 34 |ion 1.1 | 1996/04|
|00003b90| 2f 31 39 20 32 31 3a 30 | 32 3a 35 37 20 20 73 69 |/19 21:0|2:57 si|
|00003ba0| 6d 6f 6e 0a 20 2a 20 49 | 6e 69 74 69 61 6c 20 72 |mon. * I|nitial r|
|00003bb0| 65 76 69 73 69 6f 6e 0a | 20 2a 0a 20 2a 2a 2a 2a |evision.| *. ****|
|00003bc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003be0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003c00| 2a 2a 2a 2a 2a 2a 2a 2f | 0a 0a 2f 2a 20 50 4f 53 |*******/|../* POS|
|00003c10| 49 58 20 53 74 61 6e 64 | 61 72 64 20 36 2e 35 3a |IX Stand|ard 6.5:|
|00003c20| 20 46 69 6c 65 20 43 6f | 6e 74 72 6f 6c 20 4f 70 | File Co|ntrol Op|
|00003c30| 65 72 61 74 69 6f 6e 73 | 20 3c 66 63 6e 74 6c 2e |erations| <fcntl.|
|00003c40| 68 3e 20 2a 2f 0a 0a 23 | 69 66 6e 64 65 66 20 5f |h> */..#|ifndef _|
|00003c50| 5f 46 43 4e 54 4c 5f 48 | 0a 23 64 65 66 69 6e 65 |_FCNTL_H|.#define|
|00003c60| 20 5f 5f 46 43 4e 54 4c | 5f 48 0a 0a 23 69 66 6e | __FCNTL|_H..#ifn|
|00003c70| 64 65 66 20 5f 5f 4c 49 | 42 43 5f 54 59 50 45 53 |def __LI|BC_TYPES|
|00003c80| 5f 48 0a 23 69 6e 63 6c | 75 64 65 20 3c 6c 69 62 |_H.#incl|ude <lib|
|00003c90| 63 2f 74 79 70 65 73 2e | 68 3e 0a 23 65 6e 64 69 |c/types.|h>.#endi|
|00003ca0| 66 0a 0a 23 69 66 64 65 | 66 20 5f 5f 63 70 6c 75 |f..#ifde|f __cplu|
|00003cb0| 73 70 6c 75 73 0a 65 78 | 74 65 72 6e 20 22 43 22 |splus.ex|tern "C"|
|00003cc0| 20 7b 0a 23 65 6e 64 69 | 66 0a 0a 2f 2a 20 54 68 | {.#endi|f../* Th|
|00003cd0| 65 73 65 20 66 63 6e 74 | 6c 62 69 74 73 20 61 72 |ese fcnt|lbits ar|
|00003ce0| 65 20 64 65 72 69 76 65 | 64 20 66 72 6f 6d 20 34 |e derive|d from 4|
|00003cf0| 2e 34 20 42 53 44 2e 20 | 20 2a 2f 0a 0a 23 64 65 |.4 BSD. | */..#de|
|00003d00| 66 69 6e 65 20 4f 5f 4f | 4d 41 53 4b 20 09 33 0a |fine O_O|MASK .3.|
|00003d10| 0a 2f 2a 20 46 69 6c 65 | 20 61 63 63 65 73 73 20 |./* File| access |
|00003d20| 6d 6f 64 65 73 20 66 6f | 72 20 6f 70 65 6e 20 61 |modes fo|r open a|
|00003d30| 6e 64 20 66 63 6e 74 6c | 2e 20 20 2a 2f 0a 0a 2f |nd fcntl|. */../|
|00003d40| 2a 20 4f 70 65 6e 20 66 | 6f 72 20 72 65 61 64 20 |* Open f|or read |
|00003d50| 6f 6e 6c 79 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |only. *|/.#defin|
|00003d60| 65 20 4f 5f 52 44 4f 4e | 4c 59 09 30 0a 2f 2a 20 |e O_RDON|LY.0./* |
|00003d70| 4f 70 65 6e 20 66 6f 72 | 20 77 72 69 74 65 20 6f |Open for| write o|
|00003d80| 6e 6c 79 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |nly. */|.#define|
|00003d90| 20 4f 5f 57 52 4f 4e 4c | 59 09 31 0a 2f 2a 20 4f | O_WRONL|Y.1./* O|
|00003da0| 70 65 6e 20 66 6f 72 20 | 72 65 61 64 2f 77 72 69 |pen for |read/wri|
|00003db0| 74 65 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |te. */.|#define |
|00003dc0| 4f 5f 52 44 57 52 09 09 | 32 0a 0a 2f 2a 20 42 69 |O_RDWR..|2../* Bi|
|00003dd0| 74 73 20 4f 52 27 64 20 | 69 6e 74 6f 20 74 68 65 |ts OR'd |into the|
|00003de0| 20 73 65 63 6f 6e 64 20 | 61 72 67 75 6d 65 6e 74 | second |argument|
|00003df0| 20 74 6f 20 6f 70 65 6e | 2e 20 20 2a 2f 0a 0a 2f | to open|. */../|
|00003e00| 2a 20 43 72 65 61 74 65 | 20 66 69 6c 65 20 69 66 |* Create| file if|
|00003e10| 20 69 74 20 64 6f 65 73 | 6e 27 74 20 65 78 69 73 | it does|n't exis|
|00003e20| 74 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 4f |t. */.#|define O|
|00003e30| 5f 43 52 45 41 54 20 09 | 30 78 30 32 30 30 0a 2f |_CREAT .|0x0200./|
|00003e40| 2a 20 46 61 69 6c 20 69 | 66 20 66 69 6c 65 20 61 |* Fail i|f file a|
|00003e50| 6c 72 65 61 64 79 20 65 | 78 69 73 74 73 2e 20 20 |lready e|xists. |
|00003e60| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 4f 5f 45 58 43 |*/.#defi|ne O_EXC|
|00003e70| 4c 09 09 30 78 30 38 30 | 30 0a 2f 2a 20 54 72 75 |L..0x080|0./* Tru|
|00003e80| 6e 63 61 74 65 20 66 69 | 6c 65 20 74 6f 20 7a 65 |ncate fi|le to ze|
|00003e90| 72 6f 20 6c 65 6e 67 74 | 68 2e 20 20 2a 2f 0a 23 |ro lengt|h. */.#|
|00003ea0| 64 65 66 69 6e 65 20 4f | 5f 54 52 55 4e 43 09 20 |define O|_TRUNC. |
|00003eb0| 20 20 20 09 30 78 30 34 | 30 30 0a 2f 2a 20 53 65 | .0x04|00./* Se|
|00003ec0| 6e 64 20 53 49 47 49 4f | 20 74 6f 20 6f 77 6e 65 |nd SIGIO| to owne|
|00003ed0| 72 20 77 68 65 6e 20 64 | 61 74 61 20 69 73 20 72 |r when d|ata is r|
|00003ee0| 65 61 64 79 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |eady. *|/.#defin|
|00003ef0| 65 20 4f 5f 41 53 59 4e | 43 09 09 30 78 30 30 34 |e O_ASYN|C..0x004|
|00003f00| 30 0a 2f 2a 20 53 79 6e | 63 68 72 6f 6e 6f 75 73 |0./* Syn|chronous|
|00003f10| 20 77 72 69 74 65 73 2e | 20 20 2a 2f 0a 23 64 65 | writes.| */.#de|
|00003f20| 66 69 6e 65 20 4f 5f 46 | 53 59 4e 43 09 09 30 78 |fine O_F|SYNC..0x|
|00003f30| 30 30 38 30 0a 23 64 65 | 66 69 6e 65 20 4f 5f 53 |0080.#de|fine O_S|
|00003f40| 59 4e 43 09 09 4f 5f 46 | 53 59 4e 43 0a 2f 2a 20 |YNC..O_F|SYNC./* |
|00003f50| 4f 70 65 6e 20 77 69 74 | 68 20 73 68 61 72 65 64 |Open wit|h shared|
|00003f60| 20 66 69 6c 65 20 6c 6f | 63 6b 2e 20 20 2a 2f 0a | file lo|ck. */.|
|00003f70| 23 64 65 66 69 6e 65 20 | 4f 5f 53 48 4c 4f 43 4b |#define |O_SHLOCK|
|00003f80| 09 30 78 30 30 31 30 0a | 2f 2a 20 4f 70 65 6e 20 |.0x0010.|/* Open |
|00003f90| 77 69 74 68 20 73 68 61 | 72 65 64 20 65 78 63 6c |with sha|red excl|
|00003fa0| 75 73 69 76 65 20 6c 6f | 63 6b 2e 20 20 2a 2f 0a |usive lo|ck. */.|
|00003fb0| 23 64 65 66 69 6e 65 20 | 4f 5f 45 58 4c 4f 43 4b |#define |O_EXLOCK|
|00003fc0| 09 30 78 30 30 32 30 0a | 0a 2f 2a 20 46 69 6c 65 |.0x0020.|./* File|
|00003fd0| 20 73 74 61 74 75 73 20 | 66 6c 61 67 73 20 66 6f | status |flags fo|
|00003fe0| 72 20 6f 70 65 6e 20 61 | 6e 64 20 66 63 6e 74 6c |r open a|nd fcntl|
|00003ff0| 2e 20 20 2a 2f 0a 0a 2f | 2a 20 57 72 69 74 65 73 |. */../|* Writes|
|00004000| 20 61 70 70 65 6e 64 20 | 74 6f 20 74 68 65 20 66 | append |to the f|
|00004010| 69 6c 65 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ile. */|.#define|
|00004020| 20 4f 5f 41 50 50 45 4e | 44 09 30 78 30 30 30 38 | O_APPEN|D.0x0008|
|00004030| 0a 2f 2a 20 4e 6f 6e 2d | 62 6c 6f 63 6b 69 6e 67 |./* Non-|blocking|
|00004040| 20 49 2f 4f 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e | I/O. *|/.#defin|
|00004050| 65 20 4f 5f 4e 4f 4e 42 | 4c 4f 43 4b 20 20 20 20 |e O_NONB|LOCK |
|00004060| 20 20 30 78 30 30 30 34 | 0a 23 64 65 66 69 6e 65 | 0x0004|.#define|
|00004070| 20 4f 5f 4e 44 45 4c 41 | 59 09 4f 5f 4e 4f 4e 42 | O_NDELA|Y.O_NONB|
|00004080| 4c 4f 43 4b 0a 0a 2f 2a | 20 63 6c 6f 73 65 20 6f |LOCK../*| close o|
|00004090| 6e 20 65 78 65 63 28 29 | 20 66 6c 61 67 20 2d 20 |n exec()| flag - |
|000040a0| 6d 75 73 74 20 62 65 20 | 62 69 74 20 38 20 2a 2f |must be |bit 8 */|
|000040b0| 0a 23 64 65 66 69 6e 65 | 20 4f 5f 45 58 45 43 43 |.#define| O_EXECC|
|000040c0| 4c 09 30 78 30 31 30 30 | 0a 0a 23 64 65 66 69 6e |L.0x0100|..#defin|
|000040d0| 65 20 4f 5f 42 49 4e 41 | 52 59 09 30 78 32 30 30 |e O_BINA|RY.0x200|
|000040e0| 30 0a 23 64 65 66 69 6e | 65 20 4f 5f 54 45 58 54 |0.#defin|e O_TEXT|
|000040f0| 09 09 30 78 31 30 30 30 | 0a 0a 23 64 65 66 69 6e |..0x1000|..#defin|
|00004100| 65 20 4f 5f 50 49 50 45 | 09 09 30 78 34 30 30 30 |e O_PIPE|..0x4000|
|00004110| 20 2f 2a 20 55 6e 69 78 | 4c 69 62 20 73 70 65 63 | /* Unix|Lib spec|
|00004120| 69 66 69 63 20 2a 2f 0a | 0a 2f 2a 20 4d 61 73 6b |ific */.|./* Mask|
|00004130| 20 66 6f 72 20 66 69 6c | 65 20 61 63 63 65 73 73 | for fil|e access|
|00004140| 20 6d 6f 64 65 73 2e 20 | 20 54 68 69 73 20 69 73 | modes. | This is|
|00004150| 20 73 79 73 74 65 6d 2d | 64 65 70 65 6e 64 65 6e | system-|dependen|
|00004160| 74 20 69 6e 20 63 61 73 | 65 0a 20 20 20 73 6f 6d |t in cas|e. som|
|00004170| 65 20 73 79 73 74 65 6d | 20 65 76 65 72 20 77 61 |e system| ever wa|
|00004180| 6e 74 73 20 74 6f 20 64 | 65 66 69 6e 65 20 73 6f |nts to d|efine so|
|00004190| 6d 65 20 6f 74 68 65 72 | 20 66 6c 61 76 6f 72 20 |me other| flavor |
|000041a0| 6f 66 20 61 63 63 65 73 | 73 2e 20 20 2a 2f 0a 23 |of acces|s. */.#|
|000041b0| 64 65 66 69 6e 65 09 4f | 5f 41 43 43 4d 4f 44 45 |define.O|_ACCMODE|
|000041c0| 09 28 4f 5f 52 44 4f 4e | 4c 59 7c 4f 5f 57 52 4f |.(O_RDON|LY|O_WRO|
|000041d0| 4e 4c 59 7c 4f 5f 52 44 | 57 52 29 0a 0a 0a 2f 2a |NLY|O_RD|WR).../*|
|000041e0| 20 44 75 70 6c 69 63 61 | 74 65 20 66 69 6c 65 20 | Duplica|te file |
|000041f0| 64 65 73 63 72 69 70 74 | 6f 72 2e 20 20 2a 2f 0a |descript|or. */.|
|00004200| 23 64 65 66 69 6e 65 20 | 46 5f 44 55 50 46 44 20 |#define |F_DUPFD |
|00004210| 09 30 0a 2f 2a 20 52 65 | 74 75 72 6e 20 66 69 6c |.0./* Re|turn fil|
|00004220| 65 20 64 65 73 63 72 69 | 70 74 6f 72 20 66 6c 61 |e descri|ptor fla|
|00004230| 67 73 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |gs. */.|#define |
|00004240| 46 5f 47 45 54 46 44 20 | 09 31 0a 2f 2a 20 53 65 |F_GETFD |.1./* Se|
|00004250| 74 20 66 69 6c 65 20 64 | 65 73 63 72 69 70 74 6f |t file d|escripto|
|00004260| 72 20 66 6c 61 67 73 2e | 20 20 2a 2f 0a 23 64 65 |r flags.| */.#de|
|00004270| 66 69 6e 65 20 46 5f 53 | 45 54 46 44 20 09 32 0a |fine F_S|ETFD .2.|
|00004280| 2f 2a 20 52 65 61 64 20 | 66 69 6c 65 20 73 74 61 |/* Read |file sta|
|00004290| 74 75 73 20 66 6c 61 67 | 73 2e 20 20 2a 2f 0a 23 |tus flag|s. */.#|
|000042a0| 64 65 66 69 6e 65 20 46 | 5f 47 45 54 46 4c 20 09 |define F|_GETFL .|
|000042b0| 33 0a 2f 2a 20 53 65 74 | 20 66 69 6c 65 20 73 74 |3./* Set| file st|
|000042c0| 61 74 75 73 20 66 6c 61 | 67 73 2e 20 20 2a 2f 0a |atus fla|gs. */.|
|000042d0| 23 64 65 66 69 6e 65 20 | 46 5f 53 45 54 46 4c 20 |#define |F_SETFL |
|000042e0| 09 34 0a 2f 2a 20 47 65 | 74 20 6f 77 6e 65 72 20 |.4./* Ge|t owner |
|000042f0| 28 72 65 63 65 69 76 65 | 72 20 6f 66 20 53 49 47 |(receive|r of SIG|
|00004300| 49 4f 29 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |IO). */|.#define|
|00004310| 20 46 5f 47 45 54 4f 57 | 4e 20 20 20 20 20 20 20 | F_GETOW|N |
|00004320| 20 35 0a 2f 2a 20 53 65 | 74 20 6f 77 6e 65 72 20 | 5./* Se|t owner |
|00004330| 28 72 65 63 65 69 76 65 | 72 20 6f 66 20 53 49 47 |(receive|r of SIG|
|00004340| 49 4f 29 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |IO). */|.#define|
|00004350| 20 46 5f 53 45 54 4f 57 | 4e 20 20 20 20 20 20 20 | F_SETOW|N |
|00004360| 20 36 0a 2f 2a 20 47 65 | 74 20 72 65 63 6f 72 64 | 6./* Ge|t record|
|00004370| 20 6c 6f 63 6b 69 6e 67 | 20 69 6e 66 6f 2e 20 20 | locking| info. |
|00004380| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 46 5f 47 45 54 |*/.#defi|ne F_GET|
|00004390| 4c 4b 09 20 20 20 20 20 | 20 20 20 37 0a 2f 2a 20 |LK. | 7./* |
|000043a0| 53 65 74 20 72 65 63 6f | 72 64 20 6c 6f 63 6b 69 |Set reco|rd locki|
|000043b0| 6e 67 20 69 6e 66 6f 20 | 28 6e 6f 6e 2d 62 6c 6f |ng info |(non-blo|
|000043c0| 63 6b 69 6e 67 29 2e 20 | 20 2a 2f 0a 23 64 65 66 |cking). | */.#def|
|000043d0| 69 6e 65 20 46 5f 53 45 | 54 4c 4b 09 09 38 0a 2f |ine F_SE|TLK..8./|
|000043e0| 2a 20 53 65 74 20 72 65 | 63 6f 72 64 20 6c 6f 63 |* Set re|cord loc|
|000043f0| 6b 69 6e 67 20 69 6e 66 | 6f 20 28 62 6c 6f 63 6b |king inf|o (block|
|00004400| 69 6e 67 29 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |ing). *|/.#defin|
|00004410| 65 20 46 5f 53 45 54 4c | 4b 57 09 39 0a 0a 2f 2a |e F_SETL|KW.9../*|
|00004420| 20 42 69 74 73 20 69 6e | 20 74 68 65 20 66 69 6c | Bits in| the fil|
|00004430| 65 20 73 74 61 74 75 73 | 20 66 6c 61 67 73 20 72 |e status| flags r|
|00004440| 65 74 75 72 6e 65 64 20 | 62 79 20 46 5f 47 45 54 |eturned |by F_GET|
|00004450| 46 4c 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |FL. */.|#define |
|00004460| 46 52 45 41 44 09 09 31 | 0a 23 64 65 66 69 6e 65 |FREAD..1|.#define|
|00004470| 09 46 57 52 49 54 45 09 | 09 32 0a 0a 2f 2a 20 54 |.FWRITE.|.2../* T|
|00004480| 72 61 64 69 74 69 6f 6e | 61 6c 20 42 53 44 20 6e |radition|al BSD n|
|00004490| 61 6d 65 73 20 74 68 65 | 20 4f 5f 2a 20 62 69 74 |ames the| O_* bit|
|000044a0| 73 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 46 |s. */.#|define F|
|000044b0| 41 53 59 4e 43 09 09 4f | 5f 41 53 59 4e 43 0a 23 |ASYNC..O|_ASYNC.#|
|000044c0| 64 65 66 69 6e 65 20 46 | 43 52 45 41 54 09 09 4f |define F|CREAT..O|
|000044d0| 5f 43 52 45 41 54 0a 23 | 64 65 66 69 6e 65 20 46 |_CREAT.#|define F|
|000044e0| 45 58 43 4c 09 09 4f 5f | 45 58 43 4c 0a 23 64 65 |EXCL..O_|EXCL.#de|
|000044f0| 66 69 6e 65 20 46 54 52 | 55 4e 43 09 09 4f 5f 54 |fine FTR|UNC..O_T|
|00004500| 52 55 4e 43 0a 23 64 65 | 66 69 6e 65 20 46 4e 4f |RUNC.#de|fine FNO|
|00004510| 43 54 54 59 09 09 4f 5f | 4e 4f 43 54 54 59 0a 23 |CTTY..O_|NOCTTY.#|
|00004520| 64 65 66 69 6e 65 20 46 | 46 53 59 4e 43 09 09 4f |define F|FSYNC..O|
|00004530| 5f 46 53 59 4e 43 0a 23 | 64 65 66 69 6e 65 20 46 |_FSYNC.#|define F|
|00004540| 53 59 4e 43 09 09 4f 5f | 53 59 4e 43 0a 23 64 65 |SYNC..O_|SYNC.#de|
|00004550| 66 69 6e 65 20 46 41 50 | 50 45 4e 44 09 09 4f 5f |fine FAP|PEND..O_|
|00004560| 41 50 50 45 4e 44 0a 23 | 64 65 66 69 6e 65 20 46 |APPEND.#|define F|
|00004570| 4e 4f 4e 42 4c 4f 43 4b | 09 4f 5f 4e 4f 4e 42 4c |NONBLOCK|.O_NONBL|
|00004580| 4f 43 4b 0a 23 64 65 66 | 69 6e 65 20 46 4e 44 45 |OCK.#def|ine FNDE|
|00004590| 4c 41 59 09 09 4f 5f 4e | 44 45 4c 41 59 0a 0a 0a |LAY..O_N|DELAY...|
|000045a0| 2f 2a 20 49 66 20 73 65 | 74 2c 20 63 61 75 73 65 |/* If se|t, cause|
|000045b0| 20 74 68 65 20 66 69 6c | 65 20 64 65 73 63 72 69 | the fil|e descri|
|000045c0| 70 74 6f 72 20 74 6f 20 | 62 65 20 63 6c 6f 73 65 |ptor to |be close|
|000045d0| 64 20 69 66 20 61 6e 20 | 65 78 65 63 20 66 75 6e |d if an |exec fun|
|000045e0| 63 74 69 6f 6e 0a 20 20 | 20 69 73 20 75 73 65 64 |ction. | is used|
|000045f0| 2e 20 20 49 6e 69 74 69 | 61 6c 6c 79 2c 20 73 65 |. Initi|ally, se|
|00004600| 74 20 63 6c 65 61 72 2e | 20 20 2a 2f 0a 23 64 65 |t clear.| */.#de|
|00004610| 66 69 6e 65 20 46 44 5f | 43 4c 4f 45 58 45 43 09 |fine FD_|CLOEXEC.|
|00004620| 4f 5f 45 58 45 43 43 4c | 0a 0a 2f 2a 20 54 68 65 |O_EXECCL|../* The|
|00004630| 20 73 74 72 75 63 74 75 | 72 65 20 64 65 73 63 72 | structu|re descr|
|00004640| 69 62 69 6e 67 20 61 6e | 20 61 64 76 69 73 6f 72 |ibing an| advisor|
|00004650| 79 20 6c 6f 63 6b 2e 20 | 20 54 68 69 73 20 69 73 |y lock. | This is|
|00004660| 20 74 68 65 20 74 79 70 | 65 20 6f 66 20 74 68 65 | the typ|e of the|
|00004670| 20 74 68 69 72 64 0a 20 | 20 20 61 72 67 75 6d 65 | third. | argume|
|00004680| 6e 74 20 74 6f 20 60 66 | 63 6e 74 6c 27 20 66 6f |nt to `f|cntl' fo|
|00004690| 72 20 74 68 65 20 46 5f | 47 45 54 4c 4b 2c 20 46 |r the F_|GETLK, F|
|000046a0| 5f 53 45 54 4c 4b 2c 20 | 61 6e 64 20 46 5f 53 45 |_SETLK, |and F_SE|
|000046b0| 54 4c 4b 57 20 72 65 71 | 75 65 73 74 73 2e 20 20 |TLKW req|uests. |
|000046c0| 2a 2f 0a 73 74 72 75 63 | 74 20 66 6c 6f 63 6b 0a |*/.struc|t flock.|
|000046d0| 20 20 7b 0a 20 20 20 20 | 2f 2a 20 54 79 70 65 20 | {. |/* Type |
|000046e0| 6f 66 20 6c 6f 63 6b 3a | 20 46 5f 52 44 4c 43 4b |of lock:| F_RDLCK|
|000046f0| 2c 20 46 5f 57 52 4c 43 | 4b 2c 20 6f 72 20 46 5f |, F_WRLC|K, or F_|
|00004700| 55 4e 4c 43 4b 2e 20 20 | 2a 2f 0a 20 20 20 20 73 |UNLCK. |*/. s|
|00004710| 68 6f 72 74 20 69 6e 74 | 20 6c 5f 74 79 70 65 3b |hort int| l_type;|
|00004720| 0a 20 20 20 20 2f 2a 20 | 57 68 65 72 65 20 60 6c |. /* |Where `l|
|00004730| 5f 73 74 61 72 74 27 20 | 69 73 20 72 65 6c 61 74 |_start' |is relat|
|00004740| 69 76 65 20 74 6f 20 28 | 6c 69 6b 65 20 60 6c 73 |ive to (|like `ls|
|00004750| 65 65 6b 27 29 2e 20 20 | 2a 2f 0a 20 20 20 20 73 |eek'). |*/. s|
|00004760| 68 6f 72 74 20 69 6e 74 | 20 6c 5f 77 68 65 6e 63 |hort int| l_whenc|
|00004770| 65 3b 0a 20 20 20 20 2f | 2a 20 4f 66 66 73 65 74 |e;. /|* Offset|
|00004780| 20 77 68 65 72 65 20 74 | 68 65 20 6c 6f 63 6b 20 | where t|he lock |
|00004790| 62 65 67 69 6e 73 2e 20 | 20 2a 2f 0a 20 20 20 20 |begins. | */. |
|000047a0| 5f 5f 6f 66 66 5f 74 20 | 6c 5f 73 74 61 72 74 3b |__off_t |l_start;|
|000047b0| 0a 20 20 20 20 2f 2a 20 | 53 69 7a 65 20 6f 66 20 |. /* |Size of |
|000047c0| 74 68 65 20 6c 6f 63 6b | 65 64 20 61 72 65 61 3b |the lock|ed area;|
|000047d0| 20 7a 65 72 6f 20 6d 65 | 61 6e 73 20 75 6e 74 69 | zero me|ans unti|
|000047e0| 6c 20 45 4f 46 2e 20 20 | 2a 2f 0a 20 20 20 20 5f |l EOF. |*/. _|
|000047f0| 5f 6f 66 66 5f 74 20 6c | 5f 6c 65 6e 3b 0a 20 20 |_off_t l|_len;. |
|00004800| 20 20 2f 2a 20 50 72 6f | 63 65 73 73 20 68 6f 6c | /* Pro|cess hol|
|00004810| 64 69 6e 67 20 74 68 65 | 20 6c 6f 63 6b 2e 20 20 |ding the| lock. |
|00004820| 2a 2f 0a 20 20 20 20 73 | 68 6f 72 74 20 69 6e 74 |*/. s|hort int|
|00004830| 20 6c 5f 70 69 64 3b 0a | 20 20 7d 3b 0a 0a 2f 2a | l_pid;.| };../*|
|00004840| 20 56 61 6c 75 65 73 20 | 66 6f 72 20 74 68 65 20 | Values |for the |
|00004850| 60 6c 5f 74 79 70 65 27 | 20 66 69 65 6c 64 20 6f |`l_type'| field o|
|00004860| 66 20 61 20 60 73 74 72 | 75 63 74 20 66 6c 6f 63 |f a `str|uct floc|
|00004870| 6b 27 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 09 |k'. */.|#define.|
|00004880| 46 5f 52 44 4c 43 4b 09 | 31 09 2f 2a 20 52 65 61 |F_RDLCK.|1./* Rea|
|00004890| 64 20 6c 6f 63 6b 2e 20 | 20 2a 2f 0a 23 64 65 66 |d lock. | */.#def|
|000048a0| 69 6e 65 09 46 5f 57 52 | 4c 43 4b 09 32 09 2f 2a |ine.F_WR|LCK.2./*|
|000048b0| 20 57 72 69 74 65 20 6c | 6f 63 6b 2e 20 20 2a 2f | Write l|ock. */|
|000048c0| 0a 23 64 65 66 69 6e 65 | 09 46 5f 55 4e 4c 43 4b |.#define|.F_UNLCK|
|000048d0| 09 33 09 2f 2a 20 52 65 | 6d 6f 76 65 20 6c 6f 63 |.3./* Re|move loc|
|000048e0| 6b 2e 20 20 2a 2f 0a 0a | 0a 23 69 66 6e 64 65 66 |k. */..|.#ifndef|
|000048f0| 09 52 5f 4f 4b 0a 2f 2a | 20 53 74 72 61 69 67 68 |.R_OK./*| Straigh|
|00004900| 74 20 66 72 6f 6d 20 3c | 75 6e 69 73 74 64 2e 68 |t from <|unistd.h|
|00004910| 3e 2e 20 20 2a 2f 0a 0a | 2f 2a 20 56 61 6c 75 65 |>. */..|/* Value|
|00004920| 73 20 66 6f 72 20 74 68 | 65 20 73 65 63 6f 6e 64 |s for th|e second|
|00004930| 20 61 72 67 75 6d 65 6e | 74 20 74 6f 20 61 63 63 | argumen|t to acc|
|00004940| 65 73 73 2e 0a 20 20 20 | 54 68 65 73 65 20 6d 61 |ess.. |These ma|
|00004950| 79 20 62 65 20 4f 52 27 | 64 20 74 6f 67 65 74 68 |y be OR'|d togeth|
|00004960| 65 72 2e 20 20 2a 2f 0a | 0a 2f 2a 20 54 65 73 74 |er. */.|./* Test|
|00004970| 20 66 6f 72 20 72 65 61 | 64 20 70 65 72 6d 69 73 | for rea|d permis|
|00004980| 73 69 6f 6e 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |sion. *|/.#defin|
|00004990| 65 09 52 5f 4f 4b 09 34 | 0a 2f 2a 20 54 65 73 74 |e.R_OK.4|./* Test|
|000049a0| 20 66 6f 72 20 77 72 69 | 74 65 20 70 65 72 6d 69 | for wri|te permi|
|000049b0| 73 73 69 6f 6e 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |ssion. |*/.#defi|
|000049c0| 6e 65 09 57 5f 4f 4b 09 | 32 0a 2f 2a 20 54 65 73 |ne.W_OK.|2./* Tes|
|000049d0| 74 20 66 6f 72 20 65 78 | 65 63 75 74 65 20 70 65 |t for ex|ecute pe|
|000049e0| 72 6d 69 73 73 69 6f 6e | 2e 20 20 2a 2f 0a 23 64 |rmission|. */.#d|
|000049f0| 65 66 69 6e 65 09 58 5f | 4f 4b 09 31 0a 2f 2a 20 |efine.X_|OK.1./* |
|00004a00| 54 65 73 74 20 66 6f 72 | 20 65 78 69 73 74 65 6e |Test for| existen|
|00004a10| 63 65 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 09 |ce. */.|#define.|
|00004a20| 46 5f 4f 4b 09 30 0a 23 | 65 6e 64 69 66 0a 0a 0a |F_OK.0.#|endif...|
|00004a30| 2f 2a 20 44 6f 20 74 68 | 65 20 66 69 6c 65 20 63 |/* Do th|e file c|
|00004a40| 6f 6e 74 72 6f 6c 20 6f | 70 65 72 61 74 69 6f 6e |ontrol o|peration|
|00004a50| 20 64 65 73 63 72 69 62 | 65 64 20 62 79 20 43 4d | describ|ed by CM|
|00004a60| 44 20 6f 6e 20 46 44 2e | 0a 20 20 20 54 68 65 20 |D on FD.|. The |
|00004a70| 72 65 6d 61 69 6e 69 6e | 67 20 61 72 67 75 6d 65 |remainin|g argume|
|00004a80| 6e 74 73 20 61 72 65 20 | 69 6e 74 65 72 70 72 65 |nts are |interpre|
|00004a90| 74 65 64 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |ted depe|nding on|
|00004aa0| 20 43 4d 44 2e 20 20 2a | 2f 0a 65 78 74 65 72 6e | CMD. *|/.extern|
|00004ab0| 20 69 6e 74 20 66 63 6e | 74 6c 20 28 69 6e 74 20 | int fcn|tl (int |
|00004ac0| 66 64 2c 20 69 6e 74 20 | 63 6d 64 2c 20 2e 2e 2e |fd, int |cmd, ...|
|00004ad0| 29 3b 0a 0a 2f 2a 20 4f | 70 65 6e 20 46 49 4c 45 |);../* O|pen FILE|
|00004ae0| 20 61 6e 64 20 72 65 74 | 75 72 6e 20 61 20 6e 65 | and ret|urn a ne|
|00004af0| 77 20 66 69 6c 65 20 64 | 65 73 63 72 69 70 74 6f |w file d|escripto|
|00004b00| 72 20 66 6f 72 20 69 74 | 2c 20 6f 72 20 2d 31 20 |r for it|, or -1 |
|00004b10| 6f 6e 20 65 72 72 6f 72 | 2e 0a 20 20 20 4f 46 4c |on error|.. OFL|
|00004b20| 41 47 20 64 65 74 65 72 | 6d 69 6e 65 73 20 74 68 |AG deter|mines th|
|00004b30| 65 20 74 79 70 65 20 6f | 66 20 61 63 63 65 73 73 |e type o|f access|
|00004b40| 20 75 73 65 64 2e 20 20 | 49 66 20 4f 5f 43 52 45 | used. |If O_CRE|
|00004b50| 41 54 20 69 73 20 6f 6e | 20 4f 46 4c 41 47 2c 0a |AT is on| OFLAG,.|
|00004b60| 20 20 20 74 68 65 20 74 | 68 69 72 64 20 61 72 67 | the t|hird arg|
|00004b70| 75 6d 65 6e 74 20 69 73 | 20 74 61 6b 65 6e 20 61 |ument is| taken a|
|00004b80| 73 20 61 20 60 6d 6f 64 | 65 5f 74 27 2c 20 74 68 |s a `mod|e_t', th|
|00004b90| 65 20 6d 6f 64 65 20 6f | 66 20 74 68 65 20 63 72 |e mode o|f the cr|
|00004ba0| 65 61 74 65 64 20 66 69 | 6c 65 2e 20 20 2a 2f 0a |eated fi|le. */.|
|00004bb0| 65 78 74 65 72 6e 20 69 | 6e 74 20 6f 70 65 6e 20 |extern i|nt open |
|00004bc0| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 66 69 6c |(const c|har *fil|
|00004bd0| 65 2c 20 69 6e 74 20 6f | 66 6c 61 67 2c 20 2e 2e |e, int o|flag, ..|
|00004be0| 2e 29 3b 0a 0a 2f 2a 20 | 43 72 65 61 74 65 20 61 |.);../* |Create a|
|00004bf0| 6e 64 20 6f 70 65 6e 20 | 46 49 4c 45 2c 20 77 69 |nd open |FILE, wi|
|00004c00| 74 68 20 6d 6f 64 65 20 | 4d 4f 44 45 2e 0a 20 20 |th mode |MODE.. |
|00004c10| 20 54 68 69 73 20 74 61 | 6b 65 73 20 61 6e 20 60 | This ta|kes an `|
|00004c20| 69 6e 74 27 20 4d 4f 44 | 45 20 61 72 67 75 6d 65 |int' MOD|E argume|
|00004c30| 6e 74 20 62 65 63 61 75 | 73 65 20 74 68 61 74 20 |nt becau|se that |
|00004c40| 69 73 0a 20 20 20 77 68 | 61 74 20 60 6d 6f 64 65 |is. wh|at `mode|
|00004c50| 5f 74 27 20 77 69 6c 6c | 20 62 65 20 77 69 64 65 |_t' will| be wide|
|00004c60| 6e 65 64 20 74 6f 2e 20 | 20 2a 2f 0a 65 78 74 65 |ned to. | */.exte|
|00004c70| 72 6e 20 69 6e 74 20 63 | 72 65 61 74 20 28 63 6f |rn int c|reat (co|
|00004c80| 6e 73 74 20 63 68 61 72 | 20 2a 66 69 6c 65 2c 20 |nst char| *file, |
|00004c90| 5f 5f 6d 6f 64 65 5f 74 | 20 6d 6f 64 65 29 3b 0a |__mode_t| mode);.|
|00004ca0| 0a 23 69 66 6e 64 65 66 | 20 46 5f 4c 4f 43 4b 0a |.#ifndef| F_LOCK.|
|00004cb0| 2f 2a 20 54 68 65 73 65 | 20 64 65 63 6c 61 72 61 |/* These| declara|
|00004cc0| 74 69 6f 6e 73 20 61 6c | 73 6f 20 61 70 70 65 61 |tions al|so appea|
|00004cd0| 72 20 69 6e 20 3c 75 6e | 69 73 74 64 2e 68 3e 3b |r in <un|istd.h>;|
|00004ce0| 20 62 65 20 73 75 72 65 | 20 74 6f 20 6b 65 65 70 | be sure| to keep|
|00004cf0| 20 62 6f 74 68 0a 20 20 | 20 66 69 6c 65 73 20 63 | both. | files c|
|00004d00| 6f 6e 73 69 73 74 65 6e | 74 2e 20 20 2a 2f 0a 0a |onsisten|t. */..|
|00004d10| 2f 2a 20 60 6c 6f 63 6b | 66 27 20 69 73 20 61 20 |/* `lock|f' is a |
|00004d20| 73 69 6d 70 6c 65 72 20 | 69 6e 74 65 72 66 61 63 |simpler |interfac|
|00004d30| 65 20 74 6f 20 74 68 65 | 20 6c 6f 63 6b 69 6e 67 |e to the| locking|
|00004d40| 20 66 61 63 69 6c 69 74 | 69 65 73 20 6f 66 20 60 | facilit|ies of `|
|00004d50| 66 63 6e 74 6c 27 2e 0a | 20 20 20 4c 45 4e 20 69 |fcntl'..| LEN i|
|00004d60| 73 20 61 6c 77 61 79 73 | 20 72 65 6c 61 74 69 76 |s always| relativ|
|00004d70| 65 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e to the| current|
|00004d80| 20 66 69 6c 65 20 70 6f | 73 69 74 69 6f 6e 2e 0a | file po|sition..|
|00004d90| 20 20 20 54 68 65 20 43 | 4d 44 20 61 72 67 75 6d | The C|MD argum|
|00004da0| 65 6e 74 20 69 73 20 6f | 6e 65 20 6f 66 20 74 68 |ent is o|ne of th|
|00004db0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 2e 20 20 2a 2f |e follow|ing. */|
|00004dc0| 0a 0a 23 64 65 66 69 6e | 65 20 46 5f 55 4c 4f 43 |..#defin|e F_ULOC|
|00004dd0| 4b 20 30 20 20 20 20 20 | 20 20 2f 2a 20 55 6e 6c |K 0 | /* Unl|
|00004de0| 6f 63 6b 20 61 20 70 72 | 65 76 69 6f 75 73 6c 79 |ock a pr|eviously|
|00004df0| 20 6c 6f 63 6b 65 64 20 | 72 65 67 69 6f 6e 2e 20 | locked |region. |
|00004e00| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 46 5f 4c 4f | */.#def|ine F_LO|
|00004e10| 43 4b 20 20 31 20 20 20 | 20 20 20 20 2f 2a 20 4c |CK 1 | /* L|
|00004e20| 6f 63 6b 20 61 20 72 65 | 67 69 6f 6e 20 66 6f 72 |ock a re|gion for|
|00004e30| 20 65 78 63 6c 75 73 69 | 76 65 20 75 73 65 2e 20 | exclusi|ve use. |
|00004e40| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 46 5f 54 4c | */.#def|ine F_TL|
|00004e50| 4f 43 4b 20 32 20 20 20 | 20 20 20 20 2f 2a 20 54 |OCK 2 | /* T|
|00004e60| 65 73 74 20 61 6e 64 20 | 6c 6f 63 6b 20 61 20 72 |est and |lock a r|
|00004e70| 65 67 69 6f 6e 20 66 6f | 72 20 65 78 63 6c 75 73 |egion fo|r exclus|
|00004e80| 69 76 65 20 75 73 65 2e | 20 20 2a 2f 0a 23 64 65 |ive use.| */.#de|
|00004e90| 66 69 6e 65 20 46 5f 54 | 45 53 54 20 20 33 20 20 |fine F_T|EST 3 |
|00004ea0| 20 20 20 20 20 2f 2a 20 | 54 65 73 74 20 61 20 72 | /* |Test a r|
|00004eb0| 65 67 69 6f 6e 20 66 6f | 72 20 6f 74 68 65 72 20 |egion fo|r other |
|00004ec0| 70 72 6f 63 65 73 73 65 | 73 20 6c 6f 63 6b 73 2e |processe|s locks.|
|00004ed0| 20 20 2a 2f 0a 0a 65 78 | 74 65 72 6e 20 69 6e 74 | */..ex|tern int|
|00004ee0| 20 6c 6f 63 6b 66 20 28 | 69 6e 74 20 66 64 2c 20 | lockf (|int fd, |
|00004ef0| 69 6e 74 20 63 6d 64 2c | 20 5f 5f 6f 66 66 5f 74 |int cmd,| __off_t|
|00004f00| 20 6c 65 6e 29 3b 0a 23 | 65 6e 64 69 66 0a 0a 0a | len);.#|endif...|
|00004f10| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|00004f20| 75 73 0a 09 7d 0a 23 65 | 6e 64 69 66 0a 0a 23 65 |us..}.#e|ndif..#e|
|00004f30| 6e 64 69 66 0a 46 69 6c | 65 44 61 74 61 82 66 6c |ndif.Fil|eData.fl|
|00004f40| 6f 61 74 00 00 00 00 00 | 00 cb 0e 00 00 47 ff ff |oat.....|.....G..|
|00004f50| ff aa 52 4b 6f 03 00 56 | fa 2f 2a 20 66 6c 6f 61 |..RKo..V|./* floa|
|00004f60| 74 2e 68 0a 0a 20 20 20 | 46 6f 72 20 75 73 65 20 |t.h.. |For use |
|00004f70| 77 69 74 68 20 74 68 65 | 20 47 4e 55 20 63 6f 6d |with the| GNU com|
|00004f80| 70 69 6c 65 72 73 20 61 | 6e 64 20 74 68 65 20 53 |pilers a|nd the S|
|00004f90| 68 61 72 65 64 43 4c 69 | 62 72 61 72 79 2e 0a 20 |haredCLi|brary.. |
|00004fa0| 20 20 28 63 29 20 43 6f | 70 79 72 69 67 68 74 20 | (c) Co|pyright |
|00004fb0| 31 39 39 37 2c 20 4e 69 | 63 6b 20 42 75 72 72 65 |1997, Ni|ck Burre|
|00004fc0| 74 74 2e 20 20 2a 2f 0a | 0a 23 69 66 6e 64 65 66 |tt. */.|.#ifndef|
|00004fd0| 20 5f 5f 46 4c 4f 41 54 | 5f 48 0a 23 64 65 66 69 | __FLOAT|_H.#defi|
|00004fe0| 6e 65 20 5f 5f 46 4c 4f | 41 54 5f 48 0a 0a 2f 2a |ne __FLO|AT_H../*|
|00004ff0| 20 56 61 6c 75 65 20 6f | 66 20 74 68 65 20 62 61 | Value o|f the ba|
|00005000| 73 65 2c 20 6f 72 20 72 | 61 64 69 78 2c 20 6f 66 |se, or r|adix, of|
|00005010| 20 65 78 70 6f 6e 65 6e | 74 20 72 65 70 72 65 73 | exponen|t repres|
|00005020| 65 6e 74 61 74 69 6f 6e | 2e 20 20 2a 2f 0a 23 64 |entation|. */.#d|
|00005030| 65 66 69 6e 65 20 46 4c | 54 5f 52 41 44 49 58 20 |efine FL|T_RADIX |
|00005040| 32 0a 0a 2f 2a 20 43 68 | 61 72 61 63 74 65 72 69 |2../* Ch|aracteri|
|00005050| 7a 65 73 20 74 68 65 20 | 72 6f 75 6e 64 69 6e 67 |zes the |rounding|
|00005060| 20 6d 6f 64 65 20 66 6f | 72 20 66 6c 6f 61 74 69 | mode fo|r floati|
|00005070| 6e 67 20 70 6f 69 6e 74 | 20 61 64 64 69 74 69 6f |ng point| additio|
|00005080| 6e 2e 0a 20 20 20 2d 31 | 20 3d 20 74 68 65 20 6d |n.. -1| = the m|
|00005090| 6f 64 65 20 69 73 20 69 | 6e 64 65 74 65 72 6d 69 |ode is i|ndetermi|
|000050a0| 6e 61 62 6c 65 2e 0a 20 | 20 20 30 20 3d 20 72 6f |nable.. | 0 = ro|
|000050b0| 75 6e 64 69 6e 67 20 69 | 73 20 74 6f 77 61 72 64 |unding i|s toward|
|000050c0| 73 20 7a 65 72 6f 2e 0a | 20 20 20 31 20 3d 20 72 |s zero..| 1 = r|
|000050d0| 6f 75 6e 64 69 6e 67 20 | 69 73 20 74 6f 20 74 68 |ounding |is to th|
|000050e0| 65 20 6e 65 61 72 65 73 | 74 20 6e 75 6d 62 65 72 |e neares|t number|
|000050f0| 2e 0a 20 20 20 32 20 3d | 20 72 6f 75 6e 64 69 6e |.. 2 =| roundin|
|00005100| 67 20 69 73 20 74 6f 77 | 61 72 64 73 20 70 6f 73 |g is tow|ards pos|
|00005110| 69 74 69 76 65 20 69 6e | 66 69 6e 69 74 79 2e 20 |itive in|finity. |
|00005120| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 46 4c 54 5f 52 |*/.#defi|ne FLT_R|
|00005130| 4f 55 4e 44 53 20 31 0a | 0a 2f 2a 20 4e 75 6d 62 |OUNDS 1.|./* Numb|
|00005140| 65 72 20 6f 66 20 62 61 | 73 65 2d 27 46 4c 54 5f |er of ba|se-'FLT_|
|00005150| 52 41 44 49 58 27 20 64 | 69 67 69 74 73 20 69 6e |RADIX' d|igits in|
|00005160| 20 74 68 65 20 66 6c 6f | 61 74 69 6e 67 20 70 6f | the flo|ating po|
|00005170| 69 6e 74 20 6d 61 6e 74 | 69 73 73 61 0a 20 20 20 |int mant|issa. |
|00005180| 66 6f 72 20 74 68 65 20 | 66 6c 6f 61 74 20 64 61 |for the |float da|
|00005190| 74 61 20 74 79 70 65 2e | 20 20 2a 2f 0a 23 64 65 |ta type.| */.#de|
|000051a0| 66 69 6e 65 20 46 4c 54 | 5f 4d 41 4e 54 5f 44 49 |fine FLT|_MANT_DI|
|000051b0| 47 20 32 34 0a 0a 2f 2a | 20 4e 75 6d 62 65 72 20 |G 24../*| Number |
|000051c0| 6f 66 20 62 61 73 65 2d | 27 46 4c 54 5f 52 41 44 |of base-|'FLT_RAD|
|000051d0| 49 58 27 20 64 69 67 69 | 74 73 20 69 6e 20 74 68 |IX' digi|ts in th|
|000051e0| 65 20 66 6c 6f 61 74 69 | 6e 67 20 70 6f 69 6e 74 |e floati|ng point|
|000051f0| 20 6d 61 6e 74 69 73 73 | 61 0a 20 20 20 66 6f 72 | mantiss|a. for|
|00005200| 20 74 68 65 20 64 6f 75 | 62 6c 65 20 64 61 74 61 | the dou|ble data|
|00005210| 20 74 79 70 65 2e 20 20 | 2a 2f 0a 23 64 65 66 69 | type. |*/.#defi|
|00005220| 6e 65 20 44 42 4c 5f 4d | 41 4e 54 5f 44 49 47 20 |ne DBL_M|ANT_DIG |
|00005230| 35 33 0a 0a 2f 2a 20 4e | 75 6d 62 65 72 20 6f 66 |53../* N|umber of|
|00005240| 20 62 61 73 65 2d 27 46 | 4c 54 5f 52 41 44 49 58 | base-'F|LT_RADIX|
|00005250| 27 20 64 69 67 69 74 73 | 20 69 6e 20 74 68 65 20 |' digits| in the |
|00005260| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 6d |floating| point m|
|00005270| 61 6e 74 69 73 73 61 0a | 20 20 20 66 6f 72 20 74 |antissa.| for t|
|00005280| 68 65 20 6c 6f 6e 67 20 | 64 6f 75 62 6c 65 20 64 |he long |double d|
|00005290| 61 74 61 20 74 79 70 65 | 2e 20 20 2a 2f 0a 23 64 |ata type|. */.#d|
|000052a0| 65 66 69 6e 65 20 4c 44 | 42 4c 5f 4d 41 4e 54 5f |efine LD|BL_MANT_|
|000052b0| 44 49 47 20 35 33 0a 0a | 2f 2a 20 4e 75 6d 62 65 |DIG 53..|/* Numbe|
|000052c0| 72 20 6f 66 20 64 65 63 | 69 6d 61 6c 20 64 69 67 |r of dec|imal dig|
|000052d0| 69 74 73 20 6f 66 20 70 | 72 65 63 69 73 69 6f 6e |its of p|recision|
|000052e0| 20 66 6f 72 20 74 68 65 | 20 66 6c 6f 61 74 20 64 | for the| float d|
|000052f0| 61 74 61 20 74 79 70 65 | 2e 20 20 2a 2f 0a 23 64 |ata type|. */.#d|
|00005300| 65 66 69 6e 65 20 46 4c | 54 5f 44 49 47 20 36 0a |efine FL|T_DIG 6.|
|00005310| 0a 2f 2a 20 4e 75 6d 62 | 65 72 20 6f 66 20 64 65 |./* Numb|er of de|
|00005320| 63 69 6d 61 6c 20 64 69 | 67 69 74 73 20 6f 66 20 |cimal di|gits of |
|00005330| 70 72 65 63 69 73 69 6f | 6e 20 66 6f 72 20 74 68 |precisio|n for th|
|00005340| 65 20 64 6f 75 62 6c 65 | 20 64 61 74 61 20 74 79 |e double| data ty|
|00005350| 70 65 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |pe. */.|#define |
|00005360| 44 42 4c 5f 44 49 47 20 | 31 35 0a 0a 2f 2a 20 4e |DBL_DIG |15../* N|
|00005370| 75 6d 62 65 72 20 6f 66 | 20 64 65 63 69 6d 61 6c |umber of| decimal|
|00005380| 20 64 69 67 69 74 73 20 | 6f 66 20 70 72 65 63 69 | digits |of preci|
|00005390| 73 69 6f 6e 20 66 6f 72 | 20 74 68 65 20 6c 6f 6e |sion for| the lon|
|000053a0| 67 20 64 6f 75 62 6c 65 | 20 64 61 74 61 20 74 79 |g double| data ty|
|000053b0| 70 65 2e 20 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |pe. */.|#define |
|000053c0| 4c 44 42 4c 5f 44 49 47 | 20 31 35 0a 0a 2f 2a 20 |LDBL_DIG| 15../* |
|000053d0| 53 6d 61 6c 6c 65 73 74 | 20 70 6f 73 73 69 62 6c |Smallest| possibl|
|000053e0| 65 20 65 78 70 6f 6e 65 | 6e 74 20 76 61 6c 75 65 |e expone|nt value|
|000053f0| 20 66 6f 72 20 74 79 70 | 65 20 66 6c 6f 61 74 2e | for typ|e float.|
|00005400| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 46 4c 54 | */.#de|fine FLT|
|00005410| 5f 4d 49 4e 5f 45 58 50 | 20 28 2d 31 32 35 29 0a |_MIN_EXP| (-125).|
|00005420| 0a 2f 2a 20 53 6d 61 6c | 6c 65 73 74 20 70 6f 73 |./* Smal|lest pos|
|00005430| 73 69 62 6c 65 20 65 78 | 70 6f 6e 65 6e 74 20 76 |sible ex|ponent v|
|00005440| 61 6c 75 65 20 66 6f 72 | 20 74 79 70 65 20 64 6f |alue for| type do|
|00005450| 75 62 6c 65 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |uble. *|/.#defin|
|00005460| 65 20 44 42 4c 5f 4d 49 | 4e 5f 45 58 50 20 28 2d |e DBL_MI|N_EXP (-|
|00005470| 31 30 32 31 29 0a 0a 2f | 2a 20 53 6d 61 6c 6c 65 |1021)../|* Smalle|
|00005480| 73 74 20 70 6f 73 73 69 | 62 6c 65 20 65 78 70 6f |st possi|ble expo|
|00005490| 6e 65 6e 74 20 76 61 6c | 75 65 20 66 6f 72 20 74 |nent val|ue for t|
|000054a0| 79 70 65 20 6c 6f 6e 67 | 20 64 6f 75 62 6c 65 2e |ype long| double.|
|000054b0| 20 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 4c 44 42 | */.#de|fine LDB|
|000054c0| 4c 5f 4d 49 4e 5f 45 58 | 50 20 28 2d 31 30 32 31 |L_MIN_EX|P (-1021|
|000054d0| 29 0a 0a 2f 2a 20 4d 69 | 6e 69 6d 75 6d 20 6e 65 |)../* Mi|nimum ne|
|000054e0| 67 61 74 69 76 65 20 69 | 6e 74 65 67 65 72 20 73 |gative i|nteger s|
|000054f0| 75 63 68 20 74 68 61 74 | 20 31 30 20 72 61 69 73 |uch that| 10 rais|
|00005500| 65 64 20 74 6f 20 74 68 | 69 73 20 70 6f 77 65 72 |ed to th|is power|
|00005510| 0a 20 20 20 6d 69 6e 75 | 73 20 31 20 63 61 6e 20 |. minu|s 1 can |
|00005520| 62 65 20 72 65 70 72 65 | 73 65 6e 74 65 64 20 61 |be repre|sented a|
|00005530| 73 20 61 20 6e 6f 72 6d | 61 6c 69 7a 65 64 20 66 |s a norm|alized f|
|00005540| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 0a 20 20 |loating |point. |
|00005550| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 79 70 65 20 | number |of type |
|00005560| 66 6c 6f 61 74 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |float. |*/.#defi|
|00005570| 6e 65 20 46 4c 54 5f 4d | 49 4e 5f 31 30 5f 45 58 |ne FLT_M|IN_10_EX|
|00005580| 50 20 28 2d 33 37 29 0a | 0a 2f 2a 20 4d 69 6e 69 |P (-37).|./* Mini|
|00005590| 6d 75 6d 20 6e 65 67 61 | 74 69 76 65 20 69 6e 74 |mum nega|tive int|
|000055a0| 65 67 65 72 20 73 75 63 | 68 20 74 68 61 74 20 31 |eger suc|h that 1|
|000055b0| 30 20 72 61 69 73 65 64 | 20 74 6f 20 74 68 69 73 |0 raised| to this|
|000055c0| 20 70 6f 77 65 72 0a 20 | 20 20 6d 69 6e 75 73 20 | power. | minus |
|000055d0| 31 20 63 61 6e 20 62 65 | 20 72 65 70 72 65 73 65 |1 can be| represe|
|000055e0| 6e 74 65 64 20 61 73 20 | 61 20 6e 6f 72 6d 61 6c |nted as |a normal|
|000055f0| 69 7a 65 64 20 66 6c 6f | 61 74 69 6e 67 20 70 6f |ized flo|ating po|
|00005600| 69 6e 74 0a 20 20 20 6e | 75 6d 62 65 72 20 6f 66 |int. n|umber of|
|00005610| 20 74 79 70 65 20 64 6f | 75 62 6c 65 2e 20 20 2a | type do|uble. *|
|00005620| 2f 0a 23 64 65 66 69 6e | 65 20 44 42 4c 5f 4d 49 |/.#defin|e DBL_MI|
|00005630| 4e 5f 31 30 5f 45 58 50 | 20 28 2d 33 30 37 29 0a |N_10_EXP| (-307).|
|00005640| 0a 2f 2a 20 4d 69 6e 69 | 6d 75 6d 20 6e 65 67 61 |./* Mini|mum nega|
|00005650| 74 69 76 65 20 69 6e 74 | 65 67 65 72 20 73 75 63 |tive int|eger suc|
|00005660| 68 20 74 68 61 74 20 31 | 30 20 72 61 69 73 65 64 |h that 1|0 raised|
|00005670| 20 74 6f 20 74 68 69 73 | 20 70 6f 77 65 72 0a 20 | to this| power. |
|00005680| 20 20 6d 69 6e 75 73 20 | 31 20 63 61 6e 20 62 65 | minus |1 can be|
|00005690| 20 72 65 70 72 65 73 65 | 6e 74 65 64 20 61 73 20 | represe|nted as |
|000056a0| 61 20 6e 6f 72 6d 61 6c | 69 7a 65 64 20 66 6c 6f |a normal|ized flo|
|000056b0| 61 74 69 6e 67 20 70 6f | 69 6e 74 0a 20 20 20 6e |ating po|int. n|
|000056c0| 75 6d 62 65 72 20 6f 66 | 20 74 79 70 65 20 6c 6f |umber of| type lo|
|000056d0| 6e 67 20 64 6f 75 62 6c | 65 2e 20 20 2a 2f 0a 23 |ng doubl|e. */.#|
|000056e0| 64 65 66 69 6e 65 20 4c | 44 42 4c 5f 4d 49 4e 5f |define L|DBL_MIN_|
|000056f0| 31 30 5f 45 58 50 20 28 | 2d 33 30 37 29 0a 0a 2f |10_EXP (|-307)../|
|00005700| 2a 20 4c 61 72 67 65 73 | 74 20 70 6f 73 73 69 62 |* Larges|t possib|
|00005710| 6c 65 20 65 78 70 6f 6e | 65 6e 74 20 76 61 6c 75 |le expon|ent valu|
|00005720| 65 20 66 6f 72 20 74 79 | 70 65 20 66 6c 6f 61 74 |e for ty|pe float|
|00005730| 2e 20 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 46 4c |. */.#d|efine FL|
|00005740| 54 5f 4d 41 58 5f 45 58 | 50 20 31 32 38 0a 0a 2f |T_MAX_EX|P 128../|
|00005750| 2a 20 4c 61 72 67 65 73 | 74 20 70 6f 73 73 69 62 |* Larges|t possib|
|00005760| 6c 65 20 65 78 70 6f 6e | 65 6e 74 20 76 61 6c 75 |le expon|ent valu|
|00005770| 65 20 66 6f 72 20 74 79 | 70 65 20 64 6f 75 62 6c |e for ty|pe doubl|
|00005780| 65 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 44 |e. */.#|define D|
|00005790| 42 4c 5f 4d 41 58 5f 45 | 58 50 20 31 30 32 34 0a |BL_MAX_E|XP 1024.|
|000057a0| 0a 2f 2a 20 4c 61 72 67 | 65 73 74 20 70 6f 73 73 |./* Larg|est poss|
|000057b0| 69 62 6c 65 20 65 78 70 | 6f 6e 65 6e 74 20 76 61 |ible exp|onent va|
|000057c0| 6c 75 65 20 66 6f 72 20 | 74 79 70 65 20 6c 6f 6e |lue for |type lon|
|000057d0| 67 20 64 6f 75 62 6c 65 | 2e 20 20 2a 2f 0a 23 64 |g double|. */.#d|
|000057e0| 65 66 69 6e 65 20 4c 44 | 42 4c 5f 4d 41 58 5f 45 |efine LD|BL_MAX_E|
|000057f0| 58 50 20 31 30 32 34 0a | 0a 2f 2a 20 4d 61 78 69 |XP 1024.|./* Maxi|
|00005800| 6d 75 6d 20 70 6f 73 69 | 74 69 76 65 20 69 6e 74 |mum posi|tive int|
|00005810| 65 67 65 72 20 73 75 63 | 68 20 74 68 61 74 20 31 |eger suc|h that 1|
|00005820| 30 20 72 61 69 73 65 64 | 20 74 6f 20 74 68 69 73 |0 raised| to this|
|00005830| 20 70 6f 77 65 72 0a 20 | 20 20 6d 69 6e 75 73 20 | power. | minus |
|00005840| 31 20 63 61 6e 20 62 65 | 20 72 65 70 72 65 73 65 |1 can be| represe|
|00005850| 6e 74 65 64 20 61 73 20 | 61 20 6e 6f 72 6d 61 6c |nted as |a normal|
|00005860| 69 7a 65 64 20 66 6c 6f | 61 74 69 6e 67 20 70 6f |ized flo|ating po|
|00005870| 69 6e 74 0a 20 20 20 6e | 75 6d 62 65 72 20 6f 66 |int. n|umber of|
|00005880| 20 74 79 70 65 20 6c 6f | 6e 67 20 64 6f 75 62 6c | type lo|ng doubl|
|00005890| 65 2e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 46 |e. */.#|define F|
|000058a0| 4c 54 5f 4d 41 58 5f 31 | 30 5f 45 58 50 20 33 38 |LT_MAX_1|0_EXP 38|
|000058b0| 0a 0a 2f 2a 20 4d 61 78 | 69 6d 75 6d 20 70 6f 73 |../* Max|imum pos|
|000058c0| 69 74 69 76 65 20 69 6e | 74 65 67 65 72 20 73 75 |itive in|teger su|
|000058d0| 63 68 20 74 68 61 74 20 | 31 30 20 72 61 69 73 65 |ch that |10 raise|
|000058e0| 64 20 74 6f 20 74 68 69 | 73 20 70 6f 77 65 72 0a |d to thi|s power.|
|000058f0| 20 20 20 6d 69 6e 75 73 | 20 31 20 63 61 6e 20 62 | minus| 1 can b|
|00005900| 65 20 72 65 70 72 65 73 | 65 6e 74 65 64 20 61 73 |e repres|ented as|
|00005910| 20 61 20 6e 6f 72 6d 61 | 6c 69 7a 65 64 20 66 6c | a norma|lized fl|
|00005920| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 0a 20 20 20 |oating p|oint. |
|00005930| 6e 75 6d 62 65 72 20 6f | 66 20 74 79 70 65 20 6c |number o|f type l|
|00005940| 6f 6e 67 20 64 6f 75 62 | 6c 65 2e 20 20 2a 2f 0a |ong doub|le. */.|
|00005950| 23 64 65 66 69 6e 65 20 | 44 42 4c 5f 4d 41 58 5f |#define |DBL_MAX_|
|00005960| 31 30 5f 45 58 50 20 33 | 30 38 0a 0a 2f 2a 20 4d |10_EXP 3|08../* M|
|00005970| 61 78 69 6d 75 6d 20 70 | 6f 73 69 74 69 76 65 20 |aximum p|ositive |
|00005980| 69 6e 74 65 67 65 72 20 | 73 75 63 68 20 74 68 61 |integer |such tha|
|00005990| 74 20 31 30 20 72 61 69 | 73 65 64 20 74 6f 20 74 |t 10 rai|sed to t|
|000059a0| 68 69 73 20 70 6f 77 65 | 72 0a 20 20 20 6d 69 6e |his powe|r. min|
|000059b0| 75 73 20 31 20 63 61 6e | 20 62 65 20 72 65 70 72 |us 1 can| be repr|
|000059c0| 65 73 65 6e 74 65 64 20 | 61 73 20 61 20 6e 6f 72 |esented |as a nor|
|000059d0| 6d 61 6c 69 7a 65 64 20 | 66 6c 6f 61 74 69 6e 67 |malized |floating|
|000059e0| 20 70 6f 69 6e 74 0a 20 | 20 20 6e 75 6d 62 65 72 | point. | number|
|000059f0| 20 6f 66 20 74 79 70 65 | 20 6c 6f 6e 67 20 64 6f | of type| long do|
|00005a00| 75 62 6c 65 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |uble. *|/.#defin|
|00005a10| 65 20 4c 44 42 4c 5f 4d | 41 58 5f 31 30 5f 45 58 |e LDBL_M|AX_10_EX|
|00005a20| 50 20 33 30 38 0a 0a 2f | 2a 20 4d 61 78 69 6d 75 |P 308../|* Maximu|
|00005a30| 6d 20 6e 75 6d 62 65 72 | 20 72 65 70 72 65 73 65 |m number| represe|
|00005a40| 6e 74 61 62 6c 65 20 69 | 6e 20 74 79 70 65 20 66 |ntable i|n type f|
|00005a50| 6c 6f 61 74 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |loat. *|/.#defin|
|00005a60| 65 20 46 4c 54 5f 4d 41 | 58 20 33 2e 34 30 32 38 |e FLT_MA|X 3.4028|
|00005a70| 32 33 34 37 65 2b 33 38 | 46 0a 2f 2a 20 4d 61 78 |2347e+38|F./* Max|
|00005a80| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 72 65 70 72 |imum num|ber repr|
|00005a90| 65 73 65 6e 74 61 62 6c | 65 20 69 6e 20 74 79 70 |esentabl|e in typ|
|00005aa0| 65 20 64 6f 75 62 6c 65 | 2e 20 20 2a 2f 0a 23 64 |e double|. */.#d|
|00005ab0| 65 66 69 6e 65 20 44 42 | 4c 5f 4d 41 58 20 31 2e |efine DB|L_MAX 1.|
|00005ac0| 37 39 37 36 39 33 31 33 | 34 38 36 32 33 31 35 37 |79769313|48623157|
|00005ad0| 31 65 2b 33 30 38 0a 2f | 2a 20 4d 61 78 69 6d 75 |1e+308./|* Maximu|
|00005ae0| 6d 20 6e 75 6d 62 65 72 | 20 72 65 70 72 65 73 65 |m number| represe|
|00005af0| 6e 74 61 62 6c 65 20 69 | 6e 20 74 79 70 65 20 6c |ntable i|n type l|
|00005b00| 6f 6e 67 20 64 6f 75 62 | 6c 65 2e 20 20 2a 2f 0a |ong doub|le. */.|
|00005b10| 23 64 65 66 69 6e 65 20 | 4c 44 42 4c 5f 4d 41 58 |#define |LDBL_MAX|
|00005b20| 20 31 2e 37 39 37 36 39 | 33 31 33 34 38 36 32 33 | 1.79769|31348623|
|00005b30| 31 35 37 31 65 2b 33 30 | 38 4c 0a 0a 2f 2a 20 4d |1571e+30|8L../* M|
|00005b40| 69 6e 69 6d 75 6d 20 70 | 6f 73 69 74 69 76 65 20 |inimum p|ositive |
|00005b50| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 6e |floating| point n|
|00005b60| 75 6d 62 65 72 20 6f 66 | 20 74 79 70 65 20 66 6c |umber of| type fl|
|00005b70| 6f 61 74 0a 20 20 20 73 | 75 63 68 20 74 68 61 74 |oat. s|uch that|
|00005b80| 20 27 31 2e 30 20 2b 20 | 46 4c 54 5f 45 50 53 49 | '1.0 + |FLT_EPSI|
|00005b90| 4c 4f 4e 20 21 3d 20 31 | 2e 30 27 20 69 73 20 74 |LON != 1|.0' is t|
|00005ba0| 72 75 65 2e 20 20 2a 2f | 0a 23 64 65 66 69 6e 65 |rue. */|.#define|
|00005bb0| 20 46 4c 54 5f 45 50 53 | 49 4c 4f 4e 20 31 2e 31 | FLT_EPS|ILON 1.1|
|00005bc0| 39 32 30 39 32 39 30 65 | 2d 37 46 0a 0a 2f 2a 20 |9209290e|-7F../* |
|00005bd0| 4d 69 6e 69 6d 75 6d 20 | 70 6f 73 69 74 69 76 65 |Minimum |positive|
|00005be0| 20 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 | floatin|g point |
|00005bf0| 6e 75 6d 62 65 72 20 6f | 66 20 74 79 70 65 20 64 |number o|f type d|
|00005c00| 6f 75 62 6c 65 0a 20 20 | 20 73 75 63 68 20 74 68 |ouble. | such th|
|00005c10| 61 74 20 27 31 2e 30 20 | 2b 20 44 42 4c 5f 45 50 |at '1.0 |+ DBL_EP|
|00005c20| 53 49 4c 4f 4e 20 21 3d | 20 31 2e 30 27 20 69 73 |SILON !=| 1.0' is|
|00005c30| 20 74 72 75 65 2e 20 20 | 2a 2f 0a 23 64 65 66 69 | true. |*/.#defi|
|00005c40| 6e 65 20 44 42 4c 5f 45 | 50 53 49 4c 4f 4e 20 32 |ne DBL_E|PSILON 2|
|00005c50| 2e 32 32 30 34 34 36 30 | 34 39 32 35 30 33 31 33 |.2204460|49250313|
|00005c60| 31 65 2d 31 36 0a 0a 2f | 2a 20 4d 69 6e 69 6d 75 |1e-16../|* Minimu|
|00005c70| 6d 20 70 6f 73 69 74 69 | 76 65 20 66 6c 6f 61 74 |m positi|ve float|
|00005c80| 69 6e 67 20 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing poin|t number|
|00005c90| 20 6f 66 20 74 79 70 65 | 20 6c 6f 6e 67 20 64 6f | of type| long do|
|00005ca0| 75 62 6c 65 0a 20 20 20 | 73 75 63 68 20 74 68 61 |uble. |such tha|
|00005cb0| 74 20 27 31 2e 30 20 2b | 20 44 42 4c 5f 45 50 53 |t '1.0 +| DBL_EPS|
|00005cc0| 49 4c 4f 4e 20 21 3d 20 | 31 2e 30 27 20 69 73 20 |ILON != |1.0' is |
|00005cd0| 74 72 75 65 2e 20 20 2a | 2f 0a 23 64 65 66 69 6e |true. *|/.#defin|
|00005ce0| 65 20 4c 44 42 4c 5f 45 | 50 53 49 4c 4f 4e 20 32 |e LDBL_E|PSILON 2|
|00005cf0| 2e 32 32 30 34 34 36 30 | 34 39 32 35 30 33 31 33 |.2204460|49250313|
|00005d00| 31 65 2d 31 36 4c 0a 0a | 2f 2a 20 4d 69 6e 69 6d |1e-16L..|/* Minim|
|00005d10| 75 6d 20 6e 75 6d 62 65 | 72 20 72 65 70 72 65 73 |um numbe|r repres|
|00005d20| 65 6e 74 61 62 6c 65 20 | 69 6e 20 74 79 70 65 20 |entable |in type |
|00005d30| 66 6c 6f 61 74 2e 20 20 | 2a 2f 0a 23 64 65 66 69 |float. |*/.#defi|
|00005d40| 6e 65 20 46 4c 54 5f 4d | 49 4e 20 31 2e 31 37 35 |ne FLT_M|IN 1.175|
|00005d50| 34 39 34 33 35 65 2d 33 | 38 46 0a 2f 2a 20 4d 69 |49435e-3|8F./* Mi|
|00005d60| 6e 69 6d 75 6d 20 6e 75 | 6d 62 65 72 20 72 65 70 |nimum nu|mber rep|
|00005d70| 72 65 73 65 6e 74 61 62 | 6c 65 20 69 6e 20 74 79 |resentab|le in ty|
|00005d80| 70 65 20 64 6f 75 62 6c | 65 2e 20 20 2a 2f 0a 23 |pe doubl|e. */.#|
|00005d90| 64 65 66 69 6e 65 20 44 | 42 4c 5f 4d 49 4e 20 32 |define D|BL_MIN 2|
|00005da0| 2e 32 32 35 30 37 33 38 | 35 38 35 30 37 32 30 31 |.2250738|58507201|
|00005db0| 33 38 65 2d 33 30 38 0a | 2f 2a 20 4d 69 6e 69 6d |38e-308.|/* Minim|
|00005dc0| 75 6d 20 6e 75 6d 62 65 | 72 20 72 65 70 72 65 73 |um numbe|r repres|
|00005dd0| 65 6e 74 61 62 6c 65 20 | 69 6e 20 74 79 70 65 20 |entable |in type |
|00005de0| 6c 6f 6e 67 20 64 6f 75 | 62 6c 65 2e 20 20 2a 2f |long dou|ble. */|
|00005df0| 0a 23 64 65 66 69 6e 65 | 20 4c 44 42 4c 5f 4d 49 |.#define| LDBL_MI|
|00005e00| 4e 20 32 2e 32 32 35 30 | 37 33 38 35 38 35 30 37 |N 2.2250|73858507|
|00005e10| 32 30 31 33 38 65 2d 33 | 30 38 4c 0a 0a 23 65 6e |20138e-3|08L..#en|
|00005e20| 64 69 66 0a 46 69 6c 65 | 44 61 74 61 82 6b 65 72 |dif.File|Data.ker|
|00005e30| 6e 65 6c 00 00 00 00 00 | d4 1d 00 00 47 fd ff ff |nel.....|....G...|
|00005e40| d6 bb 69 a1 03 00 f5 f7 | 2f 2a 20 6b 65 72 6e 65 |..i.....|/* kerne|
|00005e50| 6c 2e 68 0a 0a 20 20 20 | 46 6f 72 20 75 73 65 20 |l.h.. |For use |
|00005e60| 77 69 74 68 20 74 68 65 | 20 47 4e 55 20 63 6f 6d |with the| GNU com|
|00005e70| 70 69 6c 65 72 73 20 61 | 6e 64 20 74 68 65 20 53 |pilers a|nd the S|
|00005e80| 68 61 72 65 64 43 4c 69 | 62 72 61 72 79 2e 0a 20 |haredCLi|brary.. |
|00005e90| 20 20 28 63 29 20 43 6f | 70 79 72 69 67 68 74 20 | (c) Co|pyright |
|00005ea0| 31 39 39 37 2c 20 4e 69 | 63 6b 20 42 75 72 72 65 |1997, Ni|ck Burre|
|00005eb0| 74 74 2e 20 20 2a 2f 0a | 0a 23 69 66 6e 64 65 66 |tt. */.|.#ifndef|
|00005ec0| 20 5f 5f 4b 45 52 4e 45 | 4c 5f 48 0a 23 64 65 66 | __KERNE|L_H.#def|
|00005ed0| 69 6e 65 20 5f 5f 4b 45 | 52 4e 45 4c 5f 48 0a 0a |ine __KE|RNEL_H..|
|00005ee0| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|00005ef0| 75 73 0a 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0a |us.exter|n "C" {.|
|00005f00| 23 65 6e 64 69 66 0a 0a | 2f 2a 20 47 43 43 20 68 |#endif..|/* GCC h|
|00005f10| 61 73 20 76 61 72 69 6f | 75 73 20 75 73 65 66 75 |as vario|us usefu|
|00005f20| 6c 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 73 20 74 |l declar|ations t|
|00005f30| 68 61 74 20 63 61 6e 20 | 62 65 20 6d 61 64 65 20 |hat can |be made |
|00005f40| 77 69 74 68 20 74 68 65 | 0a 20 20 20 5f 5f 61 74 |with the|. __at|
|00005f50| 74 72 69 62 75 74 65 5f | 5f 20 73 79 6e 74 61 78 |tribute_|_ syntax|
|00005f60| 2e 20 20 44 69 73 61 62 | 6c 65 20 69 74 73 20 75 |. Disab|le its u|
|00005f70| 73 65 20 66 6f 72 20 6f | 74 68 65 72 20 63 6f 6d |se for o|ther com|
|00005f80| 70 69 6c 65 72 73 2e 20 | 20 2a 2f 0a 23 69 66 6e |pilers. | */.#ifn|
|00005f90| 64 65 66 20 5f 5f 47 4e | 55 43 5f 5f 0a 23 69 66 |def __GN|UC__.#if|
|00005fa0| 6e 64 65 66 20 5f 5f 61 | 74 74 72 69 62 75 74 65 |ndef __a|ttribute|
|00005fb0| 5f 5f 0a 23 64 65 66 69 | 6e 65 20 5f 5f 61 74 74 |__.#defi|ne __att|
|00005fc0| 72 69 62 75 74 65 5f 5f | 28 78 29 20 2f 2a 20 49 |ribute__|(x) /* I|
|00005fd0| 67 6e 6f 72 65 2e 20 20 | 2a 2f 0a 23 65 6e 64 69 |gnore. |*/.#endi|
|00005fe0| 66 0a 23 65 6e 64 69 66 | 0a 0a 74 79 70 65 64 65 |f.#endif|..typede|
|00005ff0| 66 20 73 74 72 75 63 74 | 0a 7b 0a 20 20 69 6e 74 |f struct|.{. int|
|00006000| 20 65 72 72 6e 75 6d 3b | 0a 20 20 63 68 61 72 20 | errnum;|. char |
|00006010| 65 72 72 6d 65 73 73 5b | 32 35 32 5d 3b 0a 7d 20 |errmess[|252];.} |
|00006020| 5f 6b 65 72 6e 65 6c 5f | 6f 73 65 72 72 6f 72 3b |_kernel_|oserror;|
|00006030| 0a 0a 2f 2a 20 53 74 61 | 63 6b 20 6d 61 6e 61 67 |../* Sta|ck manag|
|00006040| 65 6d 65 6e 74 20 66 75 | 6e 63 74 69 6f 6e 73 2e |ement fu|nctions.|
|00006050| 20 20 2a 2f 0a 0a 74 79 | 70 65 64 65 66 20 73 74 | */..ty|pedef st|
|00006060| 72 75 63 74 20 73 74 61 | 63 6b 5f 63 68 75 6e 6b |ruct sta|ck_chunk|
|00006070| 0a 7b 0a 20 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |.{. uns|igned lo|
|00006080| 6e 67 20 73 63 5f 6d 61 | 72 6b 3b 20 2f 2a 20 3d |ng sc_ma|rk; /* =|
|00006090| 3d 20 30 78 66 36 30 36 | 39 30 66 66 20 2a 2f 0a |= 0xf606|90ff */.|
|000060a0| 20 20 73 74 72 75 63 74 | 20 73 74 61 63 6b 5f 63 | struct| stack_c|
|000060b0| 68 75 6e 6b 20 2a 73 63 | 5f 6e 65 78 74 2c 20 2a |hunk *sc|_next, *|
|000060c0| 73 63 5f 70 72 65 76 3b | 0a 20 20 75 6e 73 69 67 |sc_prev;|. unsig|
|000060d0| 6e 65 64 20 6c 6f 6e 67 | 20 73 63 5f 73 69 7a 65 |ned long| sc_size|
|000060e0| 3b 0a 20 20 69 6e 74 20 | 28 2a 73 63 5f 64 65 61 |;. int |(*sc_dea|
|000060f0| 6c 6c 6f 63 61 74 65 29 | 28 29 3b 0a 7d 20 5f 6b |llocate)|();.} _k|
|00006100| 65 72 6e 65 6c 5f 73 74 | 61 63 6b 5f 63 68 75 6e |ernel_st|ack_chun|
|00006110| 6b 3b 0a 0a 2f 2a 20 52 | 65 74 75 72 6e 20 61 20 |k;../* R|eturn a |
|00006120| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 63 |pointer |to the c|
|00006130| 75 72 72 65 6e 74 20 73 | 74 61 63 6b 20 63 68 75 |urrent s|tack chu|
|00006140| 6e 6b 2e 20 20 2a 2f 0a | 65 78 74 65 72 6e 20 5f |nk. */.|extern _|
|00006150| 6b 65 72 6e 65 6c 5f 73 | 74 61 63 6b 5f 63 68 75 |kernel_s|tack_chu|
|00006160| 6e 6b 20 2a 5f 6b 65 72 | 6e 65 6c 5f 63 75 72 72 |nk *_ker|nel_curr|
|00006170| 65 6e 74 5f 73 74 61 63 | 6b 5f 63 68 75 6e 6b 20 |ent_stac|k_chunk |
|00006180| 28 76 6f 69 64 29 3b 0a | 0a 74 79 70 65 64 65 66 |(void);.|.typedef|
|00006190| 20 73 74 72 75 63 74 0a | 7b 0a 20 20 69 6e 74 20 | struct.|{. int |
|000061a0| 72 34 2c 20 72 35 2c 20 | 72 36 2c 20 72 37 2c 20 |r4, r5, |r6, r7, |
|000061b0| 72 38 2c 20 72 39 3b 0a | 20 20 69 6e 74 20 66 70 |r8, r9;.| int fp|
|000061c0| 2c 20 73 70 2c 20 70 63 | 2c 20 73 6c 3b 0a 20 20 |, sp, pc|, sl;. |
|000061d0| 69 6e 74 20 66 34 5b 33 | 5d 2c 20 66 35 5b 33 5d |int f4[3|], f5[3]|
|000061e0| 2c 20 66 36 5b 33 5d 2c | 20 66 37 5b 33 5d 3b 0a |, f6[3],| f7[3];.|
|000061f0| 7d 20 5f 6b 65 72 6e 65 | 6c 5f 75 6e 77 69 6e 64 |} _kerne|l_unwind|
|00006200| 62 6c 6f 63 6b 3b 0a 0a | 2f 2a 20 55 6e 77 69 6e |block;..|/* Unwin|
|00006210| 64 20 74 68 65 20 63 61 | 6c 6c 20 73 74 61 63 6b |d the ca|ll stack|
|00006220| 20 6f 6e 65 20 6c 65 76 | 65 6c 2e 20 52 65 74 75 | one lev|el. Retu|
|00006230| 72 6e 3a 20 3e 30 20 6f | 6e 20 73 75 63 63 65 73 |rn: >0 o|n succes|
|00006240| 73 2c 0a 20 20 20 30 20 | 69 66 20 73 74 61 63 6b |s,. 0 |if stack|
|00006250| 20 65 6e 64 20 68 61 73 | 20 62 65 65 6e 20 72 65 | end has| been re|
|00006260| 61 63 68 65 64 2c 20 3c | 30 20 61 6e 79 20 6f 74 |ached, <|0 any ot|
|00006270| 68 65 72 20 66 61 69 6c | 75 72 65 73 2e 20 20 2a |her fail|ures. *|
|00006280| 2f 0a 65 78 74 65 72 6e | 20 69 6e 74 20 5f 6b 65 |/.extern| int _ke|
|00006290| 72 6e 65 6c 5f 75 6e 77 | 69 6e 64 28 5f 6b 65 72 |rnel_unw|ind(_ker|
|000062a0| 6e 65 6c 5f 75 6e 77 69 | 6e 64 62 6c 6f 63 6b 20 |nel_unwi|ndblock |
|000062b0| 2a 69 6e 6f 75 74 2c 20 | 63 68 61 72 20 2a 2a 6c |*inout, |char **l|
|000062c0| 61 6e 67 75 61 67 65 29 | 3b 0a 0a 2f 2a 20 50 72 |anguage)|;../* Pr|
|000062d0| 6f 67 72 61 6d 20 65 6e | 76 69 72 6f 6e 6d 65 6e |ogram en|vironmen|
|000062e0| 74 20 66 75 6e 63 74 69 | 6f 6e 73 2e 20 20 2a 2f |t functi|ons. */|
|000062f0| 0a 0a 2f 2a 20 52 65 74 | 75 72 6e 20 61 20 70 6f |../* Ret|urn a po|
|00006300| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 6e 61 6d |inter to| the nam|
|00006310| 65 20 6f 66 20 74 68 65 | 20 66 75 6e 63 74 69 6f |e of the| functio|
|00006320| 6e 20 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 73 20 |n that c|ontains |
|00006330| 74 68 65 0a 20 20 20 61 | 64 64 72 65 73 73 20 27 |the. a|ddress '|
|00006340| 70 63 27 20 28 6f 72 20 | 7a 65 72 6f 20 69 66 20 |pc' (or |zero if |
|00006350| 6e 6f 20 6e 61 6d 65 20 | 63 61 6e 20 62 65 20 66 |no name |can be f|
|00006360| 6f 75 6e 64 29 2e 20 20 | 2a 2f 0a 65 78 74 65 72 |ound). |*/.exter|
|00006370| 6e 20 63 68 61 72 20 2a | 5f 6b 65 72 6e 65 6c 5f |n char *|_kernel_|
|00006380| 70 72 6f 63 6e 61 6d 65 | 20 28 69 6e 74 20 70 63 |procname| (int pc|
|00006390| 29 3b 0a 0a 2f 2a 20 52 | 65 74 75 72 6e 20 61 20 |);../* R|eturn a |
|000063a0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 6e |pointer |to the n|
|000063b0| 61 6d 65 20 6f 66 20 74 | 68 65 20 6c 61 6e 67 75 |ame of t|he langu|
|000063c0| 61 67 65 20 74 68 61 74 | 20 74 68 65 20 61 64 64 |age that| the add|
|000063d0| 72 65 73 73 0a 20 20 20 | 27 70 63 27 20 6c 69 65 |ress. |'pc' lie|
|000063e0| 73 20 77 69 74 68 69 6e | 2e 20 5a 65 72 6f 20 69 |s within|. Zero i|
|000063f0| 66 20 74 68 65 20 6c 61 | 6e 67 75 61 67 65 20 69 |f the la|nguage i|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.