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: Tape Archive
(archive/tar).
You can browse this item here: gdb-4
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory gdb-4.16/, mode 777 , uid 34562 , gid 1752 , size 0 , seconds 6137061011, user fnf, group cygnus
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU), owner user name: "/"
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 67 64 62 2d 34 2e 31 36 | 2f 00 00 00 00 00 00 00 |gdb-4.16|/.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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| 00 00 00 00 20 20 20 37 | 37 37 20 00 20 33 34 35 |.... 7|77 . 345|
|00000070| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 31 33 37 30 36 31 | 0 | 6137061|
|00000090| 30 31 31 20 20 31 30 34 | 35 33 00 20 35 00 00 00 |011 104|53. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 63 79 67 6e 75 73 00 |........|.cygnus.|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 67 64 62 2d 34 2e 31 36 | 2f 67 64 62 2f 00 00 00 |gdb-4.16|/gdb/...|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 37 | 37 37 20 00 20 33 34 35 |.... 7|77 . 345|
|00000270| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 36 31 33 37 30 36 31 | 0 | 6137061|
|00000290| 30 30 30 20 20 31 31 32 | 30 35 00 20 35 00 00 00 |000 112|05. 5...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 63 79 67 6e 75 73 00 |........|.cygnus.|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 67 64 62 2d 34 2e 31 36 | 2f 67 64 62 2f 32 39 6b |gdb-4.16|/gdb/29k|
|00000410| 2d 73 68 61 72 65 2f 00 | 00 00 00 00 00 00 00 00 |-share/.|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 37 | 37 37 20 00 20 33 34 35 |.... 7|77 . 345|
|00000470| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00000480| 20 20 20 20 20 20 30 20 | 20 36 31 33 37 30 35 36 | 0 | 6137056|
|00000490| 34 30 30 20 20 31 32 37 | 32 32 00 20 35 00 00 00 |400 127|22. 5...|
|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 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|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 63 79 67 6e 75 73 00 |........|.cygnus.|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 67 64 62 2d 34 2e 31 36 | 2f 67 64 62 2f 32 39 6b |gdb-4.16|/gdb/29k|
|00000610| 2d 73 68 61 72 65 2f 75 | 64 69 2f 00 00 00 00 00 |-share/u|di/.....|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 20 20 20 37 | 37 37 20 00 20 33 34 35 |.... 7|77 . 345|
|00000670| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00000680| 20 20 20 20 20 20 30 20 | 20 36 31 33 37 30 35 36 | 0 | 6137056|
|00000690| 34 30 32 20 20 31 33 35 | 30 35 00 20 35 00 00 00 |402 135|05. 5...|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 63 79 67 6e 75 73 00 |........|.cygnus.|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 67 64 62 2d 34 2e 31 36 | 2f 67 64 62 2f 32 39 6b |gdb-4.16|/gdb/29k|
|00000810| 2d 73 68 61 72 65 2f 75 | 64 69 2f 75 64 69 32 67 |-share/u|di/udi2g|
|00000820| 6f 33 32 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |o32.c...|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 36 36 20 00 20 33 34 35 |.... 6|66 . 345|
|00000870| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00000880| 20 20 32 37 30 33 36 20 | 20 35 34 36 36 30 31 36 | 27036 | 5466016|
|00000890| 33 37 30 20 20 31 35 33 | 32 33 00 20 30 00 00 00 |370 153|23. 0...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 63 79 67 6e 75 73 00 |........|.cygnus.|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 2f 2a 0a 0a 49 6e 74 65 | 72 66 61 63 65 20 66 72 |/*..Inte|rface fr|
|00000a10| 6f 6d 20 55 44 49 20 63 | 61 6c 6c 73 20 69 6e 20 |om UDI c|alls in |
|00000a20| 33 32 2d 62 69 74 20 6d | 6f 64 65 20 74 6f 20 67 |32-bit m|ode to g|
|00000a30| 6f 33 32 20 69 6e 20 31 | 36 2d 62 69 74 20 6d 6f |o32 in 1|6-bit mo|
|00000a40| 64 65 2e 20 0a 43 6f 6d | 6d 75 6e 69 63 61 74 69 |de. .Com|municati|
|00000a50| 6f 6e 20 69 73 20 64 6f | 6e 65 20 74 68 72 6f 75 |on is do|ne throu|
|00000a60| 67 68 20 61 20 73 69 6e | 67 6c 65 20 69 6e 74 65 |gh a sin|gle inte|
|00000a70| 72 72 75 70 74 20 76 65 | 63 74 6f 72 2c 20 77 68 |rrupt ve|ctor, wh|
|00000a80| 69 63 68 20 70 61 73 73 | 65 73 0a 64 61 74 61 20 |ich pass|es.data |
|00000a90| 74 68 72 6f 75 67 68 20 | 74 77 6f 20 6c 69 6e 65 |through |two line|
|00000aa0| 61 72 20 62 75 66 66 65 | 72 73 2e 20 0a 0a 43 61 |ar buffe|rs. ..Ca|
|00000ab0| 6c 6c 3a 0a 09 41 48 20 | 20 3d 20 30 78 66 65 0a |ll:..AH | = 0xfe.|
|00000ac0| 09 41 4c 20 20 3d 20 55 | 44 49 20 66 75 6e 63 74 |.AL = U|DI funct|
|00000ad0| 69 6f 6e 20 6e 75 6d 62 | 65 72 0a 09 45 43 58 20 |ion numb|er..ECX |
|00000ae0| 3d 20 49 4e 20 6c 65 6e | 67 74 68 0a 09 45 53 49 |= IN len|gth..ESI|
|00000af0| 20 3d 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 49 4e | = point|er to IN|
|00000b00| 20 62 75 66 66 65 72 0a | 09 45 44 49 20 3d 20 70 | buffer.|.EDI = p|
|00000b10| 6f 69 6e 74 65 72 20 74 | 6f 20 4f 55 54 20 62 75 |ointer t|o OUT bu|
|00000b20| 66 66 65 72 0a 0a 52 65 | 74 75 72 6e 3a 0a 09 45 |ffer..Re|turn:..E|
|00000b30| 41 58 20 3d 20 72 65 74 | 75 72 6e 20 76 61 6c 75 |AX = ret|urn valu|
|00000b40| 65 20 6f 66 20 55 44 49 | 20 66 75 6e 63 74 69 6f |e of UDI| functio|
|00000b50| 6e 0a 0a 56 65 63 74 6f | 72 3a 0a 09 30 78 32 31 |n..Vecto|r:..0x21|
|00000b60| 0a 0a 2a 2f 0a 23 69 66 | 64 65 66 20 5f 5f 47 4f |..*/.#if|def __GO|
|00000b70| 33 32 5f 5f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |32__..#i|nclude <|
|00000b80| 73 74 64 6c 69 62 2e 68 | 3e 0a 23 69 6e 63 6c 75 |stdlib.h|>.#inclu|
|00000b90| 64 65 20 22 75 64 69 70 | 72 6f 63 2e 68 22 0a 23 |de "udip|roc.h".#|
|00000ba0| 69 6e 63 6c 75 64 65 20 | 22 75 64 69 73 6f 63 2e |include |"udisoc.|
|00000bb0| 68 22 0a 0a 63 68 61 72 | 20 64 66 65 5f 65 72 72 |h"..char| dfe_err|
|00000bc0| 6d 73 67 5b 35 30 30 5d | 3b 0a 0a 73 74 61 74 69 |msg[500]|;..stati|
|00000bd0| 63 20 63 68 61 72 20 69 | 6e 5f 62 75 66 66 65 72 |c char i|n_buffer|
|00000be0| 5b 34 30 39 36 5d 3b 0a | 73 74 61 74 69 63 20 63 |[4096];.|static c|
|00000bf0| 68 61 72 20 6f 75 74 5f | 62 75 66 66 65 72 5b 34 |har out_|buffer[4|
|00000c00| 30 39 36 5d 3b 0a 73 74 | 61 74 69 63 20 63 68 61 |096];.st|atic cha|
|00000c10| 72 20 2a 69 6e 5f 70 74 | 72 3b 0a 73 74 61 74 69 |r *in_pt|r;.stati|
|00000c20| 63 20 63 68 61 72 20 2a | 6f 75 74 5f 70 74 72 3b |c char *|out_ptr;|
|00000c30| 0a 0a 23 64 65 66 69 6e | 65 20 49 4e 5f 49 4e 49 |..#defin|e IN_INI|
|00000c40| 54 28 29 09 09 69 6e 5f | 70 74 72 20 3d 20 69 6e |T()..in_|ptr = in|
|00000c50| 5f 62 75 66 66 65 72 0a | 23 64 65 66 69 6e 65 20 |_buffer.|#define |
|00000c60| 49 4e 5f 56 41 4c 28 74 | 2c 76 29 09 09 2a 28 28 |IN_VAL(t|,v)..*((|
|00000c70| 74 20 2a 29 69 6e 5f 70 | 74 72 29 2b 2b 20 3d 20 |t *)in_p|tr)++ = |
|00000c80| 76 0a 23 64 65 66 69 6e | 65 20 49 4e 5f 44 41 54 |v.#defin|e IN_DAT|
|00000c90| 41 28 70 74 72 2c 20 63 | 6e 74 29 09 6d 65 6d 63 |A(ptr, c|nt).memc|
|00000ca0| 70 79 28 69 6e 5f 70 74 | 72 2c 20 70 74 72 2c 20 |py(in_pt|r, ptr, |
|00000cb0| 63 6e 74 29 2c 20 69 6e | 5f 70 74 72 20 2b 3d 20 |cnt), in|_ptr += |
|00000cc0| 63 6e 74 0a 0a 23 64 65 | 66 69 6e 65 20 4f 55 54 |cnt..#de|fine OUT|
|00000cd0| 5f 49 4e 49 54 28 29 09 | 09 6f 75 74 5f 70 74 72 |_INIT().|.out_ptr|
|00000ce0| 20 3d 20 6f 75 74 5f 62 | 75 66 66 65 72 0a 23 64 | = out_b|uffer.#d|
|00000cf0| 65 66 69 6e 65 20 4f 55 | 54 5f 56 41 4c 28 74 29 |efine OU|T_VAL(t)|
|00000d00| 09 09 28 2a 28 28 74 20 | 2a 29 6f 75 74 5f 70 74 |..(*((t |*)out_pt|
|00000d10| 72 29 2b 2b 29 0a 23 64 | 65 66 69 6e 65 20 4f 55 |r)++).#d|efine OU|
|00000d20| 54 5f 44 41 54 41 28 70 | 74 72 2c 20 63 6e 74 29 |T_DATA(p|tr, cnt)|
|00000d30| 09 6d 65 6d 63 70 79 28 | 70 74 72 2c 20 6f 75 74 |.memcpy(|ptr, out|
|00000d40| 5f 70 74 72 2c 20 63 6e | 74 29 2c 20 6f 75 74 5f |_ptr, cn|t), out_|
|00000d50| 70 74 72 20 2b 3d 20 63 | 6e 74 0a 0a 73 74 61 74 |ptr += c|nt..stat|
|00000d60| 69 63 20 69 6e 74 20 44 | 4f 5f 43 41 4c 4c 28 69 |ic int D|O_CALL(i|
|00000d70| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 29 0a 7b 0a 20 |nt funct|ion).{. |
|00000d80| 20 61 73 6d 28 22 70 75 | 73 68 6c 20 25 65 73 69 | asm("pu|shl %esi|
|00000d90| 22 29 3b 0a 20 20 61 73 | 6d 28 22 70 75 73 68 6c |");. as|m("pushl|
|00000da0| 20 25 65 64 69 22 29 3b | 0a 20 20 61 73 6d 28 22 | %edi");|. asm("|
|00000db0| 6d 6f 76 62 20 25 30 2c | 20 25 25 61 6c 22 20 3a |movb %0,| %%al" :|
|00000dc0| 20 3a 20 22 67 22 20 28 | 66 75 6e 63 74 69 6f 6e | : "g" (|function|
|00000dd0| 29 29 3b 0a 20 20 61 73 | 6d 28 22 6d 6f 76 6c 20 |));. as|m("movl |
|00000de0| 5f 69 6e 5f 70 74 72 2c | 20 25 65 63 78 22 29 3b |_in_ptr,| %ecx");|
|00000df0| 0a 20 20 61 73 6d 28 22 | 6d 6f 76 6c 20 24 5f 69 |. asm("|movl $_i|
|00000e00| 6e 5f 62 75 66 66 65 72 | 2c 20 25 65 73 69 22 29 |n_buffer|, %esi")|
|00000e10| 3b 0a 20 20 61 73 6d 28 | 22 73 75 62 6c 20 25 65 |;. asm(|"subl %e|
|00000e20| 73 69 2c 20 25 65 63 78 | 22 29 3b 0a 20 20 61 73 |si, %ecx|");. as|
|00000e30| 6d 28 22 6d 6f 76 6c 20 | 24 5f 6f 75 74 5f 62 75 |m("movl |$_out_bu|
|00000e40| 66 66 65 72 2c 20 25 65 | 64 69 22 29 3b 0a 20 20 |ffer, %e|di");. |
|00000e50| 61 73 6d 28 22 6d 6f 76 | 62 20 24 30 78 66 65 2c |asm("mov|b $0xfe,|
|00000e60| 20 25 61 68 22 29 3b 0a | 20 20 61 73 6d 28 22 69 | %ah");.| asm("i|
|00000e70| 6e 74 20 24 30 78 32 31 | 22 29 3b 0a 20 20 61 73 |nt $0x21|");. as|
|00000e80| 6d 28 22 70 6f 70 6c 20 | 25 65 64 69 22 29 3b 0a |m("popl |%edi");.|
|00000e90| 20 20 61 73 6d 28 22 70 | 6f 70 6c 20 25 65 73 69 | asm("p|opl %esi|
|00000ea0| 22 29 3b 0a 7d 0a 0a 2f | 2a 2d 2d 2d 2d 2d 2d 2d |");.}../|*-------|
|00000eb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ec0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ed0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ee0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |--------|-------*|
|00000ef0| 2f 0a 0a 23 69 66 64 65 | 66 20 54 45 53 54 5f 55 |/..#ifde|f TEST_U|
|00000f00| 44 49 0a 69 6e 74 20 6d | 61 69 6e 28 29 0a 7b 0a |DI.int m|ain().{.|
|00000f10| 20 20 69 6e 74 20 72 3b | 0a 20 20 6c 6f 6e 67 20 | int r;|. long |
|00000f20| 70 32 3b 0a 20 20 73 68 | 6f 72 74 20 70 31 3b 0a |p2;. sh|ort p1;.|
|00000f30| 20 20 49 4e 5f 49 4e 49 | 54 28 29 3b 0a 20 20 49 | IN_INI|T();. I|
|00000f40| 4e 5f 56 41 4c 28 6c 6f | 6e 67 2c 20 31 31 31 31 |N_VAL(lo|ng, 1111|
|00000f50| 31 31 31 31 29 3b 0a 20 | 20 49 4e 5f 56 41 4c 28 |1111);. | IN_VAL(|
|00000f60| 73 68 6f 72 74 2c 20 32 | 32 32 32 29 3b 0a 20 20 |short, 2|222);. |
|00000f70| 49 4e 5f 44 41 54 41 28 | 22 48 65 6c 6c 6f 2c 20 |IN_DATA(|"Hello, |
|00000f80| 77 6f 72 6c 64 5c 6e 22 | 2c 20 31 37 29 3b 0a 0a |world\n"|, 17);..|
|00000f90| 20 20 72 20 3d 20 44 4f | 5f 43 41 4c 4c 28 34 32 | r = DO|_CALL(42|
|00000fa0| 29 3b 0a 0a 20 20 4f 55 | 54 5f 49 4e 49 54 28 29 |);.. OU|T_INIT()|
|00000fb0| 3b 0a 20 20 70 31 20 3d | 20 4f 55 54 5f 56 41 4c |;. p1 =| OUT_VAL|
|00000fc0| 28 73 68 6f 72 74 29 3b | 0a 20 20 70 32 20 3d 20 |(short);|. p2 = |
|00000fd0| 4f 55 54 5f 56 41 4c 28 | 6c 6f 6e 67 29 3b 0a 20 |OUT_VAL(|long);. |
|00000fe0| 20 70 72 69 6e 74 66 28 | 22 6d 61 69 6e 3a 20 70 | printf(|"main: p|
|00000ff0| 31 3d 25 64 20 70 32 3d | 25 64 20 72 76 3d 25 64 |1=%d p2=|%d rv=%d|
|00001000| 5c 6e 22 2c 20 70 31 2c | 20 70 32 2c 20 72 29 3b |\n", p1,| p2, r);|
|00001010| 0a 20 20 72 65 74 75 72 | 6e 20 72 3b 0a 7d 0a 23 |. retur|n r;.}.#|
|00001020| 65 6e 64 69 66 0a 0a 2f | 2a 2d 2d 2d 2d 2d 2d 2d |endif../|*-------|
|00001030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |--------|-------*|
|00001070| 2f 0a 0a 75 6e 73 75 70 | 70 6f 72 74 65 64 28 63 |/..unsup|ported(c|
|00001080| 68 61 72 20 2a 73 29 0a | 7b 0a 20 20 70 72 69 6e |har *s).|{. prin|
|00001090| 74 66 28 22 75 6e 73 75 | 70 70 6f 72 74 65 64 20 |tf("unsu|pported |
|000010a0| 55 44 49 20 68 6f 73 74 | 20 63 61 6c 6c 20 25 73 |UDI host| call %s|
|000010b0| 5c 6e 22 2c 20 73 29 3b | 0a 20 20 61 62 6f 72 74 |\n", s);|. abort|
|000010c0| 28 29 3b 0a 7d 0a 0a 55 | 44 49 45 72 72 6f 72 20 |();.}..U|DIError |
|000010d0| 55 44 49 43 6f 6e 6e 65 | 63 74 20 28 0a 20 20 63 |UDIConne|ct (. c|
|000010e0| 68 61 72 09 09 2a 43 6f | 6e 66 69 67 75 72 61 74 |har..*Co|nfigurat|
|000010f0| 69 6f 6e 2c 09 09 2f 2a | 20 49 6e 20 2a 2f 0a 20 |ion,../*| In */. |
|00001100| 20 55 44 49 53 65 73 73 | 69 6f 6e 49 64 09 2a 53 | UDISess|ionId.*S|
|00001110| 65 73 73 69 6f 6e 09 09 | 2f 2a 20 4f 75 74 20 2a |ession..|/* Out *|
|00001120| 2f 0a 20 20 29 0a 7b 0a | 20 20 69 6e 74 20 72 3b |/. ).{.| int r;|
|00001130| 0a 20 20 6f 75 74 5f 62 | 75 66 66 65 72 5b 30 5d |. out_b|uffer[0]|
|00001140| 20 3d 20 30 3b 20 2f 2a | 20 44 4a 20 2d 20 74 65 | = 0; /*| DJ - te|
|00001150| 73 74 20 2a 2f 0a 20 20 | 49 4e 5f 49 4e 49 54 28 |st */. |IN_INIT(|
|00001160| 29 3b 0a 20 20 49 4e 5f | 44 41 54 41 28 43 6f 6e |);. IN_|DATA(Con|
|00001170| 66 69 67 75 72 61 74 69 | 6f 6e 2c 20 73 74 72 6c |figurati|on, strl|
|00001180| 65 6e 28 43 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |en(Confi|guration|
|00001190| 29 2b 31 29 3b 0a 20 20 | 0a 20 20 72 20 3d 20 44 |)+1);. |. r = D|
|000011a0| 4f 5f 43 41 4c 4c 28 55 | 44 49 43 6f 6e 6e 65 63 |O_CALL(U|DIConnec|
|000011b0| 74 5f 63 29 3b 0a 0a 20 | 20 4f 55 54 5f 49 4e 49 |t_c);.. | OUT_INI|
|000011c0| 54 28 29 3b 20 20 0a 20 | 20 2a 53 65 73 73 69 6f |T(); . | *Sessio|
|000011d0| 6e 20 3d 20 4f 55 54 5f | 56 41 4c 28 55 44 49 53 |n = OUT_|VAL(UDIS|
|000011e0| 65 73 73 69 6f 6e 49 64 | 29 3b 0a 20 20 72 65 74 |essionId|);. ret|
|000011f0| 75 72 6e 20 72 3b 0a 7d | 0a 0a 55 44 49 45 72 72 |urn r;.}|..UDIErr|
|00001200| 6f 72 20 55 44 49 44 69 | 73 63 6f 6e 6e 65 63 74 |or UDIDi|sconnect|
|00001210| 20 28 0a 20 20 55 44 49 | 53 65 73 73 69 6f 6e 49 | (. UDI|SessionI|
|00001220| 64 09 53 65 73 73 69 6f | 6e 2c 09 09 2f 2a 20 49 |d.Sessio|n,../* I|
|00001230| 6e 20 2a 2f 0a 20 20 55 | 44 49 42 6f 6f 6c 09 54 |n */. U|DIBool.T|
|00001240| 65 72 6d 69 6e 61 74 65 | 09 09 2f 2a 20 49 6e 20 |erminate|../* In |
|00001250| 2a 2f 0a 20 20 29 0a 7b | 0a 20 20 69 6e 74 20 72 |*/. ).{|. int r|
|00001260| 3b 0a 20 20 49 4e 5f 49 | 4e 49 54 28 29 3b 0a 20 |;. IN_I|NIT();. |
|00001270| 20 49 4e 5f 56 41 4c 28 | 55 44 49 53 65 73 73 69 | IN_VAL(|UDISessi|
|00001280| 6f 6e 49 64 2c 20 53 65 | 73 73 69 6f 6e 29 3b 0a |onId, Se|ssion);.|
|00001290| 20 20 49 4e 5f 56 41 4c | 28 55 44 49 42 6f 6f 6c | IN_VAL|(UDIBool|
|000012a0| 2c 20 54 65 72 6d 69 6e | 61 74 65 29 3b 0a 20 20 |, Termin|ate);. |
|000012b0| 0a 20 20 72 65 74 75 72 | 6e 20 44 4f 5f 43 41 4c |. retur|n DO_CAL|
|000012c0| 4c 28 55 44 49 44 69 73 | 63 6f 6e 6e 65 63 74 5f |L(UDIDis|connect_|
|000012d0| 63 29 3b 0a 7d 0a 0a 55 | 44 49 45 72 72 6f 72 20 |c);.}..U|DIError |
|000012e0| 55 44 49 53 65 74 43 75 | 72 72 65 6e 74 43 6f 6e |UDISetCu|rrentCon|
|000012f0| 6e 65 63 74 69 6f 6e 20 | 28 0a 20 20 55 44 49 53 |nection |(. UDIS|
|00001300| 65 73 73 69 6f 6e 49 64 | 09 53 65 73 73 69 6f 6e |essionId|.Session|
|00001310| 09 09 09 2f 2a 20 49 6e | 20 2a 2f 0a 20 20 29 0a |.../* In| */. ).|
|00001320| 7b 0a 20 20 49 4e 5f 49 | 4e 49 54 28 29 3b 0a 20 |{. IN_I|NIT();. |
|00001330| 20 49 4e 5f 56 41 4c 28 | 55 44 49 53 65 73 73 69 | IN_VAL(|UDISessi|
|00001340| 6f 6e 49 64 2c 20 53 65 | 73 73 69 6f 6e 29 3b 0a |onId, Se|ssion);.|
|00001350| 20 20 0a 20 20 72 65 74 | 75 72 6e 20 44 4f 5f 43 | . ret|urn DO_C|
|00001360| 41 4c 4c 28 55 44 49 53 | 65 74 43 75 72 72 65 6e |ALL(UDIS|etCurren|
|00001370| 74 43 6f 6e 6e 65 63 74 | 69 6f 6e 5f 63 29 3b 0a |tConnect|ion_c);.|
|00001380| 7d 0a 0a 55 44 49 45 72 | 72 6f 72 20 55 44 49 43 |}..UDIEr|ror UDIC|
|00001390| 61 70 61 62 69 6c 69 74 | 69 65 73 20 28 0a 20 20 |apabilit|ies (. |
|000013a0| 55 44 49 55 49 6e 74 33 | 32 09 2a 54 49 50 49 64 |UDIUInt3|2.*TIPId|
|000013b0| 2c 09 09 09 2f 2a 20 4f | 75 74 20 2a 2f 0a 20 20 |,.../* O|ut */. |
|000013c0| 55 44 49 55 49 6e 74 33 | 32 09 2a 54 61 72 67 65 |UDIUInt3|2.*Targe|
|000013d0| 74 49 64 2c 09 09 2f 2a | 20 4f 75 74 20 2a 2f 0a |tId,../*| Out */.|
|000013e0| 20 20 55 44 49 55 49 6e | 74 33 32 09 44 46 45 49 | UDIUIn|t32.DFEI|
|000013f0| 64 2c 09 09 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |d,.../* |In */. |
|00001400| 55 44 49 55 49 6e 74 33 | 32 09 44 46 45 2c 09 09 |UDIUInt3|2.DFE,..|
|00001410| 09 2f 2a 20 49 6e 20 2a | 2f 0a 20 20 55 44 49 55 |./* In *|/. UDIU|
|00001420| 49 6e 74 33 32 09 2a 54 | 49 50 2c 09 09 09 2f 2a |Int32.*T|IP,.../*|
|00001430| 20 4f 75 74 20 2a 2f 0a | 20 20 55 44 49 55 49 6e | Out */.| UDIUIn|
|00001440| 74 33 32 09 2a 44 46 45 | 49 50 43 49 64 2c 09 09 |t32.*DFE|IPCId,..|
|00001450| 2f 2a 20 4f 75 74 20 2a | 2f 0a 20 20 55 44 49 55 |/* Out *|/. UDIU|
|00001460| 49 6e 74 33 32 09 2a 54 | 49 50 49 50 43 49 64 2c |Int32.*T|IPIPCId,|
|00001470| 09 09 2f 2a 20 4f 75 74 | 20 2a 2f 0a 20 20 63 68 |../* Out| */. ch|
|00001480| 61 72 09 09 2a 54 49 50 | 53 74 72 69 6e 67 09 09 |ar..*TIP|String..|
|00001490| 2f 2a 20 4f 75 74 20 2a | 2f 0a 20 20 29 0a 7b 0a |/* Out *|/. ).{.|
|000014a0| 20 20 69 6e 74 20 72 3b | 0a 20 20 49 4e 5f 49 4e | int r;|. IN_IN|
|000014b0| 49 54 28 29 3b 0a 20 20 | 49 4e 5f 56 41 4c 28 55 |IT();. |IN_VAL(U|
|000014c0| 44 49 55 49 6e 74 33 32 | 2c 20 44 46 45 49 64 29 |DIUInt32|, DFEId)|
|000014d0| 3b 0a 20 20 49 4e 5f 56 | 41 4c 28 55 44 49 55 49 |;. IN_V|AL(UDIUI|
|000014e0| 6e 74 33 32 2c 20 44 46 | 45 29 3b 0a 20 20 72 20 |nt32, DF|E);. r |
|000014f0| 3d 20 44 4f 5f 43 41 4c | 4c 28 55 44 49 43 61 70 |= DO_CAL|L(UDICap|
|00001500| 61 62 69 6c 69 74 69 65 | 73 5f 63 29 3b 0a 20 20 |abilitie|s_c);. |
|00001510| 4f 55 54 5f 49 4e 49 54 | 28 29 3b 0a 20 20 2a 54 |OUT_INIT|();. *T|
|00001520| 49 50 49 64 20 3d 20 4f | 55 54 5f 56 41 4c 28 55 |IPId = O|UT_VAL(U|
|00001530| 44 49 55 49 6e 74 33 32 | 29 3b 0a 20 20 2a 54 61 |DIUInt32|);. *Ta|
|00001540| 72 67 65 74 49 64 20 3d | 20 4f 55 54 5f 56 41 4c |rgetId =| OUT_VAL|
|00001550| 28 55 44 49 55 49 6e 74 | 33 32 29 3b 0a 20 20 2a |(UDIUInt|32);. *|
|00001560| 54 49 50 20 3d 20 4f 55 | 54 5f 56 41 4c 28 55 44 |TIP = OU|T_VAL(UD|
|00001570| 49 55 49 6e 74 33 32 29 | 3b 0a 20 20 2a 44 46 45 |IUInt32)|;. *DFE|
|00001580| 49 50 43 49 64 20 3d 20 | 4f 55 54 5f 56 41 4c 28 |IPCId = |OUT_VAL(|
|00001590| 55 44 49 55 49 6e 74 33 | 32 29 3b 0a 20 20 2a 54 |UDIUInt3|2);. *T|
|000015a0| 49 50 49 50 43 49 64 20 | 3d 20 4f 55 54 5f 56 41 |IPIPCId |= OUT_VA|
|000015b0| 4c 28 55 44 49 55 49 6e | 74 33 32 29 3b 0a 20 20 |L(UDIUIn|t32);. |
|000015c0| 73 74 72 63 70 79 28 54 | 49 50 53 74 72 69 6e 67 |strcpy(T|IPString|
|000015d0| 2c 20 6f 75 74 5f 70 74 | 72 29 3b 0a 20 20 72 65 |, out_pt|r);. re|
|000015e0| 74 75 72 6e 20 72 3b 0a | 7d 0a 0a 55 44 49 45 72 |turn r;.|}..UDIEr|
|000015f0| 72 6f 72 20 55 44 49 45 | 6e 75 6d 65 72 61 74 65 |ror UDIE|numerate|
|00001600| 54 49 50 73 20 28 0a 20 | 20 55 44 49 49 6e 74 09 |TIPs (. | UDIInt.|
|00001610| 28 2a 55 44 49 45 54 43 | 61 6c 6c 62 61 63 6b 29 |(*UDIETC|allback)|
|00001620| 09 2f 2a 20 49 6e 20 2a | 2f 0a 20 20 20 20 28 20 |./* In *|/. ( |
|00001630| 63 68 61 72 20 2a 43 6f | 6e 66 69 67 75 72 61 74 |char *Co|nfigurat|
|00001640| 69 6f 6e 20 29 09 2f 2a | 20 49 6e 20 74 6f 20 63 |ion )./*| In to c|
|00001650| 61 6c 6c 62 61 63 6b 28 | 29 20 2a 2f 0a 20 20 29 |allback(|) */. )|
|00001660| 0a 7b 0a 20 20 55 44 49 | 45 54 43 61 6c 6c 62 61 |.{. UDI|ETCallba|
|00001670| 63 6b 28 22 6d 6f 6e 74 | 69 70 2e 65 78 65 22 29 |ck("mont|ip.exe")|
|00001680| 3b 0a 7d 0a 0a 55 44 49 | 45 72 72 6f 72 20 55 44 |;.}..UDI|Error UD|
|00001690| 49 47 65 74 45 72 72 6f | 72 4d 73 67 20 28 0a 20 |IGetErro|rMsg (. |
|000016a0| 20 55 44 49 45 72 72 6f | 72 09 45 72 72 6f 72 43 | UDIErro|r.ErrorC|
|000016b0| 6f 64 65 2c 09 09 2f 2a | 20 49 6e 20 2a 2f 0a 20 |ode,../*| In */. |
|000016c0| 20 55 44 49 53 69 7a 65 | 54 09 4d 73 67 53 69 7a | UDISize|T.MsgSiz|
|000016d0| 65 2c 09 09 2f 2a 20 49 | 6e 20 2a 2f 0a 20 20 63 |e,../* I|n */. c|
|000016e0| 68 61 72 09 09 2a 4d 73 | 67 2c 09 09 09 2f 2a 20 |har..*Ms|g,.../* |
|000016f0| 4f 75 74 20 2a 2f 0a 20 | 20 55 44 49 53 69 7a 65 |Out */. | UDISize|
|00001700| 54 09 2a 43 6f 75 6e 74 | 44 6f 6e 65 09 09 2f 2a |T.*Count|Done../*|
|00001710| 20 4f 75 74 20 2a 2f 0a | 20 20 29 0a 7b 0a 20 20 | Out */.| ).{. |
|00001720| 69 6e 74 20 72 3b 0a 20 | 20 69 66 20 28 4d 73 67 |int r;. | if (Msg|
|00001730| 53 69 7a 65 20 3e 20 34 | 30 30 30 29 0a 20 20 20 |Size > 4|000). |
|00001740| 20 4d 73 67 53 69 7a 65 | 20 3d 20 34 30 30 30 3b | MsgSize| = 4000;|
|00001750| 0a 20 20 49 4e 5f 49 4e | 49 54 28 29 3b 0a 20 20 |. IN_IN|IT();. |
|00001760| 49 4e 5f 56 41 4c 28 55 | 44 49 45 72 72 6f 72 2c |IN_VAL(U|DIError,|
|00001770| 20 45 72 72 6f 72 43 6f | 64 65 29 3b 0a 20 20 49 | ErrorCo|de);. I|
|00001780| 4e 5f 56 41 4c 28 55 44 | 49 53 69 7a 65 54 2c 20 |N_VAL(UD|ISizeT, |
|00001790| 4d 73 67 53 69 7a 65 29 | 3b 0a 20 20 0a 20 20 72 |MsgSize)|;. . r|
|000017a0| 20 3d 20 44 4f 5f 43 41 | 4c 4c 28 55 44 49 47 65 | = DO_CA|LL(UDIGe|
|000017b0| 74 45 72 72 6f 72 4d 73 | 67 5f 63 29 3b 0a 20 20 |tErrorMs|g_c);. |
|000017c0| 0a 20 20 4f 55 54 5f 49 | 4e 49 54 28 29 3b 0a 20 |. OUT_I|NIT();. |
|000017d0| 20 2a 43 6f 75 6e 74 44 | 6f 6e 65 20 3d 20 4f 55 | *CountD|one = OU|
|000017e0| 54 5f 56 41 4c 28 55 44 | 49 53 69 7a 65 54 29 3b |T_VAL(UD|ISizeT);|
|000017f0| 0a 20 20 4f 55 54 5f 44 | 41 54 41 28 4d 73 67 2c |. OUT_D|ATA(Msg,|
|00001800| 20 2a 43 6f 75 6e 74 44 | 6f 6e 65 29 3b 0a 20 20 | *CountD|one);. |
|00001810| 72 65 74 75 72 6e 20 72 | 3b 0a 7d 0a 0a 55 44 49 |return r|;.}..UDI|
|00001820| 45 72 72 6f 72 20 55 44 | 49 47 65 74 54 61 72 67 |Error UD|IGetTarg|
|00001830| 65 74 43 6f 6e 66 69 67 | 20 28 0a 20 20 55 44 49 |etConfig| (. UDI|
|00001840| 4d 65 6d 6f 72 79 52 61 | 6e 67 65 20 4b 6e 6f 77 |MemoryRa|nge Know|
|00001850| 6e 4d 65 6d 6f 72 79 5b | 5d 2c 09 09 2f 2a 20 4f |nMemory[|],../* O|
|00001860| 75 74 20 2a 2f 0a 20 20 | 55 44 49 49 6e 74 09 2a |ut */. |UDIInt.*|
|00001870| 4e 75 6d 62 65 72 4f 66 | 52 61 6e 67 65 73 2c 09 |NumberOf|Ranges,.|
|00001880| 2f 2a 20 49 6e 2f 4f 75 | 74 20 2a 2f 0a 20 20 55 |/* In/Ou|t */. U|
|00001890| 44 49 55 49 6e 74 33 32 | 09 43 68 69 70 56 65 72 |DIUInt32|.ChipVer|
|000018a0| 73 69 6f 6e 73 5b 5d 2c | 09 09 2f 2a 20 4f 75 74 |sions[],|../* Out|
|000018b0| 20 2a 2f 0a 20 20 55 44 | 49 49 6e 74 09 2a 4e 75 | */. UD|IInt.*Nu|
|000018c0| 6d 62 65 72 4f 66 43 68 | 69 70 73 09 09 2f 2a 20 |mberOfCh|ips../* |
|000018d0| 49 6e 2f 4f 75 74 20 2a | 2f 0a 20 20 29 0a 7b 0a |In/Out *|/. ).{.|
|000018e0| 20 20 69 6e 74 20 72 2c | 20 69 3b 0a 20 20 69 6e | int r,| i;. in|
|000018f0| 74 20 6e 72 20 3d 20 2a | 4e 75 6d 62 65 72 4f 66 |t nr = *|NumberOf|
|00001900| 52 61 6e 67 65 73 3b 0a | 20 20 69 6e 74 20 6e 63 |Ranges;.| int nc|
|00001910| 20 3d 20 2a 4e 75 6d 62 | 65 72 4f 66 43 68 69 70 | = *Numb|erOfChip|
|00001920| 73 3b 0a 20 20 49 4e 5f | 49 4e 49 54 28 29 3b 0a |s;. IN_|INIT();.|
|00001930| 20 20 49 4e 5f 56 41 4c | 28 55 44 49 49 6e 74 2c | IN_VAL|(UDIInt,|
|00001940| 20 2a 4e 75 6d 62 65 72 | 4f 66 52 61 6e 67 65 73 | *Number|OfRanges|
|00001950| 29 3b 0a 20 20 49 4e 5f | 56 41 4c 28 55 44 49 49 |);. IN_|VAL(UDII|
|00001960| 6e 74 2c 20 2a 4e 75 6d | 62 65 72 4f 66 43 68 69 |nt, *Num|berOfChi|
|00001970| 70 73 29 3b 0a 20 20 72 | 20 3d 20 44 4f 5f 43 41 |ps);. r| = DO_CA|
|00001980| 4c 4c 28 55 44 49 47 65 | 74 54 61 72 67 65 74 43 |LL(UDIGe|tTargetC|
|00001990| 6f 6e 66 69 67 5f 63 29 | 3b 0a 20 20 69 66 20 28 |onfig_c)|;. if (|
|000019a0| 72 20 3d 3d 20 55 44 49 | 45 72 72 6f 72 49 6e 63 |r == UDI|ErrorInc|
|000019b0| 6f 6d 70 6c 65 74 65 29 | 0a 20 20 20 20 72 65 74 |omplete)|. ret|
|000019c0| 75 72 6e 20 72 3b 0a 20 | 20 4f 55 54 5f 49 4e 49 |urn r;. | OUT_INI|
|000019d0| 54 28 29 3b 0a 20 20 2a | 4e 75 6d 62 65 72 4f 66 |T();. *|NumberOf|
|000019e0| 52 61 6e 67 65 73 20 3d | 20 4f 55 54 5f 56 41 4c |Ranges =| OUT_VAL|
|000019f0| 28 55 44 49 49 6e 74 29 | 3b 0a 20 20 2a 4e 75 6d |(UDIInt)|;. *Num|
|00001a00| 62 65 72 4f 66 43 68 69 | 70 73 20 3d 20 4f 55 54 |berOfChi|ps = OUT|
|00001a10| 5f 56 41 4c 28 55 44 49 | 49 6e 74 29 3b 0a 20 20 |_VAL(UDI|Int);. |
|00001a20| 66 6f 72 20 28 69 3d 30 | 3b 20 69 3c 6e 72 3b 20 |for (i=0|; i<nr; |
|00001a30| 69 2b 2b 29 0a 20 20 7b | 0a 20 20 20 20 4b 6e 6f |i++). {|. Kno|
|00001a40| 77 6e 4d 65 6d 6f 72 79 | 5b 69 5d 2e 53 70 61 63 |wnMemory|[i].Spac|
|00001a50| 65 20 3d 20 4f 55 54 5f | 56 41 4c 28 73 68 6f 72 |e = OUT_|VAL(shor|
|00001a60| 74 29 3b 0a 20 20 20 20 | 4b 6e 6f 77 6e 4d 65 6d |t);. |KnownMem|
|00001a70| 6f 72 79 5b 69 5d 2e 4f | 66 66 73 65 74 20 3d 20 |ory[i].O|ffset = |
|00001a80| 4f 55 54 5f 56 41 4c 28 | 43 50 55 4f 66 66 73 65 |OUT_VAL(|CPUOffse|
|00001a90| 74 29 3b 0a 20 20 20 20 | 4b 6e 6f 77 6e 4d 65 6d |t);. |KnownMem|
|00001aa0| 6f 72 79 5b 69 5d 2e 53 | 69 7a 65 20 3d 20 4f 55 |ory[i].S|ize = OU|
|00001ab0| 54 5f 56 41 4c 28 43 50 | 55 53 69 7a 65 54 29 3b |T_VAL(CP|USizeT);|
|00001ac0| 0a 20 20 7d 0a 20 20 66 | 6f 72 20 28 69 3d 30 3b |. }. f|or (i=0;|
|00001ad0| 20 69 3c 6e 63 3b 20 69 | 2b 2b 29 0a 20 20 7b 0a | i<nc; i|++). {.|
|00001ae0| 20 20 20 20 43 68 69 70 | 56 65 72 73 69 6f 6e 73 | Chip|Versions|
|00001af0| 5b 69 5d 20 3d 20 4f 55 | 54 5f 56 41 4c 28 55 44 |[i] = OU|T_VAL(UD|
|00001b00| 49 55 49 6e 74 33 32 29 | 3b 0a 20 20 7d 0a 20 20 |IUInt32)|;. }. |
|00001b10| 72 65 74 75 72 6e 20 72 | 3b 0a 7d 0a 0a 55 44 49 |return r|;.}..UDI|
|00001b20| 45 72 72 6f 72 20 55 44 | 49 43 72 65 61 74 65 50 |Error UD|ICreateP|
|00001b30| 72 6f 63 65 73 73 20 28 | 0a 20 20 55 44 49 50 49 |rocess (|. UDIPI|
|00001b40| 64 09 2a 50 49 64 09 09 | 09 2f 2a 20 4f 75 74 20 |d.*PId..|./* Out |
|00001b50| 2a 2f 0a 20 20 29 0a 7b | 0a 20 20 69 6e 74 20 72 |*/. ).{|. int r|
|00001b60| 20 3d 20 44 4f 5f 43 41 | 4c 4c 28 55 44 49 43 72 | = DO_CA|LL(UDICr|
|00001b70| 65 61 74 65 50 72 6f 63 | 65 73 73 5f 63 29 3b 0a |eateProc|ess_c);.|
|00001b80| 0a 20 20 4f 55 54 5f 49 | 4e 49 54 28 29 3b 0a 20 |. OUT_I|NIT();. |
|00001b90| 20 2a 50 49 64 20 3d 20 | 4f 55 54 5f 56 41 4c 28 | *PId = |OUT_VAL(|
|00001ba0| 55 44 49 50 49 64 29 3b | 0a 0a 20 20 72 65 74 75 |UDIPId);|.. retu|
|00001bb0| 72 6e 20 72 3b 0a 7d 0a | 0a 55 44 49 45 72 72 6f |rn r;.}.|.UDIErro|
|00001bc0| 72 20 55 44 49 53 65 74 | 43 75 72 72 65 6e 74 50 |r UDISet|CurrentP|
|00001bd0| 72 6f 63 65 73 73 20 28 | 0a 20 20 55 44 49 50 49 |rocess (|. UDIPI|
|00001be0| 64 09 50 49 64 09 09 09 | 2f 2a 20 49 6e 20 2a 2f |d.PId...|/* In */|
|00001bf0| 0a 20 20 29 0a 7b 0a 20 | 20 49 4e 5f 49 4e 49 54 |. ).{. | IN_INIT|
|00001c00| 28 29 3b 0a 20 20 49 4e | 5f 56 41 4c 28 55 44 49 |();. IN|_VAL(UDI|
|00001c10| 50 49 64 2c 20 50 49 64 | 29 3b 0a 0a 20 20 72 65 |PId, PId|);.. re|
|00001c20| 74 75 72 6e 20 44 4f 5f | 43 41 4c 4c 28 55 44 49 |turn DO_|CALL(UDI|
|00001c30| 53 65 74 43 75 72 72 65 | 6e 74 50 72 6f 63 65 73 |SetCurre|ntProces|
|00001c40| 73 5f 63 29 3b 0a 7d 0a | 0a 55 44 49 45 72 72 6f |s_c);.}.|.UDIErro|
|00001c50| 72 20 55 44 49 44 65 73 | 74 72 6f 79 50 72 6f 63 |r UDIDes|troyProc|
|00001c60| 65 73 73 20 28 0a 20 20 | 55 44 49 50 49 64 09 50 |ess (. |UDIPId.P|
|00001c70| 49 64 09 09 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |Id.../* |In */. |
|00001c80| 29 0a 7b 0a 20 20 49 4e | 5f 49 4e 49 54 28 29 3b |).{. IN|_INIT();|
|00001c90| 0a 20 20 49 4e 5f 56 41 | 4c 28 55 44 49 50 49 64 |. IN_VA|L(UDIPId|
|00001ca0| 2c 20 50 49 64 29 3b 0a | 0a 20 20 72 65 74 75 72 |, PId);.|. retur|
|00001cb0| 6e 20 44 4f 5f 43 41 4c | 4c 28 55 44 49 44 65 73 |n DO_CAL|L(UDIDes|
|00001cc0| 74 72 6f 79 50 72 6f 63 | 65 73 73 5f 63 29 3b 0a |troyProc|ess_c);.|
|00001cd0| 7d 0a 0a 55 44 49 45 72 | 72 6f 72 20 55 44 49 49 |}..UDIEr|ror UDII|
|00001ce0| 6e 69 74 69 61 6c 69 7a | 65 50 72 6f 63 65 73 73 |nitializ|eProcess|
|00001cf0| 20 28 0a 20 20 55 44 49 | 4d 65 6d 6f 72 79 52 61 | (. UDI|MemoryRa|
|00001d00| 6e 67 65 20 50 72 6f 63 | 65 73 73 4d 65 6d 6f 72 |nge Proc|essMemor|
|00001d10| 79 5b 5d 2c 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |y[],./* |In */. |
|00001d20| 55 44 49 49 6e 74 09 4e | 75 6d 62 65 72 4f 66 52 |UDIInt.N|umberOfR|
|00001d30| 61 6e 67 65 73 2c 09 09 | 2f 2a 20 49 6e 20 2a 2f |anges,..|/* In */|
|00001d40| 0a 20 20 55 44 49 52 65 | 73 6f 75 72 63 65 09 45 |. UDIRe|source.E|
|00001d50| 6e 74 72 79 50 6f 69 6e | 74 2c 09 09 2f 2a 20 49 |ntryPoin|t,../* I|
|00001d60| 6e 20 2a 2f 0a 20 20 43 | 50 55 53 69 7a 65 54 09 |n */. C|PUSizeT.|
|00001d70| 53 74 61 63 6b 53 69 7a | 65 73 5b 5d 2c 09 09 2f |StackSiz|es[],../|
|00001d80| 2a 20 49 6e 20 2a 2f 0a | 20 20 55 44 49 49 6e 74 |* In */.| UDIInt|
|00001d90| 09 4e 75 6d 62 65 72 4f | 66 53 74 61 63 6b 73 2c |.NumberO|fStacks,|
|00001da0| 09 09 2f 2a 20 49 6e 20 | 2a 2f 0a 20 20 63 68 61 |../* In |*/. cha|
|00001db0| 72 09 09 2a 41 72 67 53 | 74 72 69 6e 67 09 09 2f |r..*ArgS|tring../|
|00001dc0| 2a 20 49 6e 20 2a 2f 0a | 20 20 29 0a 7b 0a 20 20 |* In */.| ).{. |
|00001dd0| 69 6e 74 20 69 2c 20 72 | 3b 0a 20 20 49 4e 5f 49 |int i, r|;. IN_I|
|00001de0| 4e 49 54 28 29 3b 0a 20 | 20 49 4e 5f 56 41 4c 28 |NIT();. | IN_VAL(|
|00001df0| 55 44 49 49 6e 74 2c 20 | 4e 75 6d 62 65 72 4f 66 |UDIInt, |NumberOf|
|00001e00| 52 61 6e 67 65 73 29 3b | 0a 20 20 66 6f 72 20 28 |Ranges);|. for (|
|00001e10| 69 3d 30 3b 20 69 3c 4e | 75 6d 62 65 72 4f 66 52 |i=0; i<N|umberOfR|
|00001e20| 61 6e 67 65 73 3b 20 69 | 2b 2b 29 0a 20 20 7b 0a |anges; i|++). {.|
|00001e30| 20 20 20 20 49 4e 5f 56 | 41 4c 28 73 68 6f 72 74 | IN_V|AL(short|
|00001e40| 2c 20 50 72 6f 63 65 73 | 73 4d 65 6d 6f 72 79 5b |, Proces|sMemory[|
|00001e50| 69 5d 2e 53 70 61 63 65 | 29 3b 0a 20 20 20 20 49 |i].Space|);. I|
|00001e60| 4e 5f 56 41 4c 28 43 50 | 55 4f 66 66 73 65 74 2c |N_VAL(CP|UOffset,|
|00001e70| 20 50 72 6f 63 65 73 73 | 4d 65 6d 6f 72 79 5b 69 | Process|Memory[i|
|00001e80| 5d 2e 4f 66 66 73 65 74 | 29 3b 0a 20 20 20 20 49 |].Offset|);. I|
|00001e90| 4e 5f 56 41 4c 28 43 50 | 55 53 69 7a 65 54 2c 20 |N_VAL(CP|USizeT, |
|00001ea0| 50 72 6f 63 65 73 73 4d | 65 6d 6f 72 79 5b 69 5d |ProcessM|emory[i]|
|00001eb0| 2e 53 69 7a 65 29 3b 0a | 20 20 7d 0a 20 20 49 4e |.Size);.| }. IN|
|00001ec0| 5f 56 41 4c 28 73 68 6f | 72 74 2c 20 45 6e 74 72 |_VAL(sho|rt, Entr|
|00001ed0| 79 50 6f 69 6e 74 2e 53 | 70 61 63 65 29 3b 0a 20 |yPoint.S|pace);. |
|00001ee0| 20 49 4e 5f 56 41 4c 28 | 43 50 55 4f 66 66 73 65 | IN_VAL(|CPUOffse|
|00001ef0| 74 2c 20 45 6e 74 72 79 | 50 6f 69 6e 74 2e 4f 66 |t, Entry|Point.Of|
|00001f00| 66 73 65 74 29 3b 0a 20 | 20 49 4e 5f 56 41 4c 28 |fset);. | IN_VAL(|
|00001f10| 55 44 49 49 6e 74 2c 20 | 4e 75 6d 62 65 72 4f 66 |UDIInt, |NumberOf|
|00001f20| 53 74 61 63 6b 73 29 3b | 0a 20 20 66 6f 72 20 28 |Stacks);|. for (|
|00001f30| 69 3d 30 3b 20 69 3c 4e | 75 6d 62 65 72 4f 66 53 |i=0; i<N|umberOfS|
|00001f40| 74 61 63 6b 73 3b 20 69 | 2b 2b 29 0a 20 20 20 20 |tacks; i|++). |
|00001f50| 49 4e 5f 56 41 4c 28 43 | 50 55 53 69 7a 65 54 2c |IN_VAL(C|PUSizeT,|
|00001f60| 20 53 74 61 63 6b 53 69 | 7a 65 73 5b 69 5d 29 3b | StackSi|zes[i]);|
|00001f70| 0a 20 20 49 4e 5f 44 41 | 54 41 28 41 72 67 53 74 |. IN_DA|TA(ArgSt|
|00001f80| 72 69 6e 67 2c 20 73 74 | 72 6c 65 6e 28 41 72 67 |ring, st|rlen(Arg|
|00001f90| 53 74 72 69 6e 67 29 2b | 31 29 3b 0a 0a 20 20 72 |String)+|1);.. r|
|00001fa0| 65 74 75 72 6e 20 44 4f | 5f 43 41 4c 4c 28 55 44 |eturn DO|_CALL(UD|
|00001fb0| 49 49 6e 69 74 69 61 6c | 69 7a 65 50 72 6f 63 65 |IInitial|izeProce|
|00001fc0| 73 73 5f 63 29 3b 0a 7d | 0a 0a 55 44 49 45 72 72 |ss_c);.}|..UDIErr|
|00001fd0| 6f 72 20 55 44 49 52 65 | 61 64 20 28 0a 20 20 55 |or UDIRe|ad (. U|
|00001fe0| 44 49 52 65 73 6f 75 72 | 63 65 09 46 72 6f 6d 2c |DIResour|ce.From,|
|00001ff0| 09 09 09 2f 2a 20 49 6e | 20 2a 2f 0a 20 20 55 44 |.../* In| */. UD|
|00002000| 49 48 6f 73 74 4d 65 6d | 50 74 72 09 54 6f 2c 09 |IHostMem|Ptr.To,.|
|00002010| 09 09 2f 2a 20 4f 75 74 | 20 2a 2f 0a 20 20 55 44 |../* Out| */. UD|
|00002020| 49 43 6f 75 6e 74 09 43 | 6f 75 6e 74 2c 09 09 09 |ICount.C|ount,...|
|00002030| 2f 2a 20 49 6e 20 2a 2f | 0a 20 20 55 44 49 53 69 |/* In */|. UDISi|
|00002040| 7a 65 54 09 53 69 7a 65 | 2c 09 09 09 2f 2a 20 49 |zeT.Size|,.../* I|
|00002050| 6e 20 2a 2f 0a 20 20 55 | 44 49 43 6f 75 6e 74 09 |n */. U|DICount.|
|00002060| 2a 43 6f 75 6e 74 44 6f | 6e 65 2c 09 09 2f 2a 20 |*CountDo|ne,../* |
|00002070| 4f 75 74 20 2a 2f 0a 20 | 20 55 44 49 42 6f 6f 6c |Out */. | UDIBool|
|00002080| 09 48 6f 73 74 45 6e 64 | 69 61 6e 09 09 2f 2a 20 |.HostEnd|ian../* |
|00002090| 49 6e 20 2a 2f 0a 20 20 | 29 0a 7b 0a 20 20 69 6e |In */. |).{. in|
|000020a0| 74 20 63 6c 65 66 74 20 | 3d 20 43 6f 75 6e 74 2c |t cleft |= Count,|
|000020b0| 20 63 74 68 69 73 2c 20 | 64 74 68 69 73 3b 0a 20 | cthis, |dthis;. |
|000020c0| 20 69 6e 74 20 63 64 6f | 6e 65 20 3d 20 30 2c 20 | int cdo|ne = 0, |
|000020d0| 72 2c 20 62 73 69 7a 65 | 3d 32 30 34 38 2f 53 69 |r, bsize|=2048/Si|
|000020e0| 7a 65 3b 0a 20 20 0a 20 | 20 77 68 69 6c 65 20 28 |ze;. . | while (|
|000020f0| 63 6c 65 66 74 29 0a 20 | 20 7b 0a 20 20 20 20 63 |cleft). | {. c|
|00002100| 74 68 69 73 20 3d 20 28 | 63 6c 65 66 74 3c 62 73 |this = (|cleft<bs|
|00002110| 69 7a 65 29 20 3f 20 63 | 6c 65 66 74 20 3a 20 62 |ize) ? c|left : b|
|00002120| 73 69 7a 65 3b 0a 20 20 | 20 20 49 4e 5f 49 4e 49 |size;. | IN_INI|
|00002130| 54 28 29 3b 0a 20 20 20 | 20 49 4e 5f 56 41 4c 28 |T();. | IN_VAL(|
|00002140| 73 68 6f 72 74 2c 20 46 | 72 6f 6d 2e 53 70 61 63 |short, F|rom.Spac|
|00002150| 65 29 3b 0a 20 20 20 20 | 49 4e 5f 56 41 4c 28 43 |e);. |IN_VAL(C|
|00002160| 50 55 4f 66 66 73 65 74 | 2c 20 46 72 6f 6d 2e 4f |PUOffset|, From.O|
|00002170| 66 66 73 65 74 29 3b 0a | 20 20 20 20 49 4e 5f 56 |ffset);.| IN_V|
|00002180| 41 4c 28 55 44 49 43 6f | 75 6e 74 2c 20 63 74 68 |AL(UDICo|unt, cth|
|00002190| 69 73 29 3b 0a 20 20 20 | 20 49 4e 5f 56 41 4c 28 |is);. | IN_VAL(|
|000021a0| 55 44 49 53 69 7a 65 54 | 2c 20 53 69 7a 65 29 3b |UDISizeT|, Size);|
|000021b0| 0a 20 20 20 20 49 4e 5f | 56 41 4c 28 55 44 49 42 |. IN_|VAL(UDIB|
|000021c0| 6f 6f 6c 2c 20 48 6f 73 | 74 45 6e 64 69 61 6e 29 |ool, Hos|tEndian)|
|000021d0| 3b 0a 0a 20 20 20 20 72 | 20 3d 20 44 4f 5f 43 41 |;.. r| = DO_CA|
|000021e0| 4c 4c 28 55 44 49 52 65 | 61 64 5f 63 29 3b 0a 0a |LL(UDIRe|ad_c);..|
|000021f0| 20 20 20 20 4f 55 54 5f | 49 4e 49 54 28 29 3b 0a | OUT_|INIT();.|
|00002200| 20 20 20 20 64 74 68 69 | 73 20 3d 20 4f 55 54 5f | dthi|s = OUT_|
|00002210| 56 41 4c 28 55 44 49 43 | 6f 75 6e 74 29 3b 0a 20 |VAL(UDIC|ount);. |
|00002220| 20 20 20 4f 55 54 5f 44 | 41 54 41 28 54 6f 2c 20 | OUT_D|ATA(To, |
|00002230| 64 74 68 69 73 2a 53 69 | 7a 65 29 3b 0a 20 20 20 |dthis*Si|ze);. |
|00002240| 20 63 64 6f 6e 65 20 2b | 3d 20 64 74 68 69 73 3b | cdone +|= dthis;|
|00002250| 0a 20 20 20 20 54 6f 20 | 2b 3d 20 64 74 68 69 73 |. To |+= dthis|
|00002260| 2a 53 69 7a 65 3b 0a 0a | 20 20 20 20 69 66 20 28 |*Size;..| if (|
|00002270| 72 20 21 3d 20 55 44 49 | 4e 6f 45 72 72 6f 72 29 |r != UDI|NoError)|
|00002280| 0a 20 20 20 20 7b 0a 20 | 20 20 20 20 20 2a 43 6f |. {. | *Co|
|00002290| 75 6e 74 44 6f 6e 65 20 | 3d 20 63 64 6f 6e 65 3b |untDone |= cdone;|
|000022a0| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 72 3b |. r|eturn r;|
|000022b0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 63 6c 65 66 74 |. }. | cleft|
|000022c0| 20 2d 3d 20 63 74 68 69 | 73 3b 0a 20 20 7d 0a 20 | -= cthi|s;. }. |
|000022d0| 20 2a 43 6f 75 6e 74 44 | 6f 6e 65 20 3d 20 63 64 | *CountD|one = cd|
|000022e0| 6f 6e 65 3b 0a 20 20 72 | 65 74 75 72 6e 20 55 44 |one;. r|eturn UD|
|000022f0| 49 4e 6f 45 72 72 6f 72 | 3b 0a 7d 0a 0a 55 44 49 |INoError|;.}..UDI|
|00002300| 45 72 72 6f 72 20 55 44 | 49 57 72 69 74 65 20 28 |Error UD|IWrite (|
|00002310| 0a 20 20 55 44 49 48 6f | 73 74 4d 65 6d 50 74 72 |. UDIHo|stMemPtr|
|00002320| 09 46 72 6f 6d 2c 09 09 | 09 2f 2a 20 49 6e 20 2a |.From,..|./* In *|
|00002330| 2f 0a 20 20 55 44 49 52 | 65 73 6f 75 72 63 65 09 |/. UDIR|esource.|
|00002340| 54 6f 2c 09 09 09 2f 2a | 20 49 6e 20 2a 2f 0a 20 |To,.../*| In */. |
|00002350| 20 55 44 49 43 6f 75 6e | 74 09 43 6f 75 6e 74 2c | UDICoun|t.Count,|
|00002360| 09 09 09 2f 2a 20 49 6e | 20 2a 2f 0a 20 20 55 44 |.../* In| */. UD|
|00002370| 49 53 69 7a 65 54 09 53 | 69 7a 65 2c 09 09 09 2f |ISizeT.S|ize,.../|
|00002380| 2a 20 49 6e 20 2a 2f 0a | 20 20 55 44 49 43 6f 75 |* In */.| UDICou|
|00002390| 6e 74 09 2a 43 6f 75 6e | 74 44 6f 6e 65 2c 09 09 |nt.*Coun|tDone,..|
|000023a0| 2f 2a 20 4f 75 74 20 2a | 2f 0a 20 20 55 44 49 42 |/* Out *|/. UDIB|
|000023b0| 6f 6f 6c 09 48 6f 73 74 | 45 6e 64 69 61 6e 09 09 |ool.Host|Endian..|
|000023c0| 2f 2a 20 49 6e 20 2a 2f | 0a 20 20 29 0a 7b 0a 20 |/* In */|. ).{. |
|000023d0| 20 69 6e 74 20 63 6c 65 | 66 74 20 3d 20 43 6f 75 | int cle|ft = Cou|
|000023e0| 6e 74 2c 20 63 74 68 69 | 73 2c 20 64 74 68 69 73 |nt, cthi|s, dthis|
|000023f0| 3b 0a 20 20 69 6e 74 20 | 63 64 6f 6e 65 20 3d 20 |;. int |cdone = |
|00002400| 30 2c 20 72 2c 20 62 73 | 69 7a 65 3d 32 30 34 38 |0, r, bs|ize=2048|
|00002410| 2f 53 69 7a 65 3b 0a 20 | 20 0a 20 20 77 68 69 6c |/Size;. | . whil|
|00002420| 65 20 28 63 6c 65 66 74 | 29 0a 20 20 7b 0a 20 20 |e (cleft|). {. |
|00002430| 20 20 63 74 68 69 73 20 | 3d 20 28 63 6c 65 66 74 | cthis |= (cleft|
|00002440| 3c 62 73 69 7a 65 29 20 | 3f 20 63 6c 65 66 74 20 |<bsize) |? cleft |
|00002450| 3a 20 62 73 69 7a 65 3b | 0a 20 20 20 20 49 4e 5f |: bsize;|. IN_|
|00002460| 49 4e 49 54 28 29 3b 0a | 20 20 20 20 49 4e 5f 56 |INIT();.| IN_V|
|00002470| 41 4c 28 73 68 6f 72 74 | 2c 20 54 6f 2e 53 70 61 |AL(short|, To.Spa|
|00002480| 63 65 29 3b 0a 20 20 20 | 20 49 4e 5f 56 41 4c 28 |ce);. | IN_VAL(|
|00002490| 43 50 55 4f 66 66 73 65 | 74 2c 20 54 6f 2e 4f 66 |CPUOffse|t, To.Of|
|000024a0| 66 73 65 74 29 3b 0a 20 | 20 20 20 49 4e 5f 56 41 |fset);. | IN_VA|
|000024b0| 4c 28 55 44 49 43 6f 75 | 6e 74 2c 20 63 74 68 69 |L(UDICou|nt, cthi|
|000024c0| 73 29 3b 0a 20 20 20 20 | 49 4e 5f 56 41 4c 28 55 |s);. |IN_VAL(U|
|000024d0| 44 49 53 69 7a 65 54 2c | 20 53 69 7a 65 29 3b 0a |DISizeT,| Size);.|
|000024e0| 20 20 20 20 49 4e 5f 56 | 41 4c 28 55 44 49 42 6f | IN_V|AL(UDIBo|
|000024f0| 6f 6c 2c 20 48 6f 73 74 | 45 6e 64 69 61 6e 29 3b |ol, Host|Endian);|
|00002500| 0a 20 20 20 20 49 4e 5f | 44 41 54 41 28 46 72 6f |. IN_|DATA(Fro|
|00002510| 6d 2c 20 63 74 68 69 73 | 2a 53 69 7a 65 29 3b 0a |m, cthis|*Size);.|
|00002520| 20 20 20 20 46 72 6f 6d | 20 2b 3d 20 63 74 68 69 | From| += cthi|
|00002530| 73 2a 53 69 7a 65 3b 0a | 20 20 20 20 0a 20 20 20 |s*Size;.| . |
|00002540| 20 72 20 3d 20 44 4f 5f | 43 41 4c 4c 28 55 44 49 | r = DO_|CALL(UDI|
|00002550| 57 72 69 74 65 5f 63 29 | 3b 0a 0a 20 20 20 20 4f |Write_c)|;.. O|
|00002560| 55 54 5f 49 4e 49 54 28 | 29 3b 0a 20 20 20 20 63 |UT_INIT(|);. c|
|00002570| 64 6f 6e 65 20 2b 3d 20 | 4f 55 54 5f 56 41 4c 28 |done += |OUT_VAL(|
|00002580| 55 44 49 43 6f 75 6e 74 | 29 3b 0a 0a 20 20 20 20 |UDICount|);.. |
|00002590| 69 66 20 28 72 20 21 3d | 20 55 44 49 4e 6f 45 72 |if (r !=| UDINoEr|
|000025a0| 72 6f 72 29 0a 20 20 20 | 20 7b 0a 20 20 20 20 20 |ror). | {. |
|000025b0| 20 2a 43 6f 75 6e 74 44 | 6f 6e 65 20 3d 20 63 64 | *CountD|one = cd|
|000025c0| 6f 6e 65 3b 0a 20 20 20 | 20 20 20 72 65 74 75 72 |one;. | retur|
|000025d0| 6e 20 72 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 63 |n r;. | }. c|
|000025e0| 6c 65 66 74 20 2d 3d 20 | 63 74 68 69 73 3b 0a 20 |left -= |cthis;. |
|000025f0| 20 7d 0a 20 20 2a 43 6f | 75 6e 74 44 6f 6e 65 20 | }. *Co|untDone |
|00002600| 3d 20 63 64 6f 6e 65 3b | 0a 20 20 72 65 74 75 72 |= cdone;|. retur|
|00002610| 6e 20 55 44 49 4e 6f 45 | 72 72 6f 72 3b 0a 7d 0a |n UDINoE|rror;.}.|
|00002620| 0a 55 44 49 45 72 72 6f | 72 20 55 44 49 43 6f 70 |.UDIErro|r UDICop|
|00002630| 79 20 28 0a 20 20 55 44 | 49 52 65 73 6f 75 72 63 |y (. UD|IResourc|
|00002640| 65 09 46 72 6f 6d 2c 09 | 09 09 2f 2a 20 49 6e 20 |e.From,.|../* In |
|00002650| 2a 2f 0a 20 20 55 44 49 | 52 65 73 6f 75 72 63 65 |*/. UDI|Resource|
|00002660| 09 54 6f 2c 09 09 09 2f | 2a 20 49 6e 20 2a 2f 0a |.To,.../|* In */.|
|00002670| 20 20 55 44 49 43 6f 75 | 6e 74 09 43 6f 75 6e 74 | UDICou|nt.Count|
|00002680| 2c 09 09 09 2f 2a 20 49 | 6e 20 2a 2f 0a 20 20 55 |,.../* I|n */. U|
|00002690| 44 49 53 69 7a 65 54 09 | 53 69 7a 65 2c 09 09 09 |DISizeT.|Size,...|
|000026a0| 2f 2a 20 49 6e 20 2a 2f | 0a 20 20 55 44 49 43 6f |/* In */|. UDICo|
|000026b0| 75 6e 74 09 2a 43 6f 75 | 6e 74 44 6f 6e 65 2c 09 |unt.*Cou|ntDone,.|
|000026c0| 09 2f 2a 20 4f 75 74 20 | 2a 2f 0a 20 20 55 44 49 |./* Out |*/. UDI|
|000026d0| 42 6f 6f 6c 09 44 69 72 | 65 63 74 69 6f 6e 09 09 |Bool.Dir|ection..|
|000026e0| 2f 2a 20 49 6e 20 2a 2f | 0a 20 20 29 0a 7b 0a 20 |/* In */|. ).{. |
|000026f0| 20 69 6e 74 20 72 3b 0a | 20 20 49 4e 5f 49 4e 49 | int r;.| IN_INI|
|00002700| 54 28 29 3b 0a 20 20 49 | 4e 5f 56 41 4c 28 73 68 |T();. I|N_VAL(sh|
|00002710| 6f 72 74 2c 20 46 72 6f | 6d 2e 53 70 61 63 65 29 |ort, Fro|m.Space)|
|00002720| 3b 0a 20 20 49 4e 5f 56 | 41 4c 28 43 50 55 4f 66 |;. IN_V|AL(CPUOf|
|00002730| 66 73 65 74 2c 20 46 72 | 6f 6d 2e 4f 66 66 73 65 |fset, Fr|om.Offse|
|00002740| 74 29 3b 0a 20 20 49 4e | 5f 56 41 4c 28 73 68 6f |t);. IN|_VAL(sho|
|00002750| 72 74 2c 20 54 6f 2e 53 | 70 61 63 65 29 3b 0a 20 |rt, To.S|pace);. |
|00002760| 20 49 4e 5f 56 41 4c 28 | 43 50 55 4f 66 66 73 65 | IN_VAL(|CPUOffse|
|00002770| 74 2c 20 54 6f 2e 4f 66 | 66 73 65 74 29 3b 0a 20 |t, To.Of|fset);. |
|00002780| 20 49 4e 5f 56 41 4c 28 | 55 44 49 43 6f 75 6e 74 | IN_VAL(|UDICount|
|00002790| 2c 20 43 6f 75 6e 74 29 | 3b 0a 20 20 49 4e 5f 56 |, Count)|;. IN_V|
|000027a0| 41 4c 28 55 44 49 53 69 | 7a 65 54 2c 20 53 69 7a |AL(UDISi|zeT, Siz|
|000027b0| 65 29 3b 0a 20 20 49 4e | 5f 56 41 4c 28 55 44 49 |e);. IN|_VAL(UDI|
|000027c0| 42 6f 6f 6c 2c 20 44 69 | 72 65 63 74 69 6f 6e 29 |Bool, Di|rection)|
|000027d0| 3b 0a 20 20 0a 20 20 72 | 20 3d 20 44 4f 5f 43 41 |;. . r| = DO_CA|
|000027e0| 4c 4c 28 55 44 49 43 6f | 70 79 5f 63 29 3b 0a 20 |LL(UDICo|py_c);. |
|000027f0| 20 0a 20 20 4f 55 54 5f | 49 4e 49 54 28 29 3b 0a | . OUT_|INIT();.|
|00002800| 20 20 2a 43 6f 75 6e 74 | 44 6f 6e 65 20 3d 20 4f | *Count|Done = O|
|00002810| 55 54 5f 56 41 4c 28 55 | 44 49 43 6f 75 6e 74 29 |UT_VAL(U|DICount)|
|00002820| 3b 0a 20 20 0a 20 20 72 | 65 74 75 72 6e 20 72 3b |;. . r|eturn r;|
|00002830| 0a 7d 0a 0a 55 44 49 45 | 72 72 6f 72 20 55 44 49 |.}..UDIE|rror UDI|
|00002840| 45 78 65 63 75 74 65 20 | 28 0a 20 20 76 6f 69 64 |Execute |(. void|
|00002850| 0a 20 20 29 0a 7b 0a 20 | 20 72 65 74 75 72 6e 20 |. ).{. | return |
|00002860| 44 4f 5f 43 41 4c 4c 28 | 55 44 49 45 78 65 63 75 |DO_CALL(|UDIExecu|
|00002870| 74 65 5f 63 29 3b 0a 7d | 0a 0a 55 44 49 45 72 72 |te_c);.}|..UDIErr|
|00002880| 6f 72 20 55 44 49 53 74 | 65 70 20 28 0a 20 20 55 |or UDISt|ep (. U|
|00002890| 44 49 55 49 6e 74 33 32 | 09 53 74 65 70 73 2c 09 |DIUInt32|.Steps,.|
|000028a0| 09 09 2f 2a 20 49 6e 20 | 2a 2f 0a 20 20 55 44 49 |../* In |*/. UDI|
|000028b0| 53 74 65 70 54 79 70 65 | 20 20 20 53 74 65 70 54 |StepType| StepT|
|000028c0| 79 70 65 2c 09 09 2f 2a | 20 49 6e 20 2a 2f 0a 20 |ype,../*| In */. |
|000028d0| 20 55 44 49 52 61 6e 67 | 65 20 20 20 20 20 20 52 | UDIRang|e R|
|000028e0| 61 6e 67 65 09 09 09 2f | 2a 20 49 6e 20 2a 2f 0a |ange.../|* In */.|
|000028f0| 20 20 29 0a 7b 0a 20 20 | 49 4e 5f 49 4e 49 54 28 | ).{. |IN_INIT(|
|00002900| 29 3b 0a 20 20 49 4e 5f | 56 41 4c 28 55 44 49 55 |);. IN_|VAL(UDIU|
|00002910| 49 6e 74 33 32 2c 20 53 | 74 65 70 73 29 3b 0a 20 |Int32, S|teps);. |
|00002920| 20 49 4e 5f 56 41 4c 28 | 55 44 49 53 74 65 70 54 | IN_VAL(|UDIStepT|
|00002930| 79 70 65 2c 20 53 74 65 | 70 54 79 70 65 29 3b 0a |ype, Ste|pType);.|
|00002940| 20 20 49 4e 5f 56 41 4c | 28 55 44 49 52 61 6e 67 | IN_VAL|(UDIRang|
|00002950| 65 2c 20 52 61 6e 67 65 | 29 3b 0a 20 20 0a 20 20 |e, Range|);. . |
|00002960| 72 65 74 75 72 6e 20 44 | 4f 5f 43 41 4c 4c 28 55 |return D|O_CALL(U|
|00002970| 44 49 53 74 65 70 5f 63 | 29 3b 0a 7d 0a 0a 55 44 |DIStep_c|);.}..UD|
|00002980| 49 56 6f 69 64 20 55 44 | 49 53 74 6f 70 20 28 0a |IVoid UD|IStop (.|
|00002990| 20 20 76 6f 69 64 0a 20 | 20 29 0a 7b 0a 20 20 44 | void. | ).{. D|
|000029a0| 4f 5f 43 41 4c 4c 28 55 | 44 49 53 74 6f 70 5f 63 |O_CALL(U|DIStop_c|
|000029b0| 29 3b 0a 7d 0a 0a 55 44 | 49 45 72 72 6f 72 20 55 |);.}..UD|IError U|
|000029c0| 44 49 57 61 69 74 20 28 | 0a 20 20 55 44 49 49 6e |DIWait (|. UDIIn|
|000029d0| 74 33 32 09 4d 61 78 54 | 69 6d 65 2c 09 09 2f 2a |t32.MaxT|ime,../*|
|000029e0| 20 49 6e 20 2a 2f 0a 20 | 20 55 44 49 50 49 64 09 | In */. | UDIPId.|
|000029f0| 2a 50 49 64 2c 09 09 09 | 2f 2a 20 4f 75 74 20 2a |*PId,...|/* Out *|
|00002a00| 2f 0a 20 20 55 44 49 55 | 49 6e 74 33 32 09 2a 53 |/. UDIU|Int32.*S|
|00002a10| 74 6f 70 52 65 61 73 6f | 6e 09 09 2f 2a 20 4f 75 |topReaso|n../* Ou|
|00002a20| 74 20 2a 2f 0a 20 20 29 | 0a 7b 0a 20 20 69 6e 74 |t */. )|.{. int|
|00002a30| 20 72 3b 0a 20 20 49 4e | 5f 49 4e 49 54 28 29 3b | r;. IN|_INIT();|
|00002a40| 0a 20 20 49 4e 5f 56 41 | 4c 28 55 44 49 49 6e 74 |. IN_VA|L(UDIInt|
|00002a50| 33 32 2c 20 4d 61 78 54 | 69 6d 65 29 3b 0a 20 20 |32, MaxT|ime);. |
|00002a60| 72 20 3d 20 44 4f 5f 43 | 41 4c 4c 28 55 44 49 57 |r = DO_C|ALL(UDIW|
|00002a70| 61 69 74 5f 63 29 3b 0a | 20 20 4f 55 54 5f 49 4e |ait_c);.| OUT_IN|
|00002a80| 49 54 28 29 3b 0a 20 20 | 2a 50 49 64 20 3d 20 4f |IT();. |*PId = O|
|00002a90| 55 54 5f 56 41 4c 28 55 | 44 49 50 49 64 29 3b 0a |UT_VAL(U|DIPId);.|
|00002aa0| 20 20 2a 53 74 6f 70 52 | 65 61 73 6f 6e 20 3d 20 | *StopR|eason = |
|00002ab0| 4f 55 54 5f 56 41 4c 28 | 55 44 49 55 49 6e 74 33 |OUT_VAL(|UDIUInt3|
|00002ac0| 32 29 3b 0a 20 20 72 65 | 74 75 72 6e 20 72 3b 0a |2);. re|turn r;.|
|00002ad0| 7d 0a 0a 55 44 49 45 72 | 72 6f 72 20 55 44 49 53 |}..UDIEr|ror UDIS|
|00002ae0| 65 74 42 72 65 61 6b 70 | 6f 69 6e 74 20 28 0a 20 |etBreakp|oint (. |
|00002af0| 20 55 44 49 52 65 73 6f | 75 72 63 65 09 41 64 64 | UDIReso|urce.Add|
|00002b00| 72 2c 09 09 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |r,.../* |In */. |
|00002b10| 55 44 49 49 6e 74 33 32 | 09 50 61 73 73 43 6f 75 |UDIInt32|.PassCou|
|00002b20| 6e 74 2c 09 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |nt,../* |In */. |
|00002b30| 55 44 49 42 72 65 61 6b | 54 79 70 65 09 54 79 70 |UDIBreak|Type.Typ|
|00002b40| 65 2c 09 09 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |e,.../* |In */. |
|00002b50| 55 44 49 42 72 65 61 6b | 49 64 09 2a 42 72 65 61 |UDIBreak|Id.*Brea|
|00002b60| 6b 49 64 09 09 2f 2a 20 | 4f 75 74 20 2a 2f 0a 20 |kId../* |Out */. |
|00002b70| 20 29 0a 7b 0a 20 20 69 | 6e 74 20 72 3b 0a 20 20 | ).{. i|nt r;. |
|00002b80| 49 4e 5f 49 4e 49 54 28 | 29 3b 0a 20 20 49 4e 5f |IN_INIT(|);. IN_|
|00002b90| 56 41 4c 28 73 68 6f 72 | 74 2c 20 41 64 64 72 2e |VAL(shor|t, Addr.|
|00002ba0| 53 70 61 63 65 29 3b 0a | 20 20 49 4e 5f 56 41 4c |Space);.| IN_VAL|
|00002bb0| 28 43 50 55 4f 66 66 73 | 65 74 2c 20 41 64 64 72 |(CPUOffs|et, Addr|
|00002bc0| 2e 4f 66 66 73 65 74 29 | 3b 0a 20 20 49 4e 5f 56 |.Offset)|;. IN_V|
|00002bd0| 41 4c 28 55 44 49 49 6e | 74 33 32 2c 20 50 61 73 |AL(UDIIn|t32, Pas|
|00002be0| 73 43 6f 75 6e 74 29 3b | 0a 20 20 49 4e 5f 56 41 |sCount);|. IN_VA|
|00002bf0| 4c 28 55 44 49 42 72 65 | 61 6b 54 79 70 65 2c 20 |L(UDIBre|akType, |
|00002c00| 54 79 70 65 29 3b 0a 20 | 20 0a 20 20 72 20 3d 20 |Type);. | . r = |
|00002c10| 44 4f 5f 43 41 4c 4c 28 | 55 44 49 53 65 74 42 72 |DO_CALL(|UDISetBr|
|00002c20| 65 61 6b 70 6f 69 6e 74 | 5f 63 29 3b 0a 20 20 0a |eakpoint|_c);. .|
|00002c30| 20 20 4f 55 54 5f 49 4e | 49 54 28 29 3b 0a 20 20 | OUT_IN|IT();. |
|00002c40| 2a 42 72 65 61 6b 49 64 | 20 3d 20 4f 55 54 5f 56 |*BreakId| = OUT_V|
|00002c50| 41 4c 28 55 44 49 42 72 | 65 61 6b 49 64 29 3b 0a |AL(UDIBr|eakId);.|
|00002c60| 20 20 72 65 74 75 72 6e | 20 72 3b 0a 7d 0a 0a 55 | return| r;.}..U|
|00002c70| 44 49 45 72 72 6f 72 20 | 55 44 49 51 75 65 72 79 |DIError |UDIQuery|
|00002c80| 42 72 65 61 6b 70 6f 69 | 6e 74 20 28 0a 20 20 55 |Breakpoi|nt (. U|
|00002c90| 44 49 42 72 65 61 6b 49 | 64 09 42 72 65 61 6b 49 |DIBreakI|d.BreakI|
|00002ca0| 64 2c 09 09 2f 2a 20 49 | 6e 20 2a 2f 0a 20 20 55 |d,../* I|n */. U|
|00002cb0| 44 49 52 65 73 6f 75 72 | 63 65 09 2a 41 64 64 72 |DIResour|ce.*Addr|
|00002cc0| 2c 09 09 09 2f 2a 20 4f | 75 74 20 2a 2f 0a 20 20 |,.../* O|ut */. |
|00002cd0| 55 44 49 49 6e 74 33 32 | 09 2a 50 61 73 73 43 6f |UDIInt32|.*PassCo|
|00002ce0| 75 6e 74 2c 09 09 2f 2a | 20 4f 75 74 20 2a 2f 0a |unt,../*| Out */.|
|00002cf0| 20 20 55 44 49 42 72 65 | 61 6b 54 79 70 65 09 2a | UDIBre|akType.*|
|00002d00| 54 79 70 65 2c 09 09 09 | 2f 2a 20 4f 75 74 20 2a |Type,...|/* Out *|
|00002d10| 2f 0a 20 20 55 44 49 49 | 6e 74 33 32 09 2a 43 75 |/. UDII|nt32.*Cu|
|00002d20| 72 72 65 6e 74 43 6f 75 | 6e 74 09 09 2f 2a 20 4f |rrentCou|nt../* O|
|00002d30| 75 74 20 2a 2f 0a 20 20 | 29 0a 7b 0a 20 20 69 6e |ut */. |).{. in|
|00002d40| 74 20 72 3b 0a 20 20 49 | 4e 5f 49 4e 49 54 28 29 |t r;. I|N_INIT()|
|00002d50| 3b 0a 20 20 49 4e 5f 56 | 41 4c 28 55 44 49 42 72 |;. IN_V|AL(UDIBr|
|00002d60| 65 61 6b 49 64 2c 20 42 | 72 65 61 6b 49 64 29 3b |eakId, B|reakId);|
|00002d70| 0a 20 20 0a 20 20 72 20 | 3d 20 44 4f 5f 43 41 4c |. . r |= DO_CAL|
|00002d80| 4c 28 55 44 49 51 75 65 | 72 79 42 72 65 61 6b 70 |L(UDIQue|ryBreakp|
|00002d90| 6f 69 6e 74 5f 63 29 3b | 0a 20 20 0a 20 20 4f 55 |oint_c);|. . OU|
|00002da0| 54 5f 49 4e 49 54 28 29 | 3b 0a 20 20 41 64 64 72 |T_INIT()|;. Addr|
|00002db0| 2d 3e 53 70 61 63 65 20 | 3d 20 4f 55 54 5f 56 41 |->Space |= OUT_VA|
|00002dc0| 4c 28 73 68 6f 72 74 29 | 3b 0a 20 20 41 64 64 72 |L(short)|;. Addr|
|00002dd0| 2d 3e 4f 66 66 73 65 74 | 20 3d 20 4f 55 54 5f 56 |->Offset| = OUT_V|
|00002de0| 41 4c 28 43 50 55 4f 66 | 66 73 65 74 29 3b 0a 20 |AL(CPUOf|fset);. |
|00002df0| 20 2a 50 61 73 73 43 6f | 75 6e 74 20 3d 20 4f 55 | *PassCo|unt = OU|
|00002e00| 54 5f 56 41 4c 28 55 44 | 49 49 6e 74 33 32 29 3b |T_VAL(UD|IInt32);|
|00002e10| 0a 20 20 2a 54 79 70 65 | 20 3d 20 4f 55 54 5f 56 |. *Type| = OUT_V|
|00002e20| 41 4c 28 55 44 49 42 72 | 65 61 6b 54 79 70 65 29 |AL(UDIBr|eakType)|
|00002e30| 3b 0a 20 20 2a 43 75 72 | 72 65 6e 74 43 6f 75 6e |;. *Cur|rentCoun|
|00002e40| 74 20 3d 20 4f 55 54 5f | 56 41 4c 28 55 44 49 49 |t = OUT_|VAL(UDII|
|00002e50| 6e 74 33 32 29 3b 0a 20 | 20 0a 20 20 72 65 74 75 |nt32);. | . retu|
|00002e60| 72 6e 20 72 3b 0a 7d 0a | 0a 55 44 49 45 72 72 6f |rn r;.}.|.UDIErro|
|00002e70| 72 20 55 44 49 43 6c 65 | 61 72 42 72 65 61 6b 70 |r UDICle|arBreakp|
|00002e80| 6f 69 6e 74 20 28 0a 20 | 20 55 44 49 42 72 65 61 |oint (. | UDIBrea|
|00002e90| 6b 49 64 09 42 72 65 61 | 6b 49 64 09 09 09 2f 2a |kId.Brea|kId.../*|
|00002ea0| 20 49 6e 20 2a 2f 0a 20 | 20 29 0a 7b 0a 20 20 49 | In */. | ).{. I|
|00002eb0| 4e 5f 49 4e 49 54 28 29 | 3b 0a 20 20 49 4e 5f 56 |N_INIT()|;. IN_V|
|00002ec0| 41 4c 28 55 44 49 42 72 | 65 61 6b 49 64 2c 20 42 |AL(UDIBr|eakId, B|
|00002ed0| 72 65 61 6b 49 64 29 3b | 0a 20 20 0a 20 20 72 65 |reakId);|. . re|
|00002ee0| 74 75 72 6e 20 44 4f 5f | 43 41 4c 4c 28 55 44 49 |turn DO_|CALL(UDI|
|00002ef0| 43 6c 65 61 72 42 72 65 | 61 6b 70 6f 69 6e 74 5f |ClearBre|akpoint_|
|00002f00| 63 29 3b 0a 7d 0a 0a 55 | 44 49 45 72 72 6f 72 20 |c);.}..U|DIError |
|00002f10| 55 44 49 47 65 74 53 74 | 64 6f 75 74 20 28 0a 20 |UDIGetSt|dout (. |
|00002f20| 20 55 44 49 48 6f 73 74 | 4d 65 6d 50 74 72 09 42 | UDIHost|MemPtr.B|
|00002f30| 75 66 2c 09 09 09 2f 2a | 20 4f 75 74 20 2a 2f 0a |uf,.../*| Out */.|
|00002f40| 20 20 55 44 49 53 69 7a | 65 54 09 42 75 66 53 69 | UDISiz|eT.BufSi|
|00002f50| 7a 65 2c 09 09 2f 2a 20 | 49 6e 20 2a 2f 0a 20 20 |ze,../* |In */. |
|00002f60| 55 44 49 53 69 7a 65 54 | 09 2a 43 6f 75 6e 74 44 |UDISizeT|.*CountD|
|00002f70| 6f 6e 65 09 09 2f 2a 20 | 4f 75 74 20 2a 2f 0a 20 |one../* |Out */. |
|00002f80| 20 29 0a 7b 0a 20 20 69 | 6e 74 20 72 3b 0a 20 20 | ).{. i|nt r;. |
|00002f90| 49 4e 5f 49 4e 49 54 28 | 29 3b 0a 20 20 69 66 20 |IN_INIT(|);. if |
|00002fa0| 28 42 75 66 53 69 7a 65 | 20 3e 20 34 30 30 30 29 |(BufSize| > 4000)|
|00002fb0| 0a 20 20 20 20 42 75 66 | 53 69 7a 65 20 3d 20 34 |. Buf|Size = 4|
|00002fc0| 30 30 30 3b 0a 20 20 49 | 4e 5f 56 41 4c 28 55 44 |000;. I|N_VAL(UD|
|00002fd0| 49 53 69 7a 65 54 2c 42 | 75 66 53 69 7a 65 29 3b |ISizeT,B|ufSize);|
|00002fe0| 0a 20 20 72 20 3d 20 44 | 4f 5f 43 41 4c 4c 28 55 |. r = D|O_CALL(U|
|00002ff0| 44 49 47 65 74 53 74 64 | 6f 75 74 5f 63 29 3b 0a |DIGetStd|out_c);.|
|00003000| 20 20 4f 55 54 5f 49 4e | 49 54 28 29 3b 0a 20 20 | OUT_IN|IT();. |
|00003010| 2a 43 6f 75 6e 74 44 6f | 6e 65 20 3d 20 4f 55 54 |*CountDo|ne = OUT|
|00003020| 5f 56 41 4c 28 55 44 49 | 53 69 7a 65 54 29 3b 0a |_VAL(UDI|SizeT);.|
|00003030| 20 20 69 66 20 28 2a 43 | 6f 75 6e 74 44 6f 6e 65 | if (*C|ountDone|
|00003040| 20 3c 3d 20 42 75 66 53 | 69 7a 65 29 0a 20 20 20 | <= BufS|ize). |
|00003050| 20 4f 55 54 5f 44 41 54 | 41 28 42 75 66 2c 20 2a | OUT_DAT|A(Buf, *|
|00003060| 43 6f 75 6e 74 44 6f 6e | 65 29 3b 0a 20 20 72 65 |CountDon|e);. re|
|00003070| 74 75 72 6e 20 72 3b 0a | 7d 0a 0a 55 44 49 45 72 |turn r;.|}..UDIEr|
|00003080| 72 6f 72 20 55 44 49 47 | 65 74 53 74 64 65 72 72 |ror UDIG|etStderr|
|00003090| 20 28 0a 20 20 55 44 49 | 48 6f 73 74 4d 65 6d 50 | (. UDI|HostMemP|
|000030a0| 74 72 09 42 75 66 2c 09 | 09 09 2f 2a 20 4f 75 74 |tr.Buf,.|../* Out|
|000030b0| 20 2a 2f 0a 20 20 55 44 | 49 53 69 7a 65 54 09 42 | */. UD|ISizeT.B|
|000030c0| 75 66 53 69 7a 65 2c 09 | 09 2f 2a 20 49 6e 20 2a |ufSize,.|./* In *|
|000030d0| 2f 0a 20 20 55 44 49 53 | 69 7a 65 54 09 2a 43 6f |/. UDIS|izeT.*Co|
|000030e0| 75 6e 74 44 6f 6e 65 09 | 09 2f 2a 20 4f 75 74 20 |untDone.|./* Out |
|000030f0| 2a 2f 0a 20 20 29 0a 7b | 0a 20 20 69 6e 74 20 72 |*/. ).{|. int r|
|00003100| 3b 0a 20 20 49 4e 5f 49 | 4e 49 54 28 29 3b 0a 20 |;. IN_I|NIT();. |
|00003110| 20 69 66 20 28 42 75 66 | 53 69 7a 65 20 3e 20 34 | if (Buf|Size > 4|
|00003120| 30 30 30 29 0a 20 20 20 | 20 42 75 66 53 69 7a 65 |000). | BufSize|
|00003130| 20 3d 20 34 30 30 30 3b | 0a 20 20 49 4e 5f 56 41 | = 4000;|. IN_VA|
|00003140| 4c 28 55 44 49 53 69 7a | 65 54 2c 42 75 66 53 69 |L(UDISiz|eT,BufSi|
|00003150| 7a 65 29 3b 0a 20 20 72 | 20 3d 20 44 4f 5f 43 41 |ze);. r| = DO_CA|
|00003160| 4c 4c 28 55 44 49 47 65 | 74 53 74 64 65 72 72 5f |LL(UDIGe|tStderr_|
|00003170| 63 29 3b 0a 20 20 4f 55 | 54 5f 49 4e 49 54 28 29 |c);. OU|T_INIT()|
|00003180| 3b 0a 20 20 2a 43 6f 75 | 6e 74 44 6f 6e 65 20 3d |;. *Cou|ntDone =|
|00003190| 20 4f 55 54 5f 56 41 4c | 28 55 44 49 53 69 7a 65 | OUT_VAL|(UDISize|
|000031a0| 54 29 3b 0a 20 20 4f 55 | 54 5f 44 41 54 41 28 42 |T);. OU|T_DATA(B|
|000031b0| 75 66 2c 20 2a 43 6f 75 | 6e 74 44 6f 6e 65 29 3b |uf, *Cou|ntDone);|
|000031c0| 0a 20 20 72 65 74 75 72 | 6e 20 72 3b 0a 7d 0a 0a |. retur|n r;.}..|
|000031d0| 55 44 49 45 72 72 6f 72 | 20 55 44 49 50 75 74 53 |UDIError| UDIPutS|
|000031e0| 74 64 69 6e 20 28 0a 20 | 20 55 44 49 48 6f 73 74 |tdin (. | UDIHost|
|000031f0| 4d 65 6d 50 74 72 09 42 | 75 66 2c 09 09 09 2f 2a |MemPtr.B|uf,.../*|
|00003200| 20 49 6e 20 2a 2f 0a 20 | 20 55 44 49 53 69 7a 65 | In */. | UDISize|
|00003210| 54 09 43 6f 75 6e 74 2c | 09 09 09 2f 2a 20 49 6e |T.Count,|.../* In|
|00003220| 20 2a 2f 0a 20 20 55 44 | 49 53 69 7a 65 54 09 2a | */. UD|ISizeT.*|
|00003230| 43 6f 75 6e 74 44 6f 6e | 65 09 09 2f 2a 20 4f 75 |CountDon|e../* Ou|
|00003240| 74 20 2a 2f 0a 20 20 29 | 0a 7b 0a 20 20 69 6e 74 |t */. )|.{. int|
|00003250| 20 72 3b 0a 20 20 49 4e | 5f 49 4e 49 54 28 29 3b | r;. IN|_INIT();|
|00003260| 0a 20 20 69 66 20 28 43 | 6f 75 6e 74 20 3e 20 34 |. if (C|ount > 4|
|00003270| 30 30 30 29 0a 20 20 20 | 20 43 6f 75 6e 74 20 3d |000). | Count =|
|00003280| 20 34 30 30 30 3b 0a 20 | 20 49 4e 5f 56 41 4c 28 | 4000;. | IN_VAL(|
|00003290| 55 44 49 53 69 7a 65 54 | 2c 43 6f 75 6e 74 29 3b |UDISizeT|,Count);|
|000032a0| 0a 20 20 49 4e 5f 44 41 | 54 41 28 42 75 66 2c 20 |. IN_DA|TA(Buf, |
|000032b0| 43 6f 75 6e 74 29 3b 0a | 20 20 72 20 3d 20 44 4f |Count);.| r = DO|
|000032c0| 5f 43 41 4c 4c 28 55 44 | 49 50 75 74 53 74 64 69 |_CALL(UD|IPutStdi|
|000032d0| 6e 5f 63 29 3b 0a 20 20 | 4f 55 54 5f 49 4e 49 54 |n_c);. |OUT_INIT|
|000032e0| 28 29 3b 0a 20 20 2a 43 | 6f 75 6e 74 44 6f 6e 65 |();. *C|ountDone|
|000032f0| 20 3d 20 4f 55 54 5f 56 | 41 4c 28 55 44 49 53 69 | = OUT_V|AL(UDISi|
|00003300| 7a 65 54 29 3b 0a 20 20 | 72 65 74 75 72 6e 20 72 |zeT);. |return r|
|00003310| 3b 0a 7d 0a 0a 55 44 49 | 45 72 72 6f 72 20 55 44 |;.}..UDI|Error UD|
|00003320| 49 53 74 64 69 6e 4d 6f | 64 65 20 28 0a 20 20 55 |IStdinMo|de (. U|
|00003330| 44 49 4d 6f 64 65 09 2a | 4d 6f 64 65 09 09 09 2f |DIMode.*|Mode.../|
|00003340| 2a 20 4f 75 74 20 2a 2f | 0a 20 20 29 0a 7b 0a 20 |* Out */|. ).{. |
|00003350| 20 69 6e 74 20 72 3b 0a | 20 20 49 4e 5f 49 4e 49 | int r;.| IN_INI|
|00003360| 54 28 29 3b 0a 20 20 72 | 20 3d 20 44 4f 5f 43 41 |T();. r| = DO_CA|
|00003370| 4c 4c 28 55 44 49 53 74 | 64 69 6e 4d 6f 64 65 5f |LL(UDISt|dinMode_|
|00003380| 63 29 3b 0a 20 20 4f 55 | 54 5f 49 4e 49 54 28 29 |c);. OU|T_INIT()|
|00003390| 3b 0a 20 20 2a 4d 6f 64 | 65 20 3d 20 4f 55 54 5f |;. *Mod|e = OUT_|
|000033a0| 56 41 4c 28 55 44 49 4d | 6f 64 65 29 3b 0a 20 20 |VAL(UDIM|ode);. |
|000033b0| 72 65 74 75 72 6e 20 72 | 3b 0a 7d 0a 0a 55 44 49 |return r|;.}..UDI|
|000033c0| 45 72 72 6f 72 20 55 44 | 49 50 75 74 54 72 61 6e |Error UD|IPutTran|
|000033d0| 73 20 28 0a 20 20 55 44 | 49 48 6f 73 74 4d 65 6d |s (. UD|IHostMem|
|000033e0| 50 74 72 09 42 75 66 2c | 09 09 09 2f 2a 20 49 6e |Ptr.Buf,|.../* In|
|000033f0| 20 2a 2f 0a 20 20 55 44 | 49 53 69 7a 65 54 09 43 | */. UD|ISizeT.C|
|00003400| 6f 75 6e 74 2c 09 09 09 | 2f 2a 20 49 6e 20 2a 2f |ount,...|/* In */|
|00003410| 0a 20 20 55 44 49 53 69 | 7a 65 54 09 2a 43 6f 75 |. UDISi|zeT.*Cou|
|00003420| 6e 74 44 6f 6e 65 09 09 | 2f 2a 20 4f 75 74 20 2a |ntDone..|/* Out *|
|00003430| 2f 0a 20 20 29 0a 7b 0a | 20 20 69 6e 74 20 72 3b |/. ).{.| int r;|
|00003440| 0a 20 20 49 4e 5f 49 4e | 49 54 28 29 3b 0a 20 20 |. IN_IN|IT();. |
|00003450| 69 66 20 28 43 6f 75 6e | 74 20 3e 20 34 30 30 30 |if (Coun|t > 4000|
|00003460| 29 0a 20 20 20 20 43 6f | 75 6e 74 20 3d 20 34 30 |). Co|unt = 40|
|00003470| 30 30 3b 0a 20 20 49 4e | 5f 56 41 4c 28 55 44 49 |00;. IN|_VAL(UDI|
|00003480| 53 69 7a 65 54 2c 43 6f | 75 6e 74 29 3b 0a 20 20 |SizeT,Co|unt);. |
|00003490| 49 4e 5f 44 41 54 41 28 | 42 75 66 2c 20 43 6f 75 |IN_DATA(|Buf, Cou|
|000034a0| 6e 74 29 3b 0a 20 20 72 | 20 3d 20 44 4f 5f 43 41 |nt);. r| = DO_CA|
|000034b0| 4c 4c 28 55 44 49 50 75 | 74 54 72 61 6e 73 5f 63 |LL(UDIPu|tTrans_c|
|000034c0| 29 3b 0a 20 20 4f 55 54 | 5f 49 4e 49 54 28 29 3b |);. OUT|_INIT();|
|000034d0| 0a 20 20 2a 43 6f 75 6e | 74 44 6f 6e 65 20 3d 20 |. *Coun|tDone = |
|000034e0| 4f 55 54 5f 56 41 4c 28 | 55 44 49 53 69 7a 65 54 |OUT_VAL(|UDISizeT|
|000034f0| 29 3b 0a 20 20 72 65 74 | 75 72 6e 20 72 3b 0a 7d |);. ret|urn r;.}|
|00003500| 0a 0a 55 44 49 45 72 72 | 6f 72 20 55 44 49 47 65 |..UDIErr|or UDIGe|
|00003510| 74 54 72 61 6e 73 20 28 | 0a 20 20 55 44 49 48 6f |tTrans (|. UDIHo|
|00003520| 73 74 4d 65 6d 50 74 72 | 09 42 75 66 2c 09 09 09 |stMemPtr|.Buf,...|
|00003530| 2f 2a 20 4f 75 74 20 2a | 2f 0a 20 20 55 44 49 53 |/* Out *|/. UDIS|
|00003540| 69 7a 65 54 09 42 75 66 | 53 69 7a 65 2c 09 09 2f |izeT.Buf|Size,../|
|00003550| 2a 20 49 6e 20 2a 2f 0a | 20 20 55 44 49 53 69 7a |* In */.| UDISiz|
|00003560| 65 54 09 2a 43 6f 75 6e | 74 44 6f 6e 65 09 09 2f |eT.*Coun|tDone../|
|00003570| 2a 20 4f 75 74 20 2a 2f | 0a 20 20 29 0a 7b 0a 20 |* Out */|. ).{. |
|00003580| 20 69 6e 74 20 72 3b 0a | 20 20 49 4e 5f 49 4e 49 | int r;.| IN_INI|
|00003590| 54 28 29 3b 0a 20 20 69 | 66 20 28 42 75 66 53 69 |T();. i|f (BufSi|
|000035a0| 7a 65 20 3e 20 34 30 30 | 30 29 0a 20 20 20 20 42 |ze > 400|0). B|
|000035b0| 75 66 53 69 7a 65 20 3d | 20 34 30 30 30 3b 0a 20 |ufSize =| 4000;. |
|000035c0| 20 49 4e 5f 56 41 4c 28 | 55 44 49 53 69 7a 65 54 | IN_VAL(|UDISizeT|
|000035d0| 2c 42 75 66 53 69 7a 65 | 29 3b 0a 20 20 72 20 3d |,BufSize|);. r =|
|000035e0| 20 44 4f 5f 43 41 4c 4c | 28 55 44 49 47 65 74 54 | DO_CALL|(UDIGetT|
|000035f0| 72 61 6e 73 5f 63 29 3b | 0a 20 20 4f 55 54 5f 49 |rans_c);|. OUT_I|
|00003600| 4e 49 54 28 29 3b 0a 20 | 20 2a 43 6f 75 6e 74 44 |NIT();. | *CountD|
|00003610| 6f 6e 65 20 3d 20 4f 55 | 54 5f 56 41 4c 28 55 44 |one = OU|T_VAL(UD|
|00003620| 49 53 69 7a 65 54 29 3b | 0a 20 20 4f 55 54 5f 44 |ISizeT);|. OUT_D|
|00003630| 41 54 41 28 42 75 66 2c | 20 2a 43 6f 75 6e 74 44 |ATA(Buf,| *CountD|
|00003640| 6f 6e 65 29 3b 0a 20 20 | 72 65 74 75 72 6e 20 72 |one);. |return r|
|00003650| 3b 0a 7d 0a 0a 55 44 49 | 45 72 72 6f 72 20 55 44 |;.}..UDI|Error UD|
|00003660| 49 54 72 61 6e 73 4d 6f | 64 65 20 28 0a 20 20 55 |ITransMo|de (. U|
|00003670| 44 49 4d 6f 64 65 09 2a | 4d 6f 64 65 09 09 09 2f |DIMode.*|Mode.../|
|00003680| 2a 20 4f 75 74 20 2a 2f | 0a 20 20 29 0a 7b 0a 20 |* Out */|. ).{. |
|00003690| 20 69 6e 74 20 72 3b 0a | 20 20 49 4e 5f 49 4e 49 | int r;.| IN_INI|
|000036a0| 54 28 29 3b 0a 20 20 72 | 20 3d 20 44 4f 5f 43 41 |T();. r| = DO_CA|
|000036b0| 4c 4c 28 55 44 49 54 72 | 61 6e 73 4d 6f 64 65 5f |LL(UDITr|ansMode_|
|000036c0| 63 29 3b 0a 20 20 4f 55 | 54 5f 49 4e 49 54 28 29 |c);. OU|T_INIT()|
|000036d0| 3b 0a 20 20 2a 4d 6f 64 | 65 20 3d 20 4f 55 54 5f |;. *Mod|e = OUT_|
|000036e0| 56 41 4c 28 55 44 49 4d | 6f 64 65 29 3b 0a 20 20 |VAL(UDIM|ode);. |
|000036f0| 72 65 74 75 72 6e 20 72 | 3b 0a 7d 0a 0a 23 64 65 |return r|;.}..#de|
|00003700| 66 69 6e 65 20 44 46 45 | 49 50 43 49 64 43 6f 6d |fine DFE|IPCIdCom|
|00003710| 70 61 6e 79 20 30 78 30 | 30 30 31 09 2f 2a 20 43 |pany 0x0|001./* C|
|00003720| 6f 6d 70 61 6e 79 20 49 | 44 20 41 4d 44 20 2a 2f |ompany I|D AMD */|
|00003730| 0a 23 64 65 66 69 6e 65 | 20 44 46 45 49 50 43 49 |.#define| DFEIPCI|
|00003740| 64 50 72 6f 64 75 63 74 | 20 30 78 31 09 2f 2a 20 |dProduct| 0x1./* |
|00003750| 50 72 6f 64 75 63 74 20 | 49 44 20 30 20 2a 2f 0a |Product |ID 0 */.|
|00003760| 23 64 65 66 69 6e 65 20 | 44 46 45 49 50 43 49 64 |#define |DFEIPCId|
|00003770| 56 65 72 73 69 6f 6e 20 | 30 78 31 32 35 09 2f 2a |Version |0x125./*|
|00003780| 20 31 2e 32 2e 35 20 2a | 2f 0a 0a 75 6e 73 69 67 | 1.2.5 *|/..unsig|
|00003790| 6e 65 64 20 55 44 49 47 | 65 74 44 46 45 49 50 43 |ned UDIG|etDFEIPC|
|000037a0| 49 64 20 28 29 0a 7b 0a | 20 20 20 20 72 65 74 75 |Id ().{.| retu|
|000037b0| 72 6e 28 28 28 28 55 44 | 49 55 49 6e 74 33 32 29 |rn((((UD|IUInt32)|
|000037c0| 44 46 45 49 50 43 49 64 | 43 6f 6d 70 61 6e 79 29 |DFEIPCId|Company)|
|000037d0| 20 3c 3c 20 31 36 29 20 | 7c 28 44 46 45 49 50 43 | << 16) ||(DFEIPC|
|000037e0| 49 64 50 72 6f 64 75 63 | 74 20 3c 3c 20 31 32 29 |IdProduc|t << 12)|
|000037f0| 20 7c 20 44 46 45 49 50 | 43 49 64 56 65 72 73 69 | | DFEIP|CIdVersi|
|00003800| 6f 6e 29 3b 0a 7d 0a 0a | 23 65 6e 64 69 66 20 2f |on);.}..|#endif /|
|00003810| 2a 20 5f 5f 47 4f 33 32 | 5f 5f 20 2a 2f 0a 00 00 |* __GO32|__ */...|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 67 64 62 2d 34 2e 31 36 | 2f 67 64 62 2f 32 39 6b |gdb-4.16|/gdb/29k|
|00003a10| 2d 73 68 61 72 65 2f 75 | 64 69 2f 75 64 69 69 64 |-share/u|di/udiid|
|00003a20| 73 2e 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.h.....|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 36 | 36 36 20 00 20 33 34 35 |.... 6|66 . 345|
|00003a70| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00003a80| 20 20 20 33 35 30 36 20 | 20 36 30 30 37 35 37 30 | 3506 | 6007570|
|00003a90| 31 31 37 20 20 31 35 32 | 32 33 00 20 30 00 00 00 |117 152|23. 0...|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 63 79 67 6e 75 73 00 |........|.cygnus.|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 2f 2a 20 54 68 69 73 20 | 66 69 6c 65 20 63 6f 6e |/* This |file con|
|00003c10| 74 61 69 6e 73 20 74 68 | 65 20 44 46 45 20 61 6e |tains th|e DFE an|
|00003c20| 64 20 54 49 50 20 49 44 | 73 20 74 6f 20 62 65 20 |d TIP ID|s to be |
|00003c30| 75 73 65 64 20 62 79 20 | 41 4d 44 20 70 72 6f 64 |used by |AMD prod|
|00003c40| 75 63 74 73 20 66 6f 72 | 0a 20 20 20 74 68 65 20 |ucts for|. the |
|00003c50| 55 44 49 43 61 70 61 62 | 69 6c 69 74 69 65 73 20 |UDICapab|ilities |
|00003c60| 63 61 6c 6c 2e 0a 20 20 | 20 0a 20 20 20 43 6f 70 |call.. | . Cop|
|00003c70| 79 72 69 67 68 74 20 31 | 39 39 33 20 46 72 65 65 |yright 1|993 Free|
|00003c80| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|00003c90| 74 69 6f 6e 2c 20 49 6e | 63 2e 0a 20 20 20 0a 20 |tion, In|c.. . |
|00003ca0| 20 20 54 68 69 73 20 66 | 69 6c 65 20 69 73 20 70 | This f|ile is p|
|00003cb0| 61 72 74 20 6f 66 20 47 | 44 42 2e 0a 20 20 20 0a |art of G|DB.. .|
|00003cc0| 20 20 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 | This |program |
|00003cd0| 69 73 20 66 72 65 65 20 | 73 6f 66 74 77 61 72 65 |is free |software|
|00003ce0| 3b 20 79 6f 75 20 63 61 | 6e 20 72 65 64 69 73 74 |; you ca|n redist|
|00003cf0| 72 69 62 75 74 65 20 69 | 74 20 61 6e 64 2f 6f 72 |ribute i|t and/or|
|00003d00| 20 6d 6f 64 69 66 79 0a | 20 20 20 69 74 20 75 6e | modify.| it un|
|00003d10| 64 65 72 20 74 68 65 20 | 74 65 72 6d 73 20 6f 66 |der the |terms of|
|00003d20| 20 74 68 65 20 47 4e 55 | 20 47 65 6e 65 72 61 6c | the GNU| General|
|00003d30| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 20 | Public |License |
|00003d40| 61 73 20 70 75 62 6c 69 | 73 68 65 64 20 62 79 0a |as publi|shed by.|
|00003d50| 20 20 20 74 68 65 20 46 | 72 65 65 20 53 6f 66 74 | the F|ree Soft|
|00003d60| 77 61 72 65 20 46 6f 75 | 6e 64 61 74 69 6f 6e 3b |ware Fou|ndation;|
|00003d70| 20 65 69 74 68 65 72 20 | 76 65 72 73 69 6f 6e 20 | either |version |
|00003d80| 32 20 6f 66 20 74 68 65 | 20 4c 69 63 65 6e 73 65 |2 of the| License|
|00003d90| 2c 20 6f 72 0a 20 20 20 | 28 61 74 20 79 6f 75 72 |, or. |(at your|
|00003da0| 20 6f 70 74 69 6f 6e 29 | 20 61 6e 79 20 6c 61 74 | option)| any lat|
|00003db0| 65 72 20 76 65 72 73 69 | 6f 6e 2e 0a 20 20 20 0a |er versi|on.. .|
|00003dc0| 20 20 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 | This |program |
|00003dd0| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00003de0| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00003df0| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|00003e00| 6c 2c 0a 20 20 20 62 75 | 74 20 57 49 54 48 4f 55 |l,. bu|t WITHOU|
|00003e10| 54 20 41 4e 59 20 57 41 | 52 52 41 4e 54 59 3b 20 |T ANY WA|RRANTY; |
|00003e20| 77 69 74 68 6f 75 74 20 | 65 76 65 6e 20 74 68 65 |without |even the|
|00003e30| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|00003e40| 79 20 6f 66 0a 20 20 20 | 4d 45 52 43 48 41 4e 54 |y of. |MERCHANT|
|00003e50| 41 42 49 4c 49 54 59 20 | 6f 72 20 46 49 54 4e 45 |ABILITY |or FITNE|
|00003e60| 53 53 20 46 4f 52 20 41 | 20 50 41 52 54 49 43 55 |SS FOR A| PARTICU|
|00003e70| 4c 41 52 20 50 55 52 50 | 4f 53 45 2e 20 20 53 65 |LAR PURP|OSE. Se|
|00003e80| 65 20 74 68 65 0a 20 20 | 20 47 4e 55 20 47 65 6e |e the. | GNU Gen|
|00003e90| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00003ea0| 6e 73 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |nse for |more det|
|00003eb0| 61 69 6c 73 2e 0a 20 20 | 20 0a 20 20 20 59 6f 75 |ails.. | . You|
|00003ec0| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 72 65 63 | should |have rec|
|00003ed0| 65 69 76 65 64 20 61 20 | 63 6f 70 79 20 6f 66 20 |eived a |copy of |
|00003ee0| 74 68 65 20 47 4e 55 20 | 47 65 6e 65 72 61 6c 20 |the GNU |General |
|00003ef0| 50 75 62 6c 69 63 20 4c | 69 63 65 6e 73 65 0a 20 |Public L|icense. |
|00003f00| 20 20 61 6c 6f 6e 67 20 | 77 69 74 68 20 74 68 69 | along |with thi|
|00003f10| 73 20 70 72 6f 67 72 61 | 6d 3b 20 69 66 20 6e 6f |s progra|m; if no|
|00003f20| 74 2c 20 77 72 69 74 65 | 20 74 6f 20 74 68 65 20 |t, write| to the |
|00003f30| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 0a 20 20 |Free Sof|tware. |
|00003f40| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 2c 20 49 6e 63 | Foundat|ion, Inc|
|00003f50| 2e 2c 20 35 39 20 54 65 | 6d 70 6c 65 20 50 6c 61 |., 59 Te|mple Pla|
|00003f60| 63 65 20 2d 20 53 75 69 | 74 65 20 33 33 30 2c 20 |ce - Sui|te 330, |
|00003f70| 42 6f 73 74 6f 6e 2c 20 | 4d 41 20 30 32 31 31 31 |Boston, |MA 02111|
|00003f80| 2d 31 33 30 37 2c 20 55 | 53 41 2e 20 20 2a 2f 0a |-1307, U|SA. */.|
|00003f90| 0a 09 2f 2a 20 43 6f 6d | 70 61 6e 79 20 43 6f 64 |../* Com|pany Cod|
|00003fa0| 65 73 20 2d 2d 20 41 4d | 44 20 61 73 73 69 67 6e |es -- AM|D assign|
|00003fb0| 73 20 74 68 65 73 65 20 | 2a 2f 0a 23 64 65 66 69 |s these |*/.#defi|
|00003fc0| 6e 65 20 55 44 49 43 6f | 6d 70 61 6e 79 43 6f 64 |ne UDICo|mpanyCod|
|00003fd0| 65 5f 41 4d 44 20 31 0a | 0a 09 2f 2a 20 42 75 69 |e_AMD 1.|../* Bui|
|00003fe0| 6c 64 20 61 20 55 44 49 | 49 44 20 67 69 76 65 6e |ld a UDI|ID given|
|00003ff0| 20 61 20 43 6f 6d 70 61 | 6e 79 50 72 6f 64 43 6f | a Compa|nyProdCo|
|00004000| 64 65 20 61 6e 64 20 33 | 20 76 65 72 73 69 6f 6e |de and 3| version|
|00004010| 20 70 69 65 63 65 73 20 | 2a 2f 0a 23 64 65 66 69 | pieces |*/.#defi|
|00004020| 6e 65 20 55 44 49 49 44 | 28 43 6f 6d 70 61 6e 79 |ne UDIID|(Company|
|00004030| 50 72 6f 64 43 6f 64 65 | 2c 20 76 31 2c 76 32 2c |ProdCode|, v1,v2,|
|00004040| 76 33 29 20 28 28 28 28 | 43 6f 6d 70 61 6e 79 50 |v3) ((((|CompanyP|
|00004050| 72 6f 64 43 6f 64 65 29 | 20 26 20 30 78 66 66 66 |rodCode)| & 0xfff|
|00004060| 66 66 29 3c 3c 31 32 29 | 2b 5c 0a 09 09 09 09 20 |ff)<<12)|+\..... |
|00004070| 20 28 28 28 76 31 29 26 | 30 78 66 29 3c 3c 38 29 | (((v1)&|0xf)<<8)|
|00004080| 20 2b 20 28 28 28 76 32 | 29 26 30 78 66 29 3c 3c | + (((v2|)&0xf)<<|
|00004090| 34 29 20 2b 20 28 28 76 | 33 29 26 30 78 66 29 29 |4) + ((v|3)&0xf))|
|000040a0| 20 0a 0a 0a 09 2f 2a 20 | 45 78 74 72 61 63 74 20 | ..../* |Extract |
|000040b0| 61 20 43 6f 6d 70 61 6e | 79 50 72 6f 64 43 6f 64 |a Compan|yProdCod|
|000040c0| 65 20 6f 72 20 61 20 56 | 65 72 73 69 6f 6e 20 66 |e or a V|ersion f|
|000040d0| 72 6f 6d 20 61 20 55 44 | 49 49 44 20 2a 2f 0a 23 |rom a UD|IID */.#|
|000040e0| 64 65 66 69 6e 65 20 55 | 44 49 49 44 5f 43 6f 6d |define U|DIID_Com|
|000040f0| 70 61 6e 79 50 72 6f 64 | 43 6f 64 65 28 69 64 29 |panyProd|Code(id)|
|00004100| 20 28 28 28 69 64 29 3e | 3e 31 32 29 20 26 20 30 | (((id)>|>12) & 0|
|00004110| 78 66 66 66 66 66 29 0a | 23 64 65 66 69 6e 65 20 |xfffff).|#define |
|00004120| 55 44 49 49 44 5f 56 65 | 72 73 69 6f 6e 28 69 64 |UDIID_Ve|rsion(id|
|00004130| 29 20 28 28 69 64 29 26 | 30 78 66 66 66 29 0a 0a |) ((id)&|0xfff)..|
|00004140| 0a 23 64 65 66 69 6e 65 | 20 55 44 49 41 4d 44 50 |.#define| UDIAMDP|
|00004150| 72 6f 64 75 63 74 28 50 | 72 6f 64 43 6f 64 65 29 |roduct(P|rodCode)|
|00004160| 20 28 28 55 44 49 43 6f | 6d 70 61 6e 79 43 6f 64 | ((UDICo|mpanyCod|
|00004170| 65 5f 41 4d 44 3c 3c 34 | 29 20 2b 20 28 50 72 6f |e_AMD<<4|) + (Pro|
|00004180| 64 43 6f 64 65 26 30 78 | 66 29 29 0a 0a 09 2f 2a |dCode&0x|f)).../*|
|00004190| 20 41 4d 44 20 44 46 45 | 20 50 72 6f 64 75 63 74 | AMD DFE| Product|
|000041a0| 20 43 6f 64 65 73 20 2a | 2f 0a 23 64 65 66 69 6e | Codes *|/.#defin|
|000041b0| 65 20 55 44 49 50 72 6f | 64 75 63 74 43 6f 64 65 |e UDIPro|ductCode|
|000041c0| 5f 4d 6f 6e 64 66 65 20 | 55 44 49 41 4d 44 50 72 |_Mondfe |UDIAMDPr|
|000041d0| 6f 64 75 63 74 28 30 29 | 0a 23 64 65 66 69 6e 65 |oduct(0)|.#define|
|000041e0| 20 55 44 49 50 72 6f 64 | 75 63 74 43 6f 64 65 5f | UDIProd|uctCode_|
|000041f0| 58 52 41 59 20 20 20 55 | 44 49 41 4d 44 50 72 6f |XRAY U|DIAMDPro|
|00004200| 64 75 63 74 28 31 29 0a | 23 64 65 66 69 6e 65 20 |duct(1).|#define |
|00004210| 55 44 49 50 72 6f 64 75 | 63 74 43 6f 64 65 5f 54 |UDIProdu|ctCode_T|
|00004220| 49 50 54 65 73 74 65 72 | 20 20 55 44 49 41 4d 44 |IPTester| UDIAMD|
|00004230| 50 72 6f 64 75 63 74 28 | 32 29 0a 0a 09 2f 2a 20 |Product(|2).../* |
|00004240| 41 4d 44 20 54 49 50 20 | 50 72 6f 64 75 63 74 20 |AMD TIP |Product |
|00004250| 43 6f 64 65 73 20 28 6e | 65 65 64 20 6e 6f 74 20 |Codes (n|eed not |
|00004260| 62 65 20 64 69 73 74 69 | 6e 63 74 20 66 72 6f 6d |be disti|nct from|
|00004270| 20 44 46 45 20 50 72 6f | 64 75 63 74 20 43 6f 64 | DFE Pro|duct Cod|
|00004280| 65 73 29 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 55 |es) */.#|define U|
|00004290| 44 49 50 72 6f 64 75 63 | 74 43 6f 64 65 5f 4d 6f |DIProduc|tCode_Mo|
|000042a0| 6e 74 69 70 20 55 44 49 | 41 4d 44 50 72 6f 64 75 |ntip UDI|AMDProdu|
|000042b0| 63 74 28 30 29 0a 23 64 | 65 66 69 6e 65 20 55 44 |ct(0).#d|efine UD|
|000042c0| 49 50 72 6f 64 75 63 74 | 43 6f 64 65 5f 49 73 73 |IProduct|Code_Iss|
|000042d0| 74 69 70 20 55 44 49 41 | 4d 44 50 72 6f 64 75 63 |tip UDIA|MDProduc|
|000042e0| 74 28 31 29 0a 0a 0a 23 | 64 65 66 69 6e 65 20 55 |t(1)...#|define U|
|000042f0| 44 49 4c 61 74 65 73 74 | 56 65 72 73 69 6f 6e 20 |DILatest|Version |
|00004300| 30 78 31 32 30 09 2f 2a | 20 55 44 49 20 31 2e 32 |0x120./*| UDI 1.2|
|00004310| 2e 30 2c 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |.0, can |be used |
|00004320| 69 6e 20 44 46 45 20 61 | 6e 64 20 54 49 50 20 64 |in DFE a|nd TIP d|
|00004330| 65 73 69 72 65 64 20 55 | 44 49 20 70 61 72 61 6d |esired U|DI param|
|00004340| 73 20 2a 2f 0a 0a 00 00 | 00 00 00 00 00 00 00 00 |s */....|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 67 64 62 2d 34 2e 31 36 | 2f 67 64 62 2f 32 39 6b |gdb-4.16|/gdb/29k|
|00004410| 2d 73 68 61 72 65 2f 75 | 64 69 2f 75 64 69 70 32 |-share/u|di/udip2|
|00004420| 73 6f 63 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |soc.c...|........|
|00004430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004460| 00 00 00 00 20 20 20 36 | 36 36 20 00 20 33 34 35 |.... 6|66 . 345|
|00004470| 36 32 20 00 20 20 31 37 | 35 32 20 00 20 20 20 20 |62 . 17|52 . |
|00004480| 20 31 31 36 30 37 35 20 | 20 36 30 30 37 35 37 30 | 116075 | 6007570|
|00004490| 31 32 31 20 20 31 35 35 | 32 36 00 20 30 00 00 00 |121 155|26. 0...|
|000044a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004500| 00 75 73 74 61 72 20 20 | 00 66 6e 66 00 00 00 00 |.ustar |.fnf....|
|00004510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004520| 00 00 00 00 00 00 00 00 | 00 63 79 67 6e 75 73 00 |........|.cygnus.|
|00004530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004600| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |/* Copyr|ight 199|
|00004610| 33 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |3 Free S|oftware |
|00004620| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 49 6e 63 2e |Foundati|on, Inc.|
|00004630| 0a 20 20 20 0a 20 20 20 | 54 68 69 73 20 66 69 6c |. . |This fil|
|00004640| 65 20 69 73 20 70 61 72 | 74 20 6f 66 20 47 44 42 |e is par|t of GDB|
|00004650| 2e 0a 20 20 20 0a 20 20 | 20 54 68 69 73 20 70 72 |.. . | This pr|
|00004660| 6f 67 72 61 6d 20 69 73 | 20 66 72 65 65 20 73 6f |ogram is| free so|
|00004670| 66 74 77 61 72 65 3b 20 | 79 6f 75 20 63 61 6e 20 |ftware; |you can |
|00004680| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 69 74 20 |redistri|bute it |
|00004690| 61 6e 64 2f 6f 72 20 6d | 6f 64 69 66 79 0a 20 20 |and/or m|odify. |
|000046a0| 20 69 74 20 75 6e 64 65 | 72 20 74 68 65 20 74 65 | it unde|r the te|
|000046b0| 72 6d 73 20 6f 66 20 74 | 68 65 20 47 4e 55 20 47 |rms of t|he GNU G|
|000046c0| 65 6e 65 72 61 6c 20 50 | 75 62 6c 69 63 20 4c 69 |eneral P|ublic Li|
|000046d0| 63 65 6e 73 65 20 61 73 | 20 70 75 62 6c 69 73 68 |cense as| publish|
|000046e0| 65 64 20 62 79 0a 20 20 | 20 74 68 65 20 46 72 65 |ed by. | the Fre|
|000046f0| 65 20 53 6f 66 74 77 61 | 72 65 20 46 6f 75 6e 64 |e Softwa|re Found|
|00004700| 61 74 69 6f 6e 3b 20 65 | 69 74 68 65 72 20 76 65 |ation; e|ither ve|
|00004710| 72 73 69 6f 6e 20 32 20 | 6f 66 20 74 68 65 20 4c |rsion 2 |of the L|
|00004720| 69 63 65 6e 73 65 2c 20 | 6f 72 0a 20 20 20 28 61 |icense, |or. (a|
|00004730| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 20 61 |t your o|ption) a|
|00004740| 6e 79 20 6c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |ny later| version|
|00004750| 2e 0a 20 20 20 0a 20 20 | 20 54 68 69 73 20 70 72 |.. . | This pr|
|00004760| 6f 67 72 61 6d 20 69 73 | 20 64 69 73 74 72 69 62 |ogram is| distrib|
|00004770| 75 74 65 64 20 69 6e 20 | 74 68 65 20 68 6f 70 65 |uted in |the hope|
|00004780| 20 74 68 61 74 20 69 74 | 20 77 69 6c 6c 20 62 65 | that it| will be|
|00004790| 20 75 73 65 66 75 6c 2c | 0a 20 20 20 62 75 74 20 | useful,|. but |
|000047a0| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR|
|000047b0| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev|
|000047c0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|000047d0| 61 72 72 61 6e 74 79 20 | 6f 66 0a 20 20 20 4d 45 |arranty |of. ME|
|000047e0| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or|
|000047f0| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00004800| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00004810| 45 2e 20 20 53 65 65 20 | 74 68 65 0a 20 20 20 47 |E. See |the. G|
|00004820| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00004830| 63 20 4c 69 63 65 6e 73 | 65 20 66 6f 72 20 6d 6f |c Licens|e for mo|
|00004840| 72 65 20 64 65 74 61 69 | 6c 73 2e 0a 20 20 20 0a |re detai|ls.. .|
|00004850| 20 20 20 59 6f 75 20 73 | 68 6f 75 6c 64 20 68 61 | You s|hould ha|
|00004860| 76 65 20 72 65 63 65 69 | 76 65 64 20 61 20 63 6f |ve recei|ved a co|
|00004870| 70 79 20 6f 66 20 74 68 | 65 20 47 4e 55 20 47 65 |py of th|e GNU Ge|
|00004880| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00004890| 65 6e 73 65 0a 20 20 20 | 61 6c 6f 6e 67 20 77 69 |ense. |along wi|
|000048a0| 74 68 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 3b |th this |program;|
|000048b0| 20 69 66 20 6e 6f 74 2c | 20 77 72 69 74 65 20 74 | if not,| write t|
|000048c0| 6f 20 74 68 65 20 46 72 | 65 65 20 53 6f 66 74 77 |o the Fr|ee Softw|
|000048d0| 61 72 65 0a 20 20 20 46 | 6f 75 6e 64 61 74 69 6f |are. F|oundatio|
|000048e0| 6e 2c 20 49 6e 63 2e 2c | 20 35 39 20 54 65 6d 70 |n, Inc.,| 59 Temp|
|000048f0| 6c 65 20 50 6c 61 63 65 | 20 2d 20 53 75 69 74 65 |le Place| - Suite|
|00004900| 20 33 33 30 2c 20 42 6f | 73 74 6f 6e 2c 20 4d 41 | 330, Bo|ston, MA|
|00004910| 20 30 32 31 31 31 2d 31 | 33 30 37 2c 20 55 53 41 | 02111-1|307, USA|
|00004920| 2e 20 20 2a 2f 0a 0a 73 | 74 61 74 69 63 20 09 63 |. */..s|tatic .c|
|00004930| 68 61 72 20 75 64 69 70 | 32 73 6f 63 5f 63 5b 5d |har udip|2soc_c[]|
|00004940| 3d 22 40 28 23 29 75 64 | 69 70 32 73 6f 63 2e 63 |="@(#)ud|ip2soc.c|
|00004950| 09 32 2e 31 31 20 20 44 | 61 6e 69 65 6c 20 4d 61 |.2.11 D|aniel Ma|
|00004960| 6e 6e 22 3b 0a 73 74 61 | 74 69 63 20 20 63 68 61 |nn";.sta|tic cha|
|00004970| 72 20 75 64 69 70 32 73 | 6f 63 5f 63 5f 41 4d 44 |r udip2s|oc_c_AMD|
|00004980| 5b 5d 3d 22 40 28 23 29 | 75 64 69 70 32 73 6f 63 |[]="@(#)|udip2soc|
|00004990| 2e 63 09 32 2e 38 2c 20 | 41 4d 44 22 3b 0a 2f 2a |.c.2.8, |AMD";./*|
|000049a0| 20 0a 2a 20 20 20 20 20 | 20 20 54 68 69 73 20 6d | .* | This m|
|000049b0| 6f 64 75 6c 65 20 63 6f | 6e 76 65 72 74 73 20 55 |odule co|nverts U|
|000049c0| 44 49 20 50 72 6f 63 65 | 64 75 72 61 6c 20 63 61 |DI Proce|dural ca|
|000049d0| 6c 6c 73 20 69 6e 74 6f | 0a 2a 09 55 44 49 20 73 |lls into|.*.UDI s|
|000049e0| 6f 63 6b 65 74 20 6d 65 | 73 73 61 67 65 73 20 66 |ocket me|ssages f|
|000049f0| 6f 72 20 55 4e 49 58 2e | 20 0a 2a 09 49 74 20 69 |or UNIX.| .*.It i|
|00004a00| 73 20 75 73 65 64 20 62 | 79 20 44 46 45 20 63 6c |s used b|y DFE cl|
|00004a10| 69 65 6e 74 20 70 72 6f | 63 65 73 73 65 73 0a 2a |ient pro|cesses.*|
|00004a20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a60| 2a 2a 2a 2a 2a 20 48 49 | 53 54 4f 52 59 0a 2a 2f |***** HI|STORY.*/|
|00004a70| 0a 2f 2a 20 54 68 69 73 | 20 69 73 20 61 6c 6c 20 |./* This| is all |
|00004a80| 75 6e 6e 65 65 64 65 64 | 20 6f 6e 20 44 4f 53 20 |unneeded| on DOS |
|00004a90| 6d 61 63 68 69 6e 65 73 | 2e 20 20 2a 2f 0a 23 69 |machines|. */.#i|
|00004aa0| 66 6e 64 65 66 20 5f 5f | 47 4f 33 32 5f 5f 0a 0a |fndef __|GO32__..|
|00004ab0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00004ac0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |h>.#incl|ude <str|
|00004ad0| 69 6e 67 2e 68 3e 0a 0a | 2f 2a 20 42 65 66 6f 72 |ing.h>..|/* Befor|
|00004ae0| 65 20 73 79 73 2f 66 69 | 6c 65 2e 68 20 66 6f 72 |e sys/fi|le.h for|
|00004af0| 20 55 6e 69 78 77 61 72 | 65 2e 20 20 2a 2f 0a 23 | Unixwar|e. */.#|
|00004b00| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 74 79 70 |include |<sys/typ|
|00004b10| 65 73 2e 68 3e 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |es.h>..#|include |
|00004b20| 3c 73 79 73 2f 66 69 6c | 65 2e 68 3e 0a 0a 2f 2a |<sys/fil|e.h>../*|
|00004b30| 20 54 68 69 73 20 75 73 | 65 64 20 74 6f 20 73 61 | This us|ed to sa|
|00004b40| 79 20 73 79 73 2f 66 63 | 6e 74 6c 2e 68 2c 20 62 |y sys/fc|ntl.h, b|
|00004b50| 75 74 20 74 68 65 20 6f | 6e 6c 79 20 73 79 73 74 |ut the o|nly syst|
|00004b60| 65 6d 73 20 49 20 6b 6e | 6f 77 20 6f 66 20 74 68 |ems I kn|ow of th|
|00004b70| 61 74 0a 20 20 20 72 65 | 71 75 69 72 65 20 74 68 |at. re|quire th|
|00004b80| 61 74 20 61 72 65 20 6f | 6c 64 20 28 70 72 65 2d |at are o|ld (pre-|
|00004b90| 34 2e 33 2c 20 61 74 20 | 6c 65 61 73 74 29 20 42 |4.3, at |least) B|
|00004ba0| 53 44 20 73 79 73 74 65 | 6d 73 2c 20 77 68 69 63 |SD syste|ms, whic|
|00004bb0| 68 20 77 65 0a 20 20 20 | 70 72 6f 62 61 62 6c 79 |h we. |probably|
|00004bc0| 20 64 6f 6e 27 74 20 6e | 65 65 64 20 74 6f 20 77 | don't n|eed to w|
|00004bd0| 6f 72 72 79 20 61 62 6f | 75 74 2e 20 20 2a 2f 0a |orry abo|ut. */.|
|00004be0| 23 69 6e 63 6c 75 64 65 | 20 3c 66 63 6e 74 6c 2e |#include| <fcntl.|
|00004bf0| 68 3e 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |h>..#inc|lude <sy|
|00004c00| 73 2f 77 61 69 74 2e 68 | 3e 0a 23 69 6e 63 6c 75 |s/wait.h|>.#inclu|
|00004c10| 64 65 20 3c 73 79 73 2f | 74 69 6d 65 2e 68 3e 0a |de <sys/|time.h>.|
|00004c20| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 72 65 |#include| <sys/re|
|00004c30| 73 6f 75 72 63 65 2e 68 | 3e 0a 23 69 6e 63 6c 75 |source.h|>.#inclu|
|00004c40| 64 65 20 3c 73 79 73 2f | 73 6f 63 6b 65 74 2e 68 |de <sys/|socket.h|
|00004c50| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 6e 65 74 69 |>.#inclu|de <neti|
|00004c60| 6e 65 74 2f 69 6e 2e 68 | 3e 0a 23 69 6e 63 6c 75 |net/in.h|>.#inclu|
|00004c70| 64 65 20 3c 6e 65 74 64 | 62 2e 68 3e 0a 23 69 6e |de <netd|b.h>.#in|
|00004c80| 63 6c 75 64 65 20 3c 73 | 69 67 6e 61 6c 2e 68 3e |clude <s|ignal.h>|
|00004c90| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 65 |.#includ|e <sys/e|
|00004ca0| 72 72 6e 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |rrno.h>.|#include|
|00004cb0| 20 22 75 64 69 70 72 6f | 63 2e 68 22 0a 23 69 6e | "udipro|c.h".#in|
|00004cc0| 63 6c 75 64 65 20 22 75 | 64 69 73 6f 63 2e 68 22 |clude "u|disoc.h"|
|00004cd0| 0a 0a 65 78 74 65 72 6e | 09 69 6e 74 09 09 65 72 |..extern|.int..er|
|00004ce0| 72 6e 6f 3b 0a 65 78 74 | 65 72 6e 09 69 6e 74 09 |rno;.ext|ern.int.|
|00004cf0| 09 73 79 73 5f 6e 65 72 | 72 3b 0a 65 78 74 65 72 |.sys_ner|r;.exter|
|00004d00| 6e 09 63 68 61 72 2a 09 | 09 73 79 73 5f 65 72 72 |n.char*.|.sys_err|
|00004d10| 6c 69 73 74 5b 5d 3b 0a | 65 78 74 65 72 6e 09 69 |list[];.|extern.i|
|00004d20| 6e 74 09 09 75 64 72 5f | 65 72 72 6e 6f 3b 0a 65 |nt..udr_|errno;.e|
|00004d30| 78 74 65 72 6e 09 63 68 | 61 72 2a 09 09 67 65 74 |xtern.ch|ar*..get|
|00004d40| 65 6e 76 28 29 3b 0a 0a | 2f 2a 20 6c 6f 63 61 6c |env();..|/* local|
|00004d50| 20 74 79 70 65 20 64 65 | 63 73 2e 20 61 6e 64 20 | type de|cs. and |
|00004d60| 6d 61 63 72 6f 20 64 65 | 66 73 2e 20 6e 6f 74 20 |macro de|fs. not |
|00004d70| 69 6e 20 61 20 2e 68 20 | 20 66 69 6c 65 20 2a 2a |in a .h | file **|
|00004d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 20 4d 41 43 52 |********|*** MACR|
|00004d90| 4f 2f 54 59 50 45 0a 2a | 2f 0a 23 64 65 66 69 6e |O/TYPE.*|/.#defin|
|00004da0| 65 09 09 76 65 72 73 69 | 6f 6e 5f 63 20 30 78 31 |e..versi|on_c 0x1|
|00004db0| 32 31 09 09 2f 2a 20 44 | 46 45 2d 49 50 43 20 76 |21../* D|FE-IPC v|
|00004dc0| 65 72 73 69 6f 6e 20 69 | 64 20 2a 2f 0a 23 64 65 |ersion i|d */.#de|
|00004dd0| 66 69 6e 65 09 09 54 52 | 55 45 20 2d 31 0a 23 64 |fine..TR|UE -1.#d|
|00004de0| 65 66 69 6e 65 09 09 46 | 41 4c 53 45 20 30 0a 23 |efine..F|ALSE 0.#|
|00004df0| 64 65 66 69 6e 65 09 09 | 50 4f 52 54 5f 4e 55 4d |define..|PORT_NUM|
|00004e00| 20 37 30 30 30 0a 23 64 | 65 66 69 6e 65 09 09 4d | 7000.#d|efine..M|
|00004e10| 41 58 5f 53 45 53 53 49 | 4f 4e 53 20 35 09 09 2f |AX_SESSI|ONS 5../|
|00004e20| 2a 20 6d 61 78 69 6d 75 | 6d 20 44 46 45 2d 54 49 |* maximu|m DFE-TI|
|00004e30| 50 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 2a 2f |P connec|tions */|
|00004e40| 0a 23 64 65 66 69 6e 65 | 09 09 53 4f 43 5f 42 55 |.#define|..SOC_BU|
|00004e50| 46 5f 53 49 5a 45 20 34 | 2a 20 31 30 32 34 09 2f |F_SIZE 4|* 1024./|
|00004e60| 2a 20 73 69 7a 65 20 6f | 66 20 73 6f 63 6b 65 74 |* size o|f socket|
|00004e70| 20 63 6f 6d 6d 73 20 62 | 75 66 66 65 72 20 2a 2f | comms b|uffer */|
|00004e80| 0a 23 64 65 66 69 6e 65 | 09 09 53 42 55 46 5f 53 |.#define|..SBUF_S|
|00004e90| 49 5a 45 20 35 30 30 09 | 09 2f 2a 20 73 69 7a 65 |IZE 500.|./* size|
|00004ea0| 20 6f 66 20 73 74 72 69 | 6e 67 20 62 75 66 66 65 | of stri|ng buffe|
|00004eb0| 72 20 2a 2f 0a 23 64 65 | 66 69 6e 65 09 09 45 52 |r */.#de|fine..ER|
|00004ec0| 52 4d 53 47 5f 53 49 5a | 45 20 35 30 30 09 09 2f |RMSG_SIZ|E 500../|
|00004ed0| 2a 20 73 69 7a 65 20 6f | 66 20 65 72 72 6f 72 20 |* size o|f error |
|00004ee0| 6d 65 73 73 61 67 65 20 | 62 75 66 66 65 72 20 2a |message |buffer *|
|00004ef0| 2f 0a 0a 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |/..typed|ef struc|
|00004f00| 74 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 5f 73 74 72 |t connec|tion_str|
|00004f10| 09 09 2f 2a 20 72 65 63 | 6f 72 64 20 6f 66 20 63 |../* rec|ord of c|
|00004f20| 6f 6e 6e 65 63 74 20 73 | 65 73 73 69 6f 6e 20 2a |onnect s|ession *|
|00004f30| 2f 0a 7b 0a 20 20 20 20 | 69 6e 74 09 09 69 6e 5f |/.{. |int..in_|
|00004f40| 75 73 65 3b 0a 20 20 20 | 20 63 68 61 72 09 63 6f |use;. | char.co|
|00004f50| 6e 6e 65 63 74 5f 69 64 | 5b 32 30 5d 3b 09 09 2f |nnect_id|[20];../|
|00004f60| 2a 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 69 64 65 |* connec|tion ide|
|00004f70| 6e 74 69 66 69 65 72 20 | 2a 2f 0a 20 20 20 20 63 |ntifier |*/. c|
|00004f80| 68 61 72 09 64 6f 6d 61 | 69 6e 5f 73 74 72 69 6e |har.doma|in_strin|
|00004f90| 67 5b 32 30 5d 3b 09 2f | 2a 20 64 6f 6d 6d 61 69 |g[20];./|* dommai|
|00004fa0| 6e 67 20 66 6f 72 20 63 | 6f 6e 65 63 74 69 6f 6e |ng for c|onection|
|00004fb0| 20 2a 2f 0a 20 20 20 20 | 63 68 61 72 09 74 69 70 | */. |char.tip|
|00004fc0| 5f 73 74 72 69 6e 67 5b | 33 30 5d 3b 09 09 2f 2a |_string[|30];../*|
|00004fd0| 20 54 49 50 20 68 6f 73 | 74 20 6e 61 6d 65 20 66 | TIP hos|t name f|
|00004fe0| 6f 72 20 41 46 5f 49 4e | 45 54 20 2a 2f 0a 20 20 |or AF_IN|ET */. |
|00004ff0| 20 20 63 68 61 72 09 74 | 69 70 5f 65 78 65 5b 38 | char.t|ip_exe[8|
|00005000| 30 5d 3b 09 09 2f 2a 20 | 54 49 50 20 65 78 65 20 |0];../* |TIP exe |
|00005010| 6e 61 6d 65 20 2a 2f 0a | 20 20 20 20 69 6e 74 09 |name */.| int.|
|00005020| 09 64 66 65 5f 73 64 3b | 09 09 09 2f 2a 20 61 73 |.dfe_sd;|.../* as|
|00005030| 73 6f 63 69 61 74 65 64 | 20 44 46 45 20 73 6f 63 |sociated| DFE soc|
|00005040| 6b 65 74 20 2a 2f 0a 20 | 20 20 20 69 6e 74 09 09 |ket */. | int..|
|00005050| 74 69 70 5f 70 69 64 3b | 09 09 2f 2a 20 70 69 64 |tip_pid;|../* pid|
|00005060| 20 6f 66 20 54 49 50 20 | 70 72 6f 63 65 73 73 20 | of TIP |process |
|00005070| 2a 2f 0a 20 20 20 20 73 | 74 72 75 63 74 20 73 6f |*/. s|truct so|
|00005080| 63 6b 61 64 64 72 5f 69 | 6e 20 64 66 65 5f 73 6f |ckaddr_i|n dfe_so|
|00005090| 63 6b 61 64 64 72 3b 0a | 20 20 20 20 73 74 72 75 |ckaddr;.| stru|
|000050a0| 63 74 20 73 6f 63 6b 61 | 64 64 72 5f 69 6e 20 74 |ct socka|ddr_in t|
|000050b0| 69 70 5f 73 6f 63 6b 61 | 64 64 72 5f 69 6e 3b 0a |ip_socka|ddr_in;.|
|000050c0| 20 20 20 20 73 74 72 75 | 63 74 20 73 6f 63 6b 61 | stru|ct socka|
|000050d0| 64 64 72 20 20 20 20 74 | 69 70 5f 73 6f 63 6b 61 |ddr t|ip_socka|
|000050e0| 64 64 72 3b 0a 7d 20 63 | 6f 6e 6e 65 63 74 69 6f |ddr;.} c|onnectio|
|000050f0| 6e 5f 74 3b 0a 0a 74 79 | 70 65 64 65 66 20 73 74 |n_t;..ty|pedef st|
|00005100| 72 75 63 74 20 73 65 73 | 73 69 6f 6e 5f 73 74 72 |ruct ses|sion_str|
|00005110| 0a 7b 0a 20 20 20 20 69 | 6e 74 09 09 20 20 69 6e |.{. i|nt.. in|
|00005120| 5f 75 73 65 3b 0a 20 20 | 20 20 63 6f 6e 6e 65 63 |_use;. | connec|
|00005130| 74 69 6f 6e 5f 74 2a 20 | 73 6f 63 5f 63 6f 6e 5f |tion_t* |soc_con_|
|00005140| 70 3b 09 09 2f 2a 20 61 | 73 73 6f 63 69 61 74 65 |p;../* a|ssociate|
|00005150| 64 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 2a 2f 0a |d connec|tion */.|
|00005160| 20 20 20 20 55 44 49 53 | 65 73 73 69 6f 6e 49 64 | UDIS|essionId|
|00005170| 20 20 74 69 70 5f 69 64 | 3b 09 09 2f 2a 20 61 73 | tip_id|;../* as|
|00005180| 73 6f 63 69 61 74 65 64 | 20 54 49 50 20 73 65 73 |sociated| TIP ses|
|00005190| 73 69 6f 6e 20 49 44 20 | 2a 2f 0a 7d 20 73 65 73 |sion ID |*/.} ses|
|000051a0| 73 69 6f 6e 5f 74 3b 0a | 0a 2f 2a 20 67 6c 6f 62 |sion_t;.|./* glob|
|000051b0| 61 6c 20 64 65 63 2f 64 | 65 66 73 2e 20 77 68 69 |al dec/d|efs. whi|
|000051c0| 63 68 20 61 72 65 20 6e | 6f 74 20 69 6e 20 61 20 |ch are n|ot in a |
|000051d0| 2e 68 20 20 20 66 69 6c | 65 20 2a 2a 2a 2a 2a 2a |.h fil|e ******|
|000051e0| 2a 2a 2a 2a 2a 2a 2a 20 | 45 58 50 4f 52 54 20 44 |******* |EXPORT D|
|000051f0| 45 43 2f 44 45 46 53 0a | 2a 2f 0a 55 44 49 45 72 |EC/DEFS.|*/.UDIEr|
|00005200| 72 6f 72 09 64 66 65 5f | 65 72 72 6e 6f 3b 0a 63 |ror.dfe_|errno;.c|
|00005210| 68 61 72 09 64 66 65 5f | 65 72 72 6d 73 67 5b 45 |har.dfe_|errmsg[E|
|00005220| 52 52 4d 53 47 5f 53 49 | 5a 45 5d 3b 2f 2a 20 65 |RRMSG_SI|ZE];/* e|
|00005230| 72 72 6f 72 20 73 74 72 | 69 6e 67 20 2a 2f 0a 0a |rror str|ing */..|
|00005240| 2f 2a 20 6c 6f 63 61 6c | 20 64 65 63 2f 64 65 66 |/* local| dec/def|
|00005250| 73 2e 20 77 68 69 63 68 | 20 61 72 65 20 6e 6f 74 |s. which| are not|
|00005260| 20 69 6e 20 61 20 2e 68 | 20 20 20 66 69 6c 65 20 | in a .h| file |
|00005270| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|00005280| 4c 4f 43 41 4c 20 44 45 | 43 2f 44 45 46 53 0a 2a |LOCAL DE|C/DEFS.*|
|00005290| 2f 0a 4c 4f 43 41 4c 20 | 63 6f 6e 6e 65 63 74 69 |/.LOCAL |connecti|
|000052a0| 6f 6e 5f 74 09 73 6f 63 | 5f 63 6f 6e 5b 4d 41 58 |on_t.soc|_con[MAX|
|000052b0| 5f 53 45 53 53 49 4f 4e | 53 5d 3b 09 0a 4c 4f 43 |_SESSION|S];..LOC|
|000052c0| 41 4c 20 73 65 73 73 69 | 6f 6e 5f 74 09 73 65 73 |AL sessi|on_t.ses|
|000052d0| 73 69 6f 6e 5b 4d 41 58 | 5f 53 45 53 53 49 4f 4e |sion[MAX|_SESSION|
|000052e0| 53 5d 3b 09 0a 4c 4f 43 | 41 4c 20 55 44 52 09 75 |S];..LOC|AL UDR.u|
|000052f0| 64 72 3b 0a 4c 4f 43 41 | 4c 20 55 44 52 2a 09 75 |dr;.LOCA|L UDR*.u|
|00005300| 64 72 73 20 3d 20 26 75 | 64 72 3b 09 09 2f 2a 20 |drs = &u|dr;../* |
|00005310| 55 44 52 20 66 6f 72 20 | 63 75 72 72 65 6e 74 20 |UDR for |current |
|00005320| 73 65 73 73 69 6f 6e 20 | 2a 2f 0a 4c 4f 43 41 4c |session |*/.LOCAL|
|00005330| 20 69 6e 74 09 63 75 72 | 72 65 6e 74 3b 09 09 2f | int.cur|rent;../|
|00005340| 2a 20 69 6e 74 2d 69 64 | 20 66 6f 72 20 63 75 72 |* int-id| for cur|
|00005350| 72 65 6e 74 20 73 65 73 | 73 69 6f 6e 20 2a 2f 0a |rent ses|sion */.|
|00005360| 4c 4f 43 41 4c 20 63 68 | 61 72 09 73 62 75 66 5b |LOCAL ch|ar.sbuf[|
|00005370| 53 42 55 46 5f 53 49 5a | 45 5d 3b 09 2f 2a 20 53 |SBUF_SIZ|E];./* S|
|00005380| 74 72 69 6e 67 20 68 61 | 6e 64 6c 65 72 20 62 75 |tring ha|ndler bu|
|00005390| 66 66 65 72 20 2a 2f 0a | 4c 4f 43 41 4c 20 63 68 |ffer */.|LOCAL ch|
|000053a0| 61 72 09 63 6f 6e 66 69 | 67 5f 66 69 6c 65 5b 38 |ar.confi|g_file[8|
|000053b0| 30 5d 3b 09 2f 2a 20 70 | 61 74 68 2f 6e 61 6d 65 |0];./* p|ath/name|
|000053c0| 20 66 6f 72 20 63 6f 6e | 66 69 67 20 66 69 6c 65 | for con|fig file|
|000053d0| 20 2a 2f 0a 0a 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | */../**|********|
|000053e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000053f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005400| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005410| 2a 2a 2a 2a 2a 2a 2a 20 | 55 44 49 5f 43 4f 4e 4e |******* |UDI_CONN|
|00005420| 45 43 54 0a 2a 20 45 73 | 74 61 62 6c 69 73 68 20 |ECT.* Es|tablish |
|00005430| 61 20 6e 65 77 20 46 44 | 45 20 74 6f 20 54 49 50 |a new FD|E to TIP|
|00005440| 20 63 6f 6e 65 63 74 69 | 6f 6e 2e 20 54 68 65 20 | conecti|on. The |
|00005450| 66 69 6c 65 20 22 2e 2f | 75 64 69 5f 73 6f 63 22 |file "./|udi_soc"|
|00005460| 20 6f 72 0a 2a 20 22 2f | 65 74 63 2f 75 64 69 5f | or.* "/|etc/udi_|
|00005470| 73 6f 63 22 20 6d 61 79 | 20 62 65 20 65 78 61 6d |soc" may| be exam|
|00005480| 69 6e 65 64 20 74 6f 20 | 6f 62 74 61 69 6e 20 74 |ined to |obtain t|
|00005490| 68 65 20 63 6f 6e 65 63 | 74 69 6f 6e 20 69 6e 66 |he conec|tion inf|
|000054a0| 6f 72 6d 61 74 69 6f 6e | 0a 2a 20 69 66 20 74 68 |ormation|.* if th|
|000054b0| 65 20 22 43 6f 6e 66 69 | 67 22 20 70 61 72 61 6d |e "Confi|g" param|
|000054c0| 65 74 65 72 20 69 73 20 | 6e 6f 74 20 61 20 63 6f |eter is |not a co|
|000054d0| 6d 70 6c 65 74 64 20 22 | 6c 69 6e 65 20 65 6e 74 |mpletd "|line ent|
|000054e0| 72 79 22 2e 0a 2a 0a 2a | 20 4e 4f 54 45 3a 20 74 |ry"..*.*| NOTE: t|
|000054f0| 68 65 20 53 65 73 73 69 | 6f 6e 20 73 74 72 69 6e |he Sessi|on strin|
|00005500| 67 20 6d 75 73 74 20 6e | 6f 74 20 73 74 61 72 74 |g must n|ot start|
|00005510| 20 77 68 69 74 68 20 77 | 68 69 74 65 2d 73 70 61 | whith w|hite-spa|
|00005520| 63 65 20 63 68 61 72 61 | 63 74 65 72 73 2e 0a 2a |ce chara|cters..*|
|00005530| 20 46 6f 72 6d 61 74 20 | 6f 66 20 73 74 72 69 6e | Format |of strin|
|00005540| 67 20 69 73 3a 0a 2a 20 | 3c 73 65 73 73 69 6f 6e |g is:.* |<session|
|00005550| 3e 20 20 20 3c 64 6f 6d | 61 69 6e 3e 20 3c 73 6f |> <dom|ain> <so|
|00005560| 63 5f 6e 61 6d 65 7c 68 | 6f 73 74 5f 6e 61 6d 65 |c_name|h|ost_name|
|00005570| 3e 20 3c 74 69 70 5f 65 | 78 65 7c 70 6f 72 74 3e |> <tip_e|xe|port>|
|00005580| 20 3c 70 61 73 73 20 74 | 6f 20 55 44 49 63 6f 6e | <pass t|o UDIcon|
|00005590| 6e 65 63 74 3e 0a 2a 20 | 73 6f 63 32 63 61 79 6d |nect>.* |soc2caym|
|000055a0| 61 6e 20 20 41 46 5f 49 | 4e 45 54 20 20 20 20 20 |an AF_I|NET |
|000055b0| 20 20 20 20 20 20 20 63 | 61 79 6d 61 6e 20 20 20 | c|ayman |
|000055c0| 20 20 20 37 30 30 30 20 | 20 20 20 20 20 20 20 20 | 7000 | |
|000055d0| 20 20 3c 6e 6f 74 20 73 | 75 70 70 6f 72 74 65 64 | <not s|upported|
|000055e0| 3e 0a 2a 20 73 6f 63 32 | 74 69 70 20 20 20 20 20 |>.* soc2|tip |
|000055f0| 41 46 5f 55 4e 49 58 20 | 20 20 61 73 74 72 69 6e |AF_UNIX | astrin|
|00005600| 67 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 |g | t|
|00005610| 69 70 2e 65 78 65 20 20 | 20 20 20 20 20 20 2e 2e |ip.exe | ..|
|00005620| 2e 0a 2a 2f 0a 55 44 49 | 45 72 72 6f 72 0a 55 44 |..*/.UDI|Error.UD|
|00005630| 49 43 6f 6e 6e 65 63 74 | 28 43 6f 6e 66 69 67 2c |IConnect|(Config,|
|00005640| 20 53 65 73 73 69 6f 6e | 29 0a 20 20 20 20 20 63 | Session|). c|
|00005650| 68 61 72 20 2a 43 6f 6e | 66 69 67 3b 09 09 2f 2a |har *Con|fig;../*|
|00005660| 20 69 6e 20 20 2d 2d 20 | 69 64 65 6e 74 69 66 69 | in -- |identifi|
|00005670| 63 61 74 69 6f 6e 20 73 | 74 72 69 6e 67 20 2a 2f |cation s|tring */|
|00005680| 0a 20 20 20 20 20 55 44 | 49 53 65 73 73 69 6f 6e |. UD|ISession|
|00005690| 49 64 20 2a 53 65 73 73 | 69 6f 6e 3b 09 2f 2a 20 |Id *Sess|ion;./* |
|000056a0| 6f 75 74 20 2d 2d 20 73 | 65 73 73 69 6f 6e 20 49 |out -- s|ession I|
|000056b0| 44 20 2a 2f 0a 7b 0a 20 | 20 20 20 55 44 49 49 6e |D */.{. | UDIIn|
|000056c0| 74 33 32 09 73 65 72 76 | 69 63 65 5f 69 64 20 3d |t32.serv|ice_id =|
|000056d0| 20 55 44 49 43 6f 6e 6e | 65 63 74 5f 63 3b 0a 20 | UDIConn|ect_c;. |
|000056e0| 20 20 20 69 6e 74 09 09 | 64 6f 6d 61 69 6e 3b 0a | int..|domain;.|
|000056f0| 20 20 20 20 69 6e 74 09 | 09 63 6e 74 3d 30 3b 0a | int.|.cnt=0;.|
|00005700| 20 20 20 20 69 6e 74 09 | 09 72 63 6e 74 2c 20 70 | int.|.rcnt, p|
|00005710| 6f 73 2c 20 70 61 72 61 | 6d 73 5f 70 6f 73 3d 30 |os, para|ms_pos=0|
|00005720| 3b 0a 20 20 20 20 63 68 | 61 72 09 2a 74 69 70 5f |;. ch|ar.*tip_|
|00005730| 6d 61 69 6e 5f 73 74 72 | 69 6e 67 3b 0a 20 20 20 |main_str|ing;. |
|00005740| 20 63 68 61 72 09 2a 65 | 6e 76 5f 70 3b 0a 20 20 | char.*e|nv_p;. |
|00005750| 20 20 73 74 72 75 63 74 | 20 68 6f 73 74 65 6e 74 | struct| hostent|
|00005760| 09 2a 74 69 70 5f 69 6e | 66 6f 5f 70 3b 0a 20 20 |.*tip_in|fo_p;. |
|00005770| 20 20 46 49 4c 45 09 2a | 66 64 3b 0a 23 69 66 20 | FILE.*|fd;.#if |
|00005780| 30 0a 20 20 20 20 46 49 | 4c 45 09 2a 66 5f 70 3b |0. FI|LE.*f_p;|
|00005790| 0a 23 65 6e 64 69 66 0a | 20 20 20 20 55 44 49 55 |.#endif.| UDIU|
|000057a0| 49 6e 74 33 32 09 54 49 | 50 49 50 43 49 64 3b 0a |Int32.TI|PIPCId;.|
|000057b0| 20 20 20 20 55 44 49 55 | 49 6e 74 33 32 09 44 46 | UDIU|Int32.DF|
|000057c0| 45 49 50 43 49 64 3b 0a | 0a 23 69 66 20 30 20 2f |EIPCId;.|.#if 0 /|
|000057d0| 2a 20 54 68 69 73 20 69 | 73 20 63 72 61 70 2e 20 |* This i|s crap. |
|000057e0| 20 49 74 20 61 73 73 75 | 6d 65 73 20 74 68 61 74 | It assu|mes that|
|000057f0| 20 75 64 69 5f 73 6f 63 | 20 69 73 20 65 78 65 63 | udi_soc| is exec|
|00005800| 75 74 61 62 6c 65 21 20 | 2a 2f 0a 20 20 20 20 73 |utable! |*/. s|
|00005810| 70 72 69 6e 74 66 28 73 | 62 75 66 2c 20 22 77 68 |printf(s|buf, "wh|
|00005820| 69 63 68 20 75 64 69 5f | 73 6f 63 22 29 3b 0a 20 |ich udi_|soc");. |
|00005830| 20 20 20 66 5f 70 20 3d | 20 70 6f 70 65 6e 28 73 | f_p =| popen(s|
|00005840| 62 75 66 2c 20 22 72 22 | 29 3b 0a 20 20 20 20 69 |buf, "r"|);. i|
|00005850| 66 28 66 5f 70 29 0a 20 | 20 20 20 7b 20 20 20 77 |f(f_p). | { w|
|00005860| 68 69 6c 65 28 20 28 73 | 62 75 66 5b 63 6e 74 2b |hile( (s|buf[cnt+|
|00005870| 2b 5d 3d 67 65 74 63 28 | 66 5f 70 29 29 20 21 3d |+]=getc(|f_p)) !=|
|00005880| 20 45 4f 46 29 3b 0a 09 | 73 62 75 66 5b 63 6e 74 | EOF);..|sbuf[cnt|
|00005890| 2d 32 5d 3d 30 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |-2]=0;. | }. |
|000058a0| 20 70 63 6c 6f 73 65 28 | 66 5f 70 29 3b 0a 23 65 | pclose(|f_p);.#e|
|000058b0| 6e 64 69 66 0a 0a 20 20 | 20 20 66 6f 72 20 28 72 |ndif.. | for (r|
|000058c0| 63 6e 74 3d 30 3b 0a 09 | 20 72 63 6e 74 20 3c 20 |cnt=0;..| rcnt < |
|000058d0| 4d 41 58 5f 53 45 53 53 | 49 4f 4e 53 20 26 26 20 |MAX_SESS|IONS && |
|000058e0| 73 65 73 73 69 6f 6e 5b | 72 63 6e 74 5d 2e 69 6e |session[|rcnt].in|
|000058f0| 5f 75 73 65 3b 0a 09 20 | 72 63 6e 74 2b 2b 29 3b |_use;.. |rcnt++);|
|00005900| 0a 0a 20 20 20 20 69 66 | 20 28 72 63 6e 74 20 3e |.. if| (rcnt >|
|00005910| 3d 20 4d 41 58 5f 53 45 | 53 53 49 4f 4e 53 29 0a |= MAX_SE|SSIONS).|
|00005920| 20 20 20 20 20 20 7b 0a | 09 73 70 72 69 6e 74 66 | {.|.sprintf|
|00005930| 28 64 66 65 5f 65 72 72 | 6d 73 67 2c 20 22 44 46 |(dfe_err|msg, "DF|
|00005940| 45 2d 69 70 63 20 45 52 | 52 4f 52 3a 20 54 6f 6f |E-ipc ER|ROR: Too|
|00005950| 20 6d 61 6e 79 20 73 65 | 73 73 69 6f 6e 73 20 61 | many se|ssions a|
|00005960| 6c 72 65 61 64 79 20 6f | 70 65 6e 22 29 3b 0a 09 |lready o|pen");..|
|00005970| 72 65 74 75 72 6e 20 55 | 44 49 45 72 72 6f 72 49 |return U|DIErrorI|
|00005980| 50 43 4c 69 6d 69 74 61 | 74 69 6f 6e 3b 0a 20 20 |PCLimita|tion;. |
|00005990| 20 20 20 20 7d 0a 0a 20 | 20 20 20 2f 2a 20 4f 6e | }.. | /* On|
|000059a0| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 63 61 6e |e connec|tion can|
|000059b0| 20 62 65 20 6d 75 6c 74 | 69 70 6c 65 78 65 64 20 | be mult|iplexed |
|000059c0| 62 65 74 77 65 65 6e 20 | 73 65 76 65 72 61 6c 20 |between |several |
|000059d0| 73 65 73 73 69 6f 6e 73 | 2e 20 2a 2f 0a 0a 20 20 |sessions|. */.. |
|000059e0| 20 20 66 6f 72 20 28 63 | 6e 74 3d 30 3b 0a 09 20 | for (c|nt=0;.. |
|000059f0| 63 6e 74 20 3c 20 4d 41 | 58 5f 53 45 53 53 49 4f |cnt < MA|X_SESSIO|
|00005a00| 4e 53 20 26 26 20 73 6f | 63 5f 63 6f 6e 5b 63 6e |NS && so|c_con[cn|
|00005a10| 74 5d 2e 69 6e 5f 75 73 | 65 3b 0a 09 20 63 6e 74 |t].in_us|e;.. cnt|
|00005a20| 2b 2b 29 3b 0a 0a 20 20 | 20 20 69 66 20 28 63 6e |++);.. | if (cn|
|00005a30| 74 20 3e 3d 20 4d 41 58 | 5f 53 45 53 53 49 4f 4e |t >= MAX|_SESSION|
|00005a40| 53 29 0a 20 20 20 20 20 | 20 7b 0a 20 20 20 20 20 |S). | {. |
|00005a50| 20 20 20 73 70 72 69 6e | 74 66 28 64 66 65 5f 65 | sprin|tf(dfe_e|
|00005a60| 72 72 6d 73 67 2c 0a 09 | 09 22 44 46 45 2d 69 70 |rrmsg,..|."DFE-ip|
|00005a70| 63 20 45 52 52 4f 52 3a | 20 54 6f 6f 20 6d 61 6e |c ERROR:| Too man|
|00005a80| 79 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 61 6c |y connec|tions al|
|00005a90| 72 65 61 64 79 20 6f 70 | 65 6e 22 29 3b 0a 20 20 |ready op|en");. |
|00005aa0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 55 44 49 | re|turn UDI|
|00005ab0| 45 72 72 6f 72 49 50 43 | 4c 69 6d 69 74 61 74 69 |ErrorIPC|Limitati|
|00005ac0| 6f 6e 3b 0a 20 20 20 20 | 20 20 7d 0a 0a 20 20 20 |on;. | }.. |
|00005ad0| 20 2a 53 65 73 73 69 6f | 6e 20 3d 20 72 63 6e 74 | *Sessio|n = rcnt|
|00005ae0| 3b 0a 20 20 20 20 73 65 | 73 73 69 6f 6e 5b 72 63 |;. se|ssion[rc|
|00005af0| 6e 74 5d 2e 73 6f 63 5f | 63 6f 6e 5f 70 20 3d 20 |nt].soc_|con_p = |
|00005b00| 26 73 6f 63 5f 63 6f 6e | 5b 63 6e 74 5d 3b 0a 0a |&soc_con|[cnt];..|
|00005b10| 20 20 20 20 69 66 20 28 | 73 74 72 63 68 72 28 43 | if (|strchr(C|
|00005b20| 6f 6e 66 69 67 2c 20 27 | 20 27 29 29 09 09 2f 2a |onfig, '| '))../*|
|00005b30| 20 74 65 73 74 20 69 66 | 20 66 69 6c 65 20 65 6e | test if| file en|
|00005b40| 74 72 79 20 67 69 76 65 | 6e 20 2a 2f 0a 20 20 20 |try give|n */. |
|00005b50| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 73 6f 63 | {. | soc|
|00005b60| 5f 63 6f 6e 5b 63 6e 74 | 5d 2e 69 6e 5f 75 73 65 |_con[cnt|].in_use|
|00005b70| 20 3d 20 54 52 55 45 3b | 0a 20 20 20 20 20 20 20 | = TRUE;|. |
|00005b80| 20 73 73 63 61 6e 66 28 | 43 6f 6e 66 69 67 2c 20 | sscanf(|Config, |
|00005b90| 22 25 73 20 25 73 20 25 | 73 20 25 73 20 25 6e 22 |"%s %s %|s %s %n"|
|00005ba0| 2c 0a 09 20 20 20 20 20 | 20 20 73 6f 63 5f 63 6f |,.. | soc_co|
|00005bb0| 6e 5b 63 6e 74 5d 2e 63 | 6f 6e 6e 65 63 74 5f 69 |n[cnt].c|onnect_i|
|00005bc0| 64 2c 0a 09 20 20 20 20 | 20 20 20 73 6f 63 5f 63 |d,.. | soc_c|
|00005bd0| 6f 6e 5b 63 6e 74 5d 2e | 64 6f 6d 61 69 6e 5f 73 |on[cnt].|domain_s|
|00005be0| 74 72 69 6e 67 2c 0a 09 | 20 20 20 20 20 20 20 73 |tring,..| s|
|00005bf0| 6f 63 5f 63 6f 6e 5b 63 | 6e 74 5d 2e 74 69 70 5f |oc_con[c|nt].tip_|
|00005c00| 73 74 72 69 6e 67 2c 0a | 09 20 20 20 20 20 20 20 |string,.|. |
|00005c10| 73 6f 63 5f 63 6f 6e 5b | 63 6e 74 5d 2e 74 69 70 |soc_con[|cnt].tip|
|00005c20| 5f 65 78 65 2c 0a 09 20 | 20 20 20 20 20 20 26 70 |_exe,.. | &p|
|00005c30| 61 72 61 6d 73 5f 70 6f | 73 29 3b 0a 09 74 69 70 |arams_po|s);..tip|
|00005c40| 5f 6d 61 69 6e 5f 73 74 | 72 69 6e 67 20 3d 20 43 |_main_st|ring = C|
|00005c50| 6f 6e 66 69 67 20 2b 20 | 70 61 72 61 6d 73 5f 70 |onfig + |params_p|
|00005c60| 6f 73 3b 0a 20 20 20 20 | 20 20 7d 0a 20 20 20 20 |os;. | }. |
|00005c70| 65 6c 73 65 09 09 09 09 | 2f 2a 20 68 65 72 65 20 |else....|/* here |
|00005c80| 69 66 20 6e 65 65 64 20 | 74 6f 20 72 65 61 64 20 |if need |to read |
|00005c90| 75 64 69 5f 73 6f 63 20 | 66 69 6c 65 20 2a 2f 0a |udi_soc |file */.|
|00005ca0| 20 20 20 20 20 20 7b 0a | 09 73 74 72 63 70 79 28 | {.|.strcpy(|
|00005cb0| 63 6f 6e 66 69 67 5f 66 | 69 6c 65 2c 20 22 75 64 |config_f|ile, "ud|
|00005cc0| 69 5f 73 6f 63 22 29 3b | 0a 09 65 6e 76 5f 70 20 |i_soc");|..env_p |
|00005cd0| 3d 20 67 65 74 65 6e 76 | 28 22 55 44 49 43 4f 4e |= getenv|("UDICON|
|00005ce0| 46 22 29 3b 0a 09 69 66 | 20 28 65 6e 76 5f 70 29 |F");..if| (env_p)|
|00005cf0| 0a 09 20 20 73 74 72 63 | 70 79 28 63 6f 6e 66 69 |.. strc|py(confi|
|00005d00| 67 5f 66 69 6c 65 2c 20 | 65 6e 76 5f 70 29 3b 0a |g_file, |env_p);.|
|00005d10| 0a 09 66 64 20 3d 20 66 | 6f 70 65 6e 28 63 6f 6e |..fd = f|open(con|
|00005d20| 66 69 67 5f 66 69 6c 65 | 2c 20 22 72 22 29 3b 0a |fig_file|, "r");.|
|00005d30| 0a 09 69 66 20 28 21 66 | 64 29 0a 09 20 20 7b 0a |..if (!f|d).. {.|
|00005d40| 09 20 20 20 20 73 70 72 | 69 6e 74 66 28 64 66 65 |. spr|intf(dfe|
|00005d50| 5f 65 72 72 6d 73 67 2c | 20 22 55 44 49 43 6f 6e |_errmsg,| "UDICon|
|00005d60| 6e 65 63 74 2c 20 63 61 | 6e 27 74 20 6f 70 65 6e |nect, ca|n't open|
|00005d70| 20 75 64 69 5f 73 6f 63 | 20 66 69 6c 65 3a 5c 6e | udi_soc| file:\n|
|00005d80| 25 73 20 22 2c 0a 09 09 | 20 20 20 20 73 79 73 5f |%s ",...| sys_|
|00005d90| 65 72 72 6c 69 73 74 5b | 65 72 72 6e 6f 5d 29 3b |errlist[|errno]);|
|00005da0| 0a 09 20 20 20 20 64 66 | 65 5f 65 72 72 6e 6f 20 |.. df|e_errno |
|00005db0| 3d 20 55 44 49 45 72 72 | 6f 72 43 61 6e 74 4f 70 |= UDIErr|orCantOp|
|00005dc0| 65 6e 43 6f 6e 66 69 67 | 46 69 6c 65 3b 0a 09 20 |enConfig|File;.. |
|00005dd0| 20 20 20 67 6f 74 6f 20 | 74 69 70 5f 66 61 69 6c | goto |tip_fail|
|00005de0| 75 72 65 3b 0a 09 20 20 | 7d 0a 0a 09 77 68 69 6c |ure;.. |}...whil|
|00005df0| 65 20 28 31 29 0a 09 20 | 20 7b 0a 09 20 20 20 20 |e (1).. | {.. |
|00005e00| 69 66 20 28 66 73 63 61 | 6e 66 28 66 64 2c 20 22 |if (fsca|nf(fd, "|
|00005e10| 25 73 20 25 73 20 25 73 | 20 25 73 20 25 5b 5e 5c |%s %s %s| %s %[^\|
|00005e20| 6e 5d 5c 6e 22 2c 0a 09 | 09 20 20 20 20 20 20 20 |n]\n",..|. |
|00005e30| 73 6f 63 5f 63 6f 6e 5b | 63 6e 74 5d 2e 63 6f 6e |soc_con[|cnt].con|
|00005e40| 6e 65 63 74 5f 69 64 2c | 0a 09 09 20 20 20 20 20 |nect_id,|... |
|00005e50| 20 20 73 6f 63 5f 63 6f | 6e 5b 63 6e 74 5d 2e 64 | soc_co|n[cnt].d|
|00005e60| 6f 6d 61 69 6e 5f 73 74 | 72 69 6e 67 2c 0a 09 09 |omain_st|ring,...|
|00005e70| 20 20 20 20 20 20 20 73 | 6f 63 5f 63 6f 6e 5b 63 | s|oc_con[c|
|00005e80| 6e 74 5d 2e 74 69 70 5f | 73 74 72 69 6e 67 2c 0a |nt].tip_|string,.|
|00005e90| 09 09 20 20 20 20 20 20 | 20 73 6f 63 5f 63 6f 6e |.. | soc_con|
|00005ea0| 5b 63 6e 74 5d 2e 74 69 | 70 5f 65 78 65 2c 0a 09 |[cnt].ti|p_exe,..|
|00005eb0| 09 20 20 20 20 20 20 20 | 73 62 75 66 29 20 3d 3d |. |sbuf) ==|
|00005ec0| 20 45 4f 46 29 0a 09 20 | 20 20 20 20 20 62 72 65 | EOF).. | bre|
|00005ed0| 61 6b 3b 0a 0a 09 20 20 | 20 20 69 66 20 28 73 74 |ak;... | if (st|
|00005ee0| 72 63 6d 70 28 43 6f 6e | 66 69 67 2c 20 73 6f 63 |rcmp(Con|fig, soc|
|00005ef0| 5f 63 6f 6e 5b 63 6e 74 | 5d 2e 63 6f 6e 6e 65 63 |_con[cnt|].connec|
|00005f00| 74 5f 69 64 29 20 21 3d | 20 30 29 0a 09 20 20 20 |t_id) !=| 0).. |
|00005f10| 20 20 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 0a 09 20 | conti|nue;... |
|00005f20| 20 20 20 73 6f 63 5f 63 | 6f 6e 5b 63 6e 74 5d 2e | soc_c|on[cnt].|
|00005f30| 69 6e 5f 75 73 65 20 3d | 20 54 52 55 45 3b 20 2f |in_use =| TRUE; /|
|00005f40| 2a 20 68 65 72 65 20 69 | 66 20 65 6e 74 72 79 20 |* here i|f entry |
|00005f50| 66 6f 75 6e 64 20 2a 2f | 0a 0a 09 20 20 20 20 74 |found */|... t|
|00005f60| 69 70 5f 6d 61 69 6e 5f | 73 74 72 69 6e 67 20 3d |ip_main_|string =|
|00005f70| 20 73 62 75 66 3b 0a 09 | 20 20 20 20 62 72 65 61 | sbuf;..| brea|
|00005f80| 6b 3b 0a 09 20 20 7d 0a | 0a 09 66 63 6c 6f 73 65 |k;.. }.|..fclose|
|00005f90| 28 66 64 29 3b 0a 09 69 | 66 20 28 21 73 6f 63 5f |(fd);..i|f (!soc_|
|00005fa0| 63 6f 6e 5b 63 6e 74 5d | 2e 69 6e 5f 75 73 65 29 |con[cnt]|.in_use)|
|00005fb0| 0a 09 20 20 7b 0a 09 20 | 20 20 20 73 70 72 69 6e |.. {.. | sprin|
|00005fc0| 74 66 28 64 66 65 5f 65 | 72 72 6d 73 67 2c 0a 09 |tf(dfe_e|rrmsg,..|
|00005fd0| 09 20 20 20 20 22 55 44 | 49 43 6f 6e 6e 65 63 74 |. "UD|IConnect|
|00005fe0| 2c 20 63 61 6e 27 74 20 | 66 69 6e 64 20 60 25 73 |, can't |find `%s|
|00005ff0| 27 20 65 6e 74 72 79 20 | 69 6e 20 75 64 69 5f 73 |' entry |in udi_s|
|00006000| 6f 63 20 66 69 6c 65 22 | 2c 0a 09 09 20 20 20 20 |oc file"|,... |
|00006010| 43 6f 6e 66 69 67 29 3b | 0a 09 20 20 20 20 64 66 |Config);|.. df|
|00006020| 65 5f 65 72 72 6e 6f 20 | 3d 20 55 44 49 45 72 72 |e_errno |= UDIErr|
|00006030| 6f 72 4e 6f 53 75 63 68 | 43 6f 6e 66 69 67 75 72 |orNoSuch|Configur|
|00006040| 61 74 69 6f 6e 3b 0a 09 | 20 20 20 20 67 6f 74 6f |ation;..| goto|
|00006050| 20 74 69 70 5f 66 61 69 | 6c 75 72 65 3b 0a 09 20 | tip_fai|lure;.. |
|00006060| 20 7d 0a 20 20 20 20 20 | 20 7d 0a 2f 2a 2d 2d 2d | }. | }./*---|
|00006070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000060a0| 2d 2d 2d 2d 2d 2d 2d 2d | 20 53 45 4c 45 43 54 20 |--------| SELECT |
|000060b0| 44 4f 4d 41 49 4e 20 2a | 2f 0a 20 20 20 20 69 66 |DOMAIN *|/. if|
|000060c0| 20 28 73 74 72 63 6d 70 | 28 73 6f 63 5f 63 6f 6e | (strcmp|(soc_con|
|000060d0| 5b 63 6e 74 5d 2e 64 6f | 6d 61 69 6e 5f 73 74 72 |[cnt].do|main_str|
|000060e0| 69 6e 67 2c 20 22 41 46 | 5f 55 4e 49 58 22 29 20 |ing, "AF|_UNIX") |
|000060f0| 3d 3d 20 30 29 0a 20 20 | 20 20 20 20 64 6f 6d 61 |== 0). | doma|
|00006100| 69 6e 20 3d 20 41 46 5f | 55 4e 49 58 3b 0a 20 20 |in = AF_|UNIX;. |
|00006110| 20 20 65 6c 73 65 20 69 | 66 20 28 73 74 72 63 6d | else i|f (strcm|
|00006120| 70 28 73 6f 63 5f 63 6f | 6e 5b 63 6e 74 5d 2e 64 |p(soc_co|n[cnt].d|
|00006130| 6f 6d 61 69 6e 5f 73 74 | 72 69 6e 67 2c 20 22 41 |omain_st|ring, "A|
|00006140| 46 5f 49 4e 45 54 22 29 | 20 3d 3d 20 30 29 0a 20 |F_INET")| == 0). |
|00006150| 20 20 20 20 20 64 6f 6d | 61 69 6e 20 3d 20 41 46 | dom|ain = AF|
|00006160| 5f 49 4e 45 54 3b 0a 20 | 20 20 20 65 6c 73 65 0a |_INET;. | else.|
|00006170| 20 20 20 20 20 20 7b 0a | 20 20 20 20 09 73 70 72 | {.| .spr|
|00006180| 69 6e 74 66 28 64 66 65 | 5f 65 72 72 6d 73 67 2c |intf(dfe|_errmsg,|
|00006190| 20 22 44 46 45 2d 69 70 | 63 20 45 52 52 4f 52 3a | "DFE-ip|c ERROR:|
|000061a0| 20 73 6f 63 6b 65 74 20 | 61 64 64 72 65 73 73 20 | socket |address |
|000061b0| 66 61 6d 69 6c 79 20 6e | 6f 74 20 6b 6e 6f 77 6e |family n|ot known|
|000061c0| 22 29 3b 0a 09 64 66 65 | 5f 65 72 72 6e 6f 20 3d |");..dfe|_errno =|
|000061d0| 20 55 44 49 45 72 72 6f | 72 42 61 64 43 6f 6e 66 | UDIErro|rBadConf|
|000061e0| 69 67 46 69 6c 65 45 6e | 74 72 79 3b 0a 09 67 6f |igFileEn|try;..go|
|000061f0| 74 6f 20 74 69 70 5f 66 | 61 69 6c 75 72 65 3b 0a |to tip_f|ailure;.|
|00006200| 20 20 20 20 20 20 7d 0a | 0a 2f 2a 2d 2d 2d 2d 2d | }.|./*-----|
|00006210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 20 |--------|------- |
|00006240| 4d 55 4c 54 49 50 4c 45 | 58 45 44 20 53 4f 43 4b |MULTIPLE|XED SOCK|
|00006250| 45 54 20 3f 20 2a 2f 0a | 2f 2a 20 49 66 20 74 68 |ET ? */.|/* If th|
|00006260| 65 20 72 65 71 75 65 73 | 74 65 64 20 73 65 73 73 |e reques|ted sess|
|00006270| 69 6f 6e 20 72 65 71 75 | 69 72 65 73 20 63 6f 6d |ion requ|ires com|
|00006280| 6d 75 6e 69 63 61 74 69 | 6f 6e 20 77 69 74 68 0a |municati|on with.|
|00006290| 20 20 20 61 20 54 49 50 | 20 77 68 69 63 68 20 61 | a TIP| which a|
|000062a0| 6c 72 65 61 64 79 20 68 | 61 73 20 61 20 73 6f 63 |lready h|as a soc|
|000062b0| 6b 65 74 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 65 |ket conn|ection e|
|000062c0| 73 74 61 62 6c 69 73 68 | 65 64 2c 0a 20 20 20 74 |stablish|ed,. t|
|000062d0| 68 65 6e 20 77 65 20 64 | 6f 20 6e 6f 74 20 63 72 |hen we d|o not cr|
|000062e0| 65 61 74 65 20 61 20 6e | 65 77 20 73 6f 63 6b 65 |eate a n|ew socke|
|000062f0| 74 20 62 75 74 20 6d 75 | 6c 74 69 70 6c 65 78 20 |t but mu|ltiplex |
|00006300| 74 68 65 0a 20 20 20 65 | 78 69 73 74 69 6e 67 20 |the. e|xisting |
|00006310| 6f 6e 65 2e 20 41 20 54 | 49 50 20 69 73 20 73 61 |one. A T|IP is sa|
|00006320| 69 64 20 74 6f 20 75 73 | 65 20 74 68 65 20 73 61 |id to us|e the sa|
|00006330| 6d 65 20 73 6f 63 6b 65 | 74 20 69 66 0a 20 20 20 |me socke|t if. |
|00006340| 73 6f 63 6b 65 74 2d 6e | 61 6d 65 2f 68 6f 73 74 |socket-n|ame/host|
|00006350| 2d 6e 61 6d 65 20 61 6e | 64 20 74 68 65 20 64 6f |-name an|d the do|
|00006360| 6d 61 69 6e 20 61 72 65 | 20 74 68 65 20 73 61 6d |main are| the sam|
|00006370| 65 2e 0a 20 2a 2f 0a 20 | 20 20 20 66 6f 72 20 28 |e.. */. | for (|
|00006380| 72 63 6e 74 3d 30 3b 20 | 72 63 6e 74 20 3c 20 4d |rcnt=0; |rcnt < M|
|00006390| 41 58 5f 53 45 53 53 49 | 4f 4e 53 3b 20 72 63 6e |AX_SESSI|ONS; rcn|
|000063a0| 74 2b 2b 29 0a 20 20 20 | 20 20 20 7b 0a 09 69 66 |t++). | {..if|
|000063b0| 20 28 73 6f 63 5f 63 6f | 6e 5b 72 63 6e 74 5d 2e | (soc_co|n[rcnt].|
|000063c0| 69 6e 5f 75 73 65 0a 09 | 20 20 20 20 26 26 20 72 |in_use..| && r|
|000063d0| 63 6e 74 20 21 3d 20 63 | 6e 74 0a 09 20 20 20 20 |cnt != c|nt.. |
|000063e0| 26 26 20 73 74 72 63 6d | 70 28 73 6f 63 5f 63 6f |&& strcm|p(soc_co|
|000063f0| 6e 5b 63 6e 74 5d 2e 64 | 6f 6d 61 69 6e 5f 73 74 |n[cnt].d|omain_st|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.