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: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 33 69 30 38 |Subject:| v13i08|
|00000010| 30 3a 20 20 53 75 6e 20 | 52 50 43 2c 20 72 65 6c |0: Sun |RPC, rel|
|00000020| 65 61 73 65 20 33 2e 39 | 2c 20 50 61 72 74 30 33 |ease 3.9|, Part03|
|00000030| 2f 31 35 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |/15.News|groups: |
|00000040| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 75 6e 69 |comp.sou|rces.uni|
|00000050| 78 0a 53 65 6e 64 65 72 | 3a 20 73 6f 75 72 63 65 |x.Sender|: source|
|00000060| 73 0a 41 70 70 72 6f 76 | 65 64 3a 20 72 73 61 6c |s.Approv|ed: rsal|
|00000070| 7a 40 75 75 6e 65 74 2e | 55 55 2e 4e 45 54 0a 0a |z@uunet.|UU.NET..|
|00000080| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 53 74 |Submitte|d-by: St|
|00000090| 65 70 68 65 6e 20 58 2e | 20 4e 61 68 6d 20 3c 73 |ephen X.| Nahm <s|
|000000a0| 78 6e 40 53 75 6e 2e 43 | 4f 4d 3e 0a 50 6f 73 74 |xn@Sun.C|OM>.Post|
|000000b0| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|000000c0| 6d 65 20 31 33 2c 20 49 | 73 73 75 65 20 38 30 0a |me 13, I|ssue 80.|
|000000d0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 72 70 |Archive-|name: rp|
|000000e0| 63 33 2e 39 2f 70 61 72 | 74 30 33 0a 0a 23 21 20 |c3.9/par|t03..#! |
|000000f0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|00000100| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|00000110| 65 2e 20 54 6f 20 65 78 | 74 72 61 63 74 2c 20 72 |e. To ex|tract, r|
|00000120| 65 6d 6f 76 65 20 74 68 | 65 20 68 65 61 64 65 72 |emove th|e header|
|00000130| 20 61 6e 64 20 74 79 70 | 65 20 22 73 68 20 66 69 | and typ|e "sh fi|
|00000140| 6c 65 6e 61 6d 65 22 0a | 23 0a 63 64 20 72 70 63 |lename".|#.cd rpc|
|00000150| 0a 65 63 68 6f 20 78 20 | 2d 20 70 6d 61 70 5f 70 |.echo x |- pmap_p|
|00000160| 72 6f 74 2e 68 0a 63 61 | 74 20 3e 20 70 6d 61 70 |rot.h.ca|t > pmap|
|00000170| 5f 70 72 6f 74 2e 68 20 | 3c 3c 27 46 75 6e 6b 79 |_prot.h |<<'Funky|
|00000180| 5f 53 74 75 66 66 27 0a | 2f 2a 20 40 28 23 29 70 |_Stuff'.|/* @(#)p|
|00000190| 6d 61 70 5f 70 72 6f 74 | 2e 68 09 31 2e 31 20 38 |map_prot|.h.1.1 8|
|000001a0| 37 2f 31 31 2f 30 34 20 | 33 2e 39 20 52 50 43 53 |7/11/04 |3.9 RPCS|
|000001b0| 52 43 20 2a 2f 0a 2f 2a | 0a 20 2a 20 53 75 6e 20 |RC */./*|. * Sun |
|000001c0| 52 50 43 20 69 73 20 61 | 20 70 72 6f 64 75 63 74 |RPC is a| product|
|000001d0| 20 6f 66 20 53 75 6e 20 | 4d 69 63 72 6f 73 79 73 | of Sun |Microsys|
|000001e0| 74 65 6d 73 2c 20 49 6e | 63 2e 20 61 6e 64 20 69 |tems, In|c. and i|
|000001f0| 73 20 70 72 6f 76 69 64 | 65 64 20 66 6f 72 0a 20 |s provid|ed for. |
|00000200| 2a 20 75 6e 72 65 73 74 | 72 69 63 74 65 64 20 75 |* unrest|ricted u|
|00000210| 73 65 20 70 72 6f 76 69 | 64 65 64 20 74 68 61 74 |se provi|ded that|
|00000220| 20 74 68 69 73 20 6c 65 | 67 65 6e 64 20 69 73 20 | this le|gend is |
|00000230| 69 6e 63 6c 75 64 65 64 | 20 6f 6e 20 61 6c 6c 20 |included| on all |
|00000240| 74 61 70 65 0a 20 2a 20 | 6d 65 64 69 61 20 61 6e |tape. * |media an|
|00000250| 64 20 61 73 20 61 20 70 | 61 72 74 20 6f 66 20 74 |d as a p|art of t|
|00000260| 68 65 20 73 6f 66 74 77 | 61 72 65 20 70 72 6f 67 |he softw|are prog|
|00000270| 72 61 6d 20 69 6e 20 77 | 68 6f 6c 65 20 6f 72 20 |ram in w|hole or |
|00000280| 70 61 72 74 2e 20 20 55 | 73 65 72 73 0a 20 2a 20 |part. U|sers. * |
|00000290| 6d 61 79 20 63 6f 70 79 | 20 6f 72 20 6d 6f 64 69 |may copy| or modi|
|000002a0| 66 79 20 53 75 6e 20 52 | 50 43 20 77 69 74 68 6f |fy Sun R|PC witho|
|000002b0| 75 74 20 63 68 61 72 67 | 65 2c 20 62 75 74 20 61 |ut charg|e, but a|
|000002c0| 72 65 20 6e 6f 74 20 61 | 75 74 68 6f 72 69 7a 65 |re not a|uthorize|
|000002d0| 64 0a 20 2a 20 74 6f 20 | 6c 69 63 65 6e 73 65 20 |d. * to |license |
|000002e0| 6f 72 20 64 69 73 74 72 | 69 62 75 74 65 20 69 74 |or distr|ibute it|
|000002f0| 20 74 6f 20 61 6e 79 6f | 6e 65 20 65 6c 73 65 20 | to anyo|ne else |
|00000300| 65 78 63 65 70 74 20 61 | 73 20 70 61 72 74 20 6f |except a|s part o|
|00000310| 66 20 61 20 70 72 6f 64 | 75 63 74 20 6f 72 0a 20 |f a prod|uct or. |
|00000320| 2a 20 70 72 6f 67 72 61 | 6d 20 64 65 76 65 6c 6f |* progra|m develo|
|00000330| 70 65 64 20 62 79 20 74 | 68 65 20 75 73 65 72 2e |ped by t|he user.|
|00000340| 0a 20 2a 20 0a 20 2a 20 | 53 55 4e 20 52 50 43 20 |. * . * |SUN RPC |
|00000350| 49 53 20 50 52 4f 56 49 | 44 45 44 20 41 53 20 49 |IS PROVI|DED AS I|
|00000360| 53 20 57 49 54 48 20 4e | 4f 20 57 41 52 52 41 4e |S WITH N|O WARRAN|
|00000370| 54 49 45 53 20 4f 46 20 | 41 4e 59 20 4b 49 4e 44 |TIES OF |ANY KIND|
|00000380| 20 49 4e 43 4c 55 44 49 | 4e 47 20 54 48 45 0a 20 | INCLUDI|NG THE. |
|00000390| 2a 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 20 |* WARRAN|TIES OF |
|000003a0| 44 45 53 49 47 4e 2c 20 | 4d 45 52 43 48 41 4e 54 |DESIGN, |MERCHANT|
|000003b0| 49 42 49 4c 49 54 59 20 | 41 4e 44 20 46 49 54 4e |IBILITY |AND FITN|
|000003c0| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|000003d0| 55 4c 41 52 0a 20 2a 20 | 50 55 52 50 4f 53 45 2c |ULAR. * |PURPOSE,|
|000003e0| 20 4f 52 20 41 52 49 53 | 49 4e 47 20 46 52 4f 4d | OR ARIS|ING FROM|
|000003f0| 20 41 20 43 4f 55 52 53 | 45 20 4f 46 20 44 45 41 | A COURS|E OF DEA|
|00000400| 4c 49 4e 47 2c 20 55 53 | 41 47 45 20 4f 52 20 54 |LING, US|AGE OR T|
|00000410| 52 41 44 45 20 50 52 41 | 43 54 49 43 45 2e 0a 20 |RADE PRA|CTICE.. |
|00000420| 2a 20 0a 20 2a 20 53 75 | 6e 20 52 50 43 20 69 73 |* . * Su|n RPC is|
|00000430| 20 70 72 6f 76 69 64 65 | 64 20 77 69 74 68 20 6e | provide|d with n|
|00000440| 6f 20 73 75 70 70 6f 72 | 74 20 61 6e 64 20 77 69 |o suppor|t and wi|
|00000450| 74 68 6f 75 74 20 61 6e | 79 20 6f 62 6c 69 67 61 |thout an|y obliga|
|00000460| 74 69 6f 6e 20 6f 6e 20 | 74 68 65 0a 20 2a 20 70 |tion on |the. * p|
|00000470| 61 72 74 20 6f 66 20 53 | 75 6e 20 4d 69 63 72 6f |art of S|un Micro|
|00000480| 73 79 73 74 65 6d 73 2c | 20 49 6e 63 2e 20 74 6f |systems,| Inc. to|
|00000490| 20 61 73 73 69 73 74 20 | 69 6e 20 69 74 73 20 75 | assist |in its u|
|000004a0| 73 65 2c 20 63 6f 72 72 | 65 63 74 69 6f 6e 2c 0a |se, corr|ection,.|
|000004b0| 20 2a 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 | * modif|ication |
|000004c0| 6f 72 20 65 6e 68 61 6e | 63 65 6d 65 6e 74 2e 0a |or enhan|cement..|
|000004d0| 20 2a 20 0a 20 2a 20 53 | 55 4e 20 4d 49 43 52 4f | * . * S|UN MICRO|
|000004e0| 53 59 53 54 45 4d 53 2c | 20 49 4e 43 2e 20 53 48 |SYSTEMS,| INC. SH|
|000004f0| 41 4c 4c 20 48 41 56 45 | 20 4e 4f 20 4c 49 41 42 |ALL HAVE| NO LIAB|
|00000500| 49 4c 49 54 59 20 57 49 | 54 48 20 52 45 53 50 45 |ILITY WI|TH RESPE|
|00000510| 43 54 20 54 4f 20 54 48 | 45 0a 20 2a 20 49 4e 46 |CT TO TH|E. * INF|
|00000520| 52 49 4e 47 45 4d 45 4e | 54 20 4f 46 20 43 4f 50 |RINGEMEN|T OF COP|
|00000530| 59 52 49 47 48 54 53 2c | 20 54 52 41 44 45 20 53 |YRIGHTS,| TRADE S|
|00000540| 45 43 52 45 54 53 20 4f | 52 20 41 4e 59 20 50 41 |ECRETS O|R ANY PA|
|00000550| 54 45 4e 54 53 20 42 59 | 20 53 55 4e 20 52 50 43 |TENTS BY| SUN RPC|
|00000560| 0a 20 2a 20 4f 52 20 41 | 4e 59 20 50 41 52 54 20 |. * OR A|NY PART |
|00000570| 54 48 45 52 45 4f 46 2e | 0a 20 2a 20 0a 20 2a 20 |THEREOF.|. * . * |
|00000580| 49 6e 20 6e 6f 20 65 76 | 65 6e 74 20 77 69 6c 6c |In no ev|ent will|
|00000590| 20 53 75 6e 20 4d 69 63 | 72 6f 73 79 73 74 65 6d | Sun Mic|rosystem|
|000005a0| 73 2c 20 49 6e 63 2e 20 | 62 65 20 6c 69 61 62 6c |s, Inc. |be liabl|
|000005b0| 65 20 66 6f 72 20 61 6e | 79 20 6c 6f 73 74 20 72 |e for an|y lost r|
|000005c0| 65 76 65 6e 75 65 0a 20 | 2a 20 6f 72 20 70 72 6f |evenue. |* or pro|
|000005d0| 66 69 74 73 20 6f 72 20 | 6f 74 68 65 72 20 73 70 |fits or |other sp|
|000005e0| 65 63 69 61 6c 2c 20 69 | 6e 64 69 72 65 63 74 20 |ecial, i|ndirect |
|000005f0| 61 6e 64 20 63 6f 6e 73 | 65 71 75 65 6e 74 69 61 |and cons|equentia|
|00000600| 6c 20 64 61 6d 61 67 65 | 73 2c 20 65 76 65 6e 20 |l damage|s, even |
|00000610| 69 66 0a 20 2a 20 53 75 | 6e 20 68 61 73 20 62 65 |if. * Su|n has be|
|00000620| 65 6e 20 61 64 76 69 73 | 65 64 20 6f 66 20 74 68 |en advis|ed of th|
|00000630| 65 20 70 6f 73 73 69 62 | 69 6c 69 74 79 20 6f 66 |e possib|ility of|
|00000640| 20 73 75 63 68 20 64 61 | 6d 61 67 65 73 2e 0a 20 | such da|mages.. |
|00000650| 2a 20 0a 20 2a 20 53 75 | 6e 20 4d 69 63 72 6f 73 |* . * Su|n Micros|
|00000660| 79 73 74 65 6d 73 2c 20 | 49 6e 63 2e 0a 20 2a 20 |ystems, |Inc.. * |
|00000670| 32 35 35 30 20 47 61 72 | 63 69 61 20 41 76 65 6e |2550 Gar|cia Aven|
|00000680| 75 65 0a 20 2a 20 4d 6f | 75 6e 74 61 69 6e 20 56 |ue. * Mo|untain V|
|00000690| 69 65 77 2c 20 43 61 6c | 69 66 6f 72 6e 69 61 20 |iew, Cal|ifornia |
|000006a0| 20 39 34 30 34 33 0a 20 | 2a 2f 0a 2f 2a 09 40 28 | 94043. |*/./*.@(|
|000006b0| 23 29 70 6d 61 70 5f 70 | 72 6f 74 2e 68 20 31 2e |#)pmap_p|rot.h 1.|
|000006c0| 31 33 20 38 36 2f 30 37 | 2f 31 36 20 53 4d 49 09 |13 86/07|/16 SMI.|
|000006d0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 70 6d 61 70 5f 70 |*/../*. |* pmap_p|
|000006e0| 72 6f 74 2e 68 0a 20 2a | 20 50 72 6f 74 6f 63 6f |rot.h. *| Protoco|
|000006f0| 6c 20 66 6f 72 20 74 68 | 65 20 6c 6f 63 61 6c 20 |l for th|e local |
|00000700| 62 69 6e 64 65 72 20 73 | 65 72 76 69 63 65 2c 20 |binder s|ervice, |
|00000710| 6f 72 20 70 6d 61 70 2e | 0a 20 2a 0a 20 2a 20 43 |or pmap.|. *. * C|
|00000720| 6f 70 79 72 69 67 68 74 | 20 28 43 29 20 31 39 38 |opyright| (C) 198|
|00000730| 34 2c 20 53 75 6e 20 4d | 69 63 72 6f 73 79 73 74 |4, Sun M|icrosyst|
|00000740| 65 6d 73 2c 20 49 6e 63 | 2e 0a 20 2a 0a 20 2a 20 |ems, Inc|.. *. * |
|00000750| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 70 72 |The foll|owing pr|
|00000760| 6f 63 65 64 75 72 65 73 | 20 61 72 65 20 73 75 70 |ocedures| are sup|
|00000770| 70 6f 72 74 65 64 20 62 | 79 20 74 68 65 20 70 72 |ported b|y the pr|
|00000780| 6f 74 6f 63 6f 6c 3a 0a | 20 2a 0a 20 2a 20 50 4d |otocol:.| *. * PM|
|00000790| 41 50 50 52 4f 43 5f 4e | 55 4c 4c 28 29 20 72 65 |APPROC_N|ULL() re|
|000007a0| 74 75 72 6e 73 20 28 29 | 0a 20 2a 20 09 74 61 6b |turns ()|. * .tak|
|000007b0| 65 73 20 6e 6f 74 68 69 | 6e 67 2c 20 72 65 74 75 |es nothi|ng, retu|
|000007c0| 72 6e 73 20 6e 6f 74 68 | 69 6e 67 0a 20 2a 0a 20 |rns noth|ing. *. |
|000007d0| 2a 20 50 4d 41 50 50 52 | 4f 43 5f 53 45 54 28 73 |* PMAPPR|OC_SET(s|
|000007e0| 74 72 75 63 74 20 70 6d | 61 70 29 20 72 65 74 75 |truct pm|ap) retu|
|000007f0| 72 6e 73 20 28 62 6f 6f | 6c 5f 74 29 0a 20 2a 20 |rns (boo|l_t). * |
|00000800| 09 54 52 55 45 20 69 73 | 20 73 75 63 63 65 73 73 |.TRUE is| success|
|00000810| 2c 20 46 41 4c 53 45 20 | 69 73 20 66 61 69 6c 75 |, FALSE |is failu|
|00000820| 72 65 2e 20 20 52 65 67 | 69 73 74 65 72 73 20 74 |re. Reg|isters t|
|00000830| 68 65 20 74 75 70 6c 65 | 0a 20 2a 09 5b 70 72 6f |he tuple|. *.[pro|
|00000840| 67 2c 20 76 65 72 73 2c | 20 70 72 6f 74 2c 20 70 |g, vers,| prot, p|
|00000850| 6f 72 74 5d 2e 0a 20 2a | 0a 20 2a 20 50 4d 41 50 |ort].. *|. * PMAP|
|00000860| 50 52 4f 43 5f 55 4e 53 | 45 54 28 73 74 72 75 63 |PROC_UNS|ET(struc|
|00000870| 74 20 70 6d 61 70 29 20 | 72 65 74 75 72 6e 73 20 |t pmap) |returns |
|00000880| 28 62 6f 6f 6c 5f 74 29 | 0a 20 2a 09 54 52 55 45 |(bool_t)|. *.TRUE|
|00000890| 20 69 73 20 73 75 63 63 | 65 73 73 2c 20 46 41 4c | is succ|ess, FAL|
|000008a0| 53 45 20 69 73 20 66 61 | 69 6c 75 72 65 2e 20 20 |SE is fa|ilure. |
|000008b0| 55 6e 2d 72 65 67 69 73 | 74 65 72 73 20 70 61 69 |Un-regis|ters pai|
|000008c0| 72 0a 20 2a 09 5b 70 72 | 6f 67 2c 20 76 65 72 73 |r. *.[pr|og, vers|
|000008d0| 5d 2e 20 20 70 72 6f 74 | 20 61 6e 64 20 70 6f 72 |]. prot| and por|
|000008e0| 74 20 61 72 65 20 69 67 | 6e 6f 72 65 64 2e 0a 20 |t are ig|nored.. |
|000008f0| 2a 0a 20 2a 20 50 4d 41 | 50 50 52 4f 43 5f 47 45 |*. * PMA|PPROC_GE|
|00000900| 54 50 4f 52 54 28 73 74 | 72 75 63 74 20 70 6d 61 |TPORT(st|ruct pma|
|00000910| 70 29 20 72 65 74 75 72 | 6e 73 20 28 6c 6f 6e 67 |p) retur|ns (long|
|00000920| 20 75 6e 73 69 67 6e 65 | 64 29 2e 0a 20 2a 09 30 | unsigne|d).. *.0|
|00000930| 20 69 73 20 66 61 69 6c | 75 72 65 2e 20 20 4f 74 | is fail|ure. Ot|
|00000940| 68 65 72 77 69 73 65 20 | 72 65 74 75 72 6e 73 20 |herwise |returns |
|00000950| 74 68 65 20 70 6f 72 74 | 20 6e 75 6d 62 65 72 20 |the port| number |
|00000960| 77 68 65 72 65 20 74 68 | 65 20 70 61 69 72 0a 20 |where th|e pair. |
|00000970| 2a 09 5b 70 72 6f 67 2c | 20 76 65 72 73 5d 20 69 |*.[prog,| vers] i|
|00000980| 73 20 72 65 67 69 73 74 | 65 72 65 64 2e 20 20 49 |s regist|ered. I|
|00000990| 74 20 6d 61 79 20 6c 69 | 65 21 0a 20 2a 0a 20 2a |t may li|e!. *. *|
|000009a0| 20 50 4d 41 50 50 52 4f | 43 5f 44 55 4d 50 28 29 | PMAPPRO|C_DUMP()|
|000009b0| 20 52 45 54 55 52 4e 53 | 20 28 73 74 72 75 63 74 | RETURNS| (struct|
|000009c0| 20 70 6d 61 70 6c 69 73 | 74 20 2a 29 0a 20 2a 0a | pmaplis|t *). *.|
|000009d0| 20 2a 20 50 4d 41 50 50 | 52 4f 43 5f 43 41 4c 4c | * PMAPP|ROC_CALL|
|000009e0| 49 54 28 75 6e 73 69 67 | 6e 65 64 2c 20 75 6e 73 |IT(unsig|ned, uns|
|000009f0| 69 67 6e 65 64 2c 20 75 | 6e 73 69 67 6e 65 64 2c |igned, u|nsigned,|
|00000a00| 20 73 74 72 69 6e 67 3c | 3e 29 0a 20 2a 20 09 52 | string<|>). * .R|
|00000a10| 45 54 55 52 4e 53 20 28 | 70 6f 72 74 2c 20 73 74 |ETURNS (|port, st|
|00000a20| 72 69 6e 67 3c 3e 29 3b | 0a 20 2a 20 75 73 61 67 |ring<>);|. * usag|
|00000a30| 65 3a 20 65 6e 63 61 70 | 73 75 6c 61 74 65 64 72 |e: encap|sulatedr|
|00000a40| 65 73 75 6c 74 73 20 3d | 20 50 4d 41 50 50 52 4f |esults =| PMAPPRO|
|00000a50| 43 5f 43 41 4c 4c 49 54 | 28 70 72 6f 67 2c 20 76 |C_CALLIT|(prog, v|
|00000a60| 65 72 73 2c 20 70 72 6f | 63 2c 20 65 6e 63 61 70 |ers, pro|c, encap|
|00000a70| 73 75 6c 61 74 65 64 61 | 72 67 73 29 3b 0a 20 2a |sulateda|rgs);. *|
|00000a80| 20 09 43 61 6c 6c 73 20 | 74 68 65 20 70 72 6f 63 | .Calls |the proc|
|00000a90| 65 64 75 72 65 20 6f 6e | 20 74 68 65 20 6c 6f 63 |edure on| the loc|
|00000aa0| 61 6c 20 6d 61 63 68 69 | 6e 65 2e 20 20 49 66 20 |al machi|ne. If |
|00000ab0| 69 74 20 69 73 20 6e 6f | 74 20 72 65 67 69 73 74 |it is no|t regist|
|00000ac0| 65 72 65 64 2c 0a 20 2a | 09 74 68 69 73 20 70 72 |ered,. *|.this pr|
|00000ad0| 6f 63 65 64 75 72 65 20 | 69 73 20 71 75 69 74 65 |ocedure |is quite|
|00000ae0| 3b 20 69 65 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 |; ie it |does not|
|00000af0| 20 72 65 74 75 72 6e 20 | 65 72 72 6f 72 20 69 6e | return |error in|
|00000b00| 66 6f 72 6d 61 74 69 6f | 6e 21 21 21 0a 20 2a 09 |formatio|n!!!. *.|
|00000b10| 54 68 69 73 20 70 72 6f | 63 65 64 75 72 65 20 6f |This pro|cedure o|
|00000b20| 6e 6c 79 20 69 73 20 73 | 75 70 70 6f 72 74 65 64 |nly is s|upported|
|00000b30| 20 6f 6e 20 72 70 63 2f | 75 64 70 20 61 6e 64 20 | on rpc/|udp and |
|00000b40| 63 61 6c 6c 73 20 76 69 | 61 0a 20 2a 09 72 70 63 |calls vi|a. *.rpc|
|00000b50| 2f 75 64 70 2e 20 20 54 | 68 69 73 20 72 6f 75 74 |/udp. T|his rout|
|00000b60| 69 6e 65 20 6f 6e 6c 79 | 20 70 61 73 73 65 73 20 |ine only| passes |
|00000b70| 6e 75 6c 6c 20 61 75 74 | 68 65 6e 74 69 63 61 74 |null aut|henticat|
|00000b80| 69 6f 6e 20 70 61 72 61 | 6d 65 74 65 72 73 2e 0a |ion para|meters..|
|00000b90| 20 2a 09 54 68 69 73 20 | 66 69 6c 65 20 68 61 73 | *.This |file has|
|00000ba0| 20 6e 6f 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f | no inte|rface to|
|00000bb0| 20 78 64 72 20 72 6f 75 | 74 69 6e 65 73 20 66 6f | xdr rou|tines fo|
|00000bc0| 72 20 50 4d 41 50 50 52 | 4f 43 5f 43 41 4c 4c 49 |r PMAPPR|OC_CALLI|
|00000bd0| 54 2e 0a 20 2a 0a 20 2a | 20 54 68 65 20 73 65 72 |T.. *. *| The ser|
|00000be0| 76 69 63 65 20 73 75 70 | 70 6f 72 74 73 20 72 65 |vice sup|ports re|
|00000bf0| 6d 6f 74 65 20 70 72 6f | 63 65 64 75 72 65 20 63 |mote pro|cedure c|
|00000c00| 61 6c 6c 73 20 6f 6e 20 | 75 64 70 2f 69 70 20 6f |alls on |udp/ip o|
|00000c10| 72 20 74 63 70 2f 69 70 | 20 73 6f 63 6b 65 74 20 |r tcp/ip| socket |
|00000c20| 31 31 31 2e 0a 20 2a 2f | 0a 0a 23 64 65 66 69 6e |111.. */|..#defin|
|00000c30| 65 20 50 4d 41 50 50 4f | 52 54 09 09 28 28 75 5f |e PMAPPO|RT..((u_|
|00000c40| 73 68 6f 72 74 29 31 31 | 31 29 0a 23 64 65 66 69 |short)11|1).#defi|
|00000c50| 6e 65 20 50 4d 41 50 50 | 52 4f 47 09 09 28 28 75 |ne PMAPP|ROG..((u|
|00000c60| 5f 6c 6f 6e 67 29 31 30 | 30 30 30 30 29 0a 23 64 |_long)10|0000).#d|
|00000c70| 65 66 69 6e 65 20 50 4d | 41 50 56 45 52 53 09 09 |efine PM|APVERS..|
|00000c80| 28 28 75 5f 6c 6f 6e 67 | 29 32 29 0a 23 64 65 66 |((u_long|)2).#def|
|00000c90| 69 6e 65 20 50 4d 41 50 | 56 45 52 53 5f 50 52 4f |ine PMAP|VERS_PRO|
|00000ca0| 54 4f 09 09 28 28 75 5f | 6c 6f 6e 67 29 32 29 0a |TO..((u_|long)2).|
|00000cb0| 23 64 65 66 69 6e 65 20 | 50 4d 41 50 56 45 52 53 |#define |PMAPVERS|
|00000cc0| 5f 4f 52 49 47 09 09 28 | 28 75 5f 6c 6f 6e 67 29 |_ORIG..(|(u_long)|
|00000cd0| 31 29 0a 23 64 65 66 69 | 6e 65 20 50 4d 41 50 50 |1).#defi|ne PMAPP|
|00000ce0| 52 4f 43 5f 4e 55 4c 4c | 09 09 28 28 75 5f 6c 6f |ROC_NULL|..((u_lo|
|00000cf0| 6e 67 29 30 29 0a 23 64 | 65 66 69 6e 65 20 50 4d |ng)0).#d|efine PM|
|00000d00| 41 50 50 52 4f 43 5f 53 | 45 54 09 09 28 28 75 5f |APPROC_S|ET..((u_|
|00000d10| 6c 6f 6e 67 29 31 29 0a | 23 64 65 66 69 6e 65 20 |long)1).|#define |
|00000d20| 50 4d 41 50 50 52 4f 43 | 5f 55 4e 53 45 54 09 09 |PMAPPROC|_UNSET..|
|00000d30| 28 28 75 5f 6c 6f 6e 67 | 29 32 29 0a 23 64 65 66 |((u_long|)2).#def|
|00000d40| 69 6e 65 20 50 4d 41 50 | 50 52 4f 43 5f 47 45 54 |ine PMAP|PROC_GET|
|00000d50| 50 4f 52 54 09 28 28 75 | 5f 6c 6f 6e 67 29 33 29 |PORT.((u|_long)3)|
|00000d60| 0a 23 64 65 66 69 6e 65 | 20 50 4d 41 50 50 52 4f |.#define| PMAPPRO|
|00000d70| 43 5f 44 55 4d 50 09 09 | 28 28 75 5f 6c 6f 6e 67 |C_DUMP..|((u_long|
|00000d80| 29 34 29 0a 23 64 65 66 | 69 6e 65 20 50 4d 41 50 |)4).#def|ine PMAP|
|00000d90| 50 52 4f 43 5f 43 41 4c | 4c 49 54 09 09 28 28 75 |PROC_CAL|LIT..((u|
|00000da0| 5f 6c 6f 6e 67 29 35 29 | 0a 0a 73 74 72 75 63 74 |_long)5)|..struct|
|00000db0| 20 70 6d 61 70 20 7b 0a | 09 6c 6f 6e 67 20 75 6e | pmap {.|.long un|
|00000dc0| 73 69 67 6e 65 64 20 70 | 6d 5f 70 72 6f 67 3b 0a |signed p|m_prog;.|
|00000dd0| 09 6c 6f 6e 67 20 75 6e | 73 69 67 6e 65 64 20 70 |.long un|signed p|
|00000de0| 6d 5f 76 65 72 73 3b 0a | 09 6c 6f 6e 67 20 75 6e |m_vers;.|.long un|
|00000df0| 73 69 67 6e 65 64 20 70 | 6d 5f 70 72 6f 74 3b 0a |signed p|m_prot;.|
|00000e00| 09 6c 6f 6e 67 20 75 6e | 73 69 67 6e 65 64 20 70 |.long un|signed p|
|00000e10| 6d 5f 70 6f 72 74 3b 0a | 7d 3b 0a 0a 65 78 74 65 |m_port;.|};..exte|
|00000e20| 72 6e 20 62 6f 6f 6c 5f | 74 20 78 64 72 5f 70 6d |rn bool_|t xdr_pm|
|00000e30| 61 70 28 29 3b 0a 0a 73 | 74 72 75 63 74 20 70 6d |ap();..s|truct pm|
|00000e40| 61 70 6c 69 73 74 20 7b | 0a 09 73 74 72 75 63 74 |aplist {|..struct|
|00000e50| 20 70 6d 61 70 09 70 6d | 6c 5f 6d 61 70 3b 0a 09 | pmap.pm|l_map;..|
|00000e60| 73 74 72 75 63 74 20 70 | 6d 61 70 6c 69 73 74 20 |struct p|maplist |
|00000e70| 2a 70 6d 6c 5f 6e 65 78 | 74 3b 0a 7d 3b 0a 0a 65 |*pml_nex|t;.};..e|
|00000e80| 78 74 65 72 6e 20 62 6f | 6f 6c 5f 74 20 78 64 72 |xtern bo|ol_t xdr|
|00000e90| 5f 70 6d 61 70 6c 69 73 | 74 28 29 3b 0a 46 75 6e |_pmaplis|t();.Fun|
|00000ea0| 6b 79 5f 53 74 75 66 66 | 0a 6c 65 6e 3d 60 77 63 |ky_Stuff|.len=`wc|
|00000eb0| 20 2d 63 20 3c 20 70 6d | 61 70 5f 70 72 6f 74 2e | -c < pm|ap_prot.|
|00000ec0| 68 60 0a 69 66 20 5b 20 | 24 6c 65 6e 20 21 3d 20 |h`.if [ |$len != |
|00000ed0| 20 20 20 20 33 33 34 39 | 20 5d 20 3b 20 74 68 65 | 3349| ] ; the|
|00000ee0| 6e 0a 20 20 65 63 68 6f | 20 65 72 72 6f 72 3a 20 |n. echo| error: |
|00000ef0| 70 6d 61 70 5f 70 72 6f | 74 2e 68 20 77 61 73 20 |pmap_pro|t.h was |
|00000f00| 24 6c 65 6e 20 62 79 74 | 65 73 20 6c 6f 6e 67 2c |$len byt|es long,|
|00000f10| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 62 65 65 | should |have bee|
|00000f20| 6e 20 20 20 20 20 33 33 | 34 39 0a 66 69 0a 65 63 |n 33|49.fi.ec|
|00000f30| 68 6f 20 78 20 2d 20 70 | 6d 61 70 5f 70 72 6f 74 |ho x - p|map_prot|
|00000f40| 32 2e 63 0a 63 61 74 20 | 3e 20 70 6d 61 70 5f 70 |2.c.cat |> pmap_p|
|00000f50| 72 6f 74 32 2e 63 20 3c | 3c 27 46 75 6e 6b 79 5f |rot2.c <|<'Funky_|
|00000f60| 53 74 75 66 66 27 0a 2f | 2a 20 40 28 23 29 70 6d |Stuff'./|* @(#)pm|
|00000f70| 61 70 5f 70 72 6f 74 32 | 2e 63 09 31 2e 31 20 38 |ap_prot2|.c.1.1 8|
|00000f80| 37 2f 31 31 2f 30 34 20 | 33 2e 39 20 52 50 43 53 |7/11/04 |3.9 RPCS|
|00000f90| 52 43 20 2a 2f 0a 2f 2a | 0a 20 2a 20 53 75 6e 20 |RC */./*|. * Sun |
|00000fa0| 52 50 43 20 69 73 20 61 | 20 70 72 6f 64 75 63 74 |RPC is a| product|
|00000fb0| 20 6f 66 20 53 75 6e 20 | 4d 69 63 72 6f 73 79 73 | of Sun |Microsys|
|00000fc0| 74 65 6d 73 2c 20 49 6e | 63 2e 20 61 6e 64 20 69 |tems, In|c. and i|
|00000fd0| 73 20 70 72 6f 76 69 64 | 65 64 20 66 6f 72 0a 20 |s provid|ed for. |
|00000fe0| 2a 20 75 6e 72 65 73 74 | 72 69 63 74 65 64 20 75 |* unrest|ricted u|
|00000ff0| 73 65 20 70 72 6f 76 69 | 64 65 64 20 74 68 61 74 |se provi|ded that|
|00001000| 20 74 68 69 73 20 6c 65 | 67 65 6e 64 20 69 73 20 | this le|gend is |
|00001010| 69 6e 63 6c 75 64 65 64 | 20 6f 6e 20 61 6c 6c 20 |included| on all |
|00001020| 74 61 70 65 0a 20 2a 20 | 6d 65 64 69 61 20 61 6e |tape. * |media an|
|00001030| 64 20 61 73 20 61 20 70 | 61 72 74 20 6f 66 20 74 |d as a p|art of t|
|00001040| 68 65 20 73 6f 66 74 77 | 61 72 65 20 70 72 6f 67 |he softw|are prog|
|00001050| 72 61 6d 20 69 6e 20 77 | 68 6f 6c 65 20 6f 72 20 |ram in w|hole or |
|00001060| 70 61 72 74 2e 20 20 55 | 73 65 72 73 0a 20 2a 20 |part. U|sers. * |
|00001070| 6d 61 79 20 63 6f 70 79 | 20 6f 72 20 6d 6f 64 69 |may copy| or modi|
|00001080| 66 79 20 53 75 6e 20 52 | 50 43 20 77 69 74 68 6f |fy Sun R|PC witho|
|00001090| 75 74 20 63 68 61 72 67 | 65 2c 20 62 75 74 20 61 |ut charg|e, but a|
|000010a0| 72 65 20 6e 6f 74 20 61 | 75 74 68 6f 72 69 7a 65 |re not a|uthorize|
|000010b0| 64 0a 20 2a 20 74 6f 20 | 6c 69 63 65 6e 73 65 20 |d. * to |license |
|000010c0| 6f 72 20 64 69 73 74 72 | 69 62 75 74 65 20 69 74 |or distr|ibute it|
|000010d0| 20 74 6f 20 61 6e 79 6f | 6e 65 20 65 6c 73 65 20 | to anyo|ne else |
|000010e0| 65 78 63 65 70 74 20 61 | 73 20 70 61 72 74 20 6f |except a|s part o|
|000010f0| 66 20 61 20 70 72 6f 64 | 75 63 74 20 6f 72 0a 20 |f a prod|uct or. |
|00001100| 2a 20 70 72 6f 67 72 61 | 6d 20 64 65 76 65 6c 6f |* progra|m develo|
|00001110| 70 65 64 20 62 79 20 74 | 68 65 20 75 73 65 72 2e |ped by t|he user.|
|00001120| 0a 20 2a 20 0a 20 2a 20 | 53 55 4e 20 52 50 43 20 |. * . * |SUN RPC |
|00001130| 49 53 20 50 52 4f 56 49 | 44 45 44 20 41 53 20 49 |IS PROVI|DED AS I|
|00001140| 53 20 57 49 54 48 20 4e | 4f 20 57 41 52 52 41 4e |S WITH N|O WARRAN|
|00001150| 54 49 45 53 20 4f 46 20 | 41 4e 59 20 4b 49 4e 44 |TIES OF |ANY KIND|
|00001160| 20 49 4e 43 4c 55 44 49 | 4e 47 20 54 48 45 0a 20 | INCLUDI|NG THE. |
|00001170| 2a 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 20 |* WARRAN|TIES OF |
|00001180| 44 45 53 49 47 4e 2c 20 | 4d 45 52 43 48 41 4e 54 |DESIGN, |MERCHANT|
|00001190| 49 42 49 4c 49 54 59 20 | 41 4e 44 20 46 49 54 4e |IBILITY |AND FITN|
|000011a0| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|000011b0| 55 4c 41 52 0a 20 2a 20 | 50 55 52 50 4f 53 45 2c |ULAR. * |PURPOSE,|
|000011c0| 20 4f 52 20 41 52 49 53 | 49 4e 47 20 46 52 4f 4d | OR ARIS|ING FROM|
|000011d0| 20 41 20 43 4f 55 52 53 | 45 20 4f 46 20 44 45 41 | A COURS|E OF DEA|
|000011e0| 4c 49 4e 47 2c 20 55 53 | 41 47 45 20 4f 52 20 54 |LING, US|AGE OR T|
|000011f0| 52 41 44 45 20 50 52 41 | 43 54 49 43 45 2e 0a 20 |RADE PRA|CTICE.. |
|00001200| 2a 20 0a 20 2a 20 53 75 | 6e 20 52 50 43 20 69 73 |* . * Su|n RPC is|
|00001210| 20 70 72 6f 76 69 64 65 | 64 20 77 69 74 68 20 6e | provide|d with n|
|00001220| 6f 20 73 75 70 70 6f 72 | 74 20 61 6e 64 20 77 69 |o suppor|t and wi|
|00001230| 74 68 6f 75 74 20 61 6e | 79 20 6f 62 6c 69 67 61 |thout an|y obliga|
|00001240| 74 69 6f 6e 20 6f 6e 20 | 74 68 65 0a 20 2a 20 70 |tion on |the. * p|
|00001250| 61 72 74 20 6f 66 20 53 | 75 6e 20 4d 69 63 72 6f |art of S|un Micro|
|00001260| 73 79 73 74 65 6d 73 2c | 20 49 6e 63 2e 20 74 6f |systems,| Inc. to|
|00001270| 20 61 73 73 69 73 74 20 | 69 6e 20 69 74 73 20 75 | assist |in its u|
|00001280| 73 65 2c 20 63 6f 72 72 | 65 63 74 69 6f 6e 2c 0a |se, corr|ection,.|
|00001290| 20 2a 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 | * modif|ication |
|000012a0| 6f 72 20 65 6e 68 61 6e | 63 65 6d 65 6e 74 2e 0a |or enhan|cement..|
|000012b0| 20 2a 20 0a 20 2a 20 53 | 55 4e 20 4d 49 43 52 4f | * . * S|UN MICRO|
|000012c0| 53 59 53 54 45 4d 53 2c | 20 49 4e 43 2e 20 53 48 |SYSTEMS,| INC. SH|
|000012d0| 41 4c 4c 20 48 41 56 45 | 20 4e 4f 20 4c 49 41 42 |ALL HAVE| NO LIAB|
|000012e0| 49 4c 49 54 59 20 57 49 | 54 48 20 52 45 53 50 45 |ILITY WI|TH RESPE|
|000012f0| 43 54 20 54 4f 20 54 48 | 45 0a 20 2a 20 49 4e 46 |CT TO TH|E. * INF|
|00001300| 52 49 4e 47 45 4d 45 4e | 54 20 4f 46 20 43 4f 50 |RINGEMEN|T OF COP|
|00001310| 59 52 49 47 48 54 53 2c | 20 54 52 41 44 45 20 53 |YRIGHTS,| TRADE S|
|00001320| 45 43 52 45 54 53 20 4f | 52 20 41 4e 59 20 50 41 |ECRETS O|R ANY PA|
|00001330| 54 45 4e 54 53 20 42 59 | 20 53 55 4e 20 52 50 43 |TENTS BY| SUN RPC|
|00001340| 0a 20 2a 20 4f 52 20 41 | 4e 59 20 50 41 52 54 20 |. * OR A|NY PART |
|00001350| 54 48 45 52 45 4f 46 2e | 0a 20 2a 20 0a 20 2a 20 |THEREOF.|. * . * |
|00001360| 49 6e 20 6e 6f 20 65 76 | 65 6e 74 20 77 69 6c 6c |In no ev|ent will|
|00001370| 20 53 75 6e 20 4d 69 63 | 72 6f 73 79 73 74 65 6d | Sun Mic|rosystem|
|00001380| 73 2c 20 49 6e 63 2e 20 | 62 65 20 6c 69 61 62 6c |s, Inc. |be liabl|
|00001390| 65 20 66 6f 72 20 61 6e | 79 20 6c 6f 73 74 20 72 |e for an|y lost r|
|000013a0| 65 76 65 6e 75 65 0a 20 | 2a 20 6f 72 20 70 72 6f |evenue. |* or pro|
|000013b0| 66 69 74 73 20 6f 72 20 | 6f 74 68 65 72 20 73 70 |fits or |other sp|
|000013c0| 65 63 69 61 6c 2c 20 69 | 6e 64 69 72 65 63 74 20 |ecial, i|ndirect |
|000013d0| 61 6e 64 20 63 6f 6e 73 | 65 71 75 65 6e 74 69 61 |and cons|equentia|
|000013e0| 6c 20 64 61 6d 61 67 65 | 73 2c 20 65 76 65 6e 20 |l damage|s, even |
|000013f0| 69 66 0a 20 2a 20 53 75 | 6e 20 68 61 73 20 62 65 |if. * Su|n has be|
|00001400| 65 6e 20 61 64 76 69 73 | 65 64 20 6f 66 20 74 68 |en advis|ed of th|
|00001410| 65 20 70 6f 73 73 69 62 | 69 6c 69 74 79 20 6f 66 |e possib|ility of|
|00001420| 20 73 75 63 68 20 64 61 | 6d 61 67 65 73 2e 0a 20 | such da|mages.. |
|00001430| 2a 20 0a 20 2a 20 53 75 | 6e 20 4d 69 63 72 6f 73 |* . * Su|n Micros|
|00001440| 79 73 74 65 6d 73 2c 20 | 49 6e 63 2e 0a 20 2a 20 |ystems, |Inc.. * |
|00001450| 32 35 35 30 20 47 61 72 | 63 69 61 20 41 76 65 6e |2550 Gar|cia Aven|
|00001460| 75 65 0a 20 2a 20 4d 6f | 75 6e 74 61 69 6e 20 56 |ue. * Mo|untain V|
|00001470| 69 65 77 2c 20 43 61 6c | 69 66 6f 72 6e 69 61 20 |iew, Cal|ifornia |
|00001480| 20 39 34 30 34 33 0a 20 | 2a 2f 0a 23 69 66 20 21 | 94043. |*/.#if !|
|00001490| 64 65 66 69 6e 65 64 28 | 6c 69 6e 74 29 20 26 26 |defined(|lint) &&|
|000014a0| 20 64 65 66 69 6e 65 64 | 28 53 43 43 53 49 44 53 | defined|(SCCSIDS|
|000014b0| 29 0a 73 74 61 74 69 63 | 20 63 68 61 72 20 73 63 |).static| char sc|
|000014c0| 63 73 69 64 5b 5d 20 3d | 20 22 40 28 23 29 70 6d |csid[] =| "@(#)pm|
|000014d0| 61 70 5f 70 72 6f 74 32 | 2e 63 20 31 2e 33 20 38 |ap_prot2|.c 1.3 8|
|000014e0| 37 2f 30 38 2f 31 31 20 | 43 6f 70 79 72 20 31 39 |7/08/11 |Copyr 19|
|000014f0| 38 34 20 53 75 6e 20 4d | 69 63 72 6f 22 3b 0a 23 |84 Sun M|icro";.#|
|00001500| 65 6e 64 69 66 0a 0a 2f | 2a 0a 20 2a 20 70 6d 61 |endif../|*. * pma|
|00001510| 70 5f 70 72 6f 74 32 2e | 63 0a 20 2a 20 50 72 6f |p_prot2.|c. * Pro|
|00001520| 74 6f 63 6f 6c 20 66 6f | 72 20 74 68 65 20 6c 6f |tocol fo|r the lo|
|00001530| 63 61 6c 20 62 69 6e 64 | 65 72 20 73 65 72 76 69 |cal bind|er servi|
|00001540| 63 65 2c 20 6f 72 20 70 | 6d 61 70 2e 0a 20 2a 0a |ce, or p|map.. *.|
|00001550| 20 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 | * Copyr|ight (C)|
|00001560| 20 31 39 38 34 2c 20 53 | 75 6e 20 4d 69 63 72 6f | 1984, S|un Micro|
|00001570| 73 79 73 74 65 6d 73 2c | 20 49 6e 63 2e 0a 20 2a |systems,| Inc.. *|
|00001580| 2f 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 72 70 63 |/..#incl|ude <rpc|
|00001590| 2f 74 79 70 65 73 2e 68 | 3e 0a 23 69 6e 63 6c 75 |/types.h|>.#inclu|
|000015a0| 64 65 20 3c 72 70 63 2f | 78 64 72 2e 68 3e 0a 23 |de <rpc/|xdr.h>.#|
|000015b0| 69 6e 63 6c 75 64 65 20 | 3c 72 70 63 2f 70 6d 61 |include |<rpc/pma|
|000015c0| 70 5f 70 72 6f 74 2e 68 | 3e 0a 0a 0a 2f 2a 20 0a |p_prot.h|>.../* .|
|000015d0| 20 2a 20 57 68 61 74 20 | 69 73 20 67 6f 69 6e 67 | * What |is going|
|000015e0| 20 6f 6e 20 77 69 74 68 | 20 6c 69 6e 6b 65 64 20 | on with| linked |
|000015f0| 6c 69 73 74 73 3f 20 28 | 21 29 0a 20 2a 20 46 69 |lists? (|!). * Fi|
|00001600| 72 73 74 20 72 65 63 61 | 6c 6c 20 74 68 65 20 6c |rst reca|ll the l|
|00001610| 69 6e 6b 20 6c 69 73 74 | 20 64 65 63 6c 61 72 61 |ink list| declara|
|00001620| 74 69 6f 6e 20 66 72 6f | 6d 20 70 6d 61 70 5f 70 |tion fro|m pmap_p|
|00001630| 72 6f 74 2e 68 3a 0a 20 | 2a 0a 20 2a 20 73 74 72 |rot.h:. |*. * str|
|00001640| 75 63 74 20 70 6d 61 70 | 6c 69 73 74 20 7b 0a 20 |uct pmap|list {. |
|00001650| 2a 09 73 74 72 75 63 74 | 20 70 6d 61 70 20 70 6d |*.struct| pmap pm|
|00001660| 6c 5f 6d 61 70 3b 0a 20 | 2a 09 73 74 72 75 63 74 |l_map;. |*.struct|
|00001670| 20 70 6d 61 70 6c 69 73 | 74 20 2a 70 6d 6c 5f 6d | pmaplis|t *pml_m|
|00001680| 61 70 3b 0a 20 2a 20 7d | 3b 0a 20 2a 0a 20 2a 20 |ap;. * }|;. *. * |
|00001690| 43 6f 6d 70 61 72 65 20 | 74 68 61 74 20 64 65 63 |Compare |that dec|
|000016a0| 6c 61 72 61 74 69 6f 6e | 20 77 69 74 68 20 61 20 |laration| with a |
|000016b0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 78 64 |correspo|nding xd|
|000016c0| 72 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 20 74 68 |r declar|ation th|
|000016d0| 61 74 20 0a 20 2a 20 69 | 73 20 28 61 29 20 70 6f |at . * i|s (a) po|
|000016e0| 69 6e 74 65 72 2d 6c 65 | 73 73 2c 20 61 6e 64 20 |inter-le|ss, and |
|000016f0| 28 62 29 20 72 65 63 75 | 72 73 69 76 65 3a 0a 20 |(b) recu|rsive:. |
|00001700| 2a 0a 20 2a 20 74 79 70 | 65 64 65 66 20 75 6e 69 |*. * typ|edef uni|
|00001710| 6f 6e 20 73 77 69 74 63 | 68 20 28 62 6f 6f 6c 5f |on switc|h (bool_|
|00001720| 74 29 20 7b 0a 20 2a 20 | 0a 20 2a 09 63 61 73 65 |t) {. * |. *.case|
|00001730| 20 54 52 55 45 3a 20 73 | 74 72 75 63 74 20 7b 0a | TRUE: s|truct {.|
|00001740| 20 2a 09 09 73 74 72 75 | 63 74 20 70 6d 61 70 3b | *..stru|ct pmap;|
|00001750| 0a 20 2a 20 09 09 70 6d | 61 70 6c 69 73 74 5f 74 |. * ..pm|aplist_t|
|00001760| 20 66 6f 6f 3b 0a 20 2a | 09 7d 3b 0a 20 2a 0a 20 | foo;. *|.};. *. |
|00001770| 2a 09 63 61 73 65 20 46 | 41 4c 53 45 3a 20 73 74 |*.case F|ALSE: st|
|00001780| 72 75 63 74 20 7b 7d 3b | 0a 20 2a 20 7d 20 70 6d |ruct {};|. * } pm|
|00001790| 61 70 6c 69 73 74 5f 74 | 3b 0a 20 2a 0a 20 2a 20 |aplist_t|;. *. * |
|000017a0| 4e 6f 74 69 63 65 20 74 | 68 61 74 20 74 68 65 20 |Notice t|hat the |
|000017b0| 78 64 72 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |xdr decl|aration |
|000017c0| 68 61 73 20 6e 6f 20 6e | 78 74 20 70 6f 69 6e 74 |has no n|xt point|
|000017d0| 65 72 20 77 68 69 6c 65 | 0a 20 2a 20 74 68 65 20 |er while|. * the |
|000017e0| 43 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 20 68 61 |C declar|ation ha|
|000017f0| 73 20 6e 6f 20 62 6f 6f | 6c 5f 74 20 76 61 72 69 |s no boo|l_t vari|
|00001800| 61 62 6c 65 2e 20 20 54 | 68 65 20 62 6f 6f 6c 5f |able. T|he bool_|
|00001810| 74 20 63 61 6e 20 62 65 | 0a 20 2a 20 69 6e 74 65 |t can be|. * inte|
|00001820| 72 70 72 65 74 65 64 20 | 61 73 20 60 60 6d 6f 72 |rpreted |as ``mor|
|00001830| 65 20 64 61 74 61 20 66 | 6f 6c 6c 6f 77 73 20 6d |e data f|ollows m|
|00001840| 65 27 27 3b 20 69 66 20 | 46 41 4c 53 45 20 74 68 |e''; if |FALSE th|
|00001850| 65 6e 20 6e 6f 74 68 69 | 6e 67 0a 20 2a 20 66 6f |en nothi|ng. * fo|
|00001860| 6c 6c 6f 77 73 20 74 68 | 69 73 20 62 6f 6f 6c 5f |llows th|is bool_|
|00001870| 74 3b 20 69 66 20 54 52 | 55 45 20 74 68 65 6e 20 |t; if TR|UE then |
|00001880| 74 68 65 20 62 6f 6f 6c | 5f 74 20 69 73 20 66 6f |the bool|_t is fo|
|00001890| 6c 6c 6f 77 65 64 20 62 | 79 0a 20 2a 20 61 6e 20 |llowed b|y. * an |
|000018a0| 61 63 74 75 61 6c 20 73 | 74 72 75 63 74 20 70 6d |actual s|truct pm|
|000018b0| 61 70 2c 20 61 6e 64 20 | 74 68 65 6e 20 28 72 65 |ap, and |then (re|
|000018c0| 63 75 72 73 69 76 65 6c | 79 29 20 62 79 20 74 68 |cursivel|y) by th|
|000018d0| 65 20 0a 20 2a 20 78 64 | 72 20 75 6e 69 6f 6e 2c |e . * xd|r union,|
|000018e0| 20 70 61 6d 70 6c 69 73 | 74 5f 74 2e 20 20 0a 20 | pamplis|t_t. . |
|000018f0| 2a 0a 20 2a 20 54 68 69 | 73 20 63 6f 75 6c 64 20 |*. * Thi|s could |
|00001900| 62 65 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 20 76 |be imple|mented v|
|00001910| 69 61 20 74 68 65 20 78 | 64 72 5f 75 6e 69 6f 6e |ia the x|dr_union|
|00001920| 20 70 72 69 6d 69 74 69 | 76 65 2c 20 74 68 6f 75 | primiti|ve, thou|
|00001930| 67 68 20 74 68 69 73 0a | 20 2a 20 77 6f 75 6c 64 |gh this.| * would|
|00001940| 20 63 61 75 73 65 20 61 | 20 6f 6e 65 20 72 65 63 | cause a| one rec|
|00001950| 75 72 73 69 76 65 20 63 | 61 6c 6c 20 70 65 72 20 |ursive c|all per |
|00001960| 65 6c 65 6d 65 6e 74 20 | 69 6e 20 74 68 65 20 6c |element |in the l|
|00001970| 69 73 74 2e 20 20 52 61 | 74 68 65 72 20 74 68 61 |ist. Ra|ther tha|
|00001980| 6e 20 64 6f 0a 20 2a 20 | 74 68 61 74 20 77 65 20 |n do. * |that we |
|00001990| 63 61 6e 20 60 60 75 6e | 77 69 6e 64 27 27 20 74 |can ``un|wind'' t|
|000019a0| 68 65 20 72 65 63 75 72 | 73 69 6f 6e 0a 20 2a 20 |he recur|sion. * |
|000019b0| 69 6e 74 6f 20 61 20 77 | 68 69 6c 65 20 6c 6f 6f |into a w|hile loo|
|000019c0| 70 20 61 6e 64 20 64 6f | 20 74 68 65 20 75 6e 69 |p and do| the uni|
|000019d0| 6f 6e 20 61 72 6d 73 20 | 69 6e 2d 70 6c 61 63 65 |on arms |in-place|
|000019e0| 2e 0a 20 2a 0a 20 2a 20 | 54 68 65 20 68 65 61 64 |.. *. * |The head|
|000019f0| 20 6f 66 20 74 68 65 20 | 6c 69 73 74 20 69 73 20 | of the |list is |
|00001a00| 77 68 61 74 20 74 68 65 | 20 43 20 70 72 6f 67 72 |what the| C progr|
|00001a10| 61 6d 6d 65 72 20 77 69 | 73 68 65 73 20 74 6f 20 |ammer wi|shes to |
|00001a20| 70 61 73 74 20 61 72 6f | 75 6e 64 0a 20 2a 20 74 |past aro|und. * t|
|00001a30| 68 65 20 6e 65 74 2c 20 | 79 65 74 20 69 73 20 74 |he net, |yet is t|
|00001a40| 68 65 20 64 61 74 61 20 | 74 68 61 74 20 74 68 65 |he data |that the|
|00001a50| 20 70 6f 69 6e 74 65 72 | 20 70 6f 69 6e 74 73 20 | pointer| points |
|00001a60| 74 6f 20 77 68 69 63 68 | 20 69 73 20 69 6e 74 65 |to which| is inte|
|00001a70| 72 65 73 74 69 6e 67 3b | 0a 20 2a 20 74 68 69 73 |resting;|. * this|
|00001a80| 20 73 6f 75 6e 64 73 20 | 6c 69 6b 65 20 61 20 6a | sounds |like a j|
|00001a90| 6f 62 20 66 6f 72 20 78 | 64 72 5f 72 65 66 65 72 |ob for x|dr_refer|
|00001aa0| 65 6e 63 65 21 0a 20 2a | 2f 0a 62 6f 6f 6c 5f 74 |ence!. *|/.bool_t|
|00001ab0| 0a 78 64 72 5f 70 6d 61 | 70 6c 69 73 74 28 78 64 |.xdr_pma|plist(xd|
|00001ac0| 72 73 2c 20 72 70 29 0a | 09 72 65 67 69 73 74 65 |rs, rp).|.registe|
|00001ad0| 72 20 58 44 52 20 2a 78 | 64 72 73 3b 0a 09 72 65 |r XDR *x|drs;..re|
|00001ae0| 67 69 73 74 65 72 20 73 | 74 72 75 63 74 20 70 6d |gister s|truct pm|
|00001af0| 61 70 6c 69 73 74 20 2a | 2a 72 70 3b 0a 7b 0a 09 |aplist *|*rp;.{..|
|00001b00| 2f 2a 0a 09 20 2a 20 6d | 6f 72 65 5f 65 6c 65 6d |/*.. * m|ore_elem|
|00001b10| 65 6e 74 73 20 69 73 20 | 70 72 65 2d 63 6f 6d 70 |ents is |pre-comp|
|00001b20| 75 74 65 64 20 69 6e 20 | 63 61 73 65 20 74 68 65 |uted in |case the|
|00001b30| 20 64 69 72 65 63 74 69 | 6f 6e 20 69 73 0a 09 20 | directi|on is.. |
|00001b40| 2a 20 58 44 52 5f 45 4e | 43 4f 44 45 20 6f 72 20 |* XDR_EN|CODE or |
|00001b50| 58 44 52 5f 46 52 45 45 | 2e 20 20 6d 6f 72 65 5f |XDR_FREE|. more_|
|00001b60| 65 6c 65 6d 65 6e 74 73 | 20 69 73 20 6f 76 65 72 |elements| is over|
|00001b70| 77 72 69 74 74 65 6e 20 | 62 79 0a 09 20 2a 20 78 |written |by.. * x|
|00001b80| 64 72 5f 62 6f 6f 6c 20 | 77 68 65 6e 20 74 68 65 |dr_bool |when the|
|00001b90| 20 64 69 72 65 63 74 69 | 6f 6e 20 69 73 20 58 44 | directi|on is XD|
|00001ba0| 52 5f 44 45 43 4f 44 45 | 2e 0a 09 20 2a 2f 0a 09 |R_DECODE|... */..|
|00001bb0| 62 6f 6f 6c 5f 74 20 6d | 6f 72 65 5f 65 6c 65 6d |bool_t m|ore_elem|
|00001bc0| 65 6e 74 73 3b 0a 09 72 | 65 67 69 73 74 65 72 20 |ents;..r|egister |
|00001bd0| 69 6e 74 20 66 72 65 65 | 69 6e 67 20 3d 20 28 78 |int free|ing = (x|
|00001be0| 64 72 73 2d 3e 78 5f 6f | 70 20 3d 3d 20 58 44 52 |drs->x_o|p == XDR|
|00001bf0| 5f 46 52 45 45 29 3b 0a | 09 72 65 67 69 73 74 65 |_FREE);.|.registe|
|00001c00| 72 20 73 74 72 75 63 74 | 20 70 6d 61 70 6c 69 73 |r struct| pmaplis|
|00001c10| 74 20 2a 2a 6e 65 78 74 | 3b 0a 0a 09 77 68 69 6c |t **next|;...whil|
|00001c20| 65 20 28 54 52 55 45 29 | 20 7b 0a 09 09 6d 6f 72 |e (TRUE)| {...mor|
|00001c30| 65 5f 65 6c 65 6d 65 6e | 74 73 20 3d 20 28 62 6f |e_elemen|ts = (bo|
|00001c40| 6f 6c 5f 74 29 28 2a 72 | 70 20 21 3d 20 4e 55 4c |ol_t)(*r|p != NUL|
|00001c50| 4c 29 3b 0a 09 09 69 66 | 20 28 21 20 78 64 72 5f |L);...if| (! xdr_|
|00001c60| 62 6f 6f 6c 28 78 64 72 | 73 2c 20 26 6d 6f 72 65 |bool(xdr|s, &more|
|00001c70| 5f 65 6c 65 6d 65 6e 74 | 73 29 29 0a 09 09 09 72 |_element|s))....r|
|00001c80| 65 74 75 72 6e 20 28 46 | 41 4c 53 45 29 3b 0a 09 |eturn (F|ALSE);..|
|00001c90| 09 69 66 20 28 21 20 6d | 6f 72 65 5f 65 6c 65 6d |.if (! m|ore_elem|
|00001ca0| 65 6e 74 73 29 0a 09 09 | 09 72 65 74 75 72 6e 20 |ents)...|.return |
|00001cb0| 28 54 52 55 45 29 3b 20 | 20 2f 2a 20 77 65 20 61 |(TRUE); | /* we a|
|00001cc0| 72 65 20 64 6f 6e 65 20 | 2a 2f 0a 09 09 2f 2a 0a |re done |*/.../*.|
|00001cd0| 09 09 20 2a 20 74 68 65 | 20 75 6e 66 6f 72 74 75 |.. * the| unfortu|
|00001ce0| 6e 61 74 65 20 73 69 64 | 65 20 65 66 66 65 63 74 |nate sid|e effect|
|00001cf0| 20 6f 66 20 6e 6f 6e 2d | 72 65 63 75 72 73 69 6f | of non-|recursio|
|00001d00| 6e 20 69 73 20 74 68 61 | 74 20 69 6e 0a 09 09 20 |n is tha|t in... |
|00001d10| 2a 20 74 68 65 20 63 61 | 73 65 20 6f 66 20 66 72 |* the ca|se of fr|
|00001d20| 65 65 69 6e 67 20 77 65 | 20 6d 75 73 74 20 72 65 |eeing we| must re|
|00001d30| 6d 65 6d 62 65 72 20 74 | 68 65 20 6e 65 78 74 20 |member t|he next |
|00001d40| 6f 62 6a 65 63 74 0a 09 | 09 20 2a 20 62 65 66 6f |object..|. * befo|
|00001d50| 72 65 20 77 65 20 66 72 | 65 65 20 74 68 65 20 63 |re we fr|ee the c|
|00001d60| 75 72 72 65 6e 74 20 6f | 62 6a 65 63 74 20 2e 2e |urrent o|bject ..|
|00001d70| 2e 0a 09 09 20 2a 2f 0a | 09 09 69 66 20 28 66 72 |.... */.|..if (fr|
|00001d80| 65 65 69 6e 67 29 0a 09 | 09 09 6e 65 78 74 20 3d |eeing)..|..next =|
|00001d90| 20 26 28 28 2a 72 70 29 | 2d 3e 70 6d 6c 5f 6e 65 | &((*rp)|->pml_ne|
|00001da0| 78 74 29 3b 20 0a 09 09 | 69 66 20 28 21 20 78 64 |xt); ...|if (! xd|
|00001db0| 72 5f 72 65 66 65 72 65 | 6e 63 65 28 78 64 72 73 |r_refere|nce(xdrs|
|00001dc0| 2c 20 28 63 61 64 64 72 | 5f 74 20 2a 29 72 70 2c |, (caddr|_t *)rp,|
|00001dd0| 0a 09 09 20 20 20 20 28 | 75 5f 69 6e 74 29 73 69 |... (|u_int)si|
|00001de0| 7a 65 6f 66 28 73 74 72 | 75 63 74 20 70 6d 61 70 |zeof(str|uct pmap|
|00001df0| 6c 69 73 74 29 2c 20 78 | 64 72 5f 70 6d 61 70 29 |list), x|dr_pmap)|
|00001e00| 29 0a 09 09 09 72 65 74 | 75 72 6e 20 28 46 41 4c |)....ret|urn (FAL|
|00001e10| 53 45 29 3b 0a 09 09 72 | 70 20 3d 20 28 66 72 65 |SE);...r|p = (fre|
|00001e20| 65 69 6e 67 29 20 3f 20 | 6e 65 78 74 20 3a 20 26 |eing) ? |next : &|
|00001e30| 28 28 2a 72 70 29 2d 3e | 70 6d 6c 5f 6e 65 78 74 |((*rp)->|pml_next|
|00001e40| 29 3b 0a 09 7d 0a 7d 0a | 46 75 6e 6b 79 5f 53 74 |);..}.}.|Funky_St|
|00001e50| 75 66 66 0a 6c 65 6e 3d | 60 77 63 20 2d 63 20 3c |uff.len=|`wc -c <|
|00001e60| 20 70 6d 61 70 5f 70 72 | 6f 74 32 2e 63 60 0a 69 | pmap_pr|ot2.c`.i|
|00001e70| 66 20 5b 20 24 6c 65 6e | 20 21 3d 20 20 20 20 20 |f [ $len| != |
|00001e80| 33 38 30 39 20 5d 20 3b | 20 74 68 65 6e 0a 20 20 |3809 ] ;| then. |
|00001e90| 65 63 68 6f 20 65 72 72 | 6f 72 3a 20 70 6d 61 70 |echo err|or: pmap|
|00001ea0| 5f 70 72 6f 74 32 2e 63 | 20 77 61 73 20 24 6c 65 |_prot2.c| was $le|
|00001eb0| 6e 20 62 79 74 65 73 20 | 6c 6f 6e 67 2c 20 73 68 |n bytes |long, sh|
|00001ec0| 6f 75 6c 64 20 68 61 76 | 65 20 62 65 65 6e 20 20 |ould hav|e been |
|00001ed0| 20 20 20 33 38 30 39 0a | 66 69 0a 65 63 68 6f 20 | 3809.|fi.echo |
|00001ee0| 78 20 2d 20 70 6d 61 70 | 5f 72 6d 74 2e 63 0a 63 |x - pmap|_rmt.c.c|
|00001ef0| 61 74 20 3e 20 70 6d 61 | 70 5f 72 6d 74 2e 63 20 |at > pma|p_rmt.c |
|00001f00| 3c 3c 27 46 75 6e 6b 79 | 5f 53 74 75 66 66 27 0a |<<'Funky|_Stuff'.|
|00001f10| 2f 2a 20 40 28 23 29 70 | 6d 61 70 5f 72 6d 74 2e |/* @(#)p|map_rmt.|
|00001f20| 63 09 31 2e 34 20 38 37 | 2f 31 31 2f 33 30 20 33 |c.1.4 87|/11/30 3|
|00001f30| 2e 39 20 52 50 43 53 52 | 43 20 2a 2f 0a 2f 2a 0a |.9 RPCSR|C */./*.|
|00001f40| 20 2a 20 53 75 6e 20 52 | 50 43 20 69 73 20 61 20 | * Sun R|PC is a |
|00001f50| 70 72 6f 64 75 63 74 20 | 6f 66 20 53 75 6e 20 4d |product |of Sun M|
|00001f60| 69 63 72 6f 73 79 73 74 | 65 6d 73 2c 20 49 6e 63 |icrosyst|ems, Inc|
|00001f70| 2e 20 61 6e 64 20 69 73 | 20 70 72 6f 76 69 64 65 |. and is| provide|
|00001f80| 64 20 66 6f 72 0a 20 2a | 20 75 6e 72 65 73 74 72 |d for. *| unrestr|
|00001f90| 69 63 74 65 64 20 75 73 | 65 20 70 72 6f 76 69 64 |icted us|e provid|
|00001fa0| 65 64 20 74 68 61 74 20 | 74 68 69 73 20 6c 65 67 |ed that |this leg|
|00001fb0| 65 6e 64 20 69 73 20 69 | 6e 63 6c 75 64 65 64 20 |end is i|ncluded |
|00001fc0| 6f 6e 20 61 6c 6c 20 74 | 61 70 65 0a 20 2a 20 6d |on all t|ape. * m|
|00001fd0| 65 64 69 61 20 61 6e 64 | 20 61 73 20 61 20 70 61 |edia and| as a pa|
|00001fe0| 72 74 20 6f 66 20 74 68 | 65 20 73 6f 66 74 77 61 |rt of th|e softwa|
|00001ff0| 72 65 20 70 72 6f 67 72 | 61 6d 20 69 6e 20 77 68 |re progr|am in wh|
|00002000| 6f 6c 65 20 6f 72 20 70 | 61 72 74 2e 20 20 55 73 |ole or p|art. Us|
|00002010| 65 72 73 0a 20 2a 20 6d | 61 79 20 63 6f 70 79 20 |ers. * m|ay copy |
|00002020| 6f 72 20 6d 6f 64 69 66 | 79 20 53 75 6e 20 52 50 |or modif|y Sun RP|
|00002030| 43 20 77 69 74 68 6f 75 | 74 20 63 68 61 72 67 65 |C withou|t charge|
|00002040| 2c 20 62 75 74 20 61 72 | 65 20 6e 6f 74 20 61 75 |, but ar|e not au|
|00002050| 74 68 6f 72 69 7a 65 64 | 0a 20 2a 20 74 6f 20 6c |thorized|. * to l|
|00002060| 69 63 65 6e 73 65 20 6f | 72 20 64 69 73 74 72 69 |icense o|r distri|
|00002070| 62 75 74 65 20 69 74 20 | 74 6f 20 61 6e 79 6f 6e |bute it |to anyon|
|00002080| 65 20 65 6c 73 65 20 65 | 78 63 65 70 74 20 61 73 |e else e|xcept as|
|00002090| 20 70 61 72 74 20 6f 66 | 20 61 20 70 72 6f 64 75 | part of| a produ|
|000020a0| 63 74 20 6f 72 0a 20 2a | 20 70 72 6f 67 72 61 6d |ct or. *| program|
|000020b0| 20 64 65 76 65 6c 6f 70 | 65 64 20 62 79 20 74 68 | develop|ed by th|
|000020c0| 65 20 75 73 65 72 2e 0a | 20 2a 20 0a 20 2a 20 53 |e user..| * . * S|
|000020d0| 55 4e 20 52 50 43 20 49 | 53 20 50 52 4f 56 49 44 |UN RPC I|S PROVID|
|000020e0| 45 44 20 41 53 20 49 53 | 20 57 49 54 48 20 4e 4f |ED AS IS| WITH NO|
|000020f0| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 41 | WARRANT|IES OF A|
|00002100| 4e 59 20 4b 49 4e 44 20 | 49 4e 43 4c 55 44 49 4e |NY KIND |INCLUDIN|
|00002110| 47 20 54 48 45 0a 20 2a | 20 57 41 52 52 41 4e 54 |G THE. *| WARRANT|
|00002120| 49 45 53 20 4f 46 20 44 | 45 53 49 47 4e 2c 20 4d |IES OF D|ESIGN, M|
|00002130| 45 52 43 48 41 4e 54 49 | 42 49 4c 49 54 59 20 41 |ERCHANTI|BILITY A|
|00002140| 4e 44 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |ND FITNE|SS FOR A|
|00002150| 20 50 41 52 54 49 43 55 | 4c 41 52 0a 20 2a 20 50 | PARTICU|LAR. * P|
|00002160| 55 52 50 4f 53 45 2c 20 | 4f 52 20 41 52 49 53 49 |URPOSE, |OR ARISI|
|00002170| 4e 47 20 46 52 4f 4d 20 | 41 20 43 4f 55 52 53 45 |NG FROM |A COURSE|
|00002180| 20 4f 46 20 44 45 41 4c | 49 4e 47 2c 20 55 53 41 | OF DEAL|ING, USA|
|00002190| 47 45 20 4f 52 20 54 52 | 41 44 45 20 50 52 41 43 |GE OR TR|ADE PRAC|
|000021a0| 54 49 43 45 2e 0a 20 2a | 20 0a 20 2a 20 53 75 6e |TICE.. *| . * Sun|
|000021b0| 20 52 50 43 20 69 73 20 | 70 72 6f 76 69 64 65 64 | RPC is |provided|
|000021c0| 20 77 69 74 68 20 6e 6f | 20 73 75 70 70 6f 72 74 | with no| support|
|000021d0| 20 61 6e 64 20 77 69 74 | 68 6f 75 74 20 61 6e 79 | and wit|hout any|
|000021e0| 20 6f 62 6c 69 67 61 74 | 69 6f 6e 20 6f 6e 20 74 | obligat|ion on t|
|000021f0| 68 65 0a 20 2a 20 70 61 | 72 74 20 6f 66 20 53 75 |he. * pa|rt of Su|
|00002200| 6e 20 4d 69 63 72 6f 73 | 79 73 74 65 6d 73 2c 20 |n Micros|ystems, |
|00002210| 49 6e 63 2e 20 74 6f 20 | 61 73 73 69 73 74 20 69 |Inc. to |assist i|
|00002220| 6e 20 69 74 73 20 75 73 | 65 2c 20 63 6f 72 72 65 |n its us|e, corre|
|00002230| 63 74 69 6f 6e 2c 0a 20 | 2a 20 6d 6f 64 69 66 69 |ction,. |* modifi|
|00002240| 63 61 74 69 6f 6e 20 6f | 72 20 65 6e 68 61 6e 63 |cation o|r enhanc|
|00002250| 65 6d 65 6e 74 2e 0a 20 | 2a 20 0a 20 2a 20 53 55 |ement.. |* . * SU|
|00002260| 4e 20 4d 49 43 52 4f 53 | 59 53 54 45 4d 53 2c 20 |N MICROS|YSTEMS, |
|00002270| 49 4e 43 2e 20 53 48 41 | 4c 4c 20 48 41 56 45 20 |INC. SHA|LL HAVE |
|00002280| 4e 4f 20 4c 49 41 42 49 | 4c 49 54 59 20 57 49 54 |NO LIABI|LITY WIT|
|00002290| 48 20 52 45 53 50 45 43 | 54 20 54 4f 20 54 48 45 |H RESPEC|T TO THE|
|000022a0| 0a 20 2a 20 49 4e 46 52 | 49 4e 47 45 4d 45 4e 54 |. * INFR|INGEMENT|
|000022b0| 20 4f 46 20 43 4f 50 59 | 52 49 47 48 54 53 2c 20 | OF COPY|RIGHTS, |
|000022c0| 54 52 41 44 45 20 53 45 | 43 52 45 54 53 20 4f 52 |TRADE SE|CRETS OR|
|000022d0| 20 41 4e 59 20 50 41 54 | 45 4e 54 53 20 42 59 20 | ANY PAT|ENTS BY |
|000022e0| 53 55 4e 20 52 50 43 0a | 20 2a 20 4f 52 20 41 4e |SUN RPC.| * OR AN|
|000022f0| 59 20 50 41 52 54 20 54 | 48 45 52 45 4f 46 2e 0a |Y PART T|HEREOF..|
|00002300| 20 2a 20 0a 20 2a 20 49 | 6e 20 6e 6f 20 65 76 65 | * . * I|n no eve|
|00002310| 6e 74 20 77 69 6c 6c 20 | 53 75 6e 20 4d 69 63 72 |nt will |Sun Micr|
|00002320| 6f 73 79 73 74 65 6d 73 | 2c 20 49 6e 63 2e 20 62 |osystems|, Inc. b|
|00002330| 65 20 6c 69 61 62 6c 65 | 20 66 6f 72 20 61 6e 79 |e liable| for any|
|00002340| 20 6c 6f 73 74 20 72 65 | 76 65 6e 75 65 0a 20 2a | lost re|venue. *|
|00002350| 20 6f 72 20 70 72 6f 66 | 69 74 73 20 6f 72 20 6f | or prof|its or o|
|00002360| 74 68 65 72 20 73 70 65 | 63 69 61 6c 2c 20 69 6e |ther spe|cial, in|
|00002370| 64 69 72 65 63 74 20 61 | 6e 64 20 63 6f 6e 73 65 |direct a|nd conse|
|00002380| 71 75 65 6e 74 69 61 6c | 20 64 61 6d 61 67 65 73 |quential| damages|
|00002390| 2c 20 65 76 65 6e 20 69 | 66 0a 20 2a 20 53 75 6e |, even i|f. * Sun|
|000023a0| 20 68 61 73 20 62 65 65 | 6e 20 61 64 76 69 73 65 | has bee|n advise|
|000023b0| 64 20 6f 66 20 74 68 65 | 20 70 6f 73 73 69 62 69 |d of the| possibi|
|000023c0| 6c 69 74 79 20 6f 66 20 | 73 75 63 68 20 64 61 6d |lity of |such dam|
|000023d0| 61 67 65 73 2e 0a 20 2a | 20 0a 20 2a 20 53 75 6e |ages.. *| . * Sun|
|000023e0| 20 4d 69 63 72 6f 73 79 | 73 74 65 6d 73 2c 20 49 | Microsy|stems, I|
|000023f0| 6e 63 2e 0a 20 2a 20 32 | 35 35 30 20 47 61 72 63 |nc.. * 2|550 Garc|
|00002400| 69 61 20 41 76 65 6e 75 | 65 0a 20 2a 20 4d 6f 75 |ia Avenu|e. * Mou|
|00002410| 6e 74 61 69 6e 20 56 69 | 65 77 2c 20 43 61 6c 69 |ntain Vi|ew, Cali|
|00002420| 66 6f 72 6e 69 61 20 20 | 39 34 30 34 33 0a 20 2a |fornia |94043. *|
|00002430| 2f 0a 23 69 66 20 21 64 | 65 66 69 6e 65 64 28 6c |/.#if !d|efined(l|
|00002440| 69 6e 74 29 20 26 26 20 | 64 65 66 69 6e 65 64 28 |int) && |defined(|
|00002450| 53 43 43 53 49 44 53 29 | 0a 73 74 61 74 69 63 20 |SCCSIDS)|.static |
|00002460| 63 68 61 72 20 73 63 63 | 73 69 64 5b 5d 20 3d 20 |char scc|sid[] = |
|00002470| 22 40 28 23 29 70 6d 61 | 70 5f 72 6d 74 2e 63 20 |"@(#)pma|p_rmt.c |
|00002480| 31 2e 32 31 20 38 37 2f | 30 38 2f 32 37 20 43 6f |1.21 87/|08/27 Co|
|00002490| 70 79 72 20 31 39 38 34 | 20 53 75 6e 20 4d 69 63 |pyr 1984| Sun Mic|
|000024a0| 72 6f 22 3b 0a 23 65 6e | 64 69 66 0a 0a 2f 2a 0a |ro";.#en|dif../*.|
|000024b0| 20 2a 20 70 6d 61 70 5f | 72 6d 74 2e 63 0a 20 2a | * pmap_|rmt.c. *|
|000024c0| 20 43 6c 69 65 6e 74 20 | 69 6e 74 65 72 66 61 63 | Client |interfac|
|000024d0| 65 20 74 6f 20 70 6d 61 | 70 20 72 70 63 20 73 65 |e to pma|p rpc se|
|000024e0| 72 76 69 63 65 2e 0a 20 | 2a 20 72 65 6d 6f 74 65 |rvice.. |* remote|
|000024f0| 20 63 61 6c 6c 20 61 6e | 64 20 62 72 6f 61 64 63 | call an|d broadc|
|00002500| 61 73 74 20 73 65 72 76 | 69 63 65 0a 20 2a 0a 20 |ast serv|ice. *. |
|00002510| 2a 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |* Copyri|ght (C) |
|00002520| 31 39 38 34 2c 20 53 75 | 6e 20 4d 69 63 72 6f 73 |1984, Su|n Micros|
|00002530| 79 73 74 65 6d 73 2c 20 | 49 6e 63 2e 0a 20 2a 2f |ystems, |Inc.. */|
|00002540| 0a 0a 23 69 6e 63 6c 75 | 64 65 20 3c 72 70 63 2f |..#inclu|de <rpc/|
|00002550| 72 70 63 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |rpc.h>.#|include |
|00002560| 3c 72 70 63 2f 70 6d 61 | 70 5f 70 72 6f 74 2e 68 |<rpc/pma|p_prot.h|
|00002570| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 72 70 63 2f |>.#inclu|de <rpc/|
|00002580| 70 6d 61 70 5f 63 6c 6e | 74 2e 68 3e 0a 23 69 6e |pmap_cln|t.h>.#in|
|00002590| 63 6c 75 64 65 20 3c 72 | 70 63 2f 70 6d 61 70 5f |clude <r|pc/pmap_|
|000025a0| 72 6d 74 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |rmt.h>.#|include |
|000025b0| 3c 73 79 73 2f 73 6f 63 | 6b 65 74 2e 68 3e 0a 23 |<sys/soc|ket.h>.#|
|000025c0| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 74 69 6d |include |<sys/tim|
|000025d0| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |e.h>.#in|clude <s|
|000025e0| 74 64 69 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tdio.h>.|#include|
|000025f0| 20 3c 65 72 72 6e 6f 2e | 68 3e 0a 23 69 6e 63 6c | <errno.|h>.#incl|
|00002600| 75 64 65 20 3c 6e 65 74 | 2f 69 66 2e 68 3e 0a 23 |ude <net|/if.h>.#|
|00002610| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 69 6f 63 |include |<sys/ioc|
|00002620| 74 6c 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |tl.h>.#i|nclude <|
|00002630| 61 72 70 61 2f 69 6e 65 | 74 2e 68 3e 0a 23 64 65 |arpa/ine|t.h>.#de|
|00002640| 66 69 6e 65 20 4d 41 58 | 5f 42 52 4f 41 44 43 41 |fine MAX|_BROADCA|
|00002650| 53 54 5f 53 49 5a 45 20 | 31 34 30 30 0a 0a 65 78 |ST_SIZE |1400..ex|
|00002660| 74 65 72 6e 20 69 6e 74 | 20 65 72 72 6e 6f 3b 0a |tern int| errno;.|
|00002670| 73 74 61 74 69 63 20 73 | 74 72 75 63 74 20 74 69 |static s|truct ti|
|00002680| 6d 65 76 61 6c 20 74 69 | 6d 65 6f 75 74 20 3d 20 |meval ti|meout = |
|00002690| 7b 20 33 2c 20 30 20 7d | 3b 0a 0a 0a 2f 2a 0a 20 |{ 3, 0 }|;.../*. |
|000026a0| 2a 20 70 6d 61 70 70 65 | 72 20 72 65 6d 6f 74 65 |* pmappe|r remote|
|000026b0| 2d 63 61 6c 6c 2d 73 65 | 72 76 69 63 65 20 69 6e |-call-se|rvice in|
|000026c0| 74 65 72 66 61 63 65 2e | 0a 20 2a 20 54 68 69 73 |terface.|. * This|
|000026d0| 20 72 6f 75 74 69 6e 65 | 20 69 73 20 75 73 65 64 | routine| is used|
|000026e0| 20 74 6f 20 63 61 6c 6c | 20 74 68 65 20 70 6d 61 | to call| the pma|
|000026f0| 70 70 65 72 20 72 65 6d | 6f 74 65 20 63 61 6c 6c |pper rem|ote call|
|00002700| 20 73 65 72 76 69 63 65 | 0a 20 2a 20 77 68 69 63 | service|. * whic|
|00002710| 68 20 77 69 6c 6c 20 6c | 6f 6f 6b 20 75 70 20 61 |h will l|ook up a|
|00002720| 20 73 65 72 76 69 63 65 | 20 70 72 6f 67 72 61 6d | service| program|
|00002730| 20 69 6e 20 74 68 65 20 | 70 6f 72 74 20 6d 61 70 | in the |port map|
|00002740| 73 2c 20 61 6e 64 20 74 | 68 65 6e 0a 20 2a 20 72 |s, and t|hen. * r|
|00002750| 65 6d 6f 74 65 6c 79 20 | 63 61 6c 6c 20 74 68 61 |emotely |call tha|
|00002760| 74 20 72 6f 75 74 69 6e | 65 20 77 69 74 68 20 74 |t routin|e with t|
|00002770| 68 65 20 67 69 76 65 6e | 20 70 61 72 61 6d 65 74 |he given| paramet|
|00002780| 65 72 73 2e 20 20 54 68 | 69 73 20 61 6c 6c 6f 77 |ers. Th|is allow|
|00002790| 73 0a 20 2a 20 70 72 6f | 67 72 61 6d 73 20 74 6f |s. * pro|grams to|
|000027a0| 20 64 6f 20 61 20 6c 6f | 6f 6b 75 70 20 61 6e 64 | do a lo|okup and|
|000027b0| 20 63 61 6c 6c 20 69 6e | 20 6f 6e 65 20 73 74 65 | call in| one ste|
|000027c0| 70 2e 0a 2a 2f 0a 65 6e | 75 6d 20 63 6c 6e 74 5f |p..*/.en|um clnt_|
|000027d0| 73 74 61 74 0a 70 6d 61 | 70 5f 72 6d 74 63 61 6c |stat.pma|p_rmtcal|
|000027e0| 6c 28 61 64 64 72 2c 20 | 70 72 6f 67 2c 20 76 65 |l(addr, |prog, ve|
|000027f0| 72 73 2c 20 70 72 6f 63 | 2c 20 78 64 72 61 72 67 |rs, proc|, xdrarg|
|00002800| 73 2c 20 61 72 67 73 70 | 2c 20 78 64 72 72 65 73 |s, argsp|, xdrres|
|00002810| 2c 20 72 65 73 70 2c 20 | 74 6f 75 74 2c 20 70 6f |, resp, |tout, po|
|00002820| 72 74 5f 70 74 72 29 0a | 09 73 74 72 75 63 74 20 |rt_ptr).|.struct |
|00002830| 73 6f 63 6b 61 64 64 72 | 5f 69 6e 20 2a 61 64 64 |sockaddr|_in *add|
|00002840| 72 3b 0a 09 75 5f 6c 6f | 6e 67 20 70 72 6f 67 2c |r;..u_lo|ng prog,|
|00002850| 20 76 65 72 73 2c 20 70 | 72 6f 63 3b 0a 09 78 64 | vers, p|roc;..xd|
|00002860| 72 70 72 6f 63 5f 74 20 | 78 64 72 61 72 67 73 2c |rproc_t |xdrargs,|
|00002870| 20 78 64 72 72 65 73 3b | 0a 09 63 61 64 64 72 5f | xdrres;|..caddr_|
|00002880| 74 20 61 72 67 73 70 2c | 20 72 65 73 70 3b 0a 09 |t argsp,| resp;..|
|00002890| 73 74 72 75 63 74 20 74 | 69 6d 65 76 61 6c 20 74 |struct t|imeval t|
|000028a0| 6f 75 74 3b 0a 09 75 5f | 6c 6f 6e 67 20 2a 70 6f |out;..u_|long *po|
|000028b0| 72 74 5f 70 74 72 3b 0a | 7b 0a 09 69 6e 74 20 73 |rt_ptr;.|{..int s|
|000028c0| 6f 63 6b 65 74 20 3d 20 | 2d 31 3b 0a 09 72 65 67 |ocket = |-1;..reg|
|000028d0| 69 73 74 65 72 20 43 4c | 49 45 4e 54 20 2a 63 6c |ister CL|IENT *cl|
|000028e0| 69 65 6e 74 3b 0a 09 73 | 74 72 75 63 74 20 72 6d |ient;..s|truct rm|
|000028f0| 74 63 61 6c 6c 61 72 67 | 73 20 61 3b 0a 09 73 74 |tcallarg|s a;..st|
|00002900| 72 75 63 74 20 72 6d 74 | 63 61 6c 6c 72 65 73 20 |ruct rmt|callres |
|00002910| 72 3b 0a 09 65 6e 75 6d | 20 63 6c 6e 74 5f 73 74 |r;..enum| clnt_st|
|00002920| 61 74 20 73 74 61 74 3b | 0a 0a 09 61 64 64 72 2d |at stat;|...addr-|
|00002930| 3e 73 69 6e 5f 70 6f 72 | 74 20 3d 20 68 74 6f 6e |>sin_por|t = hton|
|00002940| 73 28 50 4d 41 50 50 4f | 52 54 29 3b 0a 09 63 6c |s(PMAPPO|RT);..cl|
|00002950| 69 65 6e 74 20 3d 20 63 | 6c 6e 74 75 64 70 5f 63 |ient = c|lntudp_c|
|00002960| 72 65 61 74 65 28 61 64 | 64 72 2c 20 50 4d 41 50 |reate(ad|dr, PMAP|
|00002970| 50 52 4f 47 2c 20 50 4d | 41 50 56 45 52 53 2c 20 |PROG, PM|APVERS, |
|00002980| 74 69 6d 65 6f 75 74 2c | 20 26 73 6f 63 6b 65 74 |timeout,| &socket|
|00002990| 29 3b 0a 09 69 66 20 28 | 63 6c 69 65 6e 74 20 21 |);..if (|client !|
|000029a0| 3d 20 28 43 4c 49 45 4e | 54 20 2a 29 4e 55 4c 4c |= (CLIEN|T *)NULL|
|000029b0| 29 20 7b 0a 09 09 61 2e | 70 72 6f 67 20 3d 20 70 |) {...a.|prog = p|
|000029c0| 72 6f 67 3b 0a 09 09 61 | 2e 76 65 72 73 20 3d 20 |rog;...a|.vers = |
|000029d0| 76 65 72 73 3b 0a 09 09 | 61 2e 70 72 6f 63 20 3d |vers;...|a.proc =|
|000029e0| 20 70 72 6f 63 3b 0a 09 | 09 61 2e 61 72 67 73 5f | proc;..|.a.args_|
|000029f0| 70 74 72 20 3d 20 61 72 | 67 73 70 3b 0a 09 09 61 |ptr = ar|gsp;...a|
|00002a00| 2e 78 64 72 5f 61 72 67 | 73 20 3d 20 78 64 72 61 |.xdr_arg|s = xdra|
|00002a10| 72 67 73 3b 0a 09 09 72 | 2e 70 6f 72 74 5f 70 74 |rgs;...r|.port_pt|
|00002a20| 72 20 3d 20 70 6f 72 74 | 5f 70 74 72 3b 0a 09 09 |r = port|_ptr;...|
|00002a30| 72 2e 72 65 73 75 6c 74 | 73 5f 70 74 72 20 3d 20 |r.result|s_ptr = |
|00002a40| 72 65 73 70 3b 0a 09 09 | 72 2e 78 64 72 5f 72 65 |resp;...|r.xdr_re|
|00002a50| 73 75 6c 74 73 20 3d 20 | 78 64 72 72 65 73 3b 0a |sults = |xdrres;.|
|00002a60| 09 09 73 74 61 74 20 3d | 20 43 4c 4e 54 5f 43 41 |..stat =| CLNT_CA|
|00002a70| 4c 4c 28 63 6c 69 65 6e | 74 2c 20 50 4d 41 50 50 |LL(clien|t, PMAPP|
|00002a80| 52 4f 43 5f 43 41 4c 4c | 49 54 2c 20 78 64 72 5f |ROC_CALL|IT, xdr_|
|00002a90| 72 6d 74 63 61 6c 6c 5f | 61 72 67 73 2c 20 26 61 |rmtcall_|args, &a|
|00002aa0| 2c 0a 09 09 20 20 20 20 | 78 64 72 5f 72 6d 74 63 |,... |xdr_rmtc|
|00002ab0| 61 6c 6c 72 65 73 2c 20 | 26 72 2c 20 74 6f 75 74 |allres, |&r, tout|
|00002ac0| 29 3b 0a 09 09 43 4c 4e | 54 5f 44 45 53 54 52 4f |);...CLN|T_DESTRO|
|00002ad0| 59 28 63 6c 69 65 6e 74 | 29 3b 0a 09 7d 20 65 6c |Y(client|);..} el|
|00002ae0| 73 65 20 7b 0a 09 09 73 | 74 61 74 20 3d 20 52 50 |se {...s|tat = RP|
|00002af0| 43 5f 46 41 49 4c 45 44 | 3b 0a 09 7d 0a 09 28 76 |C_FAILED|;..}..(v|
|00002b00| 6f 69 64 29 63 6c 6f 73 | 65 28 73 6f 63 6b 65 74 |oid)clos|e(socket|
|00002b10| 29 3b 0a 09 61 64 64 72 | 2d 3e 73 69 6e 5f 70 6f |);..addr|->sin_po|
|00002b20| 72 74 20 3d 20 30 3b 0a | 09 72 65 74 75 72 6e 20 |rt = 0;.|.return |
|00002b30| 28 73 74 61 74 29 3b 0a | 7d 0a 0a 0a 2f 2a 0a 20 |(stat);.|}.../*. |
|00002b40| 2a 20 58 44 52 20 72 65 | 6d 6f 74 65 20 63 61 6c |* XDR re|mote cal|
|00002b50| 6c 20 61 72 67 75 6d 65 | 6e 74 73 0a 20 2a 20 77 |l argume|nts. * w|
|00002b60| 72 69 74 74 65 6e 20 66 | 6f 72 20 58 44 52 5f 45 |ritten f|or XDR_E|
|00002b70| 4e 43 4f 44 45 20 64 69 | 72 65 63 74 69 6f 6e 20 |NCODE di|rection |
|00002b80| 6f 6e 6c 79 0a 20 2a 2f | 0a 62 6f 6f 6c 5f 74 0a |only. */|.bool_t.|
|00002b90| 78 64 72 5f 72 6d 74 63 | 61 6c 6c 5f 61 72 67 73 |xdr_rmtc|all_args|
|00002ba0| 28 78 64 72 73 2c 20 63 | 61 70 29 0a 09 72 65 67 |(xdrs, c|ap)..reg|
|00002bb0| 69 73 74 65 72 20 58 44 | 52 20 2a 78 64 72 73 3b |ister XD|R *xdrs;|
|00002bc0| 0a 09 72 65 67 69 73 74 | 65 72 20 73 74 72 75 63 |..regist|er struc|
|00002bd0| 74 20 72 6d 74 63 61 6c | 6c 61 72 67 73 20 2a 63 |t rmtcal|largs *c|
|00002be0| 61 70 3b 0a 7b 0a 09 75 | 5f 69 6e 74 20 6c 65 6e |ap;.{..u|_int len|
|00002bf0| 70 6f 73 69 74 69 6f 6e | 2c 20 61 72 67 70 6f 73 |position|, argpos|
|00002c00| 69 74 69 6f 6e 2c 20 70 | 6f 73 69 74 69 6f 6e 3b |ition, p|osition;|
|00002c10| 0a 0a 09 69 66 20 28 78 | 64 72 5f 75 5f 6c 6f 6e |...if (x|dr_u_lon|
|00002c20| 67 28 78 64 72 73 2c 20 | 26 28 63 61 70 2d 3e 70 |g(xdrs, |&(cap->p|
|00002c30| 72 6f 67 29 29 20 26 26 | 0a 09 20 20 20 20 78 64 |rog)) &&|.. xd|
|00002c40| 72 5f 75 5f 6c 6f 6e 67 | 28 78 64 72 73 2c 20 26 |r_u_long|(xdrs, &|
|00002c50| 28 63 61 70 2d 3e 76 65 | 72 73 29 29 20 26 26 0a |(cap->ve|rs)) &&.|
|00002c60| 09 20 20 20 20 78 64 72 | 5f 75 5f 6c 6f 6e 67 28 |. xdr|_u_long(|
|00002c70| 78 64 72 73 2c 20 26 28 | 63 61 70 2d 3e 70 72 6f |xdrs, &(|cap->pro|
|00002c80| 63 29 29 29 20 7b 0a 09 | 09 6c 65 6e 70 6f 73 69 |c))) {..|.lenposi|
|00002c90| 74 69 6f 6e 20 3d 20 58 | 44 52 5f 47 45 54 50 4f |tion = X|DR_GETPO|
|00002ca0| 53 28 78 64 72 73 29 3b | 0a 09 09 69 66 20 28 21 |S(xdrs);|...if (!|
|00002cb0| 20 78 64 72 5f 75 5f 6c | 6f 6e 67 28 78 64 72 73 | xdr_u_l|ong(xdrs|
|00002cc0| 2c 20 26 28 63 61 70 2d | 3e 61 72 67 6c 65 6e 29 |, &(cap-|>arglen)|
|00002cd0| 29 29 0a 09 09 20 20 20 | 20 72 65 74 75 72 6e 20 |))... | return |
|00002ce0| 28 46 41 4c 53 45 29 3b | 0a 09 09 61 72 67 70 6f |(FALSE);|...argpo|
|00002cf0| 73 69 74 69 6f 6e 20 3d | 20 58 44 52 5f 47 45 54 |sition =| XDR_GET|
|00002d00| 50 4f 53 28 78 64 72 73 | 29 3b 0a 09 09 69 66 20 |POS(xdrs|);...if |
|00002d10| 28 21 20 28 2a 28 63 61 | 70 2d 3e 78 64 72 5f 61 |(! (*(ca|p->xdr_a|
|00002d20| 72 67 73 29 29 28 78 64 | 72 73 2c 20 63 61 70 2d |rgs))(xd|rs, cap-|
|00002d30| 3e 61 72 67 73 5f 70 74 | 72 29 29 0a 09 09 20 20 |>args_pt|r))... |
|00002d40| 20 20 72 65 74 75 72 6e | 20 28 46 41 4c 53 45 29 | return| (FALSE)|
|00002d50| 3b 0a 09 09 70 6f 73 69 | 74 69 6f 6e 20 3d 20 58 |;...posi|tion = X|
|00002d60| 44 52 5f 47 45 54 50 4f | 53 28 78 64 72 73 29 3b |DR_GETPO|S(xdrs);|
|00002d70| 0a 09 09 63 61 70 2d 3e | 61 72 67 6c 65 6e 20 3d |...cap->|arglen =|
|00002d80| 20 28 75 5f 6c 6f 6e 67 | 29 70 6f 73 69 74 69 6f | (u_long|)positio|
|00002d90| 6e 20 2d 20 28 75 5f 6c | 6f 6e 67 29 61 72 67 70 |n - (u_l|ong)argp|
|00002da0| 6f 73 69 74 69 6f 6e 3b | 0a 09 09 58 44 52 5f 53 |osition;|...XDR_S|
|00002db0| 45 54 50 4f 53 28 78 64 | 72 73 2c 20 6c 65 6e 70 |ETPOS(xd|rs, lenp|
|00002dc0| 6f 73 69 74 69 6f 6e 29 | 3b 0a 09 09 69 66 20 28 |osition)|;...if (|
|00002dd0| 21 20 78 64 72 5f 75 5f | 6c 6f 6e 67 28 78 64 72 |! xdr_u_|long(xdr|
|00002de0| 73 2c 20 26 28 63 61 70 | 2d 3e 61 72 67 6c 65 6e |s, &(cap|->arglen|
|00002df0| 29 29 29 0a 09 09 20 20 | 20 20 72 65 74 75 72 6e |)))... | return|
|00002e00| 20 28 46 41 4c 53 45 29 | 3b 0a 09 09 58 44 52 5f | (FALSE)|;...XDR_|
|00002e10| 53 45 54 50 4f 53 28 78 | 64 72 73 2c 20 70 6f 73 |SETPOS(x|drs, pos|
|00002e20| 69 74 69 6f 6e 29 3b 0a | 09 09 72 65 74 75 72 6e |ition);.|..return|
|00002e30| 20 28 54 52 55 45 29 3b | 0a 09 7d 0a 09 72 65 74 | (TRUE);|..}..ret|
|00002e40| 75 72 6e 20 28 46 41 4c | 53 45 29 3b 0a 7d 0a 0a |urn (FAL|SE);.}..|
|00002e50| 2f 2a 0a 20 2a 20 58 44 | 52 20 72 65 6d 6f 74 65 |/*. * XD|R remote|
|00002e60| 20 63 61 6c 6c 20 72 65 | 73 75 6c 74 73 0a 20 2a | call re|sults. *|
|00002e70| 20 77 72 69 74 74 65 6e | 20 66 6f 72 20 58 44 52 | written| for XDR|
|00002e80| 5f 44 45 43 4f 44 45 20 | 64 69 72 65 63 74 69 6f |_DECODE |directio|
|00002e90| 6e 20 6f 6e 6c 79 0a 20 | 2a 2f 0a 62 6f 6f 6c 5f |n only. |*/.bool_|
|00002ea0| 74 0a 78 64 72 5f 72 6d | 74 63 61 6c 6c 72 65 73 |t.xdr_rm|tcallres|
|00002eb0| 28 78 64 72 73 2c 20 63 | 72 70 29 0a 09 72 65 67 |(xdrs, c|rp)..reg|
|00002ec0| 69 73 74 65 72 20 58 44 | 52 20 2a 78 64 72 73 3b |ister XD|R *xdrs;|
|00002ed0| 0a 09 72 65 67 69 73 74 | 65 72 20 73 74 72 75 63 |..regist|er struc|
|00002ee0| 74 20 72 6d 74 63 61 6c | 6c 72 65 73 20 2a 63 72 |t rmtcal|lres *cr|
|00002ef0| 70 3b 0a 7b 0a 09 63 61 | 64 64 72 5f 74 20 70 6f |p;.{..ca|ddr_t po|
|00002f00| 72 74 5f 70 74 72 3b 0a | 0a 09 70 6f 72 74 5f 70 |rt_ptr;.|..port_p|
|00002f10| 74 72 20 3d 20 28 63 61 | 64 64 72 5f 74 29 63 72 |tr = (ca|ddr_t)cr|
|00002f20| 70 2d 3e 70 6f 72 74 5f | 70 74 72 3b 0a 09 69 66 |p->port_|ptr;..if|
|00002f30| 20 28 78 64 72 5f 72 65 | 66 65 72 65 6e 63 65 28 | (xdr_re|ference(|
|00002f40| 78 64 72 73 2c 20 26 70 | 6f 72 74 5f 70 74 72 2c |xdrs, &p|ort_ptr,|
|00002f50| 20 73 69 7a 65 6f 66 20 | 28 75 5f 6c 6f 6e 67 29 | sizeof |(u_long)|
|00002f60| 2c 0a 09 20 20 20 20 78 | 64 72 5f 75 5f 6c 6f 6e |,.. x|dr_u_lon|
|00002f70| 67 29 20 26 26 20 78 64 | 72 5f 75 5f 6c 6f 6e 67 |g) && xd|r_u_long|
|00002f80| 28 78 64 72 73 2c 20 26 | 63 72 70 2d 3e 72 65 73 |(xdrs, &|crp->res|
|00002f90| 75 6c 74 73 6c 65 6e 29 | 29 20 7b 0a 09 09 63 72 |ultslen)|) {...cr|
|00002fa0| 70 2d 3e 70 6f 72 74 5f | 70 74 72 20 3d 20 28 75 |p->port_|ptr = (u|
|00002fb0| 5f 6c 6f 6e 67 20 2a 29 | 70 6f 72 74 5f 70 74 72 |_long *)|port_ptr|
|00002fc0| 3b 0a 09 09 72 65 74 75 | 72 6e 20 28 28 2a 28 63 |;...retu|rn ((*(c|
|00002fd0| 72 70 2d 3e 78 64 72 5f | 72 65 73 75 6c 74 73 29 |rp->xdr_|results)|
|00002fe0| 29 28 78 64 72 73 2c 20 | 63 72 70 2d 3e 72 65 73 |)(xdrs, |crp->res|
|00002ff0| 75 6c 74 73 5f 70 74 72 | 29 29 3b 0a 09 7d 0a 09 |ults_ptr|));..}..|
|00003000| 72 65 74 75 72 6e 20 28 | 46 41 4c 53 45 29 3b 0a |return (|FALSE);.|
|00003010| 7d 0a 0a 0a 2f 2a 0a 20 | 2a 20 54 68 65 20 66 6f |}.../*. |* The fo|
|00003020| 6c 6c 6f 77 69 6e 67 20 | 69 73 20 6b 6c 75 64 67 |llowing |is kludg|
|00003030| 65 64 2d 75 70 20 73 75 | 70 70 6f 72 74 20 66 6f |ed-up su|pport fo|
|00003040| 72 20 73 69 6d 70 6c 65 | 20 72 70 63 20 62 72 6f |r simple| rpc bro|
|00003050| 61 64 63 61 73 74 73 2e | 0a 20 2a 20 53 6f 6d 65 |adcasts.|. * Some|
|00003060| 64 61 79 20 61 20 6c 61 | 72 67 65 2c 20 63 6f 6d |day a la|rge, com|
|00003070| 70 6c 69 63 61 74 65 64 | 20 73 79 73 74 65 6d 20 |plicated| system |
|00003080| 77 69 6c 6c 20 72 65 70 | 6c 61 63 65 20 74 68 65 |will rep|lace the|
|00003090| 73 65 20 74 72 69 76 69 | 61 6c 20 0a 20 2a 20 72 |se trivi|al . * r|
|000030a0| 6f 75 74 69 6e 65 73 20 | 77 68 69 63 68 20 6f 6e |outines |which on|
|000030b0| 6c 79 20 73 75 70 70 6f | 72 74 20 75 64 70 2f 69 |ly suppo|rt udp/i|
|000030c0| 70 20 2e 0a 20 2a 2f 0a | 0a 73 74 61 74 69 63 20 |p .. */.|.static |
|000030d0| 69 6e 74 0a 67 65 74 62 | 72 6f 61 64 63 61 73 74 |int.getb|roadcast|
|000030e0| 6e 65 74 73 28 61 64 64 | 72 73 2c 20 73 6f 63 6b |nets(add|rs, sock|
|000030f0| 2c 20 62 75 66 29 0a 09 | 73 74 72 75 63 74 20 69 |, buf)..|struct i|
|00003100| 6e 5f 61 64 64 72 20 2a | 61 64 64 72 73 3b 0a 09 |n_addr *|addrs;..|
|00003110| 69 6e 74 20 73 6f 63 6b | 3b 20 20 2f 2a 20 61 6e |int sock|; /* an|
|00003120| 79 20 76 61 6c 69 64 20 | 73 6f 63 6b 65 74 20 77 |y valid |socket w|
|00003130| 69 6c 6c 20 64 6f 20 2a | 2f 0a 09 63 68 61 72 20 |ill do *|/..char |
|00003140| 2a 62 75 66 3b 20 20 2f | 2a 20 77 68 79 20 61 6c |*buf; /|* why al|
|00003150| 6c 6f 63 78 61 74 65 20 | 6d 6f 72 65 20 77 68 65 |locxate |more whe|
|00003160| 6e 20 77 65 20 63 61 6e | 20 75 73 65 20 65 78 69 |n we can| use exi|
|00003170| 73 74 69 6e 67 2e 2e 2e | 20 2a 2f 0a 7b 0a 09 73 |sting...| */.{..s|
|00003180| 74 72 75 63 74 20 69 66 | 63 6f 6e 66 20 69 66 63 |truct if|conf ifc|
|00003190| 3b 0a 20 20 20 20 20 20 | 20 20 73 74 72 75 63 74 |;. | struct|
|000031a0| 20 69 66 72 65 71 20 69 | 66 72 65 71 2c 20 2a 69 | ifreq i|freq, *i|
|000031b0| 66 72 3b 0a 09 73 74 72 | 75 63 74 20 73 6f 63 6b |fr;..str|uct sock|
|000031c0| 61 64 64 72 5f 69 6e 20 | 2a 73 69 6e 3b 0a 20 20 |addr_in |*sin;. |
|000031d0| 20 20 20 20 20 20 69 6e | 74 20 6e 2c 20 69 3b 0a | in|t n, i;.|
|000031e0| 0a 20 20 20 20 20 20 20 | 20 69 66 63 2e 69 66 63 |. | ifc.ifc|
|000031f0| 5f 6c 65 6e 20 3d 20 55 | 44 50 4d 53 47 53 49 5a |_len = U|DPMSGSIZ|
|00003200| 45 3b 0a 20 20 20 20 20 | 20 20 20 69 66 63 2e 69 |E;. | ifc.i|
|00003210| 66 63 5f 62 75 66 20 3d | 20 62 75 66 3b 0a 20 20 |fc_buf =| buf;. |
|00003220| 20 20 20 20 20 20 69 66 | 20 28 69 6f 63 74 6c 28 | if| (ioctl(|
|00003230| 73 6f 63 6b 2c 20 53 49 | 4f 43 47 49 46 43 4f 4e |sock, SI|OCGIFCON|
|00003240| 46 2c 20 28 63 68 61 72 | 20 2a 29 26 69 66 63 29 |F, (char| *)&ifc)|
|00003250| 20 3c 20 30 29 20 7b 0a | 20 20 20 20 20 20 20 20 | < 0) {.| |
|00003260| 20 20 20 20 20 20 20 20 | 70 65 72 72 6f 72 28 22 | |perror("|
|00003270| 62 72 6f 61 64 63 61 73 | 74 3a 20 69 6f 63 74 6c |broadcas|t: ioctl|
|00003280| 20 28 67 65 74 20 69 6e | 74 65 72 66 61 63 65 20 | (get in|terface |
|00003290| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 29 22 29 |configur|ation)")|
|000032a0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|000032b0| 20 20 72 65 74 75 72 6e | 20 28 30 29 3b 0a 20 20 | return| (0);. |
|000032c0| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 20 20 | }.| |
|000032d0| 69 66 72 20 3d 20 69 66 | 63 2e 69 66 63 5f 72 65 |ifr = if|c.ifc_re|
|000032e0| 71 3b 0a 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 |q;. | for (|
|000032f0| 69 20 3d 20 30 2c 20 6e | 20 3d 20 69 66 63 2e 69 |i = 0, n| = ifc.i|
|00003300| 66 63 5f 6c 65 6e 2f 73 | 69 7a 65 6f 66 20 28 73 |fc_len/s|izeof (s|
|00003310| 74 72 75 63 74 20 69 66 | 72 65 71 29 3b 20 6e 20 |truct if|req); n |
|00003320| 3e 20 30 3b 20 6e 2d 2d | 2c 20 69 66 72 2b 2b 29 |> 0; n--|, ifr++)|
|00003330| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00003340| 20 20 20 69 66 72 65 71 | 20 3d 20 2a 69 66 72 3b | ifreq| = *ifr;|
|00003350| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003360| 20 69 66 20 28 69 6f 63 | 74 6c 28 73 6f 63 6b 2c | if (ioc|tl(sock,|
|00003370| 20 53 49 4f 43 47 49 46 | 46 4c 41 47 53 2c 20 28 | SIOCGIF|FLAGS, (|
|00003380| 63 68 61 72 20 2a 29 26 | 69 66 72 65 71 29 20 3c |char *)&|ifreq) <|
|00003390| 20 30 29 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 | 0) {. | |
|000033a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 65 | | pe|
|000033b0| 72 72 6f 72 28 22 62 72 | 6f 61 64 63 61 73 74 3a |rror("br|oadcast:|
|000033c0| 20 69 6f 63 74 6c 20 28 | 67 65 74 20 69 6e 74 65 | ioctl (|get inte|
|000033d0| 72 66 61 63 65 20 66 6c | 61 67 73 29 22 29 3b 0a |rface fl|ags)");.|
|000033e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033f0| 20 20 20 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 | |continue|
|00003400| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00003410| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00003420| 20 20 20 20 69 66 20 28 | 28 69 66 72 65 71 2e 69 | if (|(ifreq.i|
|00003430| 66 72 5f 66 6c 61 67 73 | 20 26 20 49 46 46 5f 42 |fr_flags| & IFF_B|
|00003440| 52 4f 41 44 43 41 53 54 | 29 20 26 26 0a 09 09 20 |ROADCAST|) &&... |
|00003450| 20 20 20 28 69 66 72 65 | 71 2e 69 66 72 5f 66 6c | (ifre|q.ifr_fl|
|00003460| 61 67 73 20 26 20 49 46 | 46 5f 55 50 29 20 26 26 |ags & IF|F_UP) &&|
|00003470| 0a 09 09 20 20 20 20 69 | 66 72 2d 3e 69 66 72 5f |... i|fr->ifr_|
|00003480| 61 64 64 72 2e 73 61 5f | 66 61 6d 69 6c 79 20 3d |addr.sa_|family =|
|00003490| 3d 20 41 46 5f 49 4e 45 | 54 29 20 7b 0a 09 09 09 |= AF_INE|T) {....|
|000034a0| 73 69 6e 20 3d 20 28 73 | 74 72 75 63 74 20 73 6f |sin = (s|truct so|
|000034b0| 63 6b 61 64 64 72 5f 69 | 6e 20 2a 29 26 69 66 72 |ckaddr_i|n *)&ifr|
|000034c0| 2d 3e 69 66 72 5f 61 64 | 64 72 3b 0a 23 69 66 64 |->ifr_ad|dr;.#ifd|
|000034d0| 65 66 20 53 49 4f 43 47 | 49 46 42 52 44 41 44 44 |ef SIOCG|IFBRDADD|
|000034e0| 52 20 20 20 2f 2a 20 34 | 2e 33 42 53 44 20 2a 2f |R /* 4|.3BSD */|
|000034f0| 0a 09 09 09 69 66 20 28 | 69 6f 63 74 6c 28 73 6f |....if (|ioctl(so|
|00003500| 63 6b 2c 20 53 49 4f 43 | 47 49 46 42 52 44 41 44 |ck, SIOC|GIFBRDAD|
|00003510| 44 52 2c 20 28 63 68 61 | 72 20 2a 29 26 69 66 72 |DR, (cha|r *)&ifr|
|00003520| 65 71 29 20 3c 20 30 29 | 20 7b 0a 09 09 09 09 61 |eq) < 0)| {.....a|
|00003530| 64 64 72 73 5b 69 2b 2b | 5d 20 3d 20 69 6e 65 74 |ddrs[i++|] = inet|
|00003540| 5f 6d 61 6b 65 61 64 64 | 72 28 69 6e 65 74 5f 6e |_makeadd|r(inet_n|
|00003550| 65 74 6f 66 0a 09 09 09 | 20 20 20 20 28 73 69 6e |etof....| (sin|
|00003560| 2d 3e 73 69 6e 5f 61 64 | 64 72 2e 73 5f 61 64 64 |->sin_ad|dr.s_add|
|00003570| 72 29 2c 20 49 4e 41 44 | 44 52 5f 41 4e 59 29 3b |r), INAD|DR_ANY);|
|00003580| 0a 09 09 09 7d 20 65 6c | 73 65 20 7b 0a 09 09 09 |....} el|se {....|
|00003590| 09 61 64 64 72 73 5b 69 | 2b 2b 5d 20 3d 20 28 28 |.addrs[i|++] = ((|
|000035a0| 73 74 72 75 63 74 20 73 | 6f 63 6b 61 64 64 72 5f |struct s|ockaddr_|
|000035b0| 69 6e 2a 29 0a 09 09 09 | 09 20 20 26 69 66 72 65 |in*)....|. &ifre|
|000035c0| 71 2e 69 66 72 5f 61 64 | 64 72 29 2d 3e 73 69 6e |q.ifr_ad|dr)->sin|
|000035d0| 5f 61 64 64 72 3b 0a 09 | 09 09 7d 0a 23 65 6c 73 |_addr;..|..}.#els|
|000035e0| 65 20 2f 2a 20 34 2e 32 | 20 42 53 44 20 2a 2f 0a |e /* 4.2| BSD */.|
|000035f0| 09 09 09 61 64 64 72 73 | 5b 69 2b 2b 5d 20 3d 20 |...addrs|[i++] = |
|00003600| 69 6e 65 74 5f 6d 61 6b | 65 61 64 64 72 28 69 6e |inet_mak|eaddr(in|
|00003610| 65 74 5f 6e 65 74 6f 66 | 0a 09 09 09 20 20 28 73 |et_netof|.... (s|
|00003620| 69 6e 2d 3e 73 69 6e 5f | 61 64 64 72 2e 73 5f 61 |in->sin_|addr.s_a|
|00003630| 64 64 72 29 2c 20 49 4e | 41 44 44 52 5f 41 4e 59 |ddr), IN|ADDR_ANY|
|00003640| 29 3b 0a 23 65 6e 64 69 | 66 0a 09 09 7d 0a 09 7d |);.#endi|f...}..}|
|00003650| 0a 09 72 65 74 75 72 6e | 20 28 69 29 3b 0a 7d 0a |..return| (i);.}.|
|00003660| 0a 74 79 70 65 64 65 66 | 20 62 6f 6f 6c 5f 74 20 |.typedef| bool_t |
|00003670| 28 2a 72 65 73 75 6c 74 | 70 72 6f 63 5f 74 29 28 |(*result|proc_t)(|
|00003680| 29 3b 0a 0a 65 6e 75 6d | 20 63 6c 6e 74 5f 73 74 |);..enum| clnt_st|
|00003690| 61 74 20 0a 63 6c 6e 74 | 5f 62 72 6f 61 64 63 61 |at .clnt|_broadca|
|000036a0| 73 74 28 70 72 6f 67 2c | 20 76 65 72 73 2c 20 70 |st(prog,| vers, p|
|000036b0| 72 6f 63 2c 20 78 61 72 | 67 73 2c 20 61 72 67 73 |roc, xar|gs, args|
|000036c0| 70 2c 20 78 72 65 73 75 | 6c 74 73 2c 20 72 65 73 |p, xresu|lts, res|
|000036d0| 75 6c 74 73 70 2c 20 65 | 61 63 68 72 65 73 75 6c |ultsp, e|achresul|
|000036e0| 74 29 0a 09 75 5f 6c 6f | 6e 67 09 09 70 72 6f 67 |t)..u_lo|ng..prog|
|000036f0| 3b 09 09 2f 2a 20 70 72 | 6f 67 72 61 6d 20 6e 75 |;../* pr|ogram nu|
|00003700| 6d 62 65 72 20 2a 2f 0a | 09 75 5f 6c 6f 6e 67 09 |mber */.|.u_long.|
|00003710| 09 76 65 72 73 3b 09 09 | 2f 2a 20 76 65 72 73 69 |.vers;..|/* versi|
|00003720| 6f 6e 20 6e 75 6d 62 65 | 72 20 2a 2f 0a 09 75 5f |on numbe|r */..u_|
|00003730| 6c 6f 6e 67 09 09 70 72 | 6f 63 3b 09 09 2f 2a 20 |long..pr|oc;../* |
|00003740| 70 72 6f 63 65 64 75 72 | 65 20 6e 75 6d 62 65 72 |procedur|e number|
|00003750| 20 2a 2f 0a 09 78 64 72 | 70 72 6f 63 5f 74 09 78 | */..xdr|proc_t.x|
|00003760| 61 72 67 73 3b 09 09 2f | 2a 20 78 64 72 20 72 6f |args;../|* xdr ro|
|00003770| 75 74 69 6e 65 20 66 6f | 72 20 61 72 67 73 20 2a |utine fo|r args *|
|00003780| 2f 0a 09 63 61 64 64 72 | 5f 74 09 09 61 72 67 73 |/..caddr|_t..args|
|00003790| 70 3b 09 09 2f 2a 20 70 | 6f 69 6e 74 65 72 20 74 |p;../* p|ointer t|
|000037a0| 6f 20 61 72 67 73 20 2a | 2f 0a 09 78 64 72 70 72 |o args *|/..xdrpr|
|000037b0| 6f 63 5f 74 09 78 72 65 | 73 75 6c 74 73 3b 09 2f |oc_t.xre|sults;./|
|000037c0| 2a 20 78 64 72 20 72 6f | 75 74 69 6e 65 20 66 6f |* xdr ro|utine fo|
|000037d0| 72 20 72 65 73 75 6c 74 | 73 20 2a 2f 0a 09 63 61 |r result|s */..ca|
|000037e0| 64 64 72 5f 74 09 09 72 | 65 73 75 6c 74 73 70 3b |ddr_t..r|esultsp;|
|000037f0| 09 2f 2a 20 70 6f 69 6e | 74 65 72 20 74 6f 20 72 |./* poin|ter to r|
|00003800| 65 73 75 6c 74 73 20 2a | 2f 0a 09 72 65 73 75 6c |esults *|/..resul|
|00003810| 74 70 72 6f 63 5f 74 09 | 65 61 63 68 72 65 73 75 |tproc_t.|eachresu|
|00003820| 6c 74 3b 09 2f 2a 20 63 | 61 6c 6c 20 77 69 74 68 |lt;./* c|all with|
|00003830| 20 65 61 63 68 20 72 65 | 73 75 6c 74 20 6f 62 74 | each re|sult obt|
|00003840| 61 69 6e 65 64 20 2a 2f | 0a 7b 0a 09 65 6e 75 6d |ained */|.{..enum|
|00003850| 20 63 6c 6e 74 5f 73 74 | 61 74 20 73 74 61 74 3b | clnt_st|at stat;|
|00003860| 0a 09 41 55 54 48 20 2a | 75 6e 69 78 5f 61 75 74 |..AUTH *|unix_aut|
|00003870| 68 20 3d 20 61 75 74 68 | 75 6e 69 78 5f 63 72 65 |h = auth|unix_cre|
|00003880| 61 74 65 5f 64 65 66 61 | 75 6c 74 28 29 3b 0a 09 |ate_defa|ult();..|
|00003890| 58 44 52 20 78 64 72 5f | 73 74 72 65 61 6d 3b 0a |XDR xdr_|stream;.|
|000038a0| 09 72 65 67 69 73 74 65 | 72 20 58 44 52 20 2a 78 |.registe|r XDR *x|
|000038b0| 64 72 73 20 3d 20 26 78 | 64 72 5f 73 74 72 65 61 |drs = &x|dr_strea|
|000038c0| 6d 3b 0a 09 69 6e 74 20 | 6f 75 74 6c 65 6e 2c 20 |m;..int |outlen, |
|000038d0| 69 6e 6c 65 6e 2c 20 66 | 72 6f 6d 6c 65 6e 2c 20 |inlen, f|romlen, |
|000038e0| 6e 65 74 73 3b 0a 09 72 | 65 67 69 73 74 65 72 20 |nets;..r|egister |
|000038f0| 69 6e 74 20 73 6f 63 6b | 3b 0a 23 69 66 64 65 66 |int sock|;.#ifdef|
|00003900| 20 46 44 5f 53 45 54 53 | 49 5a 45 0a 09 66 64 5f | FD_SETS|IZE..fd_|
|00003910| 73 65 74 20 6d 61 73 6b | 3b 0a 09 66 64 5f 73 65 |set mask|;..fd_se|
|00003920| 74 20 72 65 61 64 66 64 | 73 3b 0a 23 65 6c 73 65 |t readfd|s;.#else|
|00003930| 0a 09 69 6e 74 20 72 65 | 61 64 66 64 73 3b 0a 09 |..int re|adfds;..|
|00003940| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 6d 61 73 |register| int mas|
|00003950| 6b 3b 0a 23 65 6e 64 69 | 66 20 2f 2a 20 64 65 66 |k;.#endi|f /* def|
|00003960| 20 46 44 5f 53 45 54 53 | 49 5a 45 20 2a 2f 0a 09 | FD_SETS|IZE */..|
|00003970| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 69 3b 0a |register| int i;.|
|00003980| 09 62 6f 6f 6c 5f 74 20 | 64 6f 6e 65 20 3d 20 46 |.bool_t |done = F|
|00003990| 41 4c 53 45 3b 0a 09 72 | 65 67 69 73 74 65 72 20 |ALSE;..r|egister |
|000039a0| 75 5f 6c 6f 6e 67 20 78 | 69 64 3b 0a 09 75 5f 6c |u_long x|id;..u_l|
|000039b0| 6f 6e 67 20 70 6f 72 74 | 3b 0a 09 73 74 72 75 63 |ong port|;..struc|
|000039c0| 74 20 69 6e 5f 61 64 64 | 72 20 61 64 64 72 73 5b |t in_add|r addrs[|
|000039d0| 32 30 5d 3b 0a 09 73 74 | 72 75 63 74 20 73 6f 63 |20];..st|ruct soc|
|000039e0| 6b 61 64 64 72 5f 69 6e | 20 62 61 64 64 72 2c 20 |kaddr_in| baddr, |
|000039f0| 72 61 64 64 72 3b 20 2f | 2a 20 62 72 6f 61 64 63 |raddr; /|* broadc|
|00003a00| 61 73 74 20 61 6e 64 20 | 72 65 73 70 6f 6e 73 65 |ast and |response|
|00003a10| 20 61 64 64 72 65 73 73 | 65 73 20 2a 2f 0a 09 73 | address|es */..s|
|00003a20| 74 72 75 63 74 20 72 6d | 74 63 61 6c 6c 61 72 67 |truct rm|tcallarg|
|00003a30| 73 20 61 3b 0a 09 73 74 | 72 75 63 74 20 72 6d 74 |s a;..st|ruct rmt|
|00003a40| 63 61 6c 6c 72 65 73 20 | 72 3b 0a 09 73 74 72 75 |callres |r;..stru|
|00003a50| 63 74 20 72 70 63 5f 6d | 73 67 20 6d 73 67 3b 0a |ct rpc_m|sg msg;.|
|00003a60| 09 73 74 72 75 63 74 20 | 74 69 6d 65 76 61 6c 20 |.struct |timeval |
|00003a70| 74 3b 20 0a 09 63 68 61 | 72 20 6f 75 74 62 75 66 |t; ..cha|r outbuf|
|00003a80| 5b 4d 41 58 5f 42 52 4f | 41 44 43 41 53 54 5f 53 |[MAX_BRO|ADCAST_S|
|00003a90| 49 5a 45 5d 2c 20 69 6e | 62 75 66 5b 55 44 50 4d |IZE], in|buf[UDPM|
|00003aa0| 53 47 53 49 5a 45 5d 3b | 0a 0a 09 2f 2a 0a 09 20 |SGSIZE];|.../*.. |
|00003ab0| 2a 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |* initia|lization|
|00003ac0| 3a 20 63 72 65 61 74 65 | 20 61 20 73 6f 63 6b 65 |: create| a socke|
|00003ad0| 74 2c 20 61 20 62 72 6f | 61 64 63 61 73 74 20 61 |t, a bro|adcast a|
|00003ae0| 64 64 72 65 73 73 2c 20 | 61 6e 64 0a 09 20 2a 20 |ddress, |and.. * |
|00003af0| 70 72 65 73 65 72 69 61 | 6c 69 7a 65 20 74 68 65 |preseria|lize the|
|00003b00| 20 61 72 67 75 6d 65 6e | 74 73 20 69 6e 74 6f 20 | argumen|ts into |
|00003b10| 61 20 73 65 6e 64 20 62 | 75 66 66 65 72 2e 0a 09 |a send b|uffer...|
|00003b20| 20 2a 2f 0a 09 69 66 20 | 28 28 73 6f 63 6b 20 3d | */..if |((sock =|
|00003b30| 20 73 6f 63 6b 65 74 28 | 41 46 5f 49 4e 45 54 2c | socket(|AF_INET,|
|00003b40| 20 53 4f 43 4b 5f 44 47 | 52 41 4d 2c 20 49 50 50 | SOCK_DG|RAM, IPP|
|00003b50| 52 4f 54 4f 5f 55 44 50 | 29 29 20 3c 20 30 29 20 |ROTO_UDP|)) < 0) |
|00003b60| 7b 0a 09 09 70 65 72 72 | 6f 72 28 22 43 61 6e 6e |{...perr|or("Cann|
|00003b70| 6f 74 20 63 72 65 61 74 | 65 20 73 6f 63 6b 65 74 |ot creat|e socket|
|00003b80| 20 66 6f 72 20 62 72 6f | 61 64 63 61 73 74 20 72 | for bro|adcast r|
|00003b90| 70 63 22 29 3b 0a 09 09 | 73 74 61 74 20 3d 20 52 |pc");...|stat = R|
|00003ba0| 50 43 5f 43 41 4e 54 53 | 45 4e 44 3b 0a 09 09 67 |PC_CANTS|END;...g|
|00003bb0| 6f 74 6f 20 64 6f 6e 65 | 5f 62 72 6f 61 64 3b 0a |oto done|_broad;.|
|00003bc0| 09 7d 0a 23 69 66 64 65 | 66 20 46 44 5f 53 45 54 |.}.#ifde|f FD_SET|
|00003bd0| 53 49 5a 45 0a 09 46 44 | 5f 5a 45 52 4f 28 26 6d |SIZE..FD|_ZERO(&m|
|00003be0| 61 73 6b 29 3b 0a 09 46 | 44 5f 53 45 54 28 73 6f |ask);..F|D_SET(so|
|00003bf0| 63 6b 2c 20 26 6d 61 73 | 6b 29 3b 0a 23 65 6c 73 |ck, &mas|k);.#els|
|00003c00| 65 0a 09 6d 61 73 6b 20 | 3d 20 28 31 20 3c 3c 20 |e..mask |= (1 << |
|00003c10| 73 6f 63 6b 29 3b 0a 23 | 65 6e 64 69 66 20 2f 2a |sock);.#|endif /*|
|00003c20| 20 64 65 66 20 46 44 5f | 53 45 54 53 49 5a 45 20 | def FD_|SETSIZE |
|00003c30| 2a 2f 0a 09 6e 65 74 73 | 20 3d 20 67 65 74 62 72 |*/..nets| = getbr|
|00003c40| 6f 61 64 63 61 73 74 6e | 65 74 73 28 61 64 64 72 |oadcastn|ets(addr|
|00003c50| 73 2c 20 73 6f 63 6b 2c | 20 69 6e 62 75 66 29 3b |s, sock,| inbuf);|
|00003c60| 0a 09 62 7a 65 72 6f 28 | 28 63 68 61 72 20 2a 29 |..bzero(|(char *)|
|00003c70| 26 62 61 64 64 72 2c 20 | 73 69 7a 65 6f 66 20 28 |&baddr, |sizeof (|
|00003c80| 62 61 64 64 72 29 29 3b | 0a 09 62 61 64 64 72 2e |baddr));|..baddr.|
|00003c90| 73 69 6e 5f 66 61 6d 69 | 6c 79 20 3d 20 41 46 5f |sin_fami|ly = AF_|
|00003ca0| 49 4e 45 54 3b 0a 09 62 | 61 64 64 72 2e 73 69 6e |INET;..b|addr.sin|
|00003cb0| 5f 70 6f 72 74 20 3d 20 | 68 74 6f 6e 73 28 50 4d |_port = |htons(PM|
|00003cc0| 41 50 50 4f 52 54 29 3b | 0a 09 62 61 64 64 72 2e |APPORT);|..baddr.|
|00003cd0| 73 69 6e 5f 61 64 64 72 | 2e 73 5f 61 64 64 72 20 |sin_addr|.s_addr |
|00003ce0| 3d 20 68 74 6f 6e 6c 28 | 49 4e 41 44 44 52 5f 41 |= htonl(|INADDR_A|
|00003cf0| 4e 59 29 3b 0a 2f 2a 09 | 62 61 64 64 72 2e 73 69 |NY);./*.|baddr.si|
|00003d00| 6e 5f 61 64 64 72 2e 53 | 5f 75 6e 2e 53 5f 61 64 |n_addr.S|_un.S_ad|
|00003d10| 64 72 20 3d 20 68 74 6f | 6e 6c 28 49 4e 41 44 44 |dr = hto|nl(INADD|
|00003d20| 52 5f 41 4e 59 29 3b 20 | 2a 2f 0a 09 28 76 6f 69 |R_ANY); |*/..(voi|
|00003d30| 64 29 67 65 74 74 69 6d | 65 6f 66 64 61 79 28 26 |d)gettim|eofday(&|
|00003d40| 74 2c 20 28 73 74 72 75 | 63 74 20 74 69 6d 65 7a |t, (stru|ct timez|
|00003d50| 6f 6e 65 20 2a 29 30 29 | 3b 0a 09 6d 73 67 2e 72 |one *)0)|;..msg.r|
|00003d60| 6d 5f 78 69 64 20 3d 20 | 78 69 64 20 3d 20 67 65 |m_xid = |xid = ge|
|00003d70| 74 70 69 64 28 29 20 5e | 20 74 2e 74 76 5f 73 65 |tpid() ^| t.tv_se|
|00003d80| 63 20 5e 20 74 2e 74 76 | 5f 75 73 65 63 3b 0a 09 |c ^ t.tv|_usec;..|
|00003d90| 74 2e 74 76 5f 75 73 65 | 63 20 3d 20 30 3b 0a 09 |t.tv_use|c = 0;..|
|00003da0| 6d 73 67 2e 72 6d 5f 64 | 69 72 65 63 74 69 6f 6e |msg.rm_d|irection|
|00003db0| 20 3d 20 43 41 4c 4c 3b | 0a 09 6d 73 67 2e 72 6d | = CALL;|..msg.rm|
|00003dc0| 5f 63 61 6c 6c 2e 63 62 | 5f 72 70 63 76 65 72 73 |_call.cb|_rpcvers|
|00003dd0| 20 3d 20 52 50 43 5f 4d | 53 47 5f 56 45 52 53 49 | = RPC_M|SG_VERSI|
|00003de0| 4f 4e 3b 0a 09 6d 73 67 | 2e 72 6d 5f 63 61 6c 6c |ON;..msg|.rm_call|
|00003df0| 2e 63 62 5f 70 72 6f 67 | 20 3d 20 50 4d 41 50 50 |.cb_prog| = PMAPP|
|00003e00| 52 4f 47 3b 0a 09 6d 73 | 67 2e 72 6d 5f 63 61 6c |ROG;..ms|g.rm_cal|
|00003e10| 6c 2e 63 62 5f 76 65 72 | 73 20 3d 20 50 4d 41 50 |l.cb_ver|s = PMAP|
|00003e20| 56 45 52 53 3b 0a 09 6d | 73 67 2e 72 6d 5f 63 61 |VERS;..m|sg.rm_ca|
|00003e30| 6c 6c 2e 63 62 5f 70 72 | 6f 63 20 3d 20 50 4d 41 |ll.cb_pr|oc = PMA|
|00003e40| 50 50 52 4f 43 5f 43 41 | 4c 4c 49 54 3b 0a 09 6d |PPROC_CA|LLIT;..m|
|00003e50| 73 67 2e 72 6d 5f 63 61 | 6c 6c 2e 63 62 5f 63 72 |sg.rm_ca|ll.cb_cr|
|00003e60| 65 64 20 3d 20 75 6e 69 | 78 5f 61 75 74 68 2d 3e |ed = uni|x_auth->|
|00003e70| 61 68 5f 63 72 65 64 3b | 0a 09 6d 73 67 2e 72 6d |ah_cred;|..msg.rm|
|00003e80| 5f 63 61 6c 6c 2e 63 62 | 5f 76 65 72 66 20 3d 20 |_call.cb|_verf = |
|00003e90| 75 6e 69 78 5f 61 75 74 | 68 2d 3e 61 68 5f 76 65 |unix_aut|h->ah_ve|
|00003ea0| 72 66 3b 0a 09 61 2e 70 | 72 6f 67 20 3d 20 70 72 |rf;..a.p|rog = pr|
|00003eb0| 6f 67 3b 0a 09 61 2e 76 | 65 72 73 20 3d 20 76 65 |og;..a.v|ers = ve|
|00003ec0| 72 73 3b 0a 09 61 2e 70 | 72 6f 63 20 3d 20 70 72 |rs;..a.p|roc = pr|
|00003ed0| 6f 63 3b 0a 09 61 2e 78 | 64 72 5f 61 72 67 73 20 |oc;..a.x|dr_args |
|00003ee0| 3d 20 78 61 72 67 73 3b | 0a 09 61 2e 61 72 67 73 |= xargs;|..a.args|
|00003ef0| 5f 70 74 72 20 3d 20 61 | 72 67 73 70 3b 0a 09 72 |_ptr = a|rgsp;..r|
|00003f00| 2e 70 6f 72 74 5f 70 74 | 72 20 3d 20 26 70 6f 72 |.port_pt|r = &por|
|00003f10| 74 3b 0a 09 72 2e 78 64 | 72 5f 72 65 73 75 6c 74 |t;..r.xd|r_result|
|00003f20| 73 20 3d 20 78 72 65 73 | 75 6c 74 73 3b 0a 09 72 |s = xres|ults;..r|
|00003f30| 2e 72 65 73 75 6c 74 73 | 5f 70 74 72 20 3d 20 72 |.results|_ptr = r|
|00003f40| 65 73 75 6c 74 73 70 3b | 0a 09 78 64 72 6d 65 6d |esultsp;|..xdrmem|
|00003f50| 5f 63 72 65 61 74 65 28 | 78 64 72 73 2c 20 6f 75 |_create(|xdrs, ou|
|00003f60| 74 62 75 66 2c 20 4d 41 | 58 5f 42 52 4f 41 44 43 |tbuf, MA|X_BROADC|
|00003f70| 41 53 54 5f 53 49 5a 45 | 2c 20 58 44 52 5f 45 4e |AST_SIZE|, XDR_EN|
|00003f80| 43 4f 44 45 29 3b 0a 09 | 69 66 20 28 28 21 20 78 |CODE);..|if ((! x|
|00003f90| 64 72 5f 63 61 6c 6c 6d | 73 67 28 78 64 72 73 2c |dr_callm|sg(xdrs,|
|00003fa0| 20 26 6d 73 67 29 29 20 | 7c 7c 20 28 21 20 78 64 | &msg)) ||| (! xd|
|00003fb0| 72 5f 72 6d 74 63 61 6c | 6c 5f 61 72 67 73 28 78 |r_rmtcal|l_args(x|
|00003fc0| 64 72 73 2c 20 26 61 29 | 29 29 20 7b 0a 09 09 73 |drs, &a)|)) {...s|
|00003fd0| 74 61 74 20 3d 20 52 50 | 43 5f 43 41 4e 54 45 4e |tat = RP|C_CANTEN|
|00003fe0| 43 4f 44 45 41 52 47 53 | 3b 0a 09 09 67 6f 74 6f |CODEARGS|;...goto|
|00003ff0| 20 64 6f 6e 65 5f 62 72 | 6f 61 64 3b 0a 09 7d 0a | done_br|oad;..}.|
|00004000| 09 6f 75 74 6c 65 6e 20 | 3d 20 28 69 6e 74 29 78 |.outlen |= (int)x|
|00004010| 64 72 5f 67 65 74 70 6f | 73 28 78 64 72 73 29 3b |dr_getpo|s(xdrs);|
|00004020| 0a 09 78 64 72 5f 64 65 | 73 74 72 6f 79 28 78 64 |..xdr_de|stroy(xd|
|00004030| 72 73 29 3b 0a 09 2f 2a | 0a 09 20 2a 20 42 61 73 |rs);../*|.. * Bas|
|00004040| 69 63 20 6c 6f 6f 70 3a | 20 62 72 6f 61 64 63 61 |ic loop:| broadca|
|00004050| 73 74 20 61 20 70 61 63 | 6b 65 74 20 61 6e 64 20 |st a pac|ket and |
|00004060| 77 61 69 74 20 61 20 77 | 68 69 6c 65 20 66 6f 72 |wait a w|hile for|
|00004070| 20 72 65 73 70 6f 6e 73 | 65 28 73 29 2e 0a 09 20 | respons|e(s)... |
|00004080| 2a 20 54 68 65 20 72 65 | 73 70 6f 6e 73 65 20 74 |* The re|sponse t|
|00004090| 69 6d 65 6f 75 74 20 67 | 72 6f 77 73 20 6c 61 72 |imeout g|rows lar|
|000040a0| 67 65 72 20 70 65 72 20 | 69 74 65 72 61 74 69 6f |ger per |iteratio|
|000040b0| 6e 2e 0a 09 20 2a 2f 0a | 09 66 6f 72 20 28 74 2e |n... */.|.for (t.|
|000040c0| 74 76 5f 73 65 63 20 3d | 20 34 3b 20 74 2e 74 76 |tv_sec =| 4; t.tv|
|000040d0| 5f 73 65 63 20 3c 3d 20 | 31 34 3b 20 74 2e 74 76 |_sec <= |14; t.tv|
|000040e0| 5f 73 65 63 20 2b 3d 20 | 32 29 20 7b 0a 09 09 66 |_sec += |2) {...f|
|000040f0| 6f 72 20 28 69 20 3d 20 | 30 3b 20 69 20 3c 20 6e |or (i = |0; i < n|
|00004100| 65 74 73 3b 20 69 2b 2b | 29 20 7b 0a 09 09 09 62 |ets; i++|) {....b|
|00004110| 61 64 64 72 2e 73 69 6e | 5f 61 64 64 72 20 3d 20 |addr.sin|_addr = |
|00004120| 61 64 64 72 73 5b 69 5d | 3b 0a 09 09 09 69 66 20 |addrs[i]|;....if |
|00004130| 28 73 65 6e 64 74 6f 28 | 73 6f 63 6b 2c 20 6f 75 |(sendto(|sock, ou|
|00004140| 74 62 75 66 2c 20 6f 75 | 74 6c 65 6e 2c 20 30 2c |tbuf, ou|tlen, 0,|
|00004150| 0a 09 09 09 09 28 73 74 | 72 75 63 74 20 73 6f 63 |.....(st|ruct soc|
|00004160| 6b 61 64 64 72 20 2a 29 | 26 62 61 64 64 72 2c 0a |kaddr *)|&baddr,.|
|00004170| 09 09 09 09 73 69 7a 65 | 6f 66 20 28 73 74 72 75 |....size|of (stru|
|00004180| 63 74 20 73 6f 63 6b 61 | 64 64 72 29 29 20 21 3d |ct socka|ddr)) !=|
|00004190| 20 6f 75 74 6c 65 6e 29 | 20 7b 0a 09 09 09 09 70 | outlen)| {.....p|
|000041a0| 65 72 72 6f 72 28 22 43 | 61 6e 6e 6f 74 20 73 65 |error("C|annot se|
|000041b0| 6e 64 20 62 72 6f 61 64 | 63 61 73 74 20 70 61 63 |nd broad|cast pac|
|000041c0| 6b 65 74 22 29 3b 0a 09 | 09 09 09 73 74 61 74 20 |ket");..|...stat |
|000041d0| 3d 20 52 50 43 5f 43 41 | 4e 54 53 45 4e 44 3b 0a |= RPC_CA|NTSEND;.|
|000041e0| 09 09 09 09 67 6f 74 6f | 20 64 6f 6e 65 5f 62 72 |....goto| done_br|
|000041f0| 6f 61 64 3b 0a 09 09 09 | 7d 0a 09 09 7d 0a 09 09 |oad;....|}...}...|
|00004200| 69 66 20 28 65 61 63 68 | 72 65 73 75 6c 74 20 3d |if (each|result =|
|00004210| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 09 09 09 73 74 61 |= NULL) |{....sta|
|00004220| 74 20 3d 20 52 50 43 5f | 53 55 43 43 45 53 53 3b |t = RPC_|SUCCESS;|
|00004230| 0a 09 09 09 67 6f 74 6f | 20 64 6f 6e 65 5f 62 72 |....goto| done_br|
|00004240| 6f 61 64 3b 0a 09 09 7d | 0a 09 72 65 63 76 5f 61 |oad;...}|..recv_a|
|00004250| 67 61 69 6e 3a 0a 09 09 | 6d 73 67 2e 61 63 70 74 |gain:...|msg.acpt|
|00004260| 65 64 5f 72 70 6c 79 2e | 61 72 5f 76 65 72 66 20 |ed_rply.|ar_verf |
|00004270| 3d 20 5f 6e 75 6c 6c 5f | 61 75 74 68 3b 0a 09 09 |= _null_|auth;...|
|00004280| 6d 73 67 2e 61 63 70 74 | 65 64 5f 72 70 6c 79 2e |msg.acpt|ed_rply.|
|00004290| 61 72 5f 72 65 73 75 6c | 74 73 2e 77 68 65 72 65 |ar_resul|ts.where|
|000042a0| 20 3d 20 28 63 61 64 64 | 72 5f 74 29 26 72 3b 0a | = (cadd|r_t)&r;.|
|000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042c0| 6d 73 67 2e 61 63 70 74 | 65 64 5f 72 70 6c 79 2e |msg.acpt|ed_rply.|
|000042d0| 61 72 5f 72 65 73 75 6c | 74 73 2e 70 72 6f 63 20 |ar_resul|ts.proc |
|000042e0| 3d 20 78 64 72 5f 72 6d | 74 63 61 6c 6c 72 65 73 |= xdr_rm|tcallres|
|000042f0| 3b 0a 09 09 72 65 61 64 | 66 64 73 20 3d 20 6d 61 |;...read|fds = ma|
|00004300| 73 6b 3b 0a 09 09 73 77 | 69 74 63 68 20 28 73 65 |sk;...sw|itch (se|
|00004310| 6c 65 63 74 28 5f 72 70 | 63 5f 64 74 61 62 6c 65 |lect(_rp|c_dtable|
|00004320| 73 69 7a 65 28 29 2c 20 | 26 72 65 61 64 66 64 73 |size(), |&readfds|
|00004330| 2c 20 28 69 6e 74 20 2a | 29 4e 55 4c 4c 2c 20 0a |, (int *|)NULL, .|
|00004340| 09 09 09 20 20 20 20 20 | 20 20 28 69 6e 74 20 2a |... | (int *|
|00004350| 29 4e 55 4c 4c 2c 20 26 | 74 29 29 20 7b 0a 0a 09 |)NULL, &|t)) {...|
|00004360| 09 63 61 73 65 20 30 3a | 20 20 2f 2a 20 74 69 6d |.case 0:| /* tim|
|00004370| 65 64 20 6f 75 74 20 2a | 2f 0a 09 09 09 73 74 61 |ed out *|/....sta|
|00004380| 74 20 3d 20 52 50 43 5f | 54 49 4d 45 44 4f 55 54 |t = RPC_|TIMEDOUT|
|00004390| 3b 0a 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0a 0a |;....con|tinue;..|
|000043a0| 09 09 63 61 73 65 20 2d | 31 3a 20 20 2f 2a 20 73 |..case -|1: /* s|
|000043b0| 6f 6d 65 20 6b 69 6e 64 | 20 6f 66 20 65 72 72 6f |ome kind| of erro|
|000043c0| 72 20 2a 2f 0a 09 09 09 | 69 66 20 28 65 72 72 6e |r */....|if (errn|
|000043d0| 6f 20 3d 3d 20 45 49 4e | 54 52 29 0a 09 09 09 09 |o == EIN|TR).....|
|000043e0| 67 6f 74 6f 20 72 65 63 | 76 5f 61 67 61 69 6e 3b |goto rec|v_again;|
|000043f0| 0a 09 09 09 70 65 72 72 | 6f 72 28 22 42 72 6f 61 |....perr|or("Broa|
|00004400| 64 63 61 73 74 20 73 65 | 6c 65 63 74 20 70 72 6f |dcast se|lect pro|
|00004410| 62 6c 65 6d 22 29 3b 0a | 09 09 09 73 74 61 74 20 |blem");.|...stat |
|00004420| 3d 20 52 50 43 5f 43 41 | 4e 54 52 45 43 56 3b 0a |= RPC_CA|NTRECV;.|
|00004430| 09 09 09 67 6f 74 6f 20 | 64 6f 6e 65 5f 62 72 6f |...goto |done_bro|
|00004440| 61 64 3b 0a 0a 09 09 7d | 20 20 2f 2a 20 65 6e 64 |ad;....}| /* end|
|00004450| 20 6f 66 20 73 65 6c 65 | 63 74 20 72 65 73 75 6c | of sele|ct resul|
|00004460| 74 73 20 73 77 69 74 63 | 68 20 2a 2f 0a 09 74 72 |ts switc|h */..tr|
|00004470| 79 5f 61 67 61 69 6e 3a | 0a 09 09 66 72 6f 6d 6c |y_again:|...froml|
|00004480| 65 6e 20 3d 20 73 69 7a | 65 6f 66 28 73 74 72 75 |en = siz|eof(stru|
|00004490| 63 74 20 73 6f 63 6b 61 | 64 64 72 29 3b 0a 09 09 |ct socka|ddr);...|
|000044a0| 69 6e 6c 65 6e 20 3d 20 | 72 65 63 76 66 72 6f 6d |inlen = |recvfrom|
|000044b0| 28 73 6f 63 6b 2c 20 69 | 6e 62 75 66 2c 20 55 44 |(sock, i|nbuf, UD|
|000044c0| 50 4d 53 47 53 49 5a 45 | 2c 20 30 2c 0a 09 09 09 |PMSGSIZE|, 0,....|
|000044d0| 28 73 74 72 75 63 74 20 | 73 6f 63 6b 61 64 64 72 |(struct |sockaddr|
|000044e0| 20 2a 29 26 72 61 64 64 | 72 2c 20 26 66 72 6f 6d | *)&radd|r, &from|
|000044f0| 6c 65 6e 29 3b 0a 09 09 | 69 66 20 28 69 6e 6c 65 |len);...|if (inle|
|00004500| 6e 20 3c 20 30 29 20 7b | 0a 09 09 09 69 66 20 28 |n < 0) {|....if (|
|00004510| 65 72 72 6e 6f 20 3d 3d | 20 45 49 4e 54 52 29 0a |errno ==| EINTR).|
|00004520| 09 09 09 09 67 6f 74 6f | 20 74 72 79 5f 61 67 61 |....goto| try_aga|
|00004530| 69 6e 3b 0a 09 09 09 70 | 65 72 72 6f 72 28 22 43 |in;....p|error("C|
|00004540| 61 6e 6e 6f 74 20 72 65 | 63 65 69 76 65 20 72 65 |annot re|ceive re|
|00004550| 70 6c 79 20 74 6f 20 62 | 72 6f 61 64 63 61 73 74 |ply to b|roadcast|
|00004560| 22 29 3b 0a 09 09 09 73 | 74 61 74 20 3d 20 52 50 |");....s|tat = RP|
|00004570| 43 5f 43 41 4e 54 52 45 | 43 56 3b 0a 09 09 09 67 |C_CANTRE|CV;....g|
|00004580| 6f 74 6f 20 64 6f 6e 65 | 5f 62 72 6f 61 64 3b 0a |oto done|_broad;.|
|00004590| 09 09 7d 0a 09 09 69 66 | 20 28 69 6e 6c 65 6e 20 |..}...if| (inlen |
|000045a0| 3c 20 73 69 7a 65 6f 66 | 28 75 5f 6c 6f 6e 67 29 |< sizeof|(u_long)|
|000045b0| 29 0a 09 09 09 67 6f 74 | 6f 20 72 65 63 76 5f 61 |)....got|o recv_a|
|000045c0| 67 61 69 6e 3b 0a 09 09 | 2f 2a 0a 09 09 20 2a 20 |gain;...|/*... * |
|000045d0| 73 65 65 20 69 66 20 72 | 65 70 6c 79 20 74 72 61 |see if r|eply tra|
|000045e0| 6e 73 61 63 74 69 6f 6e | 20 69 64 20 6d 61 74 63 |nsaction| id matc|
|000045f0| 68 65 73 20 73 65 6e 74 | 20 69 64 2e 0a 09 09 20 |hes sent| id.... |
|00004600| 2a 20 49 66 20 73 6f 2c | 20 64 65 63 6f 64 65 20 |* If so,| decode |
|00004610| 74 68 65 20 72 65 73 75 | 6c 74 73 2e 0a 09 09 20 |the resu|lts.... |
|00004620| 2a 2f 0a 09 09 78 64 72 | 6d 65 6d 5f 63 72 65 61 |*/...xdr|mem_crea|
|00004630| 74 65 28 78 64 72 73 2c | 20 69 6e 62 75 66 2c 20 |te(xdrs,| inbuf, |
|00004640| 28 75 5f 69 6e 74 29 69 | 6e 6c 65 6e 2c 20 58 44 |(u_int)i|nlen, XD|
|00004650| 52 5f 44 45 43 4f 44 45 | 29 3b 0a 09 09 69 66 20 |R_DECODE|);...if |
|00004660| 28 78 64 72 5f 72 65 70 | 6c 79 6d 73 67 28 78 64 |(xdr_rep|lymsg(xd|
|00004670| 72 73 2c 20 26 6d 73 67 | 29 29 20 7b 0a 09 09 09 |rs, &msg|)) {....|
|00004680| 69 66 20 28 28 6d 73 67 | 2e 72 6d 5f 78 69 64 20 |if ((msg|.rm_xid |
|00004690| 3d 3d 20 78 69 64 29 20 | 26 26 0a 09 09 09 09 28 |== xid) |&&.....(|
|000046a0| 6d 73 67 2e 72 6d 5f 72 | 65 70 6c 79 2e 72 70 5f |msg.rm_r|eply.rp_|
|000046b0| 73 74 61 74 20 3d 3d 20 | 4d 53 47 5f 41 43 43 45 |stat == |MSG_ACCE|
|000046c0| 50 54 45 44 29 20 26 26 | 0a 09 09 09 09 28 6d 73 |PTED) &&|.....(ms|
|000046d0| 67 2e 61 63 70 74 65 64 | 5f 72 70 6c 79 2e 61 72 |g.acpted|_rply.ar|
|000046e0| 5f 73 74 61 74 20 3d 3d | 20 53 55 43 43 45 53 53 |_stat ==| SUCCESS|
|000046f0| 29 29 20 7b 0a 09 09 09 | 09 72 61 64 64 72 2e 73 |)) {....|.raddr.s|
|00004700| 69 6e 5f 70 6f 72 74 20 | 3d 20 68 74 6f 6e 73 28 |in_port |= htons(|
|00004710| 28 75 5f 73 68 6f 72 74 | 29 70 6f 72 74 29 3b 0a |(u_short|)port);.|
|00004720| 09 09 09 09 64 6f 6e 65 | 20 3d 20 28 2a 65 61 63 |....done| = (*eac|
|00004730| 68 72 65 73 75 6c 74 29 | 28 72 65 73 75 6c 74 73 |hresult)|(results|
|00004740| 70 2c 20 26 72 61 64 64 | 72 29 3b 0a 09 09 09 7d |p, &radd|r);....}|
|00004750| 0a 09 09 09 2f 2a 20 6f | 74 68 65 72 77 69 73 65 |..../* o|therwise|
|00004760| 2c 20 77 65 20 6a 75 73 | 74 20 69 67 6e 6f 72 65 |, we jus|t ignore|
|00004770| 20 74 68 65 20 65 72 72 | 6f 72 73 20 2e 2e 2e 20 | the err|ors ... |
|00004780| 2a 2f 0a 09 09 7d 20 65 | 6c 73 65 20 7b 0a 23 69 |*/...} e|lse {.#i|
|00004790| 66 64 65 66 20 6e 6f 74 | 64 65 66 0a 09 09 09 2f |fdef not|def..../|
|000047a0| 2a 20 73 6f 6d 65 20 6b | 69 6e 64 20 6f 66 20 64 |* some k|ind of d|
|000047b0| 65 73 65 72 69 61 6c 69 | 7a 61 74 69 6f 6e 20 70 |eseriali|zation p|
|000047c0| 72 6f 62 6c 65 6d 20 2e | 2e 2e 20 2a 2f 0a 09 09 |roblem .|.. */...|
|000047d0| 09 69 66 20 28 6d 73 67 | 2e 72 6d 5f 78 69 64 20 |.if (msg|.rm_xid |
|000047e0| 3d 3d 20 78 69 64 29 0a | 09 09 09 09 66 70 72 69 |== xid).|....fpri|
|000047f0| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 42 72 6f |ntf(stde|rr, "Bro|
|00004800| 61 64 63 61 73 74 20 64 | 65 73 65 72 69 61 6c 69 |adcast d|eseriali|
|00004810| 7a 61 74 69 6f 6e 20 70 | 72 6f 62 6c 65 6d 22 29 |zation p|roblem")|
|00004820| 3b 0a 09 09 09 2f 2a 20 | 6f 74 68 65 72 77 69 73 |;..../* |otherwis|
|00004830| 65 2c 20 6a 75 73 74 20 | 72 61 6e 64 6f 6d 20 67 |e, just |random g|
|00004840| 61 72 62 61 67 65 20 2a | 2f 0a 23 65 6e 64 69 66 |arbage *|/.#endif|
|00004850| 0a 09 09 7d 0a 09 09 78 | 64 72 73 2d 3e 78 5f 6f |...}...x|drs->x_o|
|00004860| 70 20 3d 20 58 44 52 5f | 46 52 45 45 3b 0a 09 09 |p = XDR_|FREE;...|
|00004870| 6d 73 67 2e 61 63 70 74 | 65 64 5f 72 70 6c 79 2e |msg.acpt|ed_rply.|
|00004880| 61 72 5f 72 65 73 75 6c | 74 73 2e 70 72 6f 63 20 |ar_resul|ts.proc |
|00004890| 3d 20 78 64 72 5f 76 6f | 69 64 3b 0a 09 09 28 76 |= xdr_vo|id;...(v|
|000048a0| 6f 69 64 29 78 64 72 5f | 72 65 70 6c 79 6d 73 67 |oid)xdr_|replymsg|
|000048b0| 28 78 64 72 73 2c 20 26 | 6d 73 67 29 3b 0a 09 09 |(xdrs, &|msg);...|
|000048c0| 28 76 6f 69 64 29 28 2a | 78 72 65 73 75 6c 74 73 |(void)(*|xresults|
|000048d0| 29 28 78 64 72 73 2c 20 | 72 65 73 75 6c 74 73 70 |)(xdrs, |resultsp|
|000048e0| 29 3b 0a 09 09 78 64 72 | 5f 64 65 73 74 72 6f 79 |);...xdr|_destroy|
|000048f0| 28 78 64 72 73 29 3b 0a | 09 09 69 66 20 28 64 6f |(xdrs);.|..if (do|
|00004900| 6e 65 29 20 7b 0a 09 09 | 09 73 74 61 74 20 3d 20 |ne) {...|.stat = |
|00004910| 52 50 43 5f 53 55 43 43 | 45 53 53 3b 0a 09 09 09 |RPC_SUCC|ESS;....|
|00004920| 67 6f 74 6f 20 64 6f 6e | 65 5f 62 72 6f 61 64 3b |goto don|e_broad;|
|00004930| 0a 09 09 7d 20 65 6c 73 | 65 20 7b 0a 09 09 09 67 |...} els|e {....g|
|00004940| 6f 74 6f 20 72 65 63 76 | 5f 61 67 61 69 6e 3b 0a |oto recv|_again;.|
|00004950| 09 09 7d 0a 09 7d 0a 64 | 6f 6e 65 5f 62 72 6f 61 |..}..}.d|one_broa|
|00004960| 64 3a 0a 09 28 76 6f 69 | 64 29 63 6c 6f 73 65 28 |d:..(voi|d)close(|
|00004970| 73 6f 63 6b 29 3b 0a 09 | 41 55 54 48 5f 44 45 53 |sock);..|AUTH_DES|
|00004980| 54 52 4f 59 28 75 6e 69 | 78 5f 61 75 74 68 29 3b |TROY(uni|x_auth);|
|00004990| 0a 09 72 65 74 75 72 6e | 20 28 73 74 61 74 29 3b |..return| (stat);|
|000049a0| 0a 7d 0a 0a 46 75 6e 6b | 79 5f 53 74 75 66 66 0a |.}..Funk|y_Stuff.|
|000049b0| 6c 65 6e 3d 60 77 63 20 | 2d 63 20 3c 20 70 6d 61 |len=`wc |-c < pma|
|000049c0| 70 5f 72 6d 74 2e 63 60 | 0a 69 66 20 5b 20 24 6c |p_rmt.c`|.if [ $l|
|000049d0| 65 6e 20 21 3d 20 20 20 | 20 31 30 39 30 30 20 5d |en != | 10900 ]|
|000049e0| 20 3b 20 74 68 65 6e 0a | 20 20 65 63 68 6f 20 65 | ; then.| echo e|
|000049f0| 72 72 6f 72 3a 20 70 6d | 61 70 5f 72 6d 74 2e 63 |rror: pm|ap_rmt.c|
|00004a00| 20 77 61 73 20 24 6c 65 | 6e 20 62 79 74 65 73 20 | was $le|n bytes |
|00004a10| 6c 6f 6e 67 2c 20 73 68 | 6f 75 6c 64 20 68 61 76 |long, sh|ould hav|
|00004a20| 65 20 62 65 65 6e 20 20 | 20 20 31 30 39 30 30 0a |e been | 10900.|
|00004a30| 66 69 0a 65 63 68 6f 20 | 78 20 2d 20 70 6d 61 70 |fi.echo |x - pmap|
|00004a40| 5f 72 6d 74 2e 68 0a 63 | 61 74 20 3e 20 70 6d 61 |_rmt.h.c|at > pma|
|00004a50| 70 5f 72 6d 74 2e 68 20 | 3c 3c 27 46 75 6e 6b 79 |p_rmt.h |<<'Funky|
|00004a60| 5f 53 74 75 66 66 27 0a | 2f 2a 20 40 28 23 29 70 |_Stuff'.|/* @(#)p|
|00004a70| 6d 61 70 5f 72 6d 74 2e | 68 09 31 2e 31 20 38 37 |map_rmt.|h.1.1 87|
|00004a80| 2f 31 31 2f 30 34 20 33 | 2e 39 20 52 50 43 53 52 |/11/04 3|.9 RPCSR|
|00004a90| 43 20 2a 2f 0a 2f 2a 0a | 20 2a 20 53 75 6e 20 52 |C */./*.| * Sun R|
|00004aa0| 50 43 20 69 73 20 61 20 | 70 72 6f 64 75 63 74 20 |PC is a |product |
|00004ab0| 6f 66 20 53 75 6e 20 4d | 69 63 72 6f 73 79 73 74 |of Sun M|icrosyst|
|00004ac0| 65 6d 73 2c 20 49 6e 63 | 2e 20 61 6e 64 20 69 73 |ems, Inc|. and is|
|00004ad0| 20 70 72 6f 76 69 64 65 | 64 20 66 6f 72 0a 20 2a | provide|d for. *|
|00004ae0| 20 75 6e 72 65 73 74 72 | 69 63 74 65 64 20 75 73 | unrestr|icted us|
|00004af0| 65 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 20 |e provid|ed that |
|00004b00| 74 68 69 73 20 6c 65 67 | 65 6e 64 20 69 73 20 69 |this leg|end is i|
|00004b10| 6e 63 6c 75 64 65 64 20 | 6f 6e 20 61 6c 6c 20 74 |ncluded |on all t|
|00004b20| 61 70 65 0a 20 2a 20 6d | 65 64 69 61 20 61 6e 64 |ape. * m|edia and|
|00004b30| 20 61 73 20 61 20 70 61 | 72 74 20 6f 66 20 74 68 | as a pa|rt of th|
|00004b40| 65 20 73 6f 66 74 77 61 | 72 65 20 70 72 6f 67 72 |e softwa|re progr|
|00004b50| 61 6d 20 69 6e 20 77 68 | 6f 6c 65 20 6f 72 20 70 |am in wh|ole or p|
|00004b60| 61 72 74 2e 20 20 55 73 | 65 72 73 0a 20 2a 20 6d |art. Us|ers. * m|
|00004b70| 61 79 20 63 6f 70 79 20 | 6f 72 20 6d 6f 64 69 66 |ay copy |or modif|
|00004b80| 79 20 53 75 6e 20 52 50 | 43 20 77 69 74 68 6f 75 |y Sun RP|C withou|
|00004b90| 74 20 63 68 61 72 67 65 | 2c 20 62 75 74 20 61 72 |t charge|, but ar|
|00004ba0| 65 20 6e 6f 74 20 61 75 | 74 68 6f 72 69 7a 65 64 |e not au|thorized|
|00004bb0| 0a 20 2a 20 74 6f 20 6c | 69 63 65 6e 73 65 20 6f |. * to l|icense o|
|00004bc0| 72 20 64 69 73 74 72 69 | 62 75 74 65 20 69 74 20 |r distri|bute it |
|00004bd0| 74 6f 20 61 6e 79 6f 6e | 65 20 65 6c 73 65 20 65 |to anyon|e else e|
|00004be0| 78 63 65 70 74 20 61 73 | 20 70 61 72 74 20 6f 66 |xcept as| part of|
|00004bf0| 20 61 20 70 72 6f 64 75 | 63 74 20 6f 72 0a 20 2a | a produ|ct or. *|
|00004c00| 20 70 72 6f 67 72 61 6d | 20 64 65 76 65 6c 6f 70 | program| develop|
|00004c10| 65 64 20 62 79 20 74 68 | 65 20 75 73 65 72 2e 0a |ed by th|e user..|
|00004c20| 20 2a 20 0a 20 2a 20 53 | 55 4e 20 52 50 43 20 49 | * . * S|UN RPC I|
|00004c30| 53 20 50 52 4f 56 49 44 | 45 44 20 41 53 20 49 53 |S PROVID|ED AS IS|
|00004c40| 20 57 49 54 48 20 4e 4f | 20 57 41 52 52 41 4e 54 | WITH NO| WARRANT|
|00004c50| 49 45 53 20 4f 46 20 41 | 4e 59 20 4b 49 4e 44 20 |IES OF A|NY KIND |
|00004c60| 49 4e 43 4c 55 44 49 4e | 47 20 54 48 45 0a 20 2a |INCLUDIN|G THE. *|
|00004c70| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 44 | WARRANT|IES OF D|
|00004c80| 45 53 49 47 4e 2c 20 4d | 45 52 43 48 41 4e 54 49 |ESIGN, M|ERCHANTI|
|00004c90| 42 49 4c 49 54 59 20 41 | 4e 44 20 46 49 54 4e 45 |BILITY A|ND FITNE|
|00004ca0| 53 53 20 46 4f 52 20 41 | 20 50 41 52 54 49 43 55 |SS FOR A| PARTICU|
|00004cb0| 4c 41 52 0a 20 2a 20 50 | 55 52 50 4f 53 45 2c 20 |LAR. * P|URPOSE, |
|00004cc0| 4f 52 20 41 52 49 53 49 | 4e 47 20 46 52 4f 4d 20 |OR ARISI|NG FROM |
|00004cd0| 41 20 43 4f 55 52 53 45 | 20 4f 46 20 44 45 41 4c |A COURSE| OF DEAL|
|00004ce0| 49 4e 47 2c 20 55 53 41 | 47 45 20 4f 52 20 54 52 |ING, USA|GE OR TR|
|00004cf0| 41 44 45 20 50 52 41 43 | 54 49 43 45 2e 0a 20 2a |ADE PRAC|TICE.. *|
|00004d00| 20 0a 20 2a 20 53 75 6e | 20 52 50 43 20 69 73 20 | . * Sun| RPC is |
|00004d10| 70 72 6f 76 69 64 65 64 | 20 77 69 74 68 20 6e 6f |provided| with no|
|00004d20| 20 73 75 70 70 6f 72 74 | 20 61 6e 64 20 77 69 74 | support| and wit|
|00004d30| 68 6f 75 74 20 61 6e 79 | 20 6f 62 6c 69 67 61 74 |hout any| obligat|
|00004d40| 69 6f 6e 20 6f 6e 20 74 | 68 65 0a 20 2a 20 70 61 |ion on t|he. * pa|
|00004d50| 72 74 20 6f 66 20 53 75 | 6e 20 4d 69 63 72 6f 73 |rt of Su|n Micros|
|00004d60| 79 73 74 65 6d 73 2c 20 | 49 6e 63 2e 20 74 6f 20 |ystems, |Inc. to |
|00004d70| 61 73 73 69 73 74 20 69 | 6e 20 69 74 73 20 75 73 |assist i|n its us|
|00004d80| 65 2c 20 63 6f 72 72 65 | 63 74 69 6f 6e 2c 0a 20 |e, corre|ction,. |
|00004d90| 2a 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 20 6f |* modifi|cation o|
|00004da0| 72 20 65 6e 68 61 6e 63 | 65 6d 65 6e 74 2e 0a 20 |r enhanc|ement.. |
|00004db0| 2a 20 0a 20 2a 20 53 55 | 4e 20 4d 49 43 52 4f 53 |* . * SU|N MICROS|
|00004dc0| 59 53 54 45 4d 53 2c 20 | 49 4e 43 2e 20 53 48 41 |YSTEMS, |INC. SHA|
|00004dd0| 4c 4c 20 48 41 56 45 20 | 4e 4f 20 4c 49 41 42 49 |LL HAVE |NO LIABI|
|00004de0| 4c 49 54 59 20 57 49 54 | 48 20 52 45 53 50 45 43 |LITY WIT|H RESPEC|
|00004df0| 54 20 54 4f 20 54 48 45 | 0a 20 2a 20 49 4e 46 52 |T TO THE|. * INFR|
|00004e00| 49 4e 47 45 4d 45 4e 54 | 20 4f 46 20 43 4f 50 59 |INGEMENT| OF COPY|
|00004e10| 52 49 47 48 54 53 2c 20 | 54 52 41 44 45 20 53 45 |RIGHTS, |TRADE SE|
|00004e20| 43 52 45 54 53 20 4f 52 | 20 41 4e 59 20 50 41 54 |CRETS OR| ANY PAT|
|00004e30| 45 4e 54 53 20 42 59 20 | 53 55 4e 20 52 50 43 0a |ENTS BY |SUN RPC.|
|00004e40| 20 2a 20 4f 52 20 41 4e | 59 20 50 41 52 54 20 54 | * OR AN|Y PART T|
|00004e50| 48 45 52 45 4f 46 2e 0a | 20 2a 20 0a 20 2a 20 49 |HEREOF..| * . * I|
|00004e60| 6e 20 6e 6f 20 65 76 65 | 6e 74 20 77 69 6c 6c 20 |n no eve|nt will |
|00004e70| 53 75 6e 20 4d 69 63 72 | 6f 73 79 73 74 65 6d 73 |Sun Micr|osystems|
|00004e80| 2c 20 49 6e 63 2e 20 62 | 65 20 6c 69 61 62 6c 65 |, Inc. b|e liable|
|00004e90| 20 66 6f 72 20 61 6e 79 | 20 6c 6f 73 74 20 72 65 | for any| lost re|
|00004ea0| 76 65 6e 75 65 0a 20 2a | 20 6f 72 20 70 72 6f 66 |venue. *| or prof|
|00004eb0| 69 74 73 20 6f 72 20 6f | 74 68 65 72 20 73 70 65 |its or o|ther spe|
|00004ec0| 63 69 61 6c 2c 20 69 6e | 64 69 72 65 63 74 20 61 |cial, in|direct a|
|00004ed0| 6e 64 20 63 6f 6e 73 65 | 71 75 65 6e 74 69 61 6c |nd conse|quential|
|00004ee0| 20 64 61 6d 61 67 65 73 | 2c 20 65 76 65 6e 20 69 | damages|, even i|
|00004ef0| 66 0a 20 2a 20 53 75 6e | 20 68 61 73 20 62 65 65 |f. * Sun| has bee|
|00004f00| 6e 20 61 64 76 69 73 65 | 64 20 6f 66 20 74 68 65 |n advise|d of the|
|00004f10| 20 70 6f 73 73 69 62 69 | 6c 69 74 79 20 6f 66 20 | possibi|lity of |
|00004f20| 73 75 63 68 20 64 61 6d | 61 67 65 73 2e 0a 20 2a |such dam|ages.. *|
|00004f30| 20 0a 20 2a 20 53 75 6e | 20 4d 69 63 72 6f 73 79 | . * Sun| Microsy|
|00004f40| 73 74 65 6d 73 2c 20 49 | 6e 63 2e 0a 20 2a 20 32 |stems, I|nc.. * 2|
|00004f50| 35 35 30 20 47 61 72 63 | 69 61 20 41 76 65 6e 75 |550 Garc|ia Avenu|
|00004f60| 65 0a 20 2a 20 4d 6f 75 | 6e 74 61 69 6e 20 56 69 |e. * Mou|ntain Vi|
|00004f70| 65 77 2c 20 43 61 6c 69 | 66 6f 72 6e 69 61 20 20 |ew, Cali|fornia |
|00004f80| 39 34 30 34 33 0a 20 2a | 2f 0a 2f 2a 09 40 28 23 |94043. *|/./*.@(#|
|00004f90| 29 70 6d 61 70 5f 72 6d | 74 2e 68 20 31 2e 31 20 |)pmap_rm|t.h 1.1 |
|00004fa0| 38 37 2f 30 31 2f 31 33 | 20 53 4d 49 09 2a 2f 0a |87/01/13| SMI.*/.|
|00004fb0| 0a 2f 2a 0a 20 2a 20 53 | 74 72 75 63 74 75 72 65 |./*. * S|tructure|
|00004fc0| 73 20 61 6e 64 20 58 44 | 52 20 72 6f 75 74 69 6e |s and XD|R routin|
|00004fd0| 65 73 20 66 6f 72 20 70 | 61 72 61 6d 65 74 65 72 |es for p|arameter|
|00004fe0| 73 20 74 6f 20 61 6e 64 | 20 72 65 70 6c 69 65 73 |s to and| replies|
|00004ff0| 20 66 72 6f 6d 0a 20 2a | 20 74 68 65 20 70 6f 72 | from. *| the por|
|00005000| 74 6d 61 70 70 65 72 20 | 72 65 6d 6f 74 65 2d 63 |tmapper |remote-c|
|00005010| 61 6c 6c 2d 73 65 72 76 | 69 63 65 2e 0a 20 2a 0a |all-serv|ice.. *.|
|00005020| 20 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 | * Copyr|ight (C)|
|00005030| 20 31 39 38 36 2c 20 53 | 75 6e 20 4d 69 63 72 6f | 1986, S|un Micro|
|00005040| 73 79 73 74 65 6d 73 2c | 20 49 6e 63 2e 0a 20 2a |systems,| Inc.. *|
|00005050| 2f 0a 0a 73 74 72 75 63 | 74 20 72 6d 74 63 61 6c |/..struc|t rmtcal|
|00005060| 6c 61 72 67 73 20 7b 0a | 09 75 5f 6c 6f 6e 67 20 |largs {.|.u_long |
|00005070| 70 72 6f 67 2c 20 76 65 | 72 73 2c 20 70 72 6f 63 |prog, ve|rs, proc|
|00005080| 2c 20 61 72 67 6c 65 6e | 3b 0a 09 63 61 64 64 72 |, arglen|;..caddr|
|00005090| 5f 74 20 61 72 67 73 5f | 70 74 72 3b 0a 09 78 64 |_t args_|ptr;..xd|
|000050a0| 72 70 72 6f 63 5f 74 20 | 78 64 72 5f 61 72 67 73 |rproc_t |xdr_args|
|000050b0| 3b 0a 7d 3b 0a 0a 62 6f | 6f 6c 5f 74 20 78 64 72 |;.};..bo|ol_t xdr|
|000050c0| 5f 72 6d 74 63 61 6c 6c | 5f 61 72 67 73 28 29 3b |_rmtcall|_args();|
|000050d0| 0a 0a 73 74 72 75 63 74 | 20 72 6d 74 63 61 6c 6c |..struct| rmtcall|
|000050e0| 72 65 73 20 7b 0a 09 75 | 5f 6c 6f 6e 67 20 2a 70 |res {..u|_long *p|
|000050f0| 6f 72 74 5f 70 74 72 3b | 0a 09 75 5f 6c 6f 6e 67 |ort_ptr;|..u_long|
|00005100| 20 72 65 73 75 6c 74 73 | 6c 65 6e 3b 0a 09 63 61 | results|len;..ca|
|00005110| 64 64 72 5f 74 20 72 65 | 73 75 6c 74 73 5f 70 74 |ddr_t re|sults_pt|
|00005120| 72 3b 0a 09 78 64 72 70 | 72 6f 63 5f 74 20 78 64 |r;..xdrp|roc_t xd|
|00005130| 72 5f 72 65 73 75 6c 74 | 73 3b 0a 7d 3b 0a 0a 62 |r_result|s;.};..b|
|00005140| 6f 6f 6c 5f 74 20 78 64 | 72 5f 72 6d 74 63 61 6c |ool_t xd|r_rmtcal|
|00005150| 6c 72 65 73 28 29 3b 0a | 46 75 6e 6b 79 5f 53 74 |lres();.|Funky_St|
|00005160| 75 66 66 0a 6c 65 6e 3d | 60 77 63 20 2d 63 20 3c |uff.len=|`wc -c <|
|00005170| 20 70 6d 61 70 5f 72 6d | 74 2e 68 60 0a 69 66 20 | pmap_rm|t.h`.if |
|00005180| 5b 20 24 6c 65 6e 20 21 | 3d 20 20 20 20 20 31 37 |[ $len !|= 17|
|00005190| 37 36 20 5d 20 3b 20 74 | 68 65 6e 0a 20 20 65 63 |76 ] ; t|hen. ec|
|000051a0| 68 6f 20 65 72 72 6f 72 | 3a 20 70 6d 61 70 5f 72 |ho error|: pmap_r|
|000051b0| 6d 74 2e 68 20 77 61 73 | 20 24 6c 65 6e 20 62 79 |mt.h was| $len by|
|000051c0| 74 65 73 20 6c 6f 6e 67 | 2c 20 73 68 6f 75 6c 64 |tes long|, should|
|000051d0| 20 68 61 76 65 20 62 65 | 65 6e 20 20 20 20 20 31 | have be|en 1|
|000051e0| 37 37 36 0a 66 69 0a 65 | 63 68 6f 20 78 20 2d 20 |776.fi.e|cho x - |
|000051f0| 72 70 63 2e 68 0a 63 61 | 74 20 3e 20 72 70 63 2e |rpc.h.ca|t > rpc.|
|00005200| 68 20 3c 3c 27 46 75 6e | 6b 79 5f 53 74 75 66 66 |h <<'Fun|ky_Stuff|
|00005210| 27 0a 2f 2a 20 40 28 23 | 29 72 70 63 2e 68 09 31 |'./* @(#|)rpc.h.1|
|00005220| 2e 32 20 38 37 2f 31 31 | 2f 31 33 20 33 2e 39 20 |.2 87/11|/13 3.9 |
|00005230| 52 50 43 53 52 43 20 2a | 2f 0a 2f 2a 0a 20 2a 20 |RPCSRC *|/./*. * |
|00005240| 53 75 6e 20 52 50 43 20 | 69 73 20 61 20 70 72 6f |Sun RPC |is a pro|
|00005250| 64 75 63 74 20 6f 66 20 | 53 75 6e 20 4d 69 63 72 |duct of |Sun Micr|
|00005260| 6f 73 79 73 74 65 6d 73 | 2c 20 49 6e 63 2e 20 61 |osystems|, Inc. a|
|00005270| 6e 64 20 69 73 20 70 72 | 6f 76 69 64 65 64 20 66 |nd is pr|ovided f|
|00005280| 6f 72 0a 20 2a 20 75 6e | 72 65 73 74 72 69 63 74 |or. * un|restrict|
|00005290| 65 64 20 75 73 65 20 70 | 72 6f 76 69 64 65 64 20 |ed use p|rovided |
|000052a0| 74 68 61 74 20 74 68 69 | 73 20 6c 65 67 65 6e 64 |that thi|s legend|
|000052b0| 20 69 73 20 69 6e 63 6c | 75 64 65 64 20 6f 6e 20 | is incl|uded on |
|000052c0| 61 6c 6c 20 74 61 70 65 | 0a 20 2a 20 6d 65 64 69 |all tape|. * medi|
|000052d0| 61 20 61 6e 64 20 61 73 | 20 61 20 70 61 72 74 20 |a and as| a part |
|000052e0| 6f 66 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |of the s|oftware |
|000052f0| 70 72 6f 67 72 61 6d 20 | 69 6e 20 77 68 6f 6c 65 |program |in whole|
|00005300| 20 6f 72 20 70 61 72 74 | 2e 20 20 55 73 65 72 73 | or part|. Users|
|00005310| 0a 20 2a 20 6d 61 79 20 | 63 6f 70 79 20 6f 72 20 |. * may |copy or |
|00005320| 6d 6f 64 69 66 79 20 53 | 75 6e 20 52 50 43 20 77 |modify S|un RPC w|
|00005330| 69 74 68 6f 75 74 20 63 | 68 61 72 67 65 2c 20 62 |ithout c|harge, b|
|00005340| 75 74 20 61 72 65 20 6e | 6f 74 20 61 75 74 68 6f |ut are n|ot autho|
|00005350| 72 69 7a 65 64 0a 20 2a | 20 74 6f 20 6c 69 63 65 |rized. *| to lice|
|00005360| 6e 73 65 20 6f 72 20 64 | 69 73 74 72 69 62 75 74 |nse or d|istribut|
|00005370| 65 20 69 74 20 74 6f 20 | 61 6e 79 6f 6e 65 20 65 |e it to |anyone e|
|00005380| 6c 73 65 20 65 78 63 65 | 70 74 20 61 73 20 70 61 |lse exce|pt as pa|
|00005390| 72 74 20 6f 66 20 61 20 | 70 72 6f 64 75 63 74 20 |rt of a |product |
|000053a0| 6f 72 0a 20 2a 20 70 72 | 6f 67 72 61 6d 20 64 65 |or. * pr|ogram de|
|000053b0| 76 65 6c 6f 70 65 64 20 | 62 79 20 74 68 65 20 75 |veloped |by the u|
|000053c0| 73 65 72 2e 0a 20 2a 20 | 0a 20 2a 20 53 55 4e 20 |ser.. * |. * SUN |
|000053d0| 52 50 43 20 49 53 20 50 | 52 4f 56 49 44 45 44 20 |RPC IS P|ROVIDED |
|000053e0| 41 53 20 49 53 20 57 49 | 54 48 20 4e 4f 20 57 41 |AS IS WI|TH NO WA|
|000053f0| 52 52 41 4e 54 49 45 53 | 20 4f 46 20 41 4e 59 20 |RRANTIES| OF ANY |
|00005400| 4b 49 4e 44 20 49 4e 43 | 4c 55 44 49 4e 47 20 54 |KIND INC|LUDING T|
|00005410| 48 45 0a 20 2a 20 57 41 | 52 52 41 4e 54 49 45 53 |HE. * WA|RRANTIES|
|00005420| 20 4f 46 20 44 45 53 49 | 47 4e 2c 20 4d 45 52 43 | OF DESI|GN, MERC|
|00005430| 48 41 4e 54 49 42 49 4c | 49 54 59 20 41 4e 44 20 |HANTIBIL|ITY AND |
|00005440| 46 49 54 4e 45 53 53 20 | 46 4f 52 20 41 20 50 41 |FITNESS |FOR A PA|
|00005450| 52 54 49 43 55 4c 41 52 | 0a 20 2a 20 50 55 52 50 |RTICULAR|. * PURP|
|00005460| 4f 53 45 2c 20 4f 52 20 | 41 52 49 53 49 4e 47 20 |OSE, OR |ARISING |
|00005470| 46 52 4f 4d 20 41 20 43 | 4f 55 52 53 45 20 4f 46 |FROM A C|OURSE OF|
|00005480| 20 44 45 41 4c 49 4e 47 | 2c 20 55 53 41 47 45 20 | DEALING|, USAGE |
|00005490| 4f 52 20 54 52 41 44 45 | 20 50 52 41 43 54 49 43 |OR TRADE| PRACTIC|
|000054a0| 45 2e 0a 20 2a 20 0a 20 | 2a 20 53 75 6e 20 52 50 |E.. * . |* Sun RP|
|000054b0| 43 20 69 73 20 70 72 6f | 76 69 64 65 64 20 77 69 |C is pro|vided wi|
|000054c0| 74 68 20 6e 6f 20 73 75 | 70 70 6f 72 74 20 61 6e |th no su|pport an|
|000054d0| 64 20 77 69 74 68 6f 75 | 74 20 61 6e 79 20 6f 62 |d withou|t any ob|
|000054e0| 6c 69 67 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 0a |ligation| on the.|
|000054f0| 20 2a 20 70 61 72 74 20 | 6f 66 20 53 75 6e 20 4d | * part |of Sun M|
|00005500| 69 63 72 6f 73 79 73 74 | 65 6d 73 2c 20 49 6e 63 |icrosyst|ems, Inc|
|00005510| 2e 20 74 6f 20 61 73 73 | 69 73 74 20 69 6e 20 69 |. to ass|ist in i|
|00005520| 74 73 20 75 73 65 2c 20 | 63 6f 72 72 65 63 74 69 |ts use, |correcti|
|00005530| 6f 6e 2c 0a 20 2a 20 6d | 6f 64 69 66 69 63 61 74 |on,. * m|odificat|
|00005540| 69 6f 6e 20 6f 72 20 65 | 6e 68 61 6e 63 65 6d 65 |ion or e|nhanceme|
|00005550| 6e 74 2e 0a 20 2a 0a 20 | 2a 20 53 55 4e 20 4d 49 |nt.. *. |* SUN MI|
|00005560| 43 52 4f 53 59 53 54 45 | 4d 53 2c 20 49 4e 43 2e |CROSYSTE|MS, INC.|
|00005570| 20 53 48 41 4c 4c 20 48 | 41 56 45 20 4e 4f 20 4c | SHALL H|AVE NO L|
|00005580| 49 41 42 49 4c 49 54 59 | 20 57 49 54 48 20 52 45 |IABILITY| WITH RE|
|00005590| 53 50 45 43 54 20 54 4f | 20 54 48 45 0a 20 2a 20 |SPECT TO| THE. * |
|000055a0| 49 4e 46 52 49 4e 47 45 | 4d 45 4e 54 20 4f 46 20 |INFRINGE|MENT OF |
|000055b0| 43 4f 50 59 52 49 47 48 | 54 53 2c 20 54 52 41 44 |COPYRIGH|TS, TRAD|
|000055c0| 45 20 53 45 43 52 45 54 | 53 20 4f 52 20 41 4e 59 |E SECRET|S OR ANY|
|000055d0| 20 50 41 54 45 4e 54 53 | 20 42 59 20 53 55 4e 20 | PATENTS| BY SUN |
|000055e0| 52 50 43 0a 20 2a 20 4f | 52 20 41 4e 59 20 50 41 |RPC. * O|R ANY PA|
|000055f0| 52 54 20 54 48 45 52 45 | 4f 46 2e 0a 20 2a 20 0a |RT THERE|OF.. * .|
|00005600| 20 2a 20 49 6e 20 6e 6f | 20 65 76 65 6e 74 20 77 | * In no| event w|
|00005610| 69 6c 6c 20 53 75 6e 20 | 4d 69 63 72 6f 73 79 73 |ill Sun |Microsys|
|00005620| 74 65 6d 73 2c 20 49 6e | 63 2e 20 62 65 20 6c 69 |tems, In|c. be li|
|00005630| 61 62 6c 65 20 66 6f 72 | 20 61 6e 79 20 6c 6f 73 |able for| any los|
|00005640| 74 20 72 65 76 65 6e 75 | 65 0a 20 2a 20 6f 72 20 |t revenu|e. * or |
|00005650| 70 72 6f 66 69 74 73 20 | 6f 72 20 6f 74 68 65 72 |profits |or other|
|00005660| 20 73 70 65 63 69 61 6c | 2c 20 69 6e 64 69 72 65 | special|, indire|
|00005670| 63 74 20 61 6e 64 20 63 | 6f 6e 73 65 71 75 65 6e |ct and c|onsequen|
|00005680| 74 69 61 6c 20 64 61 6d | 61 67 65 73 2c 20 65 76 |tial dam|ages, ev|
|00005690| 65 6e 20 69 66 0a 20 2a | 20 53 75 6e 20 68 61 73 |en if. *| Sun has|
|000056a0| 20 62 65 65 6e 20 61 64 | 76 69 73 65 64 20 6f 66 | been ad|vised of|
|000056b0| 20 74 68 65 20 70 6f 73 | 73 69 62 69 6c 69 74 79 | the pos|sibility|
|000056c0| 20 6f 66 20 73 75 63 68 | 20 64 61 6d 61 67 65 73 | of such| damages|
|000056d0| 2e 0a 20 2a 20 0a 20 2a | 20 53 75 6e 20 4d 69 63 |.. * . *| Sun Mic|
|000056e0| 72 6f 73 79 73 74 65 6d | 73 2c 20 49 6e 63 2e 0a |rosystem|s, Inc..|
|000056f0| 20 2a 20 32 35 35 30 20 | 47 61 72 63 69 61 20 41 | * 2550 |Garcia A|
|00005700| 76 65 6e 75 65 0a 20 2a | 20 4d 6f 75 6e 74 61 69 |venue. *| Mountai|
|00005710| 6e 20 56 69 65 77 2c 20 | 43 61 6c 69 66 6f 72 6e |n View, |Californ|
|00005720| 69 61 20 20 39 34 30 34 | 33 0a 20 2a 2f 0a 2f 2a |ia 9404|3. */./*|
|00005730| 09 40 28 23 29 72 70 63 | 2e 68 20 31 2e 38 20 38 |.@(#)rpc|.h 1.8 8|
|00005740| 37 2f 30 37 2f 32 34 20 | 53 4d 49 09 2a 2f 0a 0a |7/07/24 |SMI.*/..|
|00005750| 2f 2a 0a 20 2a 20 72 70 | 63 2e 68 2c 20 4a 75 73 |/*. * rp|c.h, Jus|
|00005760| 74 20 69 6e 63 6c 75 64 | 65 73 20 74 68 65 20 62 |t includ|es the b|
|00005770| 69 6c 6c 69 6f 6e 73 20 | 6f 66 20 72 70 63 20 68 |illions |of rpc h|
|00005780| 65 61 64 65 72 20 66 69 | 6c 65 73 20 6e 65 63 65 |eader fi|les nece|
|00005790| 73 73 61 72 79 20 74 6f | 0a 20 2a 20 64 6f 20 72 |ssary to|. * do r|
|000057a0| 65 6d 6f 74 65 20 70 72 | 6f 63 65 64 75 72 65 20 |emote pr|ocedure |
|000057b0| 63 61 6c 6c 69 6e 67 2e | 0a 20 2a 0a 20 2a 20 43 |calling.|. *. * C|
|000057c0| 6f 70 79 72 69 67 68 74 | 20 28 43 29 20 31 39 38 |opyright| (C) 198|
|000057d0| 34 2c 20 53 75 6e 20 4d | 69 63 72 6f 73 79 73 74 |4, Sun M|icrosyst|
|000057e0| 65 6d 73 2c 20 49 6e 63 | 2e 0a 20 2a 2f 0a 23 69 |ems, Inc|.. */.#i|
|000057f0| 66 6e 64 65 66 20 5f 5f | 52 50 43 5f 48 45 41 44 |fndef __|RPC_HEAD|
|00005800| 45 52 5f 5f 0a 23 64 65 | 66 69 6e 65 20 5f 5f 52 |ER__.#de|fine __R|
|00005810| 50 43 5f 48 45 41 44 45 | 52 5f 5f 0a 0a 23 69 6e |PC_HEADE|R__..#in|
|00005820| 63 6c 75 64 65 20 3c 72 | 70 63 2f 74 79 70 65 73 |clude <r|pc/types|
|00005830| 2e 68 3e 09 09 2f 2a 20 | 73 6f 6d 65 20 74 79 70 |.h>../* |some typ|
|00005840| 65 64 65 66 73 20 2a 2f | 0a 23 69 6e 63 6c 75 64 |edefs */|.#includ|
|00005850| 65 20 3c 6e 65 74 69 6e | 65 74 2f 69 6e 2e 68 3e |e <netin|et/in.h>|
|00005860| 0a 0a 2f 2a 20 65 78 74 | 65 72 6e 61 6c 20 64 61 |../* ext|ernal da|
|00005870| 74 61 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |ta repre|sentatio|
|00005880| 6e 20 69 6e 74 65 72 66 | 61 63 65 73 20 2a 2f 0a |n interf|aces */.|
|00005890| 23 69 6e 63 6c 75 64 65 | 20 3c 72 70 63 2f 78 64 |#include| <rpc/xd|
|000058a0| 72 2e 68 3e 09 09 2f 2a | 20 67 65 6e 65 72 69 63 |r.h>../*| generic|
|000058b0| 20 28 64 65 29 73 65 72 | 69 61 6c 69 7a 65 72 20 | (de)ser|ializer |
|000058c0| 2a 2f 0a 0a 2f 2a 20 43 | 6c 69 65 6e 74 20 73 69 |*/../* C|lient si|
|000058d0| 64 65 20 6f 6e 6c 79 20 | 61 75 74 68 65 6e 74 69 |de only |authenti|
|000058e0| 63 61 74 69 6f 6e 20 2a | 2f 0a 23 69 6e 63 6c 75 |cation *|/.#inclu|
|000058f0| 64 65 20 3c 72 70 63 2f | 61 75 74 68 2e 68 3e 09 |de <rpc/|auth.h>.|
|00005900| 09 2f 2a 20 67 65 6e 65 | 72 69 63 20 61 75 74 68 |./* gene|ric auth|
|00005910| 65 6e 74 69 63 61 74 6f | 72 20 28 63 6c 69 65 6e |enticato|r (clien|
|00005920| 74 20 73 69 64 65 29 20 | 2a 2f 0a 0a 2f 2a 20 43 |t side) |*/../* C|
|00005930| 6c 69 65 6e 74 20 73 69 | 64 65 20 28 6d 6f 73 74 |lient si|de (most|
|00005940| 6c 79 29 20 72 65 6d 6f | 74 65 20 70 72 6f 63 65 |ly) remo|te proce|
|00005950| 64 75 72 65 20 63 61 6c | 6c 20 2a 2f 0a 23 69 6e |dure cal|l */.#in|
|00005960| 63 6c 75 64 65 20 3c 72 | 70 63 2f 63 6c 6e 74 2e |clude <r|pc/clnt.|
|00005970| 68 3e 09 09 2f 2a 20 67 | 65 6e 65 72 69 63 20 72 |h>../* g|eneric r|
|00005980| 70 63 20 73 74 75 66 66 | 20 2a 2f 0a 0a 2f 2a 20 |pc stuff| */../* |
|00005990| 73 65 6d 69 2d 70 72 69 | 76 61 74 65 20 70 72 6f |semi-pri|vate pro|
|000059a0| 74 6f 63 6f 6c 20 68 65 | 61 64 65 72 73 20 2a 2f |tocol he|aders */|
|000059b0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 72 70 63 2f 72 |.#includ|e <rpc/r|
|000059c0| 70 63 5f 6d 73 67 2e 68 | 3e 09 2f 2a 20 70 72 6f |pc_msg.h|>./* pro|
|000059d0| 74 6f 63 6f 6c 20 66 6f | 72 20 72 70 63 20 6d 65 |tocol fo|r rpc me|
|000059e0| 73 73 61 67 65 73 20 2a | 2f 0a 23 69 6e 63 6c 75 |ssages *|/.#inclu|
|000059f0| 64 65 20 3c 72 70 63 2f | 61 75 74 68 5f 75 6e 69 |de <rpc/|auth_uni|
|00005a00| 78 2e 68 3e 09 2f 2a 20 | 70 72 6f 74 6f 63 6f 6c |x.h>./* |protocol|
|00005a10| 20 66 6f 72 20 75 6e 69 | 78 20 73 74 79 6c 65 20 | for uni|x style |
|00005a20| 63 72 65 64 20 2a 2f 0a | 0a 2f 2a 20 53 65 72 76 |cred */.|./* Serv|
|00005a30| 65 72 20 73 69 64 65 20 | 6f 6e 6c 79 20 72 65 6d |er side |only rem|
|00005a40| 6f 74 65 20 70 72 6f 63 | 65 64 75 72 65 20 63 61 |ote proc|edure ca|
|00005a50| 6c 6c 65 65 20 2a 2f 0a | 23 69 6e 63 6c 75 64 65 |llee */.|#include|
|00005a60| 20 3c 72 70 63 2f 73 76 | 63 2e 68 3e 09 09 2f 2a | <rpc/sv|c.h>../*|
|00005a70| 20 73 65 72 76 69 63 65 | 20 6d 61 6e 61 67 65 72 | service| manager|
|00005a80| 20 61 6e 64 20 6d 75 6c | 74 69 70 6c 65 78 65 72 | and mul|tiplexer|
|00005a90| 20 2a 2f 0a 23 69 6e 63 | 6c 75 64 65 20 3c 72 70 | */.#inc|lude <rp|
|00005aa0| 63 2f 73 76 63 5f 61 75 | 74 68 2e 68 3e 09 2f 2a |c/svc_au|th.h>./*|
|00005ab0| 20 73 65 72 76 69 63 65 | 20 73 69 64 65 20 61 75 | service| side au|
|00005ac0| 74 68 65 6e 74 69 63 61 | 74 6f 72 20 2a 2f 0a 0a |thentica|tor */..|
|00005ad0| 2f 2a 20 52 45 4d 4f 56 | 45 20 4e 45 58 54 20 49 |/* REMOV|E NEXT I|
|00005ae0| 4e 43 4c 55 44 45 20 49 | 46 20 52 55 4e 4e 49 4e |NCLUDE I|F RUNNIN|
|00005af0| 47 20 4f 4e 20 53 55 4e | 20 4f 53 20 2a 2f 0a 2f |G ON SUN| OS */./|
|00005b00| 2a 20 72 6f 75 74 69 6e | 65 73 20 66 6f 72 20 70 |* routin|es for p|
|00005b10| 61 72 73 69 6e 67 20 2f | 65 74 63 2f 72 70 63 20 |arsing /|etc/rpc |
|00005b20| 2a 2f 0a 23 69 6e 63 6c | 75 64 65 20 3c 72 70 63 |*/.#incl|ude <rpc|
|00005b30| 2f 6e 65 74 64 62 2e 68 | 3e 09 09 2f 2a 20 73 74 |/netdb.h|>../* st|
|00005b40| 72 75 63 74 75 72 65 73 | 20 61 6e 64 20 72 6f 75 |ructures| and rou|
|00005b50| 74 69 6e 65 73 20 74 6f | 20 70 61 72 73 65 20 2f |tines to| parse /|
|00005b60| 65 74 63 2f 72 70 63 20 | 2a 2f 0a 0a 23 65 6e 64 |etc/rpc |*/..#end|
|00005b70| 69 66 20 2f 2a 20 6e 64 | 65 66 20 5f 5f 52 50 43 |if /* nd|ef __RPC|
|00005b80| 5f 48 45 41 44 45 52 5f | 5f 20 2a 2f 0a 46 75 6e |_HEADER_|_ */.Fun|
|00005b90| 6b 79 5f 53 74 75 66 66 | 0a 6c 65 6e 3d 60 77 63 |ky_Stuff|.len=`wc|
|00005ba0| 20 2d 63 20 3c 20 72 70 | 63 2e 68 60 0a 69 66 20 | -c < rp|c.h`.if |
|00005bb0| 5b 20 24 6c 65 6e 20 21 | 3d 20 20 20 20 20 32 34 |[ $len !|= 24|
|00005bc0| 32 37 20 5d 20 3b 20 74 | 68 65 6e 0a 20 20 65 63 |27 ] ; t|hen. ec|
|00005bd0| 68 6f 20 65 72 72 6f 72 | 3a 20 72 70 63 2e 68 20 |ho error|: rpc.h |
|00005be0| 77 61 73 20 24 6c 65 6e | 20 62 79 74 65 73 20 6c |was $len| bytes l|
|00005bf0| 6f 6e 67 2c 20 73 68 6f | 75 6c 64 20 68 61 76 65 |ong, sho|uld have|
|00005c00| 20 62 65 65 6e 20 20 20 | 20 20 32 34 32 37 0a 66 | been | 2427.f|
|00005c10| 69 0a 65 63 68 6f 20 78 | 20 2d 20 72 70 63 5f 63 |i.echo x| - rpc_c|
|00005c20| 61 6c 6c 6d 73 67 2e 63 | 0a 63 61 74 20 3e 20 72 |allmsg.c|.cat > r|
|00005c30| 70 63 5f 63 61 6c 6c 6d | 73 67 2e 63 20 3c 3c 27 |pc_callm|sg.c <<'|
|00005c40| 46 75 6e 6b 79 5f 53 74 | 75 66 66 27 0a 2f 2a 20 |Funky_St|uff'./* |
|00005c50| 40 28 23 29 72 70 63 5f | 63 61 6c 6c 6d 73 67 2e |@(#)rpc_|callmsg.|
|00005c60| 63 09 31 2e 32 20 38 37 | 2f 31 31 2f 32 33 20 33 |c.1.2 87|/11/23 3|
|00005c70| 2e 39 20 52 50 43 53 52 | 43 20 2a 2f 0a 2f 2a 0a |.9 RPCSR|C */./*.|
|00005c80| 20 2a 20 53 75 6e 20 52 | 50 43 20 69 73 20 61 20 | * Sun R|PC is a |
|00005c90| 70 72 6f 64 75 63 74 20 | 6f 66 20 53 75 6e 20 4d |product |of Sun M|
|00005ca0| 69 63 72 6f 73 79 73 74 | 65 6d 73 2c 20 49 6e 63 |icrosyst|ems, Inc|
|00005cb0| 2e 20 61 6e 64 20 69 73 | 20 70 72 6f 76 69 64 65 |. and is| provide|
|00005cc0| 64 20 66 6f 72 0a 20 2a | 20 75 6e 72 65 73 74 72 |d for. *| unrestr|
|00005cd0| 69 63 74 65 64 20 75 73 | 65 20 70 72 6f 76 69 64 |icted us|e provid|
|00005ce0| 65 64 20 74 68 61 74 20 | 74 68 69 73 20 6c 65 67 |ed that |this leg|
|00005cf0| 65 6e 64 20 69 73 20 69 | 6e 63 6c 75 64 65 64 20 |end is i|ncluded |
|00005d00| 6f 6e 20 61 6c 6c 20 74 | 61 70 65 0a 20 2a 20 6d |on all t|ape. * m|
|00005d10| 65 64 69 61 20 61 6e 64 | 20 61 73 20 61 20 70 61 |edia and| as a pa|
|00005d20| 72 74 20 6f 66 20 74 68 | 65 20 73 6f 66 74 77 61 |rt of th|e softwa|
|00005d30| 72 65 20 70 72 6f 67 72 | 61 6d 20 69 6e 20 77 68 |re progr|am in wh|
|00005d40| 6f 6c 65 20 6f 72 20 70 | 61 72 74 2e 20 20 55 73 |ole or p|art. Us|
|00005d50| 65 72 73 0a 20 2a 20 6d | 61 79 20 63 6f 70 79 20 |ers. * m|ay copy |
|00005d60| 6f 72 20 6d 6f 64 69 66 | 79 20 53 75 6e 20 52 50 |or modif|y Sun RP|
|00005d70| 43 20 77 69 74 68 6f 75 | 74 20 63 68 61 72 67 65 |C withou|t charge|
|00005d80| 2c 20 62 75 74 20 61 72 | 65 20 6e 6f 74 20 61 75 |, but ar|e not au|
|00005d90| 74 68 6f 72 69 7a 65 64 | 0a 20 2a 20 74 6f 20 6c |thorized|. * to l|
|00005da0| 69 63 65 6e 73 65 20 6f | 72 20 64 69 73 74 72 69 |icense o|r distri|
|00005db0| 62 75 74 65 20 69 74 20 | 74 6f 20 61 6e 79 6f 6e |bute it |to anyon|
|00005dc0| 65 20 65 6c 73 65 20 65 | 78 63 65 70 74 20 61 73 |e else e|xcept as|
|00005dd0| 20 70 61 72 74 20 6f 66 | 20 61 20 70 72 6f 64 75 | part of| a produ|
|00005de0| 63 74 20 6f 72 0a 20 2a | 20 70 72 6f 67 72 61 6d |ct or. *| program|
|00005df0| 20 64 65 76 65 6c 6f 70 | 65 64 20 62 79 20 74 68 | develop|ed by th|
|00005e00| 65 20 75 73 65 72 2e 0a | 20 2a 20 0a 20 2a 20 53 |e user..| * . * S|
|00005e10| 55 4e 20 52 50 43 20 49 | 53 20 50 52 4f 56 49 44 |UN RPC I|S PROVID|
|00005e20| 45 44 20 41 53 20 49 53 | 20 57 49 54 48 20 4e 4f |ED AS IS| WITH NO|
|00005e30| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 41 | WARRANT|IES OF A|
|00005e40| 4e 59 20 4b 49 4e 44 20 | 49 4e 43 4c 55 44 49 4e |NY KIND |INCLUDIN|
|00005e50| 47 20 54 48 45 0a 20 2a | 20 57 41 52 52 41 4e 54 |G THE. *| WARRANT|
|00005e60| 49 45 53 20 4f 46 20 44 | 45 53 49 47 4e 2c 20 4d |IES OF D|ESIGN, M|
|00005e70| 45 52 43 48 41 4e 54 49 | 42 49 4c 49 54 59 20 41 |ERCHANTI|BILITY A|
|00005e80| 4e 44 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |ND FITNE|SS FOR A|
|00005e90| 20 50 41 52 54 49 43 55 | 4c 41 52 0a 20 2a 20 50 | PARTICU|LAR. * P|
|00005ea0| 55 52 50 4f 53 45 2c 20 | 4f 52 20 41 52 49 53 49 |URPOSE, |OR ARISI|
|00005eb0| 4e 47 20 46 52 4f 4d 20 | 41 20 43 4f 55 52 53 45 |NG FROM |A COURSE|
|00005ec0| 20 4f 46 20 44 45 41 4c | 49 4e 47 2c 20 55 53 41 | OF DEAL|ING, USA|
|00005ed0| 47 45 20 4f 52 20 54 52 | 41 44 45 20 50 52 41 43 |GE OR TR|ADE PRAC|
|00005ee0| 54 49 43 45 2e 0a 20 2a | 20 0a 20 2a 20 53 75 6e |TICE.. *| . * Sun|
|00005ef0| 20 52 50 43 20 69 73 20 | 70 72 6f 76 69 64 65 64 | RPC is |provided|
|00005f00| 20 77 69 74 68 20 6e 6f | 20 73 75 70 70 6f 72 74 | with no| support|
|00005f10| 20 61 6e 64 20 77 69 74 | 68 6f 75 74 20 61 6e 79 | and wit|hout any|
|00005f20| 20 6f 62 6c 69 67 61 74 | 69 6f 6e 20 6f 6e 20 74 | obligat|ion on t|
|00005f30| 68 65 0a 20 2a 20 70 61 | 72 74 20 6f 66 20 53 75 |he. * pa|rt of Su|
|00005f40| 6e 20 4d 69 63 72 6f 73 | 79 73 74 65 6d 73 2c 20 |n Micros|ystems, |
|00005f50| 49 6e 63 2e 20 74 6f 20 | 61 73 73 69 73 74 20 69 |Inc. to |assist i|
|00005f60| 6e 20 69 74 73 20 75 73 | 65 2c 20 63 6f 72 72 65 |n its us|e, corre|
|00005f70| 63 74 69 6f 6e 2c 0a 20 | 2a 20 6d 6f 64 69 66 69 |ction,. |* modifi|
|00005f80| 63 61 74 69 6f 6e 20 6f | 72 20 65 6e 68 61 6e 63 |cation o|r enhanc|
|00005f90| 65 6d 65 6e 74 2e 0a 20 | 2a 20 0a 20 2a 20 53 55 |ement.. |* . * SU|
|00005fa0| 4e 20 4d 49 43 52 4f 53 | 59 53 54 45 4d 53 2c 20 |N MICROS|YSTEMS, |
|00005fb0| 49 4e 43 2e 20 53 48 41 | 4c 4c 20 48 41 56 45 20 |INC. SHA|LL HAVE |
|00005fc0| 4e 4f 20 4c 49 41 42 49 | 4c 49 54 59 20 57 49 54 |NO LIABI|LITY WIT|
|00005fd0| 48 20 52 45 53 50 45 43 | 54 20 54 4f 20 54 48 45 |H RESPEC|T TO THE|
|00005fe0| 0a 20 2a 20 49 4e 46 52 | 49 4e 47 45 4d 45 4e 54 |. * INFR|INGEMENT|
|00005ff0| 20 4f 46 20 43 4f 50 59 | 52 49 47 48 54 53 2c 20 | OF COPY|RIGHTS, |
|00006000| 54 52 41 44 45 20 53 45 | 43 52 45 54 53 20 4f 52 |TRADE SE|CRETS OR|
|00006010| 20 41 4e 59 20 50 41 54 | 45 4e 54 53 20 42 59 20 | ANY PAT|ENTS BY |
|00006020| 53 55 4e 20 52 50 43 0a | 20 2a 20 4f 52 20 41 4e |SUN RPC.| * OR AN|
|00006030| 59 20 50 41 52 54 20 54 | 48 45 52 45 4f 46 2e 0a |Y PART T|HEREOF..|
|00006040| 20 2a 20 0a 20 2a 20 49 | 6e 20 6e 6f 20 65 76 65 | * . * I|n no eve|
|00006050| 6e 74 20 77 69 6c 6c 20 | 53 75 6e 20 4d 69 63 72 |nt will |Sun Micr|
|00006060| 6f 73 79 73 74 65 6d 73 | 2c 20 49 6e 63 2e 20 62 |osystems|, Inc. b|
|00006070| 65 20 6c 69 61 62 6c 65 | 20 66 6f 72 20 61 6e 79 |e liable| for any|
|00006080| 20 6c 6f 73 74 20 72 65 | 76 65 6e 75 65 0a 20 2a | lost re|venue. *|
|00006090| 20 6f 72 20 70 72 6f 66 | 69 74 73 20 6f 72 20 6f | or prof|its or o|
|000060a0| 74 68 65 72 20 73 70 65 | 63 69 61 6c 2c 20 69 6e |ther spe|cial, in|
|000060b0| 64 69 72 65 63 74 20 61 | 6e 64 20 63 6f 6e 73 65 |direct a|nd conse|
|000060c0| 71 75 65 6e 74 69 61 6c | 20 64 61 6d 61 67 65 73 |quential| damages|
|000060d0| 2c 20 65 76 65 6e 20 69 | 66 0a 20 2a 20 53 75 6e |, even i|f. * Sun|
|000060e0| 20 68 61 73 20 62 65 65 | 6e 20 61 64 76 69 73 65 | has bee|n advise|
|000060f0| 64 20 6f 66 20 74 68 65 | 20 70 6f 73 73 69 62 69 |d of the| possibi|
|00006100| 6c 69 74 79 20 6f 66 20 | 73 75 63 68 20 64 61 6d |lity of |such dam|
|00006110| 61 67 65 73 2e 0a 20 2a | 20 0a 20 2a 20 53 75 6e |ages.. *| . * Sun|
|00006120| 20 4d 69 63 72 6f 73 79 | 73 74 65 6d 73 2c 20 49 | Microsy|stems, I|
|00006130| 6e 63 2e 0a 20 2a 20 32 | 35 35 30 20 47 61 72 63 |nc.. * 2|550 Garc|
|00006140| 69 61 20 41 76 65 6e 75 | 65 0a 20 2a 20 4d 6f 75 |ia Avenu|e. * Mou|
|00006150| 6e 74 61 69 6e 20 56 69 | 65 77 2c 20 43 61 6c 69 |ntain Vi|ew, Cali|
|00006160| 66 6f 72 6e 69 61 20 20 | 39 34 30 34 33 0a 20 2a |fornia |94043. *|
|00006170| 2f 0a 23 69 66 20 21 64 | 65 66 69 6e 65 64 28 6c |/.#if !d|efined(l|
|00006180| 69 6e 74 29 20 26 26 20 | 64 65 66 69 6e 65 64 28 |int) && |defined(|
|00006190| 53 43 43 53 49 44 53 29 | 0a 73 74 61 74 69 63 20 |SCCSIDS)|.static |
|000061a0| 63 68 61 72 20 73 63 63 | 73 69 64 5b 5d 20 3d 20 |char scc|sid[] = |
|000061b0| 22 40 28 23 29 72 70 63 | 5f 63 61 6c 6c 6d 73 67 |"@(#)rpc|_callmsg|
|000061c0| 2e 63 20 31 2e 34 20 38 | 37 2f 30 38 2f 31 31 20 |.c 1.4 8|7/08/11 |
|000061d0| 43 6f 70 79 72 20 31 39 | 38 34 20 53 75 6e 20 4d |Copyr 19|84 Sun M|
|000061e0| 69 63 72 6f 22 3b 0a 23 | 65 6e 64 69 66 0a 0a 2f |icro";.#|endif../|
|000061f0| 2a 0a 20 2a 20 72 70 63 | 5f 63 61 6c 6c 6d 73 67 |*. * rpc|_callmsg|
|00006200| 2e 63 0a 20 2a 0a 20 2a | 20 43 6f 70 79 72 69 67 |.c. *. *| Copyrig|
|00006210| 68 74 20 28 43 29 20 31 | 39 38 34 2c 20 53 75 6e |ht (C) 1|984, Sun|
|00006220| 20 4d 69 63 72 6f 73 79 | 73 74 65 6d 73 2c 20 49 | Microsy|stems, I|
|00006230| 6e 63 2e 0a 20 2a 0a 20 | 2a 2f 0a 0a 23 69 6e 63 |nc.. *. |*/..#inc|
|00006240| 6c 75 64 65 20 3c 73 79 | 73 2f 70 61 72 61 6d 2e |lude <sy|s/param.|
|00006250| 68 3e 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 72 70 |h>..#inc|lude <rp|
|00006260| 63 2f 72 70 63 2e 68 3e | 0a 0a 2f 2a 0a 20 2a 20 |c/rpc.h>|../*. * |
|00006270| 58 44 52 20 61 20 63 61 | 6c 6c 20 6d 65 73 73 61 |XDR a ca|ll messa|
|00006280| 67 65 0a 20 2a 2f 0a 62 | 6f 6f 6c 5f 74 0a 78 64 |ge. */.b|ool_t.xd|
|00006290| 72 5f 63 61 6c 6c 6d 73 | 67 28 78 64 72 73 2c 20 |r_callms|g(xdrs, |
|000062a0| 63 6d 73 67 29 0a 09 72 | 65 67 69 73 74 65 72 20 |cmsg)..r|egister |
|000062b0| 58 44 52 20 2a 78 64 72 | 73 3b 0a 09 72 65 67 69 |XDR *xdr|s;..regi|
|000062c0| 73 74 65 72 20 73 74 72 | 75 63 74 20 72 70 63 5f |ster str|uct rpc_|
|000062d0| 6d 73 67 20 2a 63 6d 73 | 67 3b 0a 7b 0a 09 72 65 |msg *cms|g;.{..re|
|000062e0| 67 69 73 74 65 72 20 6c | 6f 6e 67 20 2a 62 75 66 |gister l|ong *buf|
|000062f0| 3b 0a 09 72 65 67 69 73 | 74 65 72 20 73 74 72 75 |;..regis|ter stru|
|00006300| 63 74 20 6f 70 61 71 75 | 65 5f 61 75 74 68 20 2a |ct opaqu|e_auth *|
|00006310| 6f 61 3b 0a 0a 09 69 66 | 20 28 78 64 72 73 2d 3e |oa;...if| (xdrs->|
|00006320| 78 5f 6f 70 20 3d 3d 20 | 58 44 52 5f 45 4e 43 4f |x_op == |XDR_ENCO|
|00006330| 44 45 29 20 7b 0a 09 09 | 69 66 20 28 63 6d 73 67 |DE) {...|if (cmsg|
|00006340| 2d 3e 72 6d 5f 63 61 6c | 6c 2e 63 62 5f 63 72 65 |->rm_cal|l.cb_cre|
|00006350| 64 2e 6f 61 5f 6c 65 6e | 67 74 68 20 3e 20 4d 41 |d.oa_len|gth > MA|
|00006360| 58 5f 41 55 54 48 5f 42 | 59 54 45 53 29 20 7b 0a |X_AUTH_B|YTES) {.|
|00006370| 09 09 09 72 65 74 75 72 | 6e 20 28 46 41 4c 53 45 |...retur|n (FALSE|
|00006380| 29 3b 0a 09 09 7d 0a 09 | 09 69 66 20 28 63 6d 73 |);...}..|.if (cms|
|00006390| 67 2d 3e 72 6d 5f 63 61 | 6c 6c 2e 63 62 5f 76 65 |g->rm_ca|ll.cb_ve|
|000063a0| 72 66 2e 6f 61 5f 6c 65 | 6e 67 74 68 20 3e 20 4d |rf.oa_le|ngth > M|
|000063b0| 41 58 5f 41 55 54 48 5f | 42 59 54 45 53 29 20 7b |AX_AUTH_|BYTES) {|
|000063c0| 0a 09 09 09 72 65 74 75 | 72 6e 20 28 46 41 4c 53 |....retu|rn (FALS|
|000063d0| 45 29 3b 0a 09 09 7d 0a | 09 09 62 75 66 20 3d 20 |E);...}.|..buf = |
|000063e0| 58 44 52 5f 49 4e 4c 49 | 4e 45 28 78 64 72 73 2c |XDR_INLI|NE(xdrs,|
|000063f0| 20 38 20 2a 20 42 59 54 | 45 53 5f 50 45 52 5f 58 | 8 * BYT|ES_PER_X|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.