home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
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.13/, mode 777 , uid 34562 , gid 1752 , size 0 , seconds 5623251756, 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 33 | 2f 00 00 00 00 00 00 00 |gdb-4.13|/.......|
|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 35 36 32 33 32 35 31 | 0 | 5623251|
|00000090| 37 35 36 20 20 31 30 34 | 37 30 00 20 35 00 00 00 |756 104|70. 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 33 | 2f 67 64 62 2f 00 00 00 |gdb-4.13|/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 35 36 32 33 32 35 31 | 0 | 5623251|
|00000290| 37 34 37 20 20 31 31 32 | 32 34 00 20 35 00 00 00 |747 112|24. 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 33 | 2f 67 64 62 2f 32 39 6b |gdb-4.13|/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 35 36 32 33 32 35 30 | 0 | 5623250|
|00000490| 35 30 32 20 20 31 32 37 | 31 35 00 20 35 00 00 00 |502 127|15. 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 33 | 2f 67 64 62 2f 32 39 6b |gdb-4.13|/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 35 36 32 33 32 35 30 | 0 | 5623250|
|00000690| 35 30 36 20 20 31 33 35 | 30 32 00 20 35 00 00 00 |506 135|02. 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 33 | 2f 67 64 62 2f 32 39 6b |gdb-4.13|/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 30 00 20 30 00 00 00 |370 153|20. 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 33 | 2f 67 64 62 2f 32 39 6b |gdb-4.13|/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 34 36 35 20 | 20 35 34 30 35 34 36 32 | 3465 | 5405462|
|00003a90| 30 34 32 20 20 31 35 32 | 32 32 00 20 30 00 00 00 |042 152|22. 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 36 37 35 20 4d | 61 73 73 20 41 76 65 2c |., 675 M|ass Ave,|
|00003f60| 20 43 61 6d 62 72 69 64 | 67 65 2c 20 4d 41 20 30 | Cambrid|ge, MA 0|
|00003f70| 32 31 33 39 2c 20 55 53 | 41 2e 20 20 2a 2f 0a 0a |2139, US|A. */..|
|00003f80| 09 2f 2a 20 43 6f 6d 70 | 61 6e 79 20 43 6f 64 65 |./* Comp|any Code|
|00003f90| 73 20 2d 2d 20 41 4d 44 | 20 61 73 73 69 67 6e 73 |s -- AMD| assigns|
|00003fa0| 20 74 68 65 73 65 20 2a | 2f 0a 23 64 65 66 69 6e | these *|/.#defin|
|00003fb0| 65 20 55 44 49 43 6f 6d | 70 61 6e 79 43 6f 64 65 |e UDICom|panyCode|
|00003fc0| 5f 41 4d 44 20 31 0a 0a | 09 2f 2a 20 42 75 69 6c |_AMD 1..|./* Buil|
|00003fd0| 64 20 61 20 55 44 49 49 | 44 20 67 69 76 65 6e 20 |d a UDII|D given |
|00003fe0| 61 20 43 6f 6d 70 61 6e | 79 50 72 6f 64 43 6f 64 |a Compan|yProdCod|
|00003ff0| 65 20 61 6e 64 20 33 20 | 76 65 72 73 69 6f 6e 20 |e and 3 |version |
|00004000| 70 69 65 63 65 73 20 2a | 2f 0a 23 64 65 66 69 6e |pieces *|/.#defin|
|00004010| 65 20 55 44 49 49 44 28 | 43 6f 6d 70 61 6e 79 50 |e UDIID(|CompanyP|
|00004020| 72 6f 64 43 6f 64 65 2c | 20 76 31 2c 76 32 2c 76 |rodCode,| v1,v2,v|
|00004030| 33 29 20 28 28 28 28 43 | 6f 6d 70 61 6e 79 50 72 |3) ((((C|ompanyPr|
|00004040| 6f 64 43 6f 64 65 29 20 | 26 20 30 78 66 66 66 66 |odCode) |& 0xffff|
|00004050| 66 29 3c 3c 31 32 29 2b | 5c 0a 09 09 09 09 20 20 |f)<<12)+|\..... |
|00004060| 28 28 28 76 31 29 26 30 | 78 66 29 3c 3c 38 29 20 |(((v1)&0|xf)<<8) |
|00004070| 2b 20 28 28 28 76 32 29 | 26 30 78 66 29 3c 3c 34 |+ (((v2)|&0xf)<<4|
|00004080| 29 20 2b 20 28 28 76 33 | 29 26 30 78 66 29 29 20 |) + ((v3|)&0xf)) |
|00004090| 0a 0a 0a 09 2f 2a 20 45 | 78 74 72 61 63 74 20 61 |..../* E|xtract a|
|000040a0| 20 43 6f 6d 70 61 6e 79 | 50 72 6f 64 43 6f 64 65 | Company|ProdCode|
|000040b0| 20 6f 72 20 61 20 56 65 | 72 73 69 6f 6e 20 66 72 | or a Ve|rsion fr|
|000040c0| 6f 6d 20 61 20 55 44 49 | 49 44 20 2a 2f 0a 23 64 |om a UDI|ID */.#d|
|000040d0| 65 66 69 6e 65 20 55 44 | 49 49 44 5f 43 6f 6d 70 |efine UD|IID_Comp|
|000040e0| 61 6e 79 50 72 6f 64 43 | 6f 64 65 28 69 64 29 20 |anyProdC|ode(id) |
|000040f0| 28 28 28 69 64 29 3e 3e | 31 32 29 20 26 20 30 78 |(((id)>>|12) & 0x|
|00004100| 66 66 66 66 66 29 0a 23 | 64 65 66 69 6e 65 20 55 |fffff).#|define U|
|00004110| 44 49 49 44 5f 56 65 72 | 73 69 6f 6e 28 69 64 29 |DIID_Ver|sion(id)|
|00004120| 20 28 28 69 64 29 26 30 | 78 66 66 66 29 0a 0a 0a | ((id)&0|xfff)...|
|00004130| 23 64 65 66 69 6e 65 20 | 55 44 49 41 4d 44 50 72 |#define |UDIAMDPr|
|00004140| 6f 64 75 63 74 28 50 72 | 6f 64 43 6f 64 65 29 20 |oduct(Pr|odCode) |
|00004150| 28 28 55 44 49 43 6f 6d | 70 61 6e 79 43 6f 64 65 |((UDICom|panyCode|
|00004160| 5f 41 4d 44 3c 3c 34 29 | 20 2b 20 28 50 72 6f 64 |_AMD<<4)| + (Prod|
|00004170| 43 6f 64 65 26 30 78 66 | 29 29 0a 0a 09 2f 2a 20 |Code&0xf|)).../* |
|00004180| 41 4d 44 20 44 46 45 20 | 50 72 6f 64 75 63 74 20 |AMD DFE |Product |
|00004190| 43 6f 64 65 73 20 2a 2f | 0a 23 64 65 66 69 6e 65 |Codes */|.#define|
|000041a0| 20 55 44 49 50 72 6f 64 | 75 63 74 43 6f 64 65 5f | UDIProd|uctCode_|
|000041b0| 4d 6f 6e 64 66 65 20 55 | 44 49 41 4d 44 50 72 6f |Mondfe U|DIAMDPro|
|000041c0| 64 75 63 74 28 30 29 0a | 23 64 65 66 69 6e 65 20 |duct(0).|#define |
|000041d0| 55 44 49 50 72 6f 64 75 | 63 74 43 6f 64 65 5f 58 |UDIProdu|ctCode_X|
|000041e0| 52 41 59 20 20 20 55 44 | 49 41 4d 44 50 72 6f 64 |RAY UD|IAMDProd|
|000041f0| 75 63 74 28 31 29 0a 23 | 64 65 66 69 6e 65 20 55 |uct(1).#|define U|
|00004200| 44 49 50 72 6f 64 75 63 | 74 43 6f 64 65 5f 54 49 |DIProduc|tCode_TI|
|00004210| 50 54 65 73 74 65 72 20 | 20 55 44 49 41 4d 44 50 |PTester | UDIAMDP|
|00004220| 72 6f 64 75 63 74 28 32 | 29 0a 0a 09 2f 2a 20 41 |roduct(2|).../* A|
|00004230| 4d 44 20 54 49 50 20 50 | 72 6f 64 75 63 74 20 43 |MD TIP P|roduct C|
|00004240| 6f 64 65 73 20 28 6e 65 | 65 64 20 6e 6f 74 20 62 |odes (ne|ed not b|
|00004250| 65 20 64 69 73 74 69 6e | 63 74 20 66 72 6f 6d 20 |e distin|ct from |
|00004260| 44 46 45 20 50 72 6f 64 | 75 63 74 20 43 6f 64 65 |DFE Prod|uct Code|
|00004270| 73 29 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 55 44 |s) */.#d|efine UD|
|00004280| 49 50 72 6f 64 75 63 74 | 43 6f 64 65 5f 4d 6f 6e |IProduct|Code_Mon|
|00004290| 74 69 70 20 55 44 49 41 | 4d 44 50 72 6f 64 75 63 |tip UDIA|MDProduc|
|000042a0| 74 28 30 29 0a 23 64 65 | 66 69 6e 65 20 55 44 49 |t(0).#de|fine UDI|
|000042b0| 50 72 6f 64 75 63 74 43 | 6f 64 65 5f 49 73 73 74 |ProductC|ode_Isst|
|000042c0| 69 70 20 55 44 49 41 4d | 44 50 72 6f 64 75 63 74 |ip UDIAM|DProduct|
|000042d0| 28 31 29 0a 0a 0a 23 64 | 65 66 69 6e 65 20 55 44 |(1)...#d|efine UD|
|000042e0| 49 4c 61 74 65 73 74 56 | 65 72 73 69 6f 6e 20 30 |ILatestV|ersion 0|
|000042f0| 78 31 32 30 09 2f 2a 20 | 55 44 49 20 31 2e 32 2e |x120./* |UDI 1.2.|
|00004300| 30 2c 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 69 |0, can b|e used i|
|00004310| 6e 20 44 46 45 20 61 6e | 64 20 54 49 50 20 64 65 |n DFE an|d TIP de|
|00004320| 73 69 72 65 64 20 55 44 | 49 20 70 61 72 61 6d 73 |sired UD|I params|
|00004330| 20 2a 2f 0a 0a 00 00 00 | 00 00 00 00 00 00 00 00 | */.....|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 33 | 2f 67 64 62 2f 32 39 6b |gdb-4.13|/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 35 34 20 | 20 35 34 36 36 30 32 31 | 116054 | 5466021|
|00004490| 36 32 33 20 20 31 35 35 | 32 36 00 20 30 00 00 00 |623 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 36 37 35 20 4d 61 73 |n, Inc.,| 675 Mas|
|000048f0| 73 20 41 76 65 2c 20 43 | 61 6d 62 72 69 64 67 65 |s Ave, C|ambridge|
|00004900| 2c 20 4d 41 20 30 32 31 | 33 39 2c 20 55 53 41 2e |, MA 021|39, USA.|
|00004910| 20 20 2a 2f 0a 0a 73 74 | 61 74 69 63 20 09 63 68 | */..st|atic .ch|
|00004920| 61 72 20 75 64 69 70 32 | 73 6f 63 5f 63 5b 5d 3d |ar udip2|soc_c[]=|
|00004930| 22 40 28 23 29 75 64 69 | 70 32 73 6f 63 2e 63 09 |"@(#)udi|p2soc.c.|
|00004940| 32 2e 31 31 20 20 44 61 | 6e 69 65 6c 20 4d 61 6e |2.11 Da|niel Man|
|00004950| 6e 22 3b 0a 73 74 61 74 | 69 63 20 20 63 68 61 72 |n";.stat|ic char|
|00004960| 20 75 64 69 70 32 73 6f | 63 5f 63 5f 41 4d 44 5b | udip2so|c_c_AMD[|
|00004970| 5d 3d 22 40 28 23 29 75 | 64 69 70 32 73 6f 63 2e |]="@(#)u|dip2soc.|
|00004980| 63 09 32 2e 38 2c 20 41 | 4d 44 22 3b 0a 2f 2a 20 |c.2.8, A|MD";./* |
|00004990| 0a 2a 20 20 20 20 20 20 | 20 54 68 69 73 20 6d 6f |.* | This mo|
|000049a0| 64 75 6c 65 20 63 6f 6e | 76 65 72 74 73 20 55 44 |dule con|verts UD|
|000049b0| 49 20 50 72 6f 63 65 64 | 75 72 61 6c 20 63 61 6c |I Proced|ural cal|
|000049c0| 6c 73 20 69 6e 74 6f 0a | 2a 09 55 44 49 20 73 6f |ls into.|*.UDI so|
|000049d0| 63 6b 65 74 20 6d 65 73 | 73 61 67 65 73 20 66 6f |cket mes|sages fo|
|000049e0| 72 20 55 4e 49 58 2e 20 | 0a 2a 09 49 74 20 69 73 |r UNIX. |.*.It is|
|000049f0| 20 75 73 65 64 20 62 79 | 20 44 46 45 20 63 6c 69 | used by| DFE cli|
|00004a00| 65 6e 74 20 70 72 6f 63 | 65 73 73 65 73 0a 2a 2a |ent proc|esses.**|
|00004a10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|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 20 48 49 53 | 54 4f 52 59 0a 2a 2f 0a |**** HIS|TORY.*/.|
|00004a60| 2f 2a 20 54 68 69 73 20 | 69 73 20 61 6c 6c 20 75 |/* This |is all u|
|00004a70| 6e 6e 65 65 64 65 64 20 | 6f 6e 20 44 4f 53 20 6d |nneeded |on DOS m|
|00004a80| 61 63 68 69 6e 65 73 2e | 20 20 2a 2f 0a 23 69 66 |achines.| */.#if|
|00004a90| 6e 64 65 66 20 5f 5f 47 | 4f 33 32 5f 5f 0a 0a 23 |ndef __G|O32__..#|
|00004aa0| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00004ab0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |>.#inclu|de <stri|
|00004ac0| 6e 67 2e 68 3e 0a 0a 2f | 2a 20 42 65 66 6f 72 65 |ng.h>../|* Before|
|00004ad0| 20 73 79 73 2f 66 69 6c | 65 2e 68 20 66 6f 72 20 | sys/fil|e.h for |
|00004ae0| 55 6e 69 78 77 61 72 65 | 2e 20 20 2a 2f 0a 23 69 |Unixware|. */.#i|
|00004af0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 79 70 65 |nclude <|sys/type|
|00004b00| 73 2e 68 3e 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |s.h>..#i|nclude <|
|00004b10| 73 79 73 2f 66 69 6c 65 | 2e 68 3e 0a 0a 2f 2a 20 |sys/file|.h>../* |
|00004b20| 54 68 69 73 20 75 73 65 | 64 20 74 6f 20 73 61 79 |This use|d to say|
|00004b30| 20 73 79 73 2f 66 63 6e | 74 6c 2e 68 2c 20 62 75 | sys/fcn|tl.h, bu|
|00004b40| 74 20 74 68 65 20 6f 6e | 6c 79 20 73 79 73 74 65 |t the on|ly syste|
|00004b50| 6d 73 20 49 20 6b 6e 6f | 77 20 6f 66 20 74 68 61 |ms I kno|w of tha|
|00004b60| 74 0a 20 20 20 72 65 71 | 75 69 72 65 20 74 68 61 |t. req|uire tha|
|00004b70| 74 20 61 72 65 20 6f 6c | 64 20 28 70 72 65 2d 34 |t are ol|d (pre-4|
|00004b80| 2e 33 2c 20 61 74 20 6c | 65 61 73 74 29 20 42 53 |.3, at l|east) BS|
|00004b90| 44 20 73 79 73 74 65 6d | 73 2c 20 77 68 69 63 68 |D system|s, which|
|00004ba0| 20 77 65 0a 20 20 20 70 | 72 6f 62 61 62 6c 79 20 | we. p|robably |
|00004bb0| 64 6f 6e 27 74 20 6e 65 | 65 64 20 74 6f 20 77 6f |don't ne|ed to wo|
|00004bc0| 72 72 79 20 61 62 6f 75 | 74 2e 20 20 2a 2f 0a 23 |rry abou|t. */.#|
|00004bd0| 69 6e 63 6c 75 64 65 20 | 3c 66 63 6e 74 6c 2e 68 |include |<fcntl.h|
|00004be0| 3e 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |>..#incl|ude <sys|
|00004bf0| 2f 77 61 69 74 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |/wait.h>|.#includ|
|00004c00| 65 20 3c 73 79 73 2f 74 | 69 6d 65 2e 68 3e 0a 23 |e <sys/t|ime.h>.#|
|00004c10| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 72 65 73 |include |<sys/res|
|00004c20| 6f 75 72 63 65 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |ource.h>|.#includ|
|00004c30| 65 20 3c 73 79 73 2f 73 | 6f 63 6b 65 74 2e 68 3e |e <sys/s|ocket.h>|
|00004c40| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 6e 65 74 69 6e |.#includ|e <netin|
|00004c50| 65 74 2f 69 6e 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |et/in.h>|.#includ|
|00004c60| 65 20 3c 6e 65 74 64 62 | 2e 68 3e 0a 23 69 6e 63 |e <netdb|.h>.#inc|
|00004c70| 6c 75 64 65 20 3c 73 69 | 67 6e 61 6c 2e 68 3e 0a |lude <si|gnal.h>.|
|00004c80| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 65 72 |#include| <sys/er|
|00004c90| 72 6e 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |rno.h>.#|include |
|00004ca0| 22 75 64 69 70 72 6f 63 | 2e 68 22 0a 23 69 6e 63 |"udiproc|.h".#inc|
|00004cb0| 6c 75 64 65 20 22 75 64 | 69 73 6f 63 2e 68 22 0a |lude "ud|isoc.h".|
|00004cc0| 0a 65 78 74 65 72 6e 09 | 69 6e 74 09 09 65 72 72 |.extern.|int..err|
|00004cd0| 6e 6f 3b 0a 65 78 74 65 | 72 6e 09 69 6e 74 09 09 |no;.exte|rn.int..|
|00004ce0| 73 79 73 5f 6e 65 72 72 | 3b 0a 65 78 74 65 72 6e |sys_nerr|;.extern|
|00004cf0| 09 63 68 61 72 2a 09 09 | 73 79 73 5f 65 72 72 6c |.char*..|sys_errl|
|00004d00| 69 73 74 5b 5d 3b 0a 65 | 78 74 65 72 6e 09 69 6e |ist[];.e|xtern.in|
|00004d10| 74 09 09 75 64 72 5f 65 | 72 72 6e 6f 3b 0a 65 78 |t..udr_e|rrno;.ex|
|00004d20| 74 65 72 6e 09 63 68 61 | 72 2a 09 09 67 65 74 65 |tern.cha|r*..gete|
|00004d30| 6e 76 28 29 3b 0a 0a 2f | 2a 20 6c 6f 63 61 6c 20 |nv();../|* local |
|00004d40| 74 79 70 65 20 64 65 63 | 73 2e 20 61 6e 64 20 6d |type dec|s. and m|
|00004d50| 61 63 72 6f 20 64 65 66 | 73 2e 20 6e 6f 74 20 69 |acro def|s. not i|
|00004d60| 6e 20 61 20 2e 68 20 20 | 66 69 6c 65 20 2a 2a 2a |n a .h |file ***|
|00004d70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 20 4d 41 43 52 4f |********|** MACRO|
|00004d80| 2f 54 59 50 45 0a 2a 2f | 0a 23 64 65 66 69 6e 65 |/TYPE.*/|.#define|
|00004d90| 09 09 76 65 72 73 69 6f | 6e 5f 63 20 30 78 31 32 |..versio|n_c 0x12|
|00004da0| 31 09 09 2f 2a 20 44 46 | 45 2d 49 50 43 20 76 65 |1../* DF|E-IPC ve|
|00004db0| 72 73 69 6f 6e 20 69 64 | 20 2a 2f 0a 23 64 65 66 |rsion id| */.#def|
|00004dc0| 69 6e 65 09 09 54 52 55 | 45 20 2d 31 0a 23 64 65 |ine..TRU|E -1.#de|
|00004dd0| 66 69 6e 65 09 09 46 41 | 4c 53 45 20 30 0a 23 64 |fine..FA|LSE 0.#d|
|00004de0| 65 66 69 6e 65 09 09 50 | 4f 52 54 5f 4e 55 4d 20 |efine..P|ORT_NUM |
|00004df0| 37 30 30 30 0a 23 64 65 | 66 69 6e 65 09 09 4d 41 |7000.#de|fine..MA|
|00004e00| 58 5f 53 45 53 53 49 4f | 4e 53 20 35 09 09 2f 2a |X_SESSIO|NS 5../*|
|00004e10| 20 6d 61 78 69 6d 75 6d | 20 44 46 45 2d 54 49 50 | maximum| DFE-TIP|
|00004e20| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 73 20 2a 2f 0a | connect|ions */.|
|00004e30| 23 64 65 66 69 6e 65 09 | 09 53 4f 43 5f 42 55 46 |#define.|.SOC_BUF|
|00004e40| 5f 53 49 5a 45 20 34 2a | 20 31 30 32 34 09 2f 2a |_SIZE 4*| 1024./*|
|00004e50| 20 73 69 7a 65 20 6f 66 | 20 73 6f 63 6b 65 74 20 | size of| socket |
|00004e60| 63 6f 6d 6d 73 20 62 75 | 66 66 65 72 20 2a 2f 0a |comms bu|ffer */.|
|00004e70| 23 64 65 66 69 6e 65 09 | 09 53 42 55 46 5f 53 49 |#define.|.SBUF_SI|
|00004e80| 5a 45 20 35 30 30 09 09 | 2f 2a 20 73 69 7a 65 20 |ZE 500..|/* size |
|00004e90| 6f 66 20 73 74 72 69 6e | 67 20 62 75 66 66 65 72 |of strin|g buffer|
|00004ea0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 09 09 45 52 52 | */.#def|ine..ERR|
|00004eb0| 4d 53 47 5f 53 49 5a 45 | 20 35 30 30 09 09 2f 2a |MSG_SIZE| 500../*|
|00004ec0| 20 73 69 7a 65 20 6f 66 | 20 65 72 72 6f 72 20 6d | size of| error m|
|00004ed0| 65 73 73 61 67 65 20 62 | 75 66 66 65 72 20 2a 2f |essage b|uffer */|
|00004ee0| 0a 0a 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00004ef0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 5f 73 74 72 09 | connect|ion_str.|
|00004f00| 09 2f 2a 20 72 65 63 6f | 72 64 20 6f 66 20 63 6f |./* reco|rd of co|
|00004f10| 6e 6e 65 63 74 20 73 65 | 73 73 69 6f 6e 20 2a 2f |nnect se|ssion */|
|00004f20| 0a 7b 0a 20 20 20 20 69 | 6e 74 09 09 69 6e 5f 75 |.{. i|nt..in_u|
|00004f30| 73 65 3b 0a 20 20 20 20 | 63 68 61 72 09 63 6f 6e |se;. |char.con|
|00004f40| 6e 65 63 74 5f 69 64 5b | 32 30 5d 3b 09 09 2f 2a |nect_id[|20];../*|
|00004f50| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 69 64 65 6e | connect|ion iden|
|00004f60| 74 69 66 69 65 72 20 2a | 2f 0a 20 20 20 20 63 68 |tifier *|/. ch|
|00004f70| 61 72 09 64 6f 6d 61 69 | 6e 5f 73 74 72 69 6e 67 |ar.domai|n_string|
|00004f80| 5b 32 30 5d 3b 09 2f 2a | 20 64 6f 6d 6d 61 69 6e |[20];./*| dommain|
|00004f90| 67 20 66 6f 72 20 63 6f | 6e 65 63 74 69 6f 6e 20 |g for co|nection |
|00004fa0| 2a 2f 0a 20 20 20 20 63 | 68 61 72 09 74 69 70 5f |*/. c|har.tip_|
|00004fb0| 73 74 72 69 6e 67 5b 33 | 30 5d 3b 09 09 2f 2a 20 |string[3|0];../* |
|00004fc0| 54 49 50 20 68 6f 73 74 | 20 6e 61 6d 65 20 66 6f |TIP host| name fo|
|00004fd0| 72 20 41 46 5f 49 4e 45 | 54 20 2a 2f 0a 20 20 20 |r AF_INE|T */. |
|00004fe0| 20 63 68 61 72 09 74 69 | 70 5f 65 78 65 5b 38 30 | char.ti|p_exe[80|
|00004ff0| 5d 3b 09 09 2f 2a 20 54 | 49 50 20 65 78 65 20 6e |];../* T|IP exe n|
|00005000| 61 6d 65 20 2a 2f 0a 20 | 20 20 20 69 6e 74 09 09 |ame */. | int..|
|00005010| 64 66 65 5f 73 64 3b 09 | 09 09 2f 2a 20 61 73 73 |dfe_sd;.|../* ass|
|00005020| 6f 63 69 61 74 65 64 20 | 44 46 45 20 73 6f 63 6b |ociated |DFE sock|
|00005030| 65 74 20 2a 2f 0a 20 20 | 20 20 69 6e 74 09 09 74 |et */. | int..t|
|00005040| 69 70 5f 70 69 64 3b 09 | 09 2f 2a 20 70 69 64 20 |ip_pid;.|./* pid |
|00005050| 6f 66 20 54 49 50 20 70 | 72 6f 63 65 73 73 20 2a |of TIP p|rocess *|
|00005060| 2f 0a 20 20 20 20 73 74 | 72 75 63 74 20 73 6f 63 |/. st|ruct soc|
|00005070| 6b 61 64 64 72 5f 69 6e | 20 64 66 65 5f 73 6f 63 |kaddr_in| dfe_soc|
|00005080| 6b 61 64 64 72 3b 0a 20 | 20 20 20 73 74 72 75 63 |kaddr;. | struc|
|00005090| 74 20 73 6f 63 6b 61 64 | 64 72 5f 69 6e 20 74 69 |t sockad|dr_in ti|
|000050a0| 70 5f 73 6f 63 6b 61 64 | 64 72 5f 69 6e 3b 0a 20 |p_sockad|dr_in;. |
|000050b0| 20 20 20 73 74 72 75 63 | 74 20 73 6f 63 6b 61 64 | struc|t sockad|
|000050c0| 64 72 20 20 20 20 74 69 | 70 5f 73 6f 63 6b 61 64 |dr ti|p_sockad|
|000050d0| 64 72 3b 0a 7d 20 63 6f | 6e 6e 65 63 74 69 6f 6e |dr;.} co|nnection|
|000050e0| 5f 74 3b 0a 0a 74 79 70 | 65 64 65 66 20 73 74 72 |_t;..typ|edef str|
|000050f0| 75 63 74 20 73 65 73 73 | 69 6f 6e 5f 73 74 72 0a |uct sess|ion_str.|
|00005100| 7b 0a 20 20 20 20 69 6e | 74 09 09 20 20 69 6e 5f |{. in|t.. in_|
|00005110| 75 73 65 3b 0a 20 20 20 | 20 63 6f 6e 6e 65 63 74 |use;. | connect|
|00005120| 69 6f 6e 5f 74 2a 20 73 | 6f 63 5f 63 6f 6e 5f 70 |ion_t* s|oc_con_p|
|00005130| 3b 09 09 2f 2a 20 61 73 | 73 6f 63 69 61 74 65 64 |;../* as|sociated|
|00005140| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 2a 2f 0a 20 | connect|ion */. |
|00005150| 20 20 20 55 44 49 53 65 | 73 73 69 6f 6e 49 64 20 | UDISe|ssionId |
|00005160| 20 74 69 70 5f 69 64 3b | 09 09 2f 2a 20 61 73 73 | tip_id;|../* ass|
|00005170| 6f 63 69 61 74 65 64 20 | 54 49 50 20 73 65 73 73 |ociated |TIP sess|
|00005180| 69 6f 6e 20 49 44 20 2a | 2f 0a 7d 20 73 65 73 73 |ion ID *|/.} sess|
|00005190| 69 6f 6e 5f 74 3b 0a 0a | 2f 2a 20 67 6c 6f 62 61 |ion_t;..|/* globa|
|000051a0| 6c 20 64 65 63 2f 64 65 | 66 73 2e 20 77 68 69 63 |l dec/de|fs. whic|
|000051b0| 68 20 61 72 65 20 6e 6f | 74 20 69 6e 20 61 20 2e |h are no|t in a .|
|000051c0| 68 20 20 20 66 69 6c 65 | 20 2a 2a 2a 2a 2a 2a 2a |h file| *******|
|000051d0| 2a 2a 2a 2a 2a 2a 20 45 | 58 50 4f 52 54 20 44 45 |****** E|XPORT DE|
|000051e0| 43 2f 44 45 46 53 0a 2a | 2f 0a 55 44 49 45 72 72 |C/DEFS.*|/.UDIErr|
|000051f0| 6f 72 09 64 66 65 5f 65 | 72 72 6e 6f 3b 0a 63 68 |or.dfe_e|rrno;.ch|
|00005200| 61 72 09 64 66 65 5f 65 | 72 72 6d 73 67 5b 45 52 |ar.dfe_e|rrmsg[ER|
|00005210| 52 4d 53 47 5f 53 49 5a | 45 5d 3b 2f 2a 20 65 72 |RMSG_SIZ|E];/* er|
|00005220| 72 6f 72 20 73 74 72 69 | 6e 67 20 2a 2f 0a 0a 2f |ror stri|ng */../|
|00005230| 2a 20 6c 6f 63 61 6c 20 | 64 65 63 2f 64 65 66 73 |* local |dec/defs|
|00005240| 2e 20 77 68 69 63 68 20 | 61 72 65 20 6e 6f 74 20 |. which |are not |
|00005250| 69 6e 20 61 20 2e 68 20 | 20 20 66 69 6c 65 20 2a |in a .h | file *|
|00005260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 4c |********|****** L|
|00005270| 4f 43 41 4c 20 44 45 43 | 2f 44 45 46 53 0a 2a 2f |OCAL DEC|/DEFS.*/|
|00005280| 0a 4c 4f 43 41 4c 20 63 | 6f 6e 6e 65 63 74 69 6f |.LOCAL c|onnectio|
|00005290| 6e 5f 74 09 73 6f 63 5f | 63 6f 6e 5b 4d 41 58 5f |n_t.soc_|con[MAX_|
|000052a0| 53 45 53 53 49 4f 4e 53 | 5d 3b 09 0a 4c 4f 43 41 |SESSIONS|];..LOCA|
|000052b0| 4c 20 73 65 73 73 69 6f | 6e 5f 74 09 73 65 73 73 |L sessio|n_t.sess|
|000052c0| 69 6f 6e 5b 4d 41 58 5f | 53 45 53 53 49 4f 4e 53 |ion[MAX_|SESSIONS|
|000052d0| 5d 3b 09 0a 4c 4f 43 41 | 4c 20 55 44 52 09 75 64 |];..LOCA|L UDR.ud|
|000052e0| 72 3b 0a 4c 4f 43 41 4c | 20 55 44 52 2a 09 75 64 |r;.LOCAL| UDR*.ud|
|000052f0| 72 73 20 3d 20 26 75 64 | 72 3b 09 09 2f 2a 20 55 |rs = &ud|r;../* U|
|00005300| 44 52 20 66 6f 72 20 63 | 75 72 72 65 6e 74 20 73 |DR for c|urrent s|
|00005310| 65 73 73 69 6f 6e 20 2a | 2f 0a 4c 4f 43 41 4c 20 |ession *|/.LOCAL |
|00005320| 69 6e 74 09 63 75 72 72 | 65 6e 74 3b 09 09 2f 2a |int.curr|ent;../*|
|00005330| 20 69 6e 74 2d 69 64 20 | 66 6f 72 20 63 75 72 72 | int-id |for curr|
|00005340| 65 6e 74 20 73 65 73 73 | 69 6f 6e 20 2a 2f 0a 4c |ent sess|ion */.L|
|00005350| 4f 43 41 4c 20 63 68 61 | 72 09 73 62 75 66 5b 53 |OCAL cha|r.sbuf[S|
|00005360| 42 55 46 5f 53 49 5a 45 | 5d 3b 09 2f 2a 20 53 74 |BUF_SIZE|];./* St|
|00005370| 72 69 6e 67 20 68 61 6e | 64 6c 65 72 20 62 75 66 |ring han|dler buf|
|00005380| 66 65 72 20 2a 2f 0a 4c | 4f 43 41 4c 20 63 68 61 |fer */.L|OCAL cha|
|00005390| 72 09 63 6f 6e 66 69 67 | 5f 66 69 6c 65 5b 38 30 |r.config|_file[80|
|000053a0| 5d 3b 09 2f 2a 20 70 61 | 74 68 2f 6e 61 6d 65 20 |];./* pa|th/name |
|000053b0| 66 6f 72 20 63 6f 6e 66 | 69 67 20 66 69 6c 65 20 |for conf|ig file |
|000053c0| 2a 2f 0a 0a 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*/../***|********|
|000053d0| 2a 2a 2a 2a 2a 2a 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 20 55 | 44 49 5f 43 4f 4e 4e 45 |****** U|DI_CONNE|
|00005410| 43 54 0a 2a 20 45 73 74 | 61 62 6c 69 73 68 20 61 |CT.* Est|ablish a|
|00005420| 20 6e 65 77 20 46 44 45 | 20 74 6f 20 54 49 50 20 | new FDE| to TIP |
|00005430| 63 6f 6e 65 63 74 69 6f | 6e 2e 20 54 68 65 20 66 |conectio|n. The f|
|00005440| 69 6c 65 20 22 2e 2f 75 | 64 69 5f 73 6f 63 22 20 |ile "./u|di_soc" |
|00005450| 6f 72 0a 2a 20 22 2f 65 | 74 63 2f 75 64 69 5f 73 |or.* "/e|tc/udi_s|
|00005460| 6f 63 22 20 6d 61 79 20 | 62 65 20 65 78 61 6d 69 |oc" may |be exami|
|00005470| 6e 65 64 20 74 6f 20 6f | 62 74 61 69 6e 20 74 68 |ned to o|btain th|
|00005480| 65 20 63 6f 6e 65 63 74 | 69 6f 6e 20 69 6e 66 6f |e conect|ion info|
|00005490| 72 6d 61 74 69 6f 6e 0a | 2a 20 69 66 20 74 68 65 |rmation.|* if the|
|000054a0| 20 22 43 6f 6e 66 69 67 | 22 20 70 61 72 61 6d 65 | "Config|" parame|
|000054b0| 74 65 72 20 69 73 20 6e | 6f 74 20 61 20 63 6f 6d |ter is n|ot a com|
|000054c0| 70 6c 65 74 64 20 22 6c | 69 6e 65 20 65 6e 74 72 |pletd "l|ine entr|
|000054d0| 79 22 2e 0a 2a 0a 2a 20 | 4e 4f 54 45 3a 20 74 68 |y"..*.* |NOTE: th|
|000054e0| 65 20 53 65 73 73 69 6f | 6e 20 73 74 72 69 6e 67 |e Sessio|n string|
|000054f0| 20 6d 75 73 74 20 6e 6f | 74 20 73 74 61 72 74 20 | must no|t start |
|00005500| 77 68 69 74 68 20 77 68 | 69 74 65 2d 73 70 61 63 |whith wh|ite-spac|
|00005510| 65 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 2a 20 |e charac|ters..* |
|00005520| 46 6f 72 6d 61 74 20 6f | 66 20 73 74 72 69 6e 67 |Format o|f string|
|00005530| 20 69 73 3a 0a 2a 20 3c | 73 65 73 73 69 6f 6e 3e | is:.* <|session>|
|00005540| 20 20 20 3c 64 6f 6d 61 | 69 6e 3e 20 3c 73 6f 63 | <doma|in> <soc|
|00005550| 5f 6e 61 6d 65 7c 68 6f | 73 74 5f 6e 61 6d 65 3e |_name|ho|st_name>|
|00005560| 20 3c 74 69 70 5f 65 78 | 65 7c 70 6f 72 74 3e 20 | <tip_ex|e|port> |
|00005570| 3c 70 61 73 73 20 74 6f | 20 55 44 49 63 6f 6e 6e |<pass to| UDIconn|
|00005580| 65 63 74 3e 0a 2a 20 73 | 6f 63 32 63 61 79 6d 61 |ect>.* s|oc2cayma|
|00005590| 6e 20 20 41 46 5f 49 4e | 45 54 20 20 20 20 20 20 |n AF_IN|ET |
|000055a0| 20 20 20 20 20 20 63 61 | 79 6d 61 6e 20 20 20 20 | ca|yman |
|000055b0| 20 20 37 30 30 30 20 20 | 20 20 20 20 20 20 20 20 | 7000 | |
|000055c0| 20 3c 6e 6f 74 20 73 75 | 70 70 6f 72 74 65 64 3e | <not su|pported>|
|000055d0| 0a 2a 20 73 6f 63 32 74 | 69 70 20 20 20 20 20 41 |.* soc2t|ip A|
|000055e0| 46 5f 55 4e 49 58 20 20 | 20 61 73 74 72 69 6e 67 |F_UNIX | astring|
|000055f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 69 | | ti|
|00005600| 70 2e 65 78 65 20 20 20 | 20 20 20 20 20 2e 2e 2e |p.exe | ...|
|00005610| 0a 2a 2f 0a 55 44 49 45 | 72 72 6f 72 0a 55 44 49 |.*/.UDIE|rror.UDI|
|00005620| 43 6f 6e 6e 65 63 74 28 | 43 6f 6e 66 69 67 2c 20 |Connect(|Config, |
|00005630| 53 65 73 73 69 6f 6e 29 | 0a 20 20 20 20 20 63 68 |Session)|. ch|
|00005640| 61 72 20 2a 43 6f 6e 66 | 69 67 3b 09 09 2f 2a 20 |ar *Conf|ig;../* |
|00005650| 69 6e 20 20 2d 2d 20 69 | 64 65 6e 74 69 66 69 63 |in -- i|dentific|
|00005660| 61 74 69 6f 6e 20 73 74 | 72 69 6e 67 20 2a 2f 0a |ation st|ring */.|
|00005670| 20 20 20 20 20 55 44 49 | 53 65 73 73 69 6f 6e 49 | UDI|SessionI|
|00005680| 64 20 2a 53 65 73 73 69 | 6f 6e 3b 09 2f 2a 20 6f |d *Sessi|on;./* o|
|00005690| 75 74 20 2d 2d 20 73 65 | 73 73 69 6f 6e 20 49 44 |ut -- se|ssion ID|
|000056a0| 20 2a 2f 0a 7b 0a 20 20 | 20 20 55 44 49 49 6e 74 | */.{. | UDIInt|
|000056b0| 33 32 09 73 65 72 76 69 | 63 65 5f 69 64 20 3d 20 |32.servi|ce_id = |
|000056c0| 55 44 49 43 6f 6e 6e 65 | 63 74 5f 63 3b 0a 20 20 |UDIConne|ct_c;. |
|000056d0| 20 20 69 6e 74 09 09 64 | 6f 6d 61 69 6e 3b 0a 20 | int..d|omain;. |
|000056e0| 20 20 20 69 6e 74 09 09 | 63 6e 74 3d 30 3b 0a 20 | int..|cnt=0;. |
|000056f0| 20 20 20 69 6e 74 09 09 | 72 63 6e 74 2c 20 70 6f | int..|rcnt, po|
|00005700| 73 2c 20 70 61 72 61 6d | 73 5f 70 6f 73 3d 30 3b |s, param|s_pos=0;|
|00005710| 0a 20 20 20 20 63 68 61 | 72 09 2a 74 69 70 5f 6d |. cha|r.*tip_m|
|00005720| 61 69 6e 5f 73 74 72 69 | 6e 67 3b 0a 20 20 20 20 |ain_stri|ng;. |
|00005730| 63 68 61 72 09 2a 65 6e | 76 5f 70 3b 0a 20 20 20 |char.*en|v_p;. |
|00005740| 20 73 74 72 75 63 74 20 | 68 6f 73 74 65 6e 74 09 | struct |hostent.|
|00005750| 2a 74 69 70 5f 69 6e 66 | 6f 5f 70 3b 0a 20 20 20 |*tip_inf|o_p;. |
|00005760| 20 46 49 4c 45 09 2a 66 | 64 3b 0a 23 69 66 20 30 | FILE.*f|d;.#if 0|
|00005770| 0a 20 20 20 20 46 49 4c | 45 09 2a 66 5f 70 3b 0a |. FIL|E.*f_p;.|
|00005780| 23 65 6e 64 69 66 0a 20 | 20 20 20 55 44 49 55 49 |#endif. | UDIUI|
|00005790| 6e 74 33 32 09 54 49 50 | 49 50 43 49 64 3b 0a 20 |nt32.TIP|IPCId;. |
|000057a0| 20 20 20 55 44 49 55 49 | 6e 74 33 32 09 44 46 45 | UDIUI|nt32.DFE|
|000057b0| 49 50 43 49 64 3b 0a 0a | 23 69 66 20 30 20 2f 2a |IPCId;..|#if 0 /*|
|000057c0| 20 54 68 69 73 20 69 73 | 20 63 72 61 70 2e 20 20 | This is| crap. |
|000057d0| 49 74 20 61 73 73 75 6d | 65 73 20 74 68 61 74 20 |It assum|es that |
|000057e0| 75 64 69 5f 73 6f 63 20 | 69 73 20 65 78 65 63 75 |udi_soc |is execu|
|000057f0| 74 61 62 6c 65 21 20 2a | 2f 0a 20 20 20 20 73 70 |table! *|/. sp|
|00005800| 72 69 6e 74 66 28 73 62 | 75 66 2c 20 22 77 68 69 |rintf(sb|uf, "whi|
|00005810| 63 68 20 75 64 69 5f 73 | 6f 63 22 29 3b 0a 20 20 |ch udi_s|oc");. |
|00005820| 20 20 66 5f 70 20 3d 20 | 70 6f 70 65 6e 28 73 62 | f_p = |popen(sb|
|00005830| 75 66 2c 20 22 72 22 29 | 3b 0a 20 20 20 20 69 66 |uf, "r")|;. if|
|00005840| 28 66 5f 70 29 0a 20 20 | 20 20 7b 20 20 20 77 68 |(f_p). | { wh|
|00005850| 69 6c 65 28 20 28 73 62 | 75 66 5b 63 6e 74 2b 2b |ile( (sb|uf[cnt++|
|00005860| 5d 3d 67 65 74 63 28 66 | 5f 70 29 29 20 21 3d 20 |]=getc(f|_p)) != |
|00005870| 45 4f 46 29 3b 0a 09 73 | 62 75 66 5b 63 6e 74 2d |EOF);..s|buf[cnt-|
|00005880| 32 5d 3d 30 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |2]=0;. | }. |
|00005890| 70 63 6c 6f 73 65 28 66 | 5f 70 29 3b 0a 23 65 6e |pclose(f|_p);.#en|
|000058a0| 64 69 66 0a 0a 20 20 20 | 20 66 6f 72 20 28 72 63 |dif.. | for (rc|
|000058b0| 6e 74 3d 30 3b 0a 09 20 | 72 63 6e 74 20 3c 20 4d |nt=0;.. |rcnt < M|
|000058c0| 41 58 5f 53 45 53 53 49 | 4f 4e 53 20 26 26 20 73 |AX_SESSI|ONS && s|
|000058d0| 65 73 73 69 6f 6e 5b 72 | 63 6e 74 5d 2e 69 6e 5f |ession[r|cnt].in_|
|000058e0| 75 73 65 3b 0a 09 20 72 | 63 6e 74 2b 2b 29 3b 0a |use;.. r|cnt++);.|
|000058f0| 0a 20 20 20 20 69 66 20 | 28 72 63 6e 74 20 3e 3d |. if |(rcnt >=|
|00005900| 20 4d 41 58 5f 53 45 53 | 53 49 4f 4e 53 29 0a 20 | MAX_SES|SIONS). |
|00005910| 20 20 20 20 20 7b 0a 09 | 73 70 72 69 6e 74 66 28 | {..|sprintf(|
|00005920| 64 66 65 5f 65 72 72 6d | 73 67 2c 20 22 44 46 45 |dfe_errm|sg, "DFE|
|00005930| 2d 69 70 63 20 45 52 52 | 4f 52 3a 20 54 6f 6f 20 |-ipc ERR|OR: Too |
|00005940| 6d 61 6e 79 20 73 65 73 | 73 69 6f 6e 73 20 61 6c |many ses|sions al|
|00005950| 72 65 61 64 79 20 6f 70 | 65 6e 22 29 3b 0a 09 72 |ready op|en");..r|
|00005960| 65 74 75 72 6e 20 55 44 | 49 45 72 72 6f 72 49 50 |eturn UD|IErrorIP|
|00005970| 43 4c 69 6d 69 74 61 74 | 69 6f 6e 3b 0a 20 20 20 |CLimitat|ion;. |
|00005980| 20 20 20 7d 0a 0a 20 20 | 20 20 2f 2a 20 4f 6e 65 | }.. | /* One|
|00005990| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 63 61 6e 20 | connect|ion can |
|000059a0| 62 65 20 6d 75 6c 74 69 | 70 6c 65 78 65 64 20 62 |be multi|plexed b|
|000059b0| 65 74 77 65 65 6e 20 73 | 65 76 65 72 61 6c 20 73 |etween s|everal s|
|000059c0| 65 73 73 69 6f 6e 73 2e | 20 2a 2f 0a 0a 20 20 20 |essions.| */.. |
|000059d0| 20 66 6f 72 20 28 63 6e | 74 3d 30 3b 0a 09 20 63 | for (cn|t=0;.. c|
|000059e0| 6e 74 20 3c 20 4d 41 58 | 5f 53 45 53 53 49 4f 4e |nt < MAX|_SESSION|
|000059f0| 53 20 26 26 20 73 6f 63 | 5f 63 6f 6e 5b 63 6e 74 |S && soc|_con[cnt|
|00005a00| 5d 2e 69 6e 5f 75 73 65 | 3b 0a 09 20 63 6e 74 2b |].in_use|;.. cnt+|
|00005a10| 2b 29 3b 0a 0a 20 20 20 | 20 69 66 20 28 63 6e 74 |+);.. | if (cnt|
|00005a20| 20 3e 3d 20 4d 41 58 5f | 53 45 53 53 49 4f 4e 53 | >= MAX_|SESSIONS|
|00005a30| 29 0a 20 20 20 20 20 20 | 7b 0a 20 20 20 20 20 20 |). |{. |
|00005a40| 20 20 73 70 72 69 6e 74 | 66 28 64 66 65 5f 65 72 | sprint|f(dfe_er|
|00005a50| 72 6d 73 67 2c 0a 09 09 | 22 44 46 45 2d 69 70 63 |rmsg,...|"DFE-ipc|
|00005a60| 20 45 52 52 4f 52 3a 20 | 54 6f 6f 20 6d 61 6e 79 | ERROR: |Too many|
|00005a70| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 73 20 61 6c 72 | connect|ions alr|
|00005a80| 65 61 64 79 20 6f 70 65 | 6e 22 29 3b 0a 20 20 20 |eady ope|n");. |
|00005a90| 20 20 20 20 20 72 65 74 | 75 72 6e 20 55 44 49 45 | ret|urn UDIE|
|00005aa0| 72 72 6f 72 49 50 43 4c | 69 6d 69 74 61 74 69 6f |rrorIPCL|imitatio|
|00005ab0| 6e 3b 0a 20 20 20 20 20 | 20 7d 0a 0a 20 20 20 20 |n;. | }.. |
|00005ac0| 2a 53 65 73 73 69 6f 6e | 20 3d 20 72 63 6e 74 3b |*Session| = rcnt;|
|00005ad0| 0a 20 20 20 20 73 65 73 | 73 69 6f 6e 5b 72 63 6e |. ses|sion[rcn|
|00005ae0| 74 5d 2e 73 6f 63 5f 63 | 6f 6e 5f 70 20 3d 20 26 |t].soc_c|on_p = &|
|00005af0| 73 6f 63 5f 63 6f 6e 5b | 63 6e 74 5d 3b 0a 0a 20 |soc_con[|cnt];.. |
|00005b00| 20 20 20 69 66 20 28 73 | 74 72 63 68 72 28 43 6f | if (s|trchr(Co|
|00005b10| 6e 66 69 67 2c 20 27 20 | 27 29 29 09 09 2f 2a 20 |nfig, ' |'))../* |
|00005b20| 74 65 73 74 20 69 66 20 | 66 69 6c 65 20 65 6e 74 |test if |file ent|
|00005b30| 72 79 20 67 69 76 65 6e | 20 2a 2f 0a 20 20 20 20 |ry given| */. |
|00005b40| 20 20 7b 0a 20 20 20 20 | 20 20 20 20 73 6f 63 5f | {. | soc_|
|00005b50| 63 6f 6e 5b 63 6e 74 5d | 2e 69 6e 5f 75 73 65 20 |con[cnt]|.in_use |
|00005b60| 3d 20 54 52 55 45 3b 0a | 20 20 20 20 20 20 20 20 |= TRUE;.| |
|00005b70| 73 73 63 61 6e 66 28 43 | 6f 6e 66 69 67 2c 20 22 |sscanf(C|onfig, "|
|00005b80| 25 73 20 25 73 20 25 73 | 20 25 73 20 25 6e 22 2c |%s %s %s| %s %n",|
|00005b90| 0a 09 20 20 20 20 20 20 | 20 73 6f 63 5f 63 6f 6e |.. | soc_con|
|00005ba0| 5b 63 6e 74 5d 2e 63 6f | 6e 6e 65 63 74 5f 69 64 |[cnt].co|nnect_id|
|00005bb0| 2c 0a 09 20 20 20 20 20 | 20 20 73 6f 63 5f 63 6f |,.. | soc_co|
|00005bc0| 6e 5b 63 6e 74 5d 2e 64 | 6f 6d 61 69 6e 5f 73 74 |n[cnt].d|omain_st|
|00005bd0| 72 69 6e 67 2c 0a 09 20 | 20 20 20 20 20 20 73 6f |ring,.. | so|
|00005be0| 63 5f 63 6f 6e 5b 63 6e | 74 5d 2e 74 69 70 5f 73 |c_con[cn|t].tip_s|
|00005bf0| 74 72 69 6e 67 2c 0a 09 | 20 20 20 20 20 20 20 73 |tring,..| s|
|00005c00| 6f 63 5f 63 6f 6e 5b 63 | 6e 74 5d 2e 74 69 70 5f |oc_con[c|nt].tip_|
|00005c10| 65 78 65 2c 0a 09 20 20 | 20 20 20 20 20 26 70 61 |exe,.. | &pa|
|00005c20| 72 61 6d 73 5f 70 6f 73 | 29 3b 0a 09 74 69 70 5f |rams_pos|);..tip_|
|00005c30| 6d 61 69 6e 5f 73 74 72 | 69 6e 67 20 3d 20 43 6f |main_str|ing = Co|
|00005c40| 6e 66 69 67 20 2b 20 70 | 61 72 61 6d 73 5f 70 6f |nfig + p|arams_po|
|00005c50| 73 3b 0a 20 20 20 20 20 | 20 7d 0a 20 20 20 20 65 |s;. | }. e|
|00005c60| 6c 73 65 09 09 09 09 2f | 2a 20 68 65 72 65 20 69 |lse..../|* here i|
|00005c70| 66 20 6e 65 65 64 20 74 | 6f 20 72 65 61 64 20 75 |f need t|o read u|
|00005c80| 64 69 5f 73 6f 63 20 66 | 69 6c 65 20 2a 2f 0a 20 |di_soc f|ile */. |
|00005c90| 20 20 20 20 20 7b 0a 09 | 73 74 72 63 70 79 28 63 | {..|strcpy(c|
|00005ca0| 6f 6e 66 69 67 5f 66 69 | 6c 65 2c 20 22 75 64 69 |onfig_fi|le, "udi|
|00005cb0| 5f 73 6f 63 22 29 3b 0a | 09 65 6e 76 5f 70 20 3d |_soc");.|.env_p =|
|00005cc0| 20 67 65 74 65 6e 76 28 | 22 55 44 49 43 4f 4e 46 | getenv(|"UDICONF|
|00005cd0| 22 29 3b 0a 09 69 66 20 | 28 65 6e 76 5f 70 29 0a |");..if |(env_p).|
|00005ce0| 09 20 20 73 74 72 63 70 | 79 28 63 6f 6e 66 69 67 |. strcp|y(config|
|00005cf0| 5f 66 69 6c 65 2c 20 65 | 6e 76 5f 70 29 3b 0a 0a |_file, e|nv_p);..|
|00005d00| 09 66 64 20 3d 20 66 6f | 70 65 6e 28 63 6f 6e 66 |.fd = fo|pen(conf|
|00005d10| 69 67 5f 66 69 6c 65 2c | 20 22 72 22 29 3b 0a 0a |ig_file,| "r");..|
|00005d20| 09 69 66 20 28 21 66 64 | 29 0a 09 20 20 7b 0a 09 |.if (!fd|).. {..|
|00005d30| 20 20 20 20 73 70 72 69 | 6e 74 66 28 64 66 65 5f | spri|ntf(dfe_|
|00005d40| 65 72 72 6d 73 67 2c 20 | 22 55 44 49 43 6f 6e 6e |errmsg, |"UDIConn|
|00005d50| 65 63 74 2c 20 63 61 6e | 27 74 20 6f 70 65 6e 20 |ect, can|'t open |
|00005d60| 75 64 69 5f 73 6f 63 20 | 66 69 6c 65 3a 5c 6e 25 |udi_soc |file:\n%|
|00005d70| 73 20 22 2c 0a 09 09 20 | 20 20 20 73 79 73 5f 65 |s ",... | sys_e|
|00005d80| 72 72 6c 69 73 74 5b 65 | 72 72 6e 6f 5d 29 3b 0a |rrlist[e|rrno]);.|
|00005d90| 09 20 20 20 20 64 66 65 | 5f 65 72 72 6e 6f 20 3d |. dfe|_errno =|
|00005da0| 20 55 44 49 45 72 72 6f | 72 43 61 6e 74 4f 70 65 | UDIErro|rCantOpe|
|00005db0| 6e 43 6f 6e 66 69 67 46 | 69 6c 65 3b 0a 09 20 20 |nConfigF|ile;.. |
|00005dc0| 20 20 67 6f 74 6f 20 74 | 69 70 5f 66 61 69 6c 75 | goto t|ip_failu|
|00005dd0| 72 65 3b 0a 09 20 20 7d | 0a 0a 09 77 68 69 6c 65 |re;.. }|...while|
|00005de0| 20 28 31 29 0a 09 20 20 | 7b 0a 09 20 20 20 20 69 | (1).. |{.. i|
|00005df0| 66 20 28 66 73 63 61 6e | 66 28 66 64 2c 20 22 25 |f (fscan|f(fd, "%|
|00005e00| 73 20 25 73 20 25 73 20 | 25 73 20 25 5b 5e 5c 6e |s %s %s |%s %[^\n|
|00005e10| 5d 5c 6e 22 2c 0a 09 09 | 20 20 20 20 20 20 20 73 |]\n",...| s|
|00005e20| 6f 63 5f 63 6f 6e 5b 63 | 6e 74 5d 2e 63 6f 6e 6e |oc_con[c|nt].conn|
|00005e30| 65 63 74 5f 69 64 2c 0a | 09 09 20 20 20 20 20 20 |ect_id,.|.. |
|00005e40| 20 73 6f 63 5f 63 6f 6e | 5b 63 6e 74 5d 2e 64 6f | soc_con|[cnt].do|
|00005e50| 6d 61 69 6e 5f 73 74 72 | 69 6e 67 2c 0a 09 09 20 |main_str|ing,... |
|00005e60| 20 20 20 20 20 20 73 6f | 63 5f 63 6f 6e 5b 63 6e | so|c_con[cn|
|00005e70| 74 5d 2e 74 69 70 5f 73 | 74 72 69 6e 67 2c 0a 09 |t].tip_s|tring,..|
|00005e80| 09 20 20 20 20 20 20 20 | 73 6f 63 5f 63 6f 6e 5b |. |soc_con[|
|00005e90| 63 6e 74 5d 2e 74 69 70 | 5f 65 78 65 2c 0a 09 09 |cnt].tip|_exe,...|
|00005ea0| 20 20 20 20 20 20 20 73 | 62 75 66 29 20 3d 3d 20 | s|buf) == |
|00005eb0| 45 4f 46 29 0a 09 20 20 | 20 20 20 20 62 72 65 61 |EOF).. | brea|
|00005ec0| 6b 3b 0a 0a 09 20 20 20 | 20 69 66 20 28 73 74 72 |k;... | if (str|
|00005ed0| 63 6d 70 28 43 6f 6e 66 | 69 67 2c 20 73 6f 63 5f |cmp(Conf|ig, soc_|
|00005ee0| 63 6f 6e 5b 63 6e 74 5d | 2e 63 6f 6e 6e 65 63 74 |con[cnt]|.connect|
|00005ef0| 5f 69 64 29 20 21 3d 20 | 30 29 0a 09 20 20 20 20 |_id) != |0).. |
|00005f00| 20 20 63 6f 6e 74 69 6e | 75 65 3b 0a 0a 09 20 20 | contin|ue;... |
|00005f10| 20 20 73 6f 63 5f 63 6f | 6e 5b 63 6e 74 5d 2e 69 | soc_co|n[cnt].i|
|00005f20| 6e 5f 75 73 65 20 3d 20 | 54 52 55 45 3b 20 2f 2a |n_use = |TRUE; /*|
|00005f30| 20 68 65 72 65 20 69 66 | 20 65 6e 74 72 79 20 66 | here if| entry f|
|00005f40| 6f 75 6e 64 20 2a 2f 0a | 0a 09 20 20 20 20 74 69 |ound */.|.. ti|
|00005f50| 70 5f 6d 61 69 6e 5f 73 | 74 72 69 6e 67 20 3d 20 |p_main_s|tring = |
|00005f60| 73 62 75 66 3b 0a 09 20 | 20 20 20 62 72 65 61 6b |sbuf;.. | break|
|00005f70| 3b 0a 09 20 20 7d 0a 0a | 09 66 63 6c 6f 73 65 28 |;.. }..|.fclose(|
|00005f80| 66 64 29 3b 0a 09 69 66 | 20 28 21 73 6f 63 5f 63 |fd);..if| (!soc_c|
|00005f90| 6f 6e 5b 63 6e 74 5d 2e | 69 6e 5f 75 73 65 29 0a |on[cnt].|in_use).|
|00005fa0| 09 20 20 7b 0a 09 20 20 | 20 20 73 70 72 69 6e 74 |. {.. | sprint|
|00005fb0| 66 28 64 66 65 5f 65 72 | 72 6d 73 67 2c 0a 09 09 |f(dfe_er|rmsg,...|
|00005fc0| 20 20 20 20 22 55 44 49 | 43 6f 6e 6e 65 63 74 2c | "UDI|Connect,|
|00005fd0| 20 63 61 6e 27 74 20 66 | 69 6e 64 20 60 25 73 27 | can't f|ind `%s'|
|00005fe0| 20 65 6e 74 72 79 20 69 | 6e 20 75 64 69 5f 73 6f | entry i|n udi_so|
|00005ff0| 63 20 66 69 6c 65 22 2c | 0a 09 09 20 20 20 20 43 |c file",|... C|
|00006000| 6f 6e 66 69 67 29 3b 0a | 09 20 20 20 20 64 66 65 |onfig);.|. dfe|
|00006010| 5f 65 72 72 6e 6f 20 3d | 20 55 44 49 45 72 72 6f |_errno =| UDIErro|
|00006020| 72 4e 6f 53 75 63 68 43 | 6f 6e 66 69 67 75 72 61 |rNoSuchC|onfigura|
|00006030| 74 69 6f 6e 3b 0a 09 20 | 20 20 20 67 6f 74 6f 20 |tion;.. | goto |
|00006040| 74 69 70 5f 66 61 69 6c | 75 72 65 3b 0a 09 20 20 |tip_fail|ure;.. |
|00006050| 7d 0a 20 20 20 20 20 20 | 7d 0a 2f 2a 2d 2d 2d 2d |}. |}./*----|
|00006060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 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 20 | 53 45 4c 45 43 54 20 44 |------- |SELECT D|
|000060a0| 4f 4d 41 49 4e 20 2a 2f | 0a 20 20 20 20 69 66 20 |OMAIN */|. if |
|000060b0| 28 73 74 72 63 6d 70 28 | 73 6f 63 5f 63 6f 6e 5b |(strcmp(|soc_con[|
|000060c0| 63 6e 74 5d 2e 64 6f 6d | 61 69 6e 5f 73 74 72 69 |cnt].dom|ain_stri|
|000060d0| 6e 67 2c 20 22 41 46 5f | 55 4e 49 58 22 29 20 3d |ng, "AF_|UNIX") =|
|000060e0| 3d 20 30 29 0a 20 20 20 | 20 20 20 64 6f 6d 61 69 |= 0). | domai|
|000060f0| 6e 20 3d 20 41 46 5f 55 | 4e 49 58 3b 0a 20 20 20 |n = AF_U|NIX;. |
|00006100| 20 65 6c 73 65 20 69 66 | 20 28 73 74 72 63 6d 70 | else if| (strcmp|
|00006110| 28 73 6f 63 5f 63 6f 6e | 5b 63 6e 74 5d 2e 64 6f |(soc_con|[cnt].do|
|00006120| 6d 61 69 6e 5f 73 74 72 | 69 6e 67 2c 20 22 41 46 |main_str|ing, "AF|
|00006130| 5f 49 4e 45 54 22 29 20 | 3d 3d 20 30 29 0a 20 20 |_INET") |== 0). |
|00006140| 20 20 20 20 64 6f 6d 61 | 69 6e 20 3d 20 41 46 5f | doma|in = AF_|
|00006150| 49 4e 45 54 3b 0a 20 20 | 20 20 65 6c 73 65 0a 20 |INET;. | else. |
|00006160| 20 20 20 20 20 7b 0a 20 | 20 20 20 09 73 70 72 69 | {. | .spri|
|00006170| 6e 74 66 28 64 66 65 5f | 65 72 72 6d 73 67 2c 20 |ntf(dfe_|errmsg, |
|00006180| 22 44 46 45 2d 69 70 63 | 20 45 52 52 4f 52 3a 20 |"DFE-ipc| ERROR: |
|00006190| 73 6f 63 6b 65 74 20 61 | 64 64 72 65 73 73 20 66 |socket a|ddress f|
|000061a0| 61 6d 69 6c 79 20 6e 6f | 74 20 6b 6e 6f 77 6e 22 |amily no|t known"|
|000061b0| 29 3b 0a 09 64 66 65 5f | 65 72 72 6e 6f 20 3d 20 |);..dfe_|errno = |
|000061c0| 55 44 49 45 72 72 6f 72 | 42 61 64 43 6f 6e 66 69 |UDIError|BadConfi|
|000061d0| 67 46 69 6c 65 45 6e 74 | 72 79 3b 0a 09 67 6f 74 |gFileEnt|ry;..got|
|000061e0| 6f 20 74 69 70 5f 66 61 | 69 6c 75 72 65 3b 0a 20 |o tip_fa|ilure;. |
|000061f0| 20 20 20 20 20 7d 0a 0a | 2f 2a 2d 2d 2d 2d 2d 2d | }..|/*------|
|00006200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 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 20 4d |--------|------ M|
|00006230| 55 4c 54 49 50 4c 45 58 | 45 44 20 53 4f 43 4b 45 |ULTIPLEX|ED SOCKE|
|00006240| 54 20 3f 20 2a 2f 0a 2f | 2a 20 49 66 20 74 68 65 |T ? */./|* If the|
|00006250| 20 72 65 71 75 65 73 74 | 65 64 20 73 65 73 73 69 | request|ed sessi|
|00006260| 6f 6e 20 72 65 71 75 69 | 72 65 73 20 63 6f 6d 6d |on requi|res comm|
|00006270| 75 6e 69 63 61 74 69 6f | 6e 20 77 69 74 68 0a 20 |unicatio|n with. |
|00006280| 20 20 61 20 54 49 50 20 | 77 68 69 63 68 20 61 6c | a TIP |which al|
|00006290| 72 65 61 64 79 20 68 61 | 73 20 61 20 73 6f 63 6b |ready ha|s a sock|
|000062a0| 65 74 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 65 73 |et conne|ction es|
|000062b0| 74 61 62 6c 69 73 68 65 | 64 2c 0a 20 20 20 74 68 |tablishe|d,. th|
|000062c0| 65 6e 20 77 65 20 64 6f | 20 6e 6f 74 20 63 72 65 |en we do| not cre|
|000062d0| 61 74 65 20 61 20 6e 65 | 77 20 73 6f 63 6b 65 74 |ate a ne|w socket|
|000062e0| 20 62 75 74 20 6d 75 6c | 74 69 70 6c 65 78 20 74 | but mul|tiplex t|
|000062f0| 68 65 0a 20 20 20 65 78 | 69 73 74 69 6e 67 20 6f |he. ex|isting o|
|00006300| 6e 65 2e 20 41 20 54 49 | 50 20 69 73 20 73 61 69 |ne. A TI|P is sai|
|00006310| 64 20 74 6f 20 75 73 65 | 20 74 68 65 20 73 61 6d |d to use| the sam|
|00006320| 65 20 73 6f 63 6b 65 74 | 20 69 66 0a 20 20 20 73 |e socket| if. s|
|00006330| 6f 63 6b 65 74 2d 6e 61 | 6d 65 2f 68 6f 73 74 2d |ocket-na|me/host-|
|00006340| 6e 61 6d 65 20 61 6e 64 | 20 74 68 65 20 64 6f 6d |name and| the dom|
|00006350| 61 69 6e 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |ain are |the same|
|00006360| 2e 0a 20 2a 2f 0a 20 20 | 20 20 66 6f 72 20 28 72 |.. */. | for (r|
|00006370| 63 6e 74 3d 30 3b 20 72 | 63 6e 74 20 3c 20 4d 41 |cnt=0; r|cnt < MA|
|00006380| 58 5f 53 45 53 53 49 4f | 4e 53 3b 20 72 63 6e 74 |X_SESSIO|NS; rcnt|
|00006390| 2b 2b 29 0a 20 20 20 20 | 20 20 7b 0a 09 69 66 20 |++). | {..if |
|000063a0| 28 73 6f 63 5f 63 6f 6e | 5b 72 63 6e 74 5d 2e 69 |(soc_con|[rcnt].i|
|000063b0| 6e 5f 75 73 65 0a 09 20 | 20 20 20 26 26 20 72 63 |n_use.. | && rc|
|000063c0| 6e 74 20 21 3d 20 63 6e | 74 0a 09 20 20 20 20 26 |nt != cn|t.. &|
|000063d0| 26 20 73 74 72 63 6d 70 | 28 73 6f 63 5f 63 6f 6e |& strcmp|(soc_con|
|000063e0| 5b 63 6e 74 5d 2e 64 6f | 6d 61 69 6e 5f 73 74 72 |[cnt].do|main_str|
|000063f0| 69 6e 67 2c 0a 09 09 20 | 20 20 20 20 20 73 6f 63 |ing,... | soc|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.